DeskTux

Linux on Desktops

User Tools

Site Tools


apps:latex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apps:latex [2016-02-16 14:32] (current)
Line 1: Line 1:
 +====== LaTeX ======
  
 +The following code can be used as a template for new [[http://​www.latex-project.org/​|LaTeX]] files. Of course the fields pdftitle, pdfauthor, title and author need to be edited, as well as the Babel language.
 +
 +Usually I would recommend [[SciTE]] as source editor -- also for LaTeX files. It has customizable compilation and view support included through hotkeys that make your life a lot easier. But for LaTeX, [[http://​www.xm1math.net/​texmaker/​|Texmaker]] is definitely a way better tool. Also when editing LaTeX files you may have a need for spell checking. I have not found an easy way to add that to SciTE. Still -- my recommendation for SciTE (and vi of course) still stands for all other tasks except for editing LaTeX files, as gedit or other editors are //slow// compared to SciTE.
 +
 +This template also eliminates this error message:
 +
 +  ! pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored
 +
 +<file latex template.tex>​
 +\documentclass[a4paper]{article}
 +\title{}
 +\author{Jens Vogel}
 +\usepackage[dutch]{babel}
 +\usepackage[gen]{eurosym}
 +\usepackage{ucs}
 +\usepackage[utf8x]{inputenc}
 +\usepackage[T1]{fontenc}
 +\usepackage[pdftex]{color,​graphicx}
 +\usepackage{pxfonts}
 +\usepackage[a4paper,​pdftex,​pdftitle={},​pdfauthor={Jens Vogel},​bookmarksnumbered,​colorlinks,​plainpages=false,​pdfpagelabels]{hyperref}
 +\begin{document}
 +        \maketitle
 +        \tableofcontents
 +        This is the DeskTux \LaTeX{}~Template!
 +\end{document}
 +</​file>​
apps/latex.txt ยท Last modified: 2016-02-16 14:32 (external edit)