# LEFEVRE Damien .net

Tuesday 24 April 2007, 13:43

## LaTeX presentation with Beamer

Since I discover the quality of the documents generated with LaTeX, I start to put my nose everywhere to redefine the tools I've been using so far or let say to say goodbye the academic Microsoft office brain washing I've had since I start to study...

So bye bye Powerpoint, welcome to beamer!

[view]

Tuesday 23 January 2007, 10:51

## Abbreviations and Acronyms

To make a list of acronyms use the following package in the preamble:

\usepackage{acronym}

Then you add the list where on want in your document, usually at the end. For example:

\section{Acronyms}
\begin{acronym}[TDMA]
\acro{CDMA}{Code Division Multiple Access}
\acro{GSM}{Global System for Mobile communication}
\acro{NA}[\ensuremath{N_{\mathrm A}}]

\acro{NUA}{Not Used Acronym}
\acro{TDMA}{Time Division Multiple Access}
\acro{UA}{Used Acronym}
\acro{API}{Application Programming Interface}
\acro{lox}[\ensuremath{LOX}]{Liquid Oxygen}%
\acro{lh2}[\ensuremath{LH_2}]{Liquid Hydrogen}%
\end{acronym}


Now the tags \ac, \acf, \acs, \acl

• "The \ac{API} provides all methods for the client." gives the following output:
The Application Programming Interface (API) provides all methods for the client.
• "The \acf{API} provides all methods for the client." gives the following output:
The Application Programming Interface (API) provides all methods for the client.
• "The \acs{API} provides all methods for the client." gives the following output:
The API provides all methods for the client.
• "The \acl{API} provides all methods for the client." gives the following output:
The Application Programming Interface provides all methods for the client.

If you get, let's take only the first example, API!:

The API! (API!) provides all methods for the client.

the reason is that you have not give the description for this abbreviation. The second reason could also be that you need to compile twice your report since the first time will updates the files and the second will actually print the proper result.

Monday 15 January 2007, 21:18

## Syntax highlighter source code

Comand to run:

• Full document ready to compile:
pygmentize -f latex -l python -O full -o viewFinder.tex viewFinder.py
• Part of document to import in a main document:
pygmentize -f latex -l python -o viewFinder.tex viewFinder.py