Recent Posts
Enslaved Coder
- An error has occurred; the feed is probably down. Try again later.
about problems that i found during my IT life
LateX is a great typesetting system and everytime i use it, i learn something new.
This time i’ve used the TexMaker editor, i’ll never change it! 😛
Some useful commands to use in an article are:
In the header…
%declare the article document package, with a4paper and 11pt arguments
\documentclass[a4paper,11pt]{article}
%The font econding package with T1 as argument
\usepackage[T1]{fontenc}
%the input encoding package with utf8 enables you to write accented letters as è à
\usepackage[utf8]{inputenc}
%I don’t know wtf this package do! -.-‘
\usepackage{lmodern}
%Babel package with italian argument enables to use italian language, but as reported in the
%link: “A document may select a single language to be supported, or it may select several, in which case the document may switch from one language to another in a variety of ways.”
\usepackage[italian]{babel}
%Pxfons, are Palatino fonts, i like them very much! Here some fonts combination ideas, in italian…
\usepackage{pxfonts}
%Enables three types of interline spacing
\usepackage{setspace}
%Enables includegraphics command for images
\usepackage{graphicx}
%Enables a list of companion fonts… read documentation… -.-‘
\usepackage{textcomp}
%hyperref makes your index, and other references as URLS or notes, linkable!
\usepackage{hyperref}%utile per inserire l’indice clickabile
%useful to set some options for hyperref package
%here enables coloured links with colour blue
%if doesn’t set, a box around all links will be visible!
\hypersetup{colorlinks=true, linkcolor=blue}
%Enables \ref{lbl} and \vref{lbl} cmds. In the second case, it links on page where the lbl is, useful for floating images
\usepackage[italian]{varioref}
%Enables small fonts in caption command, hang argument indent text under the label.
\usepackage[font=small, hang]{caption}
%You can set a date, if empty, no date will be printed with \maketitle command
\date{}
In the document…
%useful for a coverpage or every page without page-numbering
\thispagestyle{empty}
%restarts numbering, in this case with arabic numbers, there are many other numbering types
\cleardoublepage
\pagenumbering{arabic}
%To create a section
\section{name}
%to create a subsection, try to guess…
\subsection{name}
%to create a subsubsection… ^^
\subsubsection{name}
%cite the number of bibitem you want
\cite{biblabel}
%Enters the “bib refs” in the index.
%If you dont’ enter it, index will not have it
\addcontentsline{toc}{section}{bib refs}
%A bibliography template, someone says that it’s not good, i liked it! 🙂
\begin{thebibliography}{widest entry}
\bibitem[#]{biblabel} auth (year) – title – source
\end{thebibliography}
In these days i’m doing a presentation for the university… And it’s the first time i do it with LateX.
I’ve already used it, but never for a presentation… So, here, i write some few things that i’ve learned at this round.
\documentclass(beamer)