Hi,
I have a .tex file in which s diagram has been plotted using laTex commands. When I enter this into lyx it gives a smaller diagram with all the lines kind of tangled and squeezed in a smaller area. Does anyone know why this happens. Are the units of dimensions different in lyx?
For example something like this:
\begin{picture}(6,6)
{\linethickness{1pt}\put(6.2,5){\textcolor{black}{\vector(0,1){1}}}}
{\linethickness{2pt}\put(3.2,2){\line(1,0){4}}}
\end{picture}
Thanks,
LyX ⇒ LaTex picture commands not compatible with lyx
LaTex picture commands not compatible with lyx
Last edited by hooman on Thu Jun 30, 2011 5:19 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
LaTex picture commands not compatible with lyx
No, but you've forgotten to copy the definition of \unitlength. The default unit length in the picture environment is 1pt, which is about 0.35 mm. This can be changed with somewhere before the picture-environment (not within). If you look in your .tex-file you'll find a line like this.
Code: Select all
\setlength{\unitlength}{1cm}
Re: LaTex picture commands not compatible with lyx
Thanks alot!
It works now 

