DeskTux

Linux on Desktops

User Tools

Site Tools


apps:latex

LaTeX

The following code can be used as a template for new 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, Texstudio 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
template.tex
\documentclass[a4paper]{article}
\title{}
\author{Jens Vogel}
\usepackage[dutch]{babel}
\usepackage[gen]{eurosym}
\usepackage{ucs}
\usepackage[utf8,utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[pdftex]{color,graphicx}
\usepackage{pxfonts}
\usepackage[pdftex,pdftitle={},pdfauthor={Jens Vogel},bookmarksnumbered,colorlinks,plainpages=false,pdfpagelabels]{hyperref}
\begin{document}
        \maketitle
        \tableofcontents
        This is the DeskTux \LaTeX{}~Template!
\end{document}

Discussion

Enter your comment:
H᠎ W Q A K
 
apps/latex.txt · Last modified: 2024-05-18 18:33 by jens