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
3337add3
Commit
3337add3
authored
Jan 08, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified LaTeX header/footer escaping
parent
3cee30e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
latexgen.cpp
src/latexgen.cpp
+16
-20
No files found.
src/latexgen.cpp
View file @
3337add3
...
...
@@ -592,6 +592,14 @@ void LatexGenerator::startProjectNumber()
t
<<
"
\\\\
[1ex]
\\
large "
;
}
static
QCString
convertToLaTeX
(
const
QCString
&
s
)
{
QGString
result
;
FTextStream
t
(
&
result
);
filterLatexString
(
t
,
s
,
FALSE
,
FALSE
,
FALSE
);
return
result
.
data
();
}
void
LatexGenerator
::
startIndexSection
(
IndexSections
is
)
{
bool
&
compactLatex
=
Config_getBool
(
"COMPACT_LATEX"
);
...
...
@@ -607,16 +615,10 @@ void LatexGenerator::startIndexSection(IndexSections is)
else
{
QCString
header
=
fileToString
(
latexHeader
);
QGString
genStringName
;
FTextStream
tgName
(
&
genStringName
);
filterLatexString
(
tgName
,
Config_getString
(
"PROJECT_NAME"
),
FALSE
,
FALSE
,
FALSE
);
QGString
genStringNumber
;
FTextStream
tgNumber
(
&
genStringNumber
);
filterLatexString
(
tgNumber
,
Config_getString
(
"PROJECT_NUMBER"
),
FALSE
,
FALSE
,
FALSE
);
QGString
genStringBrief
;
FTextStream
tgBrief
(
&
genStringBrief
);
filterLatexString
(
tgBrief
,
Config_getString
(
"PROJECT_BRIEF"
),
FALSE
,
FALSE
,
FALSE
);
t
<<
substituteKeywords
(
header
,
0
,
genStringName
,
genStringNumber
,
genStringBrief
);
t
<<
substituteKeywords
(
header
,
0
,
convertToLaTeX
(
Config_getString
(
"PROJECT_NAME"
)),
convertToLaTeX
(
Config_getString
(
"PROJECT_NUMBER"
)),
convertToLaTeX
(
Config_getString
(
"PROJECT_BRIEF"
)));
}
}
break
;
...
...
@@ -1011,16 +1013,10 @@ void LatexGenerator::endIndexSection(IndexSections is)
else
{
QCString
footer
=
fileToString
(
latexFooter
);
QGString
genStringName
;
FTextStream
tgName
(
&
genStringName
);
filterLatexString
(
tgName
,
Config_getString
(
"PROJECT_NAME"
),
FALSE
,
FALSE
,
FALSE
);
QGString
genStringNumber
;
FTextStream
tgNumber
(
&
genStringNumber
);
filterLatexString
(
tgNumber
,
Config_getString
(
"PROJECT_NUMBER"
),
FALSE
,
FALSE
,
FALSE
);
QGString
genStringBrief
;
FTextStream
tgBrief
(
&
genStringBrief
);
filterLatexString
(
tgBrief
,
Config_getString
(
"PROJECT_BRIEF"
),
FALSE
,
FALSE
,
FALSE
);
t
<<
substituteKeywords
(
footer
,
0
,
genStringName
,
genStringNumber
,
genStringBrief
);
t
<<
substituteKeywords
(
footer
,
0
,
convertToLaTeX
(
Config_getString
(
"PROJECT_NAME"
)),
convertToLaTeX
(
Config_getString
(
"PROJECT_NUMBER"
)),
convertToLaTeX
(
Config_getString
(
"PROJECT_BRIEF"
)));
}
break
;
}
...
...
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