Want to make a lab report look really good using Latex?
Step 1) Download either TexMaker or TexWorks, or my new favorite compiler is Lyx
Step 2) Download this zipped folder and open Sample.tex using your program: Sample Latex Documents (see PDFs below).
Step 3) Press the "typeset" button, and voila! The document is written so that you can see how tables, equations, images, etc. are expressed in Latex, by comparing the PDF to the .tex file.
Note that the magic formatting is done by having the aastex.cls file in the same directory as the sample.tex file.
This document is made by this code
____________________________________________________________
Creating Subfigures: Figure 1a, figure 1b
Step 1) In the preamble add to \usepackage the term "subfigure"
example: \usepackage{amsmath, amsfonts, amssymb, url, subfigure}
Step 2) Write:
\begin{figure}[h!]\centering
\subfigure[caption for figure 1a]{\includegraphics[width=.5\textwidth] {ImageAName.ps}} \label{ImageA}
\subfigure[caption for figure 1b]{\includegraphics[width=.5\textwidth] {ImageBName.ps}}\label{ImageB}
\caption{blah blah}\label{Image A+B}
\end{figure}
To make:
(A) Caption for figure 1A |
(B) Caption for figure 1B |
Figure 1 -- blah blah
If instead you want the images to be side by side, you must make the images smaller so that they can fit (try .25\textwidth), and then they are placed side-by-side automatically.
__________________________________________________________________________________________
__________________________________________________________________________________________
No comments:
Post a Comment