Ask your own question, for FREE!
LaTeX Practicing! :) 16 Online
OpenStudy (anonymous):

@UnkleRhaukus

OpenStudy (unklerhaukus):

Hi

OpenStudy (anonymous):

Hi @UnkleRhaukus

OpenStudy (anonymous):

OpenStudy (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

OpenStudy (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

OpenStudy (unklerhaukus):

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

OpenStudy (unklerhaukus):

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

OpenStudy (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

OpenStudy (anonymous):

I think I just lost everything

OpenStudy (unklerhaukus):

what happened

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

you didn't have a copy saved?

OpenStudy (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

OpenStudy (anonymous):

Oh Yay It's back!

OpenStudy (unklerhaukus):

are you getting the picture to work yet ?

OpenStudy (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

OpenStudy (anonymous):

I see...I think I saved it now

OpenStudy (unklerhaukus):

so your document is online and not on your hard drive?

OpenStudy (unklerhaukus):

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

OpenStudy (anonymous):

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

OpenStudy (anonymous):

i placed the CRT.png in that same folder.

OpenStudy (unklerhaukus):

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

OpenStudy (anonymous):

It worked!

OpenStudy (unklerhaukus):

!YES!

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

yesh

OpenStudy (anonymous):

\usepackage{column} ?

OpenStudy (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*}$$

OpenStudy (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?

OpenStudy (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}$$

OpenStudy (anonymous):

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

OpenStudy (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?

OpenStudy (anonymous):

kinda like this

OpenStudy (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}\]

OpenStudy (unklerhaukus):

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

OpenStudy (unklerhaukus):

is that working?

OpenStudy (anonymous):

yep

OpenStudy (unklerhaukus):

goood

OpenStudy (unklerhaukus):

can you tell me what V_acc is in the diagram?

OpenStudy (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.

OpenStudy (unklerhaukus):

what do you think of this , i just made?

OpenStudy (anonymous):

|dw:1362122388483:dw|

OpenStudy (anonymous):

It looks identical to the CRT in my lab manual

OpenStudy (anonymous):

did you really make this?

OpenStudy (unklerhaukus):

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

OpenStudy (unklerhaukus):

OpenStudy (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} ```

OpenStudy (anonymous):

wow!!! that's madness!!!

OpenStudy (unklerhaukus):

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

OpenStudy (unklerhaukus):

madness indeed

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

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

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

Sure!

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

( :

OpenStudy (anonymous):

where did you learn to do that?

OpenStudy (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.

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

OpenStudy (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

OpenStudy (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} ```

OpenStudy (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}$$

OpenStudy (anonymous):

never mind, I figured it out =)

OpenStudy (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}

OpenStudy (anonymous):

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

OpenStudy (anonymous):

* I meant \section{procedure}

OpenStudy (unklerhaukus):

did that work

OpenStudy (unklerhaukus):

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

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

your report is looking really good

OpenStudy (anonymous):

I owe you!!!!!

OpenStudy (anonymous):

what did I do wrong?

OpenStudy (unklerhaukus):

in excel right click on the chart and save as picture

OpenStudy (anonymous):

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

OpenStudy (unklerhaukus):

that abstract is still abstract

OpenStudy (unklerhaukus):

im still learning too

OpenStudy (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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!