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
diff --git a/manual/appendix/appendix.tex b/manual/appendix/appendix.tex
index c94ca87..e15232b 100644
--- a/manual/appendix/appendix.tex
+++ b/manual/appendix/appendix.tex
@@ -123,7 +123,7 @@
 People that have contributed to the project, one way or another. Friends!
 %
 \begin{multicols}{2}
-\noindent\textsc{\small{\input{CREDITS.tex}}}
+\noindent\caps{\small{\input{CREDITS.tex}}}
 \end{multicols}
 
 \chapter{Licenses}
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 3ac9edc..ca89267 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}}