From cee8f0178eafc8441ec1da9b1644eb8331863a5b Mon Sep 17 00:00:00 2001
From: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Date: Mon, 1 Dec 2008 21:21:42 +0000
Subject: Fix FS#9550 and FS#5721: don't use Palatino anymore and use the soul
 package for html output.

The Palatino font was responsible for words broken up in the PDF, resulting in small caps parts being not searchable. Using the soul package creates much better HTML output, not putting every small caps character into its own span element anymore.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19294 a1c6a512-1295-4272-9138-f99709370657
---
 manual/preamble.tex | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index 3ac9edcf0e..ca8926758d 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -21,7 +21,8 @@
 
 \documentclass[a4paper,11pt]{scrreprt}
 \usepackage[utf8x]{inputenc}
-\usepackage{palatino}
+% This manual used to use Palatino as font. This caused issues with small caps
+% (textsc), so do not use that font as default one anymore.
 
 \usepackage{tabularx}
 \usepackage{multirow}
@@ -243,7 +244,11 @@
   \endtabularx
 }
 
-\newcommand{\setting}[1]{\textsc{#1}}
+% When creating HTML, use the soul package.
+% This produces much nicer HTML code (textsc results in each character being
+% put in a separate <span>).
+\ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}}
+\newcommand{\setting}[1]{\caps{#1}}
 
 \newcommand{\config}[1]{\texttt{#1}}
 
-- 
cgit v1.2.3

