Mostrando postagens com marcador Latex. Mostrar todas as postagens
Mostrando postagens com marcador Latex. Mostrar todas as postagens

quinta-feira, abril 12, 2012

How to set line spacing in LaTeX

Some simple (but very important) commands you should know about line spacing in LaTeX:

\singlespacing - sets the text to single line spacing
\onehalfspacing - sets the text to one half spacing
\doublespacing - sets the text to double spacing

To use such commands, you should use the following package: \usepackage{setspace}


Bellow, there's a simple example about how to use these commands:


\begin{document}
\onehalfspacing
First part of the text (using one half spacing)
\doublespacing
Second part of the text (using double spacing)
\end{document}

terça-feira, setembro 07, 2010

How to compile a Beamer presentation using MikTex 2.8

After 3 days trying to compile one presentation using Beamer on MikTeX 2.8, I finally found out how to do it.


I noticed that MikTeX didn't came with the beamer package installed on it. So I tried to install beamer manually through its "Package Manager", but it didn't solve the compilation errors.

After "burning" some neurons, I tried to install the packages pgf and xcolor, and now it works very well.

There's one feature about MikTeX that could help you to save a lot of time when trying to "find" the correct packages. On its Maintenance menu, you can find the Settings application. Open it, and search for the "Install missing packages on-the-fly" option. Change its value to Yes.