https://bugzilla.wikimedia.org/show_bug.cgi?id=71800
Bug ID: 71800
Summary: Broken Latex content generated with OCG
Product: OCG
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: PDF renderer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
I have installed OCG yesterday on two Ubuntu servers (precise & trusty) and the
conclusion was that the generated latex was not compiling due to many errors
(most of the time (/usepackage ones). To get it working on both of them (but
all the errors did happen on both of them I had to:
$ git diff lib/index.js
diff --git a/lib/index.js b/lib/index.js
index 98a1a98..b5cb769 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -70,12 +70,12 @@ var STD_HEADER = [
"",
"\\documentclass[10pt,twocolumn,twoside,fleqn]{article}",
"\\pagestyle{headings}",
- "\\usepackage{fontspec, xunicode, polyglossia, graphicx, xltxtra}",
+ "\\usepackage{fontspec, amssymb, xunicode, polyglossia, graphicx,
xltxtra}",
"\\usepackage{amsmath,amsthm,amstext,amssymb}",
"\\usepackage[usenames]{xcolor}",
"\\definecolor{linkcolor}{rgb}{.27,0,0}",
"\\definecolor{citecolor}{rgb}{0,0,.27}",
-
"\\usepackage[unicode,colorlinks,breaklinks,allcolors=linkcolor,linkcolor=citecolor]{hyperref}",
+
"\\usepackage[unicode,colorlinks,breaklinks,linkcolor=citecolor]{hyperref}",
"\\urlstyle{same}",
// This is a documented workaround for including SVGs with RGB colors
and/or
// transparency; see:
For "allcolors=linkcolor", here is the error:
name=RendererError, message=! Package xkeyval Error: `allcolors' undefined in
families `Hyp'., stack=RendererError: ! Package xkeyval Error: `allcolors'
undefined in families `Hyp'.
For ammsymb which should be included before xunicode, here is the error:
name=RendererError, message=! LaTeX Error: Command `\Finv' already defined.,
stack=RendererError: ! LaTeX Error: Command `\Finv' already defined.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l