anonymous 3 years ago @UnkleRhaukus

1. UnkleRhaukus

Hi

2. anonymous

Hi @UnkleRhaukus

3. anonymous

4. UnkleRhaukus

to insert in the figue into the document place "crt.png" in the same folder. then just add  \begin{figure} [h]\includegraphics[width=0.6\textwidth]{crt} \end{figure}  to your code

5. anonymous

I'm kinda confused. Do you have to save the document in a specific folder? Sorry, it's my first time adding images to my document

6. UnkleRhaukus

the document will save somewhere, in this folder there will be a .aux , .log , .pdf , .synctex.gz , and a .tex file.

7. UnkleRhaukus

all with the same name as the document , usually you'd open the .tex file. is this the same when you use Texmaker?

8. anonymous

I should probably use texmaker, but I won't be able to share my progress with you. or could I ? what about the the image below? I tried using this to upload the image, and it didn't work

9. anonymous

I think I just lost everything

10. UnkleRhaukus

what happened

11. anonymous

A red "lost connection" warning appeared, and then I lost everything...

12. UnkleRhaukus

you didn't have a copy saved?

13. anonymous

I hit the back button...and that took me to the original template. Well I have a rough draft somewhere without the updates, and I have my handwritten equations in front of me, so I should be fine

14. anonymous

Oh Yay It's back!

15. UnkleRhaukus

are you getting the picture to work yet ?

16. anonymous

no, I think I saved the document by hitting the save button under "history", but I'm not sure where it's saving to

17. anonymous

I see...I think I saved it now

18. UnkleRhaukus

19. UnkleRhaukus

if it was me, i would have the file on my hard drive,

20. anonymous

It's on my hard drive now, I think . It's saved on my desktop in a folder I labeled " LaTeX"

21. anonymous

i placed the CRT.png in that same folder.

22. UnkleRhaukus

now just add  \begin{figure} [h]\includegraphics[width=0.6\textwidth]{crt} \end{figure}  it should work

23. anonymous

It worked!

24. UnkleRhaukus

!YES!

25. anonymous

Thanks soo much! You're awesome!!! Is it possible to have the equations in two different columns?

26. UnkleRhaukus

yesh

27. anonymous

\usepackage{column} ?

28. UnkleRhaukus

that might work , or you could just use align*  \begin{align*} 1111&&a\\ 2&&b\\ 3&&ccccc\\ 4&&d \end{align*}  \begin{align*} 1111&&a\\ 2&&b\\ 3&&ccccc\\ 4&&d \end{align*}

29. anonymous

Thanks! I'll try that. Oh and one more thing, how can I make a table? or should I simply import a png image of my table in xcel?

30. UnkleRhaukus

 $$\begin{array}{|c|c|} \hline 1111&f&a\\ \hline2&q&b\\ 3&w&ccccc\\ 4&pppppppp&d\\ \hline \end{array}$$  $$\begin{array}{|c|c|} \hline 1111&f&a\\ \hline2&q&b\\ 3&w&ccccc\\ 4&pppppppp&d\\ \hline \end{array}$$

31. anonymous

Thanks again, you are awesome!!!! I'll save my work every couple of mins or so...just in case ;)

32. anonymous

@UnkleRhaukus I'm trying to have the equation line 37 to 41 on one side (where the 11111 2 3 4 are in your example) and the equations line 46 to 42 on the other side Is that possible?

33. anonymous

kinda like this

34. UnkleRhaukus

 $\\ \begin{array}{ccccccc} &\text{Region 1}&&&&\text{Region 2}\\ \\ x_1=v_{ox}t_1& \text{or}& t_1=\tfrac{L}{v_ox}&(1)&&x_2=v_{ot}t_2\quad\text{or}\quad{t_2}=\tfrac D{v_{ox}}&(2)\\ \\ &y_1=\tfrac12a{t_1}^2&&(3)&&y_2+v_yt_2&(4)\\ \\ &v_y=at_1 \end{array}$  $\\ \begin{array}{ccccccc} &\text{Region 1}&&&&\text{Region 2}\\ \\ x_1=v_{ox}t_1& \text{or}& t_1=\tfrac{L}{v_ox}&(1)&&x_2=v_{ot}t_2\quad\text{or}\quad{t_2}=\tfrac D{v_{ox}}&(2)\\ \\ &y_1=\tfrac12a{t_1}^2&&(3)&&y_2+v_yt_2&(4)\\ \\ &v_y=at_1 \end{array}$

35. UnkleRhaukus

* the x should be in the subscript in (1)

36. UnkleRhaukus

is that working?

37. anonymous

yep

38. UnkleRhaukus

goood

39. UnkleRhaukus

can you tell me what V_acc is in the diagram?

40. anonymous

yep, it's the acceleration voltage. The electrons travel to the acceleration plates and acquire a velocity due to the voltage difference of 500V between those plates.

41. UnkleRhaukus

what do you think of this , i just made?

42. anonymous

|dw:1362122388483:dw|

43. anonymous

It looks identical to the CRT in my lab manual

44. anonymous

did you really make this?

45. UnkleRhaukus

