Adam Tulinius latex@antistof.dk
Adam Tulinius | latex@antistof.dk | 2010 Formål Lære grundlæggende brug af LaTeX Gøre jer klar til at skrive rapporter i LaTeX Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Krav for at bestå Godkendelse af gruppe-projekt uden eksamination (bestået/dumpet) Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Plan 13/10-2010 12:30 Introduktion, opsætning og det første dokument 20/10-2010 12:30 Formler og Figurer 21/10-2010 08:15 Tabeller 1/12-2010 12:30 Kilder 3/12-2010 12:30 Opsamling Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Materiale http://www.imf.au.dk/system/latex/bog/ The Not So Short Introduction to LaTeX2ε http://acoustics.aau.dk/~rop/FS_latex/ http://latex.mikkl.dk Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 I dag Introduktion og motivation Det første dokument Guide til installation Afsnitsinddeling og indholdsfortegnelse Opdeling i filer Simple figurer Simple formler Simple tabeller Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Hvad er LaTeX? Typesetting system baseret på TeX Kan redigeres med alle tekst-editorer .tex-filer bygges til .pdf Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Anvendelsesområder Mindre afleveringer Større videnskabelige rapporter Bøger Slides .. Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Hvorfor LaTeX? Letter arbejdsbyrden over tid Layout og indhold adskilles Let samarbejde Ikke nødvendigt at kopiere frem og tilbage mellem word-dokumenter. Revisionskontrol Pakker til alt mellem himmel og jord Det ser godt ud! Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Hvorfor ikke LaTeX Højere indlæringskurve Opsætning af et projekt Syntaxfejl .. Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Installation Windows: MiKTeX - http://miktex.org/2.8/setup TeXnicCenter - http://www.texniccenter.org/ OS X: MacTeX Editor of choice Linux: TeXlive Se også http://latex.mikkl.dk > Installation Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Hello, World! Preamble og indhold \documentclass[a4paper,12pt]{book} \usepackage[latin1]{inputenc} \begin{document} Hello, World! \end{document} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Øvelser Installer MiKTeX og TeXnicCenter Kopier ”Hello, World!”-eksemplet over i en ny .tex-fil i TeXnicCenter Byg ”Hello, World!” og åben den resulterende PDF-fil Vær tilbage om en time Hjælp: http://latex.mikkl.dk Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 .tex-filer 1/2 Indhold og kommandoer side om side Ord adskilles af Mellemrum Enkelt linjeskift LaTeX fjerner selv overflødigt mellemrum Små afsnit adskills af TO linjeskift Kommentarer starter med % og gælder linjen ud Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 .tex-filer 2/2 Nogle tegn har specielle funktioner: \ % { } _ & ^ $ # ~ For at bruge disse tegn må man benytte lidt krumspring: $\backslash$ \% \{ \} \_ \& \^{} \$ \# \~{} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Inddeling i afsnit \part{} \chapter{} \section{} \subsection{} \subsubsection{} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Indholdsfortegnelse \tableofcontents NB: Det er nødvendigt at bygge sit projekt to gange for at opdatere indholdsfortegnelsen Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Opdeling i filer c:\min rapport\rapport.tex c:\min rapport\indhold\frugter.tex c:\min rapport\indhold\frugter\bananer.tex Brug relative stier til filer: \input{indhold/frugter} \input{indhold/frugter/bananer} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Simple figurer Preamble: \usepackage{graphicx} \begin{figure}[htb] \centering \includegraphics[width=\textwidth]{graf.jpg} \caption{Figurtekst} \label{fig:graf} \end{figure} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Simple formler Preamble: \usepackage{amsmath,amssymb} Inline formel: $ f(x) = x^2 $ Normal formel: $$ f(x) = \int_{a}^{b} x^2 \, dx Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Simple tabeller \begin{table}[htb] \centering \begin{tabular}{l|c|r} abc & def & ghi \\ \hline def & ghi & jkl \\ ghi & jkl & mn \\ \end{tabular} \caption{3d-alfabet} \label{tbl:3d-alfabet} \end{table} Adam Tulinius | latex@antistof.dk | 2010
Adam Tulinius | latex@antistof.dk | 2010 Øvelser Gør brug af \chapter, \section, .. Indsæt Billede Formen Tabel Del koden op i flere filer, og brug \input til at knytte dem sammen Bonus: Find ud af hvad itemize og enumerate er, og brug dem Adam Tulinius | latex@antistof.dk | 2010