[gnumeric] some fine-tuning of pdf docs



commit f4bfaf0dc4004a22575c4ab98f043f528778a8d5
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sat May 7 00:40:19 2011 -0600

     some fine-tuning of pdf docs
    
    2011-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-doc.make: some fine-tuning. Fixes #649591
    
    2011-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* textdefs.tex: new
    	* files-textopen.xml: avoid unknown glyphs

 doc/C/ChangeLog          |    5 +++++
 doc/C/files-textopen.xml |    2 +-
 doc/C/textdefs.tex       |   13 +++++++++++++
 doc/gnumeric-doc.make    |   10 ++++------
 4 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/doc/C/ChangeLog b/doc/C/ChangeLog
index ba80a90..661bab7 100644
--- a/doc/C/ChangeLog
+++ b/doc/C/ChangeLog
@@ -1,5 +1,10 @@
 2011-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* textdefs.tex: new
+	* files-textopen.xml: avoid unknown glyphs
+
+2011-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* functions.xml: update
 
 2011-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/doc/C/files-textopen.xml b/doc/C/files-textopen.xml
index 97e697c..203d27a 100644
--- a/doc/C/files-textopen.xml
+++ b/doc/C/files-textopen.xml
@@ -258,7 +258,7 @@
       "&#xE5;&#xD5;&#xDB;&#xDB;&#xDE;", or may be characters for which
       a graphical representation (a glyph) does not exist in the font
       being used and is therefore displayed using a small box with
-      four numbers inside, such as &#x0080; and &#x0082;. Each of
+      four numbers inside. Each of
       these errors indicates that the encoding scheme used to read the
       file was not the same encoding scheme as was used to create the
       file. The difficulty is then to determine what encoding scheme
diff --git a/doc/C/textdefs.tex b/doc/C/textdefs.tex
new file mode 100644
index 0000000..43b9450
--- /dev/null
+++ b/doc/C/textdefs.tex
@@ -0,0 +1,13 @@
+%small letters
+\renewcommand\textalpha{\ensuremath{\alpha}}
+\renewcommand\textbeta{\ensuremath{\beta}}
+\renewcommand\textdelta{\ensuremath{\delta}}
+\renewcommand\textepsilon{\ensuremath{\varepsilon}}
+\renewcommand\textgamma{\ensuremath{\gamma}}
+\renewcommand\textlambda{\ensuremath{\lambda}}
+\renewcommand\textpi{\ensuremath{\pi}}
+\renewcommand\textsigma{\ensuremath{\sigma}}
+\renewcommand\textzeta{\ensuremath{\zeta}}
+%capital letters
+\renewcommand\textGamma{\ensuremath{\Gamma}}
+\renewcommand\textPi{\ensuremath{\Pi}}
diff --git a/doc/gnumeric-doc.make b/doc/gnumeric-doc.make
index f6ad1c4..66f96b5 100644
--- a/doc/gnumeric-doc.make
+++ b/doc/gnumeric-doc.make
@@ -80,12 +80,11 @@ gnumeric.pdf:
 	env TEXINPUTS=$(srcdir):.: dbcontext -t tex -Pfo.setup=1 -I . \
 		-P imagedata.default.scale='scale=600' \
 		-o gnumeric.tex $(srcdir)/gnumeric.xml
-	sed -i -e 's/\xE2\xA8\x89/\\times{}/' gnumeric.tex
+	sed -i -e 's/\xE2\xA8\x89/\\ensuremath{\\times}/' gnumeric.tex
 	sed -i -e 's/\\begin{verbatim}\([^_]*\)\\end{verbatim}/\\texttt{\1}/g' gnumeric.tex
 	sed -i -e 's/\\texttt{\\emph{\\small{\(.*\)}}}:/\\texttt{\\emph{\1}}:/g' gnumeric.tex
 	sed -i -e 's/ *>{} */\\ensuremath{{}>{}}/g' gnumeric.tex
 	sed -i -e 's/ *<{} */\\ensuremath{{}<{}}/g' gnumeric.tex
-	sed -i -e "s/L.vy/L\\\\'evy/g" gnumeric.tex
 	sed -i -e 's/\\makeglossary/\\makeglossary\n\\setlength{\\headheight}{36pt}/g' gnumeric.tex
 	env TEXMFCNF=$(srcdir): \
 		TEXINPUTS=$(srcdir):/usr/share/texmf/tex/context/dbcontext/style: \
@@ -96,16 +95,15 @@ if ENABLE_PDF_VIA_DBLATEX
 gnumeric.pdf:
 	dblatex -t tex -Pfo.setup=1 -I . \
 		-P imagedata.default.scale='scale=0.6' \
-		-P latex.encoding=utf-8 \
+		-P latex.encoding=utf8 \
 		-P latex.output.revhistory=0 \
 		-o gnumeric.tex $(srcdir)/gnumeric.xml
-	sed -i -e 's/\xE2\xA8\x89/\\times{}/' gnumeric.tex
+	sed -i -e 's/\xE2\xA8\x89/\\ensuremath{\\times}/' gnumeric.tex
 	sed -i -e 's/\\begin{verbatim}\([^_]*\)\\end{verbatim}/\\texttt{\1}/g' gnumeric.tex
 	sed -i -e 's/\texttt{\emph{\small{\(.*\)}}}:/\texttt{\emph{\1}}:/g' gnumeric.tex
 	sed -i -e 's/ *>{} */\\ensuremath{{}>{}}/g' gnumeric.tex
 	sed -i -e 's/ *<{} */\\ensuremath{{}<{}}/g' gnumeric.tex
-	sed -i -e "s/L.vy/L\\\\'evy/g" gnumeric.tex
-	sed -i -e 's/\\makeglossary/\\makeglossary\n\\setlength{\\headheight}{36pt}/g' gnumeric.tex
+	sed -i -e 's/\\makeglossary/\\makeglossary\n\\setlength{\\headheight}{36pt}\n\\input{textdefs.tex}/g' gnumeric.tex
 	for runs in $$(seq 1 4); do \
 		env TEXINPUTS=$(srcdir): \
 			pdflatex -interaction nonstopmode gnumeric.tex ; \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]