well i still have to put in the table in the left,

46. UnkleRhaukus

47. UnkleRhaukus

 \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{5mm} \usepackage{tikz} \usepackage{siunitx} \usepackage{circuitikz} %\usepackage{patti} \tikzstyle{wire}=[] \tikzset{comp/.style={draw,circle,black,fill=white,minimum size =0.75cm,inner sep=0pt}} \title{Circuit} \author{Unkle Rhaukus} \begin{document} \begin{preview} \centering \begin{circuitikz} \draw [<->](-4,3)--(0,3) node[above] {D$_{\text{tot}}$}--(7,3) ; % D tot \draw [<->](0,2.2)--(1,2.2) node[above] {D}--(7,2.2) ; % D \draw [thick] (-5,1)--(4,1)--(7,2)--(7,-2)--(4,-1)--(-5,-1)--(-5,1) ; % shape of tube \draw[dashed] (-4.5,0)--(1.25,0) ; \draw[dashed] (2.25,0)--(5,0) node[above]{electron}node[below] {beam}--(7,0) ; % electron path \draw (-5.5,0.65) --(-4.5,0.65) to [L] (-4.5,-.65)--(-5.5,-0.65) ; % inductor \draw (-5.5,0) node[above] {6.3\si \volt} node [below]{AC} ; % voltage \draw (0,1) node [above] {Deflection plates} ; % plates name \draw (-1.5,0.35)--(-0.5,0.35)--(-0.25,0.1)--(-1.25,0.1)--(-1.5,0.35) ; % top y plate \draw (-1.5,-0.15)--(-0.5,-0.15)--(-0.25,-0.4)--(-1.25,-0.4)--(-1.5,-0.15) ; % bottom y plate \draw (-0.85,0.20)--(-0.85,0.75)--(-1.65,0.75)--(-1.65,-1.75) node [right] {$\,V_y$} ; % y plate top wire \draw (-0.85,-0.40)--(-0.85,-1.75) ; % y plate bottom wire \draw [->] (0,0.4)--(0,0.1) ; \draw [->] (0,-0.7)--(0,-.4) node [above]{\tiny S} ; % S \draw [<-] (-1.35,-0.3)--(-1,-0.3) ; \draw [<-] (-0.35,-0.3) -- (-0.65,-0.3) node {\tiny L$\quad$} ; \draw (1.25,-0.25)--(1,-0.25)--(1,0.75)--(2,0.75)--(2,0.5) ; % back x plate \draw (1.25,-0.5)--(1.25,0.5)--(2.25,0.5)--(2.25,-0.5)--(1.25,-0.5) ; % front x plate \draw (1,0.35)--(0.75,0.35)--(0.75,-1.75) node [right] {$\quad V_x$} ; % back x wire \draw (1.75,0)--(1.95,-0.25)--(1.95,-1.75) ; % front x wire \draw (-5,-1) node [below right] {Electron Gun} ; % cathode \draw (-4,3)node [above left]{V$_{\text{acc}}$} ; % ? \draw (-4,0.5)--(-4,-0.5) ; % vacuum bit? \draw (-4.2,0.5)--(-4.2,-0.5) ; % vacuum bit? \draw (-8,1) node {D=7.4~\si{\centi\meter}} ; \draw (-8,0.5) node {L=2.0~\si{\centi\meter}} ; \draw (-8,0) node {S=0.30~\si{\centi\meter}} ; % table \draw (-8,-0.5) node {D$_{\text {tot}}$=9.6~\si{\centi\meter}} ; \end{circuitikz} \end{preview} \end{document} 

48. anonymous

49. UnkleRhaukus

any thing to fix? do you want those extra vertical lines that i left out?

50. UnkleRhaukus

51. anonymous

how did you make the coils? where the AC 6.3 Volts is?

52. UnkleRhaukus

its a circuit component , an inductor its the  to [L]  bit

53. anonymous

Wow that's amazing! you mean this is for me? can I credit you on my paper. Copy right Felix Harvey-Rosser

54. UnkleRhaukus

Sure!

55. anonymous

I'm totally awake now. Wow that woke me up!

56. UnkleRhaukus

