Computationally Occurred

about problems that i found during my IT life

Tag Archives: latex

Learn LateX and take it apart – Article useful commands for newbies

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 doc­u­ment may se­lect a sin­gle lan­guage to be sup­ported, or it may se­lect sev­eral, in which case the doc­u­ment may switch from one lan­guage to an­other in a va­ri­ety 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}

Learn LateX and take it apart – Presentation useful commands for newbies

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.

  • In past i’ve written all by my little hand, so this time i’ve used an editor:
    LatexILA, and another friend has suggested me TexMaker… i’ve preferred the first one, but the second one is crossplatform so i’ll use it on the mac!
    (This editors don’t run under windows… i’m sorry for you, but i hate it ^^)
  • A presentation starts with

    \documentclass(beamer)

  • Read more of this post