From 1d16d4a4eb9d726c2879a2868d9339cebdfbbedf Mon Sep 17 00:00:00 2001
From: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Date: Sun, 17 Sep 2006 20:34:10 +0000
Subject: - set the default image file extension based on output type - don't
 use booktabs on html output - remove some unused packages

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10980 a1c6a512-1295-4272-9138-f99709370657
---
 manual/preamble.tex | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index 6cdb6e43e5..56771382ad 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -38,13 +38,13 @@
 \usepackage{graphicx}
 \usepackage{verbatim}
 \usepackage{makeidx}
-\usepackage{amsmath}
-\usepackage{amssymb}
 \usepackage{fancyvrb}
 \usepackage{enumerate}
-\usepackage{subfigure}
 \usepackage{color}
-\usepackage{booktabs}
+\ifpdfoutput{\usepackage{booktabs}}%
+  {\newcommand{%
+    \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}%
+  }
 \usepackage{longtable}
 \usepackage{url}
 \urlstyle{sf}
@@ -58,6 +58,12 @@
 %   \draftangle{45}
   }
 
+% pdf output: try pdf first, then png and jpg as file format
+% html output: try png first, then jpg. Ignore pdf files
+% this only applies if no file extension is given!
+\ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}%
+    {\DeclareGraphicsExtensions{.png,.jpg}}
+
 % fancy header style adjustments
 \fancyhead{}
 \fancyfoot{}
-- 
cgit v1.2.3