( :

57. anonymous

where did you learn to do that?

58. UnkleRhaukus

i learnt some Tikz a few months ago i learnt some circuitkz a few weeks ago, mainly from the manuels and with help from tex.stackexchange.

59. anonymous

I see...that's soo neat!!!

60. UnkleRhaukus

61. UnkleRhaukus

oh, i think i understand the accelerated voltage bit, the verticals lines are plates connected to wires that attach to a second power source

62. UnkleRhaukus

 \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{5mm} \usepackage{tikz} \usepackage{siunitx} \usepackage{circuitikz} \tikzset{comp/.style={draw,circle,black,fill=white,minimum size =0.75cm,inner sep=0pt}} \title{Cathode Ray Tube} \author{Felix Harvey-Rosser} \begin{document} \begin{preview} \centering \begin{circuitikz} \draw [<->](-3.2,3)--(0,3) node[above] {D$_{\text{tot}}$}--(6,3) ; % D tot \draw [<->](0,2.2)--(1,2.2) node[above] {D}--(6,2.2) ; % D \draw [thick] (-4.5,1)--(2.5,1)--(6,2)--(6,-2)--(2.5,-1)--(-4.5,-1)--(-4.5,1) ; % shape of tube \draw (-5,-1) node [below right] {Electron Gun} ; % Electron gun \draw (-5,0) node[above] {6.3\si \volt} node [below]{AC} ; % Voltage \draw (-5,0.65) --(-4.2,0.65) to [L] (-4.2,-.65)--(-5,-0.65) ; % cathode \draw (-3,2.5) node [left]{V$_{\text{acc}}$} ; % V_acc \draw (-3.4,2) node [above left]{\tiny{-250}}--(-3.4,0.1) (-3.4,-0.1)--(-3.4,-0.5) node [below left]{\qquad\tiny{-250}} (-3.2,2) node [above right]{\tiny{+250}}--(-3.2,0.1) (-3.2,-0.1) --(-3.2,-0.5) node [below right]{\tiny{+250}} ; % accelerator plates \draw[dashed,->,>=stealth] (-4,0)--(1.25,0) (2.25,0)--(5,0) node[above]{electron}node[below] {beam}--(6,0) ; % electron path \draw (0,1) node [above] {Deflection plates} ; % Deflection plates \draw [<-] (-1.35,-0.3)--(-1,-0.3) ; \draw [<-] (-0.35,-0.3) -- (-0.65,-0.3) node {\tiny L$\quad$} ; % L \draw [->] (0,-0.7)--(0,-.4) node [above]{\tiny S} ; \draw [->] (0,0.4)--(0,0.1) ; % S \draw (-1.5,0.35)--(-0.5,0.35)--(-0.25,0.1)--(-1.25,0.1)--(-1.5,0.35) ; % top y plate \draw (-1.5,-0.15)--(-0.5,-0.15)--(-0.25,-0.4)--(-1.25,-0.4)--(-1.5,-0.15) ; % bottom y plate \draw (-0.85,0.20)--(-0.85,0.75)--(-1.65,0.75)--(-1.65,-1.75) node [right] {$\,V_y$} ; % y plate top wire \draw (-0.85,-0.40)--(-0.85,-1.75) ; % y plate bottom wire \draw (1.25,-0.25)-- (1,-0.25)-- (1,0.75)-- (2,0.75)--(2,0.5) ; % back x plate \draw (1.25,-0.5)-- (1.25,0.5)-- (2.25,0.5)-- (2.25,-0.5)--(1.25,-0.5) ; % front x plate \draw (1,0.35)-- (0.75,0.35)-- (0.75,-1.75) node [right] {$\quad V_x$} ; % back x wire \draw (1.75,0)-- (1.95,-0.25)-- (1.95,-1.75) ; % front x wire \draw (-7,1) node {D=7.4~\si{\centi\meter}} (-7,0.5) node {L=2.0~\si{\centi\meter}} (-7,0) node {S=0.30~\si{\centi\meter}} (-7,-0.5) node {D$_{\text {tot}}$=9.6~\si{\centi\meter}} ; % table \end{circuitikz} \end{preview} \end{document} 

63. anonymous

@UnkleRhaukus I get an error when I used this $$\begin{array}{|c|c|} \hline 1111&f&a\\ \hline2&q&b\\ 3&w&ccccc\\ 4&pppppppp&d\\ \hline \end{array}$$

64. anonymous

never mind, I figured it out =)

65. anonymous

I have the table under the \section{Data} but when I after I compile the doc it appears before \procedure \section{Data} \begin{table} \centering \begin{tabular}{l|r|r} Vy (Volts) & Deflection (mm) & Predicted Deflection (mm)\\\hline 0 & 0 & 0\\ 2 & 1 & 1.12\\ 4 & 2 & 2.24\\ 6 & 3 & 3.36\\ 8 & 4 & 4.48\\ 10 & 5 & 5.6\\ 12 & 6.5 & 6.72\\ 14 & 8 & 7.84\\ 16 & 9 & 8.96\\ 18 & 9.5 & 10.08 \end{tabular} \caption{\label{tab:widgets}Electron deflection in terms of Voltage.} \end{table}

66. anonymous

*I have the table under the \section{Data} but after I compile the doc it appears before \procedure

67. anonymous

* I meant \section{procedure}

68. UnkleRhaukus

did that work

69. UnkleRhaukus

\begin{tabular}[h]... [h] for here

70. anonymous

sorry I fell asleep again hahah..but yeah that worked!

71. UnkleRhaukus

your report is looking really good

72. anonymous

I owe you!!!!!

73. anonymous

what did I do wrong?

74. UnkleRhaukus

in excel right click on the chart and save as picture

75. anonymous

I thought I did, I'm such a noob, I'm still learning though....don't give up on me just yet....

76. UnkleRhaukus

that abstract is still abstract

77. UnkleRhaukus

im still learning too

78. anonymous

haha. Now that we're done with the graphics, I'm going to write/edit what's left. Man, I owe you. I learned a lot though. My next lab report should be a lot easier to create in LaTeX, now that have this template.