MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 18 as of 2015-03-09 23:25:12
  • LaTex

LaTex

LaTeX is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.

LaTex, Tex Live on Apple Macintosh

Download the file mactex_basic.pkg file from http://mirrors.fe.up.pt/pub/CTAN/systems/mac/mactex/mactex-basic.pkg.

Install the file mactex_basic.pkg using the installer (in portuguese).

BasicTexInstallerPT.png

Click on Continue (Continuar in portuguese) throughout the wizard until the installation is complete.

TerminalSnapshot.png

After the installation open a terminal window

With super user rights run:

  • sudo tlmgr update --all
  • sudo tlmgr install beamer
  • sudo tlmgr install subfig
  • sudo tlmgr install europecv

The mentioned installs are for presentations (beamer), show figures (subfig) and create an european Curriculum Vitae.

Sample beamer presentation

File beamerTest.tex

   1 \documentclass{beamer}
   2 \usepackage{multimedia}
   3 
   4 \usetheme{Warsaw}   
   5 \usepackage[english]{babel}
   6 \usepackage[latin1]{inputenc}
   7 \usepackage{colortbl}
   8 \usepackage{times}
   9 \usepackage[T1]{fontenc}
  10 \usepackage{epstopdf}
  11 
  12 \usenavigationsymbolstemplate{}
  13 \title{Test title}
  14 \author{John Doe}
  15 \institute{ACME Corp.} 
  16 \date{2013-12-29}
  17 
  18 \begin{document}
  19 
  20 \begin{frame}
  21   \titlepage
  22 \end{frame}
  23 
  24 \begin{frame}
  25   \frametitle{Topics}
  26   \tableofcontents
  27 \end{frame}
  28 
  29 \section{Education}
  30 \begin{frame}
  31   \frametitle{Education}
  32 \end{frame}
  33 
  34 \subsection{BsC in Electrical and Computer Engineering}
  35 \begin{frame}
  36   \frametitle{BsC in Electrical and Computer Engineering}
  37   \begin{itemize}
  38   \item Degree: BsC in Electrical and Computer Engineering (Electronics and Computers branch)
  39   \end{itemize}
  40 \end{frame}
  41 
  42 \subsection{MsC in Computer Science and Computer Engineering }
  43 \begin{frame}
  44   \frametitle{MsC in Computer Science and Computer Engineering}
  45   \begin{itemize}
  46   \item Degree: MsC in Computer Science and Computer Engineering 
  47   \end{itemize}
  48 \end{frame}
  49 
  50 \section{Professional experience}
  51 \begin{frame}
  52   \frametitle{Professional experience}
  53 \end{frame}
  54 
  55 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  56 \section{Projects on ACME}
  57 \begin{frame}
  58   \frametitle{Projects on ACME}
  59 \end{frame}
  60 
  61 \subsection{Reporting}
  62 \begin{frame}
  63   \frametitle{Reporting}
  64   \begin{itemize}
  65   \item Goal: 
  66   \item Technologies: 
  67   \end{itemize}
  68 \end{frame}
  69 
  70 \section{Questions}
  71 \begin{frame}
  72   \frametitle{Questions}
  73   \begin{center}
  74   \Huge{?}
  75   \end{center}
  76 \end{frame}
  77 
  78 \end{document}

To create PDF file run pdflatex beamerTest.tex

EuropeCV - Europass

  • mkdir ~/CV
  • cd ~/CV
  • wget http://mirrors.ctan.org/macros/latex/contrib/europecv.zip

  • unzip europecv.zip
  • cd europecv
  • wget http://mirrors.ctan.org/macros/latex/contrib/ucs/ucs.sty

  • wget http://mirrors.ctan.org/macros/latex/contrib/ucs/data/uni-global.def

  • wget http://mirrors.ctan.org/macros/latex/contrib/ucs/utf8x.def

  • wget http://mirrors.ctan.org/language/maltese/maltese.sty

  • wget http://mirrors.ctan.org/macros/latex/contrib/ucs/ucsencs.def

Sample letter template

   1 % pdflatex testeCarta.tex
   2 \documentclass{letter}
   3 \usepackage{hyperref}
   4 \usepackage[portuguese]{babel}
   5 \usepackage[utf8]{inputenc}
   6 \signature{João Ratão}
   7 \address{João Ratão\\ Avenida da Liberdade, nº 21 \\ 3100-123 Lisboa }
   8 \begin{document}
   9 \begin{letter}{Carochinha\\ Praça do Comércio \\ 31100-456 Lisboa}
  10 \opening{Cara Carochinha,}
  11 espero que me ajudes a não cair no caldeirão !
  12 
  13 Obrigado por teres lido a minha carta.
  14 \closing{Sem mais assunto de momento,}
  15 \end{letter}
  16 \end{document}

Plain TeX macros

From http://en.wikibooks.org/wiki/LaTeX/Plain_TeX

Syntax:

   1 \def<macroname> #1<sep1>#2<sep2>{macro content, use of argument #1, blah, #2 ...}
   2 % before \document{} ....
   3 \def\kernel{ \textit{kernel} }
   4 \def\linux{ \textbf{Linux} }
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01