Differences
This shows you the differences between two versions of the page.
— | code:latex:preamble [2020/06/10 21:43] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~ODT~~ | ||
+ | This is the [[http:// | ||
+ | ===== Info ===== | ||
+ | The preamble uses a little trick with \ifhtml to help with the generation of [[wp> | ||
+ | |||
+ | This means that if you want to use htlatex for typesetting into a .html-file, uncomment \htmltrue, comment \htmlfalse, scud the file at least three times through " | ||
+ | |||
+ | If you want a good pdf, use \htmlfalse, " | ||
+ | |||
+ | To be able to see the SVN-Info in the typeset .pdf, you should remember to set the [[: | ||
+ | |||
+ | ===== Preamble ===== | ||
+ | <code latex> | ||
+ | \documentclass[a4paper, | ||
+ | |||
+ | \newif\ifhtml | ||
+ | |||
+ | \htmlfalse | ||
+ | \htmltrue | ||
+ | |||
+ | \ifhtml % In case of web format output... | ||
+ | \def\pgfsysdriver{pgfsys-tex4ht.def} | ||
+ | \usepackage[dvips]{graphicx} | ||
+ | \DeclareGraphicsExtensions{.png} | ||
+ | \else | ||
+ | \usepackage{graphicx} | ||
+ | \fi | ||
+ | |||
+ | \usepackage[utf8]{inputenc} | ||
+ | \usepackage[T1]{fontenc} | ||
+ | \usepackage[english]{babel} | ||
+ | \usepackage{siunitx} | ||
+ | \usepackage{svn-multi} | ||
+ | \usepackage{subfig} | ||
+ | \usepackage{fancyhdr} | ||
+ | \usepackage{microtype} | ||
+ | \usepackage{scrtime} | ||
+ | \usepackage{tikz} | ||
+ | \usepackage{pgfplots} | ||
+ | \usepackage{booktabs} | ||
+ | \usepackage[numbers, | ||
+ | \ifhtml | ||
+ | \usepackage[disable]{todonotes} | ||
+ | \else | ||
+ | \usepackage{todonotes} | ||
+ | \usepackage{lineno} | ||
+ | \linenumbers | ||
+ | \modulolinenumbers[2] | ||
+ | \usepackage{setspace, | ||
+ | \onehalfspacing | ||
+ | \usepackage{hyperref} | ||
+ | \hypersetup{% | ||
+ | pdfauthor={David Haberth\" | ||
+ | pdftitle={Title}, | ||
+ | pdfsubject={Subject}, | ||
+ | pdfkeywords={keyword1, | ||
+ | pdfpagemode=UseThumbs%, | ||
+ | %colorlinks=true% | ||
+ | } | ||
+ | \fi | ||
+ | |||
+ | % Subversion Information | ||
+ | \svnidlong | ||
+ | {$HeadURL: $} | ||
+ | {$LastChangedDate: | ||
+ | {$LastChangedRevision: | ||
+ | {$LastChangedBy: | ||
+ | \svnid{$Id$} | ||
+ | |||
+ | \pagestyle{fancy} | ||
+ | \fancyfoot{} | ||
+ | \fancyfoot[OR]{\tiny \href{\svnkw{HeadURL}}{Revision \svnkw{LastChangedRevision}} --- last commit on \svnkw{LastChangedDate} --- page \thepage} | ||
+ | \fancyfoot[EL]{\tiny page \thepage\ --- \href{\svnkw{HeadURL}}{Revision \svnkw{LastChangedRevision}} --- last commit on \svnkw{LastChangedDate}} | ||
+ | |||
+ | \newcommand{\imsize}{\linewidth} | ||
+ | |||
+ | \newlength\imagewidth | ||
+ | \newlength\imagescale | ||
+ | |||
+ | \title{Title} | ||
+ | \ifhtml | ||
+ | \else | ||
+ | \subtitle{(SVN-revision: | ||
+ | \fi | ||
+ | \author{David Haberth\" | ||
+ | \date{\today} | ||
+ | |||
+ | \begin{document} | ||
+ | \maketitle | ||
+ | |||
+ | \begin{abstract} | ||
+ | Abstract | ||
+ | \end{abstract} | ||
+ | |||
+ | \ifhtml | ||
+ | \emph{Did you sort out all todos?} | ||
+ | \else | ||
+ | \listoftodos | ||
+ | \fi | ||
+ | |||
+ | \tableofcontents | ||
+ | |||
+ | \section{first section} | ||
+ | \todo{write the document!}\lipsum[1] | ||
+ | |||
+ | \section{second section} | ||
+ | \lipsum[1] | ||
+ | |||
+ | \section{third section} | ||
+ | \lipsum[1] | ||
+ | |||
+ | \bibliographystyle{unsrtnat} | ||
+ | \bibliography{../ | ||
+ | |||
+ | \appendix | ||
+ | \section{appendix} | ||
+ | \lipsum[1] | ||
+ | |||
+ | \end{document} | ||
+ | </ |