Graphics, Figures & Tables ⇒ figure float adjustments
figure float adjustments
I'm trying to insert an EPS file as a figure float into the LyX editor. I succeed in doing this, but it doesn't look nice enough; Is there any recommended way to know how to adjust the figure to the text?
Thanks a lot,
Assaf
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
figure float adjustments
When you say "adjust the figure to the text", do you mean that you would want to adjust the size of the figure??? It would much easier to help you with a copy of the code you are using. But here goes nothing:
- First create a figure environment, with the caption and label if you feel like it
Code: Select all
\begin{figure} \caption{this is my caption} \label{fig:my_fig} \end{figure}
- Then, include your .eps file
\begin{figure}
\includegraphics{my_eps_file}
\caption{this is my caption}
\label{fig:my_fig}
\end{figure} - Your .eps file will be displayed on 100% scale. If you want to change the size of its display, just add the option
\begin{figure}
\includegraphics[width=\textwidth]{my_eps_file}
\caption{this is my caption}
\label{fig:my_fig}
\end{figure}
which will diplay the .eps file to the width of the text. You can choose to specified the height of your file with the option \includegraphics[height=0.2\textheight]{my_eps_file}
Cheer
Re: figure float adjustments
the only thing is that I'm using LyX, not LaTeX editor.. is there any way of inerting LaTeX source code in LyX?
Tnx,
Asaf
figure float adjustments
Inserting LaTeX code in your file simply means write these lines where you write your text document. When you compile your LaTeX file, with the Lyx compiler, the command that start with a backslash will not be printed out in your text. They are called commands, which are used to tell LaTeX what to do with some part of the text.
Therefore, by telling Lyx:
Code: Select all
\begin{figure}
\end{figure}
Another command is:
Code: Select all
\includegraphics[width=0.95\textwidth]{my-fig-file}
Code: Select all
\caption{this is my caption for this graphic}
Code: Select all
\label{fig:my-fig}
Cheers
Re: figure float adjustments
asaf