X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=macros.tex;h=0f3bce22504e9475bf71ec56f3caec292c73bd6a;hb=20080207;hp=0e172d364180b4c8224e436dd9c548c86e236cad;hpb=6e84dc8312f2fdb5b8b7467a0279afd5b2df107f;p=ion3-doc.git diff --git a/macros.tex b/macros.tex index 0e172d3..0f3bce2 100644 --- a/macros.tex +++ b/macros.tex @@ -1,24 +1,31 @@ \usepackage{babel} \usepackage[latin1]{inputenc} -\usepackage[dvipdfm]{hyperref} -\usepackage{ae} +\usepackage[T1]{fontenc} +\usepackage{palatino} +%\usepackage{ae} \usepackage{url} \usepackage{html} %\usepackage{graphicx} %\usepackage{color} \usepackage{makeidx} \usepackage{tabularx} -\usepackage{textcomp} +%\usepackage{textcomp} \usepackage[nottoc]{tocbibind} \usepackage{enumerate} % GNU FDL needs this -\usepackage[a4paper]{geometry} \usepackage{calc} +\usepackage{ifpdf} +\usepackage[a4paper,margin=3cm]{geometry} + +\ifpdf +\usepackage[pdftex]{hyperref} +\else +\usepackage[hypertex]{hyperref} +\fi % URL settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\urlstyle{rm} -\newcommand{\centerurl}[1]{\begin{center}\url{#1}\end{center}} +\urlstyle{tt} % listings package %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -35,11 +42,13 @@ } %end{latexonly} +\sloppy + % Some markup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\note}[1]{\color{red}**#1**} -\newcommand{\file}[1]{\emph{#1}} +\newcommand{\file}[1]{\mbox{\emph{#1}}} \newcommand{\type}[1]{#1} \newcommand{\spec}[1]{#1} \newcommand{\indextype}[1]{\index{#1@\type{#1}}} @@ -47,6 +56,7 @@ %begin{latexonly} \newcommand{\key}[1]{\mbox{\textbf{#1}}} \newcommand{\code}[1]{\lstinline!#1!} +\newcommand{\codestr}[1]{`\texttt{#1}'} \newcommand{\var}[1]{\lstinline!#1!} \newcommand{\command}[1]{\lstinline!#1!} @@ -60,6 +70,7 @@ \newcommand{\key}[1]{\textbf{#1}} \newcommand{\code}[1]{\texttt{#1}} +\newcommand{\codestr}[1]{`\texttt{#1}'} \newcommand{\var}[1]{\texttt{#1}} \newcommand{\command}[1]{\texttt{#1}}