## page was renamed from Latex ## page was renamed from LatexAppleMacintosh ## page was renamed from LatexMac = 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). {{attachment:BasicTexInstallerPT.png}} Click on '''Continue''' (Continuar in portuguese) throughout the wizard until the installation is complete. {{attachment: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 {{{#!highlight latex \documentclass{beamer} \usepackage{multimedia} \usetheme{Warsaw} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage{colortbl} \usepackage{times} \usepackage[T1]{fontenc} \usepackage{epstopdf} \usenavigationsymbolstemplate{} \title{Test title} \author{John Doe} \institute{ACME Corp.} \date{2013-12-29} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Topics} \tableofcontents \end{frame} \section{Education} \begin{frame} \frametitle{Education} \end{frame} \subsection{BsC in Electrical and Computer Engineering} \begin{frame} \frametitle{BsC in Electrical and Computer Engineering} \begin{itemize} \item Degree: BsC in Electrical and Computer Engineering (Electronics and Computers branch) \end{itemize} \end{frame} \subsection{MsC in Computer Science and Computer Engineering } \begin{frame} \frametitle{MsC in Computer Science and Computer Engineering} \begin{itemize} \item Degree: MsC in Computer Science and Computer Engineering \end{itemize} \end{frame} \section{Professional experience} \begin{frame} \frametitle{Professional experience} \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Projects on ACME} \begin{frame} \frametitle{Projects on ACME} \end{frame} \subsection{Reporting} \begin{frame} \frametitle{Reporting} \begin{itemize} \item Goal: \item Technologies: \end{itemize} \end{frame} \section{Questions} \begin{frame} \frametitle{Questions} \begin{center} \Huge{?} \end{center} \end{frame} \end{document} }}} To create PDF file run '''pdflatex beamerTest.tex''' {{attachment:beamerTest1.png}} == 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 == {{{#!highlight latex % pdflatex testeCarta.tex \documentclass{letter} \usepackage{hyperref} \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \signature{João Ratão} \address{João Ratão\\ Avenida da Liberdade, nº 21 \\ 3100-123 Lisboa } \begin{document} \begin{letter}{Carochinha\\ Praça do Comércio \\ 31100-456 Lisboa} \opening{Cara Carochinha,} espero que me ajudes a não cair no caldeirão ! Obrigado por teres lido a minha carta. \closing{Sem mais assunto de momento,} \end{letter} \end{document} }}} == Plain TeX macros == From http://en.wikibooks.org/wiki/LaTeX/Plain_TeX Syntax: {{{#!highlight latex \def #1#2{macro content, use of argument #1, blah, #2 ...} % before \document{} .... \def\kernel{ \textit{kernel} } \def\linux{ \textbf{Linux} } }}} == Letter template with verbatim == {{{#!highlight latex \documentclass[12pt,a4paper]{report} \usepackage{textcomp} \usepackage[portuguese,brazilian]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{setspace} \usepackage{hyperref} \usepackage{pdflscape} \usepackage[dvips]{geometry} \usepackage[pdftex]{color,graphicx} \usepackage{pslatex} \usepackage{verbatim} \usepackage{parskip} \singlespacing \geometry{left=2cm} \geometry{right=2cm} \geometry{top=2cm} \geometry{bottom=2cm} \pagestyle{empty} \begin{document} \begin{verbatim} 12345678901234567890123456789012345678901234567890123456789012345678901234567890 2 A4 paper with emtpy page style 3 80 columns by 40 lines 4 two centimeters margins 5 font size 12pt 6 single spacing 7 To have typewriter look and feel verbatim is used. 8 9 10 11 12 \end{verbatim} \end{document} }}} == Spell check == Use the aspell command. Below is an example for portuguese with utf-8 encoding: * aspell --lang=pt-PT --mode=tex --encoding=utf-8 check file.tex == Hide chapter number == {{{#!highlight latex % before begin document ,report class % hide chapter in report class \renewcommand{\chaptername}{} \renewcommand{\thechapter}{} }}} == Show picture == {{{#!highlight latex \begin{figure} \includegraphics[width=\linewidth]{image.png} \end{figure} }}} == Install in debian == {{{#!highlight bash sudo apt install texlive-base texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-lang-portuguese nano beamerTest.tex pdflatex beamerTest.tex }}}