aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwtoews <mwtoews@gmail.com>2018-04-22 22:01:46 +1200
committermwtoews <mwtoews@gmail.com>2018-04-22 22:01:46 +1200
commit027c865d05ff272efc8e2dd2b5148e03e41275a1 (patch)
tree5610c0ca34cb3beddd30c0975926c4b9ad18560f
parent410a515228166399f8c145568f20a7799a450757 (diff)
downloadPROJ-027c865d05ff272efc8e2dd2b5148e03e41275a1.tar.gz
PROJ-027c865d05ff272efc8e2dd2b5148e03e41275a1.zip
Use utf8 option for inputenc instead of utf8x
According to https://tex.stackexchange.com/q/13067/2951 utf8x should be avoided if possible. Also, define LaTeX for Unicode PRIME character, used in eqc doc pages.
-rw-r--r--docs/source/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index ae65995c..5af7a129 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -217,6 +217,9 @@ htmlhelp_basename = 'projdoc'
preamble = r"""
+\ifdefined\DeclareUnicodeCharacter
+ \DeclareUnicodeCharacter{2032}{$'$}% prime
+\fi
"""
latex_elements = {
@@ -228,7 +231,7 @@ latex_elements = {
# Additional stuff for the LaTeX preamble.
'preamble': preamble,
-'inputenc':'\usepackage[utf8x]{inputenc}'
+'inputenc':'\usepackage[utf8]{inputenc}'
# Latex figure (float) alignment
#'figure_align': 'htbp',