Feed on
Posts
Comments

Archive for the 'LaTeX' Category

remove chapter numbering in latex

if your section headings are printing 0.1, 0.2, etc., and you’d like to remove the leading 0′s, add the following to your latex file: \renewcommand*\thesection{\arabic{section}}

Despite having multiple sections and chapters in my document, my figures were only numbered: Figure 1, Figure, 2, etc. To change their naming to Figure 1.1, Figure 1.2, etc, I simply included the following code: \usepackage{amsmath} \numberwithin{figure}{section}

to have hyperlinks between references in your document and figures or sections, simply load: \usepackage{hyperref} once this package is loaded, you can also embed webpage hyperlinks: \url{http//www.google.com}

single-space lists in latex

much thanks to ilana bromberg heintz for the following hint!     When you have a list environment, either itemize or enumerate, it automatically double spaces between the items.  That’s annoying.  To get rid of it, just add ‘mdwlist’ to the \usepackage list in your declarations, then use\begin{enumerate*} and \end{enumerate*} (or itemize*).  Single spaced!

for my thesis proposal, i’ve tried to reduce the volume of space my bibliography takes up as much as possible.  here are some of the strategies i’ve employed: use single-spacing, make the font small, and make the citations print in two-column style: \begin{singlespace} \begin{footnotesize} \begin{twocolumn} \bibliography{main} \bibliographystyle{unsrtnat} \end{twocolumn} \end{footnotesize} \end{singlespace}

to adjust the spacing between rows in a latex table, add square brackets and the size adjustment after the linebreak. for instance, to compress rows by 1 inch: entry1 & entry2 & entry3 \\[-1in]

i wanted to give my thesis proposal abstract a listing in the table of contents, but i didn’t want to give it an explicit chapter number. to achieve this, i prefaced by abstract with: \addcontentsline{toc}{chapter}{\protect\numberline{}Abstract} \chapter*{Abstract} my abstract.

produce a resume in latex

latex makes everything beautiful. so, why not use it to make one of your most important documents — your resume — more attractive? it’s easy. (assuming you’ve got some basic knowledge of latex or the moxie to acquire some.) i won’t teach any introductory latex here; that’s what google is for. instead, i’ll provide something […]

to get latex and pdflatex running in mac os x, first download i-installer. then, install the ‘tex’ package found in the i-installer. then, compile a tex file into a pdf with the command: >>pdflatex mytexfile.tex

to tile images in a figure, use the following code: \begin{figure}[h] \begin{center}$ \begin{array}{cc} \includegraphics[width=2.5in]{image1.jpg} & \includegraphics[width=2.5in]{image2.jpg} \end{array}$ \end{center} \caption{my caption} \end{figure} to place more than 2 images on a line, add extra ‘c’s to the {array} specification and follow each \includegraphics[]{} with an ampersand (&). to create a matrix of images, insert newlines using two […]

Next »

More blogs about http://desk.stinkpot.org:8080/tricks.