Margins
I used the geometry package to get my margins correct.\usepackage[left=0.5in,right=0.5in,vmargin=0.8in,nohead,nofoot]{geometry}
Title
Unfortunately LaTeX doesn't seem to handle compacting titles, authors and affiliations very well. My start looks like this:\centerline{\Large \bf Title Goes Here}
\medskip
\centerline{Author~Name~One, Author~Two$^{\rm \dagger}$, and
Author~Three$^{\rm \dagger*}$}
\centerline{Primary Author Institution, Address, Country}
\centerline{ phone: +1-123-456-7890, fax: +1-234-567-8901, email:
user.name@institution.edu }
\centerline{$\dagger$Affiliation $*$Affiliation}
\bigskip
%% Text starts here
Figures
I used the vspace command quite liberally to shrink the space between the pictures and the captions. An example follows. The "[h!]" command after the "\begin{figure}" tells LaTeX to try really hard to keep the same ordering as in the .tex file.\begin{figure}[h!]
\vspace{-25pt} %% moves figure closer to previous caption
\centering
\includegraphics[width=3.5in]{figure_file.pdf}
\vspace{-5pt} %% moves the caption closer to the figure
\caption{\textbf{Figure title} - a detailed description of the figure.}
\label{fig:block}
\end{figure}
Equations
I embedded my equations in a figure to save space. I also used the vspace command to help with space between equations.\begin{figure}[h!]
\centering
\vspace{-20pt}
\begin{equation}
\label{eq:one}
\frac{\partial c}{\partial t} = D\frac{\partial^2 c}{\partial x^2}
\end{equation}
\begin{equation}
\label{eq:two}
{\rm SNR} = 20\log_{10}\left(\mu\right)
\end{equation}
\begin{equation}
\label{eq:three}
\Delta{\rm SNR} = 10\log_{10}\left( f )
\end{equation}
\includegraphics[width=0.01in]{blank}
\vspace{-10pt}
\caption{\textbf{Equations}. Eq.~\ref{eq:one}
is foo, while Eqs.~\ref{eq:two}
and \ref{eq:three} are bar.}
\label{fig:eq}
\end{figure}
Bibliography
I spent the most time messing around with my bibliography. I wanted no line breaks between the items, the bibliography in a smaller font, only the first author listed and no titles in the items.Achieving no line breaks requires two things. First, you have to find the *.bst file that LaTeX uses and copy it to your local directory under a different name. For example, I was using the "ieeetr" style file, so I copied ieeetr.bst from the location LaTeX uses to my local directory as myieeetr.bst. You then must modify this file, and comment out the "newline$" strings in the output item. So in my case, the item
FUNCTION {output.bibitem}became (notice the %'s before the two newline$'s)
{ newline$
"\bibitem{" write$
cite$ write$
"}" write$
newline$
""
before.all 'output.state :=
}
FUNCTION {output.bibitem}
{ %newline$
"\bibitem{" write$
cite$ write$
"}" write$
%newline$
""
before.all 'output.state :=
}
Next, you have to add the following to the top of your .tex file before \begin{document} but after the usepackages
\usepackage{paralist}I have no idea what that command does, but my bibliography didn't have any line breaks. The bibliography stanza that comes after my main text ends is (and you should use whatever you named the local file in place of "myieeetr")
\renewenvironment{thebibliography}[1]{\begin{inparaenum}[[1{]}]}{\end
{inparaenum}}
\medskipTo shorten the bibliography even further, I removed all "TITLE={...}," lines from my bibtex file, and replaced the non-first authors with the "others" string. This causes a bibliography item to look like
\bibliographystyle{myieeetr}
\footnotesize{
\bibliography{myBibtexFileName}
}
[1] M. Smith, et al., Journal Name, vol. 99, pp. 123–123, Jan. 2000.which is exactly what I wanted. If I was a manly user I'd modify the bst file to do this, but I'm only a
5 comments:
or you could have used msword
haha. LaTeX is sexy, but I have to admit that I was thinking the same thing as rice.
I can't believe you're serious. The time I would have spent making the paper with Word would have been much longer than LaTeX.
How does Word dynamically renumber references? Ever tried to change a bibliography style in Word? Have you seen the kerning in some figure captions? The way it handles vector graphics files? Have you ever tried to source control a Word document, when you have multiple authors working on it?
Okay, those are valid points, and I am sure that once you become familiar with LaTeX (instead of my using it once every 6-12 months) doing what you're describing is a lot easier. The last thing I had to spend time on for a document (for a class) was a bibliography, in which case I used Bookends and it picked all of my references out and formatted them perfectly in Pages (mac text editing software). So, take that. Yeah.
Oh we're having a software throw-down now, are we? Are you really sure you want to go there? Because I can talk all day about how the text-based nature of LaTeX lets me do things like call my figure creation scripts, giving me traceability and reproducibility to the source and analysis of all of my data.
:p
Post a Comment