Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
a7c7f36e
Commit
a7c7f36e
authored
Mar 28, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve rendering of sub and superscripts in LaTeX
parent
7e719d1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
latexdocvisitor.cpp
src/latexdocvisitor.cpp
+2
-2
latexgen.cpp
src/latexgen.cpp
+1
-0
No files found.
src/latexdocvisitor.cpp
View file @
a7c7f36e
...
@@ -199,10 +199,10 @@ void LatexDocVisitor::visit(DocStyleChange *s)
...
@@ -199,10 +199,10 @@ void LatexDocVisitor::visit(DocStyleChange *s)
if
(
s
->
enable
())
m_t
<<
"{
\\
ttfamily "
;
else
m_t
<<
"}"
;
if
(
s
->
enable
())
m_t
<<
"{
\\
ttfamily "
;
else
m_t
<<
"}"
;
break
;
break
;
case
DocStyleChange
:
:
Subscript
:
case
DocStyleChange
:
:
Subscript
:
if
(
s
->
enable
())
m_t
<<
"
$_{
\\
mbox{"
;
else
m_t
<<
"}}$
"
;
if
(
s
->
enable
())
m_t
<<
"
\\
textsubscript{"
;
else
m_t
<<
"}
"
;
break
;
break
;
case
DocStyleChange
:
:
Superscript
:
case
DocStyleChange
:
:
Superscript
:
if
(
s
->
enable
())
m_t
<<
"
$^{
\\
mbox{"
;
else
m_t
<<
"}}$
"
;
if
(
s
->
enable
())
m_t
<<
"
\\
textsuperscript{"
;
else
m_t
<<
"}
"
;
break
;
break
;
case
DocStyleChange
:
:
Center
:
case
DocStyleChange
:
:
Center
:
if
(
s
->
enable
())
m_t
<<
"
\\
begin{center}"
;
else
m_t
<<
"
\\
end{center} "
;
if
(
s
->
enable
())
m_t
<<
"
\\
begin{center}"
;
else
m_t
<<
"
\\
end{center} "
;
...
...
src/latexgen.cpp
View file @
a7c7f36e
...
@@ -293,6 +293,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
...
@@ -293,6 +293,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
"
\\
usepackage{makeidx}
\n
"
"
\\
usepackage{makeidx}
\n
"
"
\\
usepackage{multicol}
\n
"
"
\\
usepackage{multicol}
\n
"
"
\\
usepackage{multirow}
\n
"
"
\\
usepackage{multirow}
\n
"
"
\\
usepackage{fixltx2e}
\n
"
// for \textsubscript
"
\\
PassOptionsToPackage{warn}{textcomp}
\n
"
"
\\
PassOptionsToPackage{warn}{textcomp}
\n
"
"
\\
usepackage{textcomp}
\n
"
"
\\
usepackage{textcomp}
\n
"
"
\\
usepackage[nointegrals]{wasysym}
\n
"
"
\\
usepackage[nointegrals]{wasysym}
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment