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
8e0e64c0
Commit
8e0e64c0
authored
Sep 28, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LaTeX: Fix ToC entries of index/bibliography
parent
bf8ecf77
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
cite.cpp
src/cite.cpp
+6
-1
latexgen.cpp
src/latexgen.cpp
+6
-1
translator_en.h
src/translator_en.h
+1
-1
No files found.
src/cite.cpp
View file @
8e0e64c0
...
...
@@ -94,10 +94,15 @@ void CiteDict::writeLatexBibliography(FTextStream &t)
QCString
style
=
Config_getString
(
"LATEX_BIB_STYLE"
);
if
(
style
.
isEmpty
())
style
=
"plain"
;
QCString
unit
;
if
(
Config_getBool
(
"COMPACT_LATEX"
))
unit
=
"section"
;
else
unit
=
"chapter"
;
t
<<
"% Bibliography
\n
"
"
\\
newpage
\n
"
"
\\
phantomsection
\n
"
"
\\
addcontentsline{toc}{
part
}{"
<<
theTranslator
->
trCiteReferences
()
<<
"}
\n
"
"
\\
addcontentsline{toc}{
"
<<
unit
<<
"
}{"
<<
theTranslator
->
trCiteReferences
()
<<
"}
\n
"
"
\\
bibliographystyle{"
<<
style
<<
"}
\n
"
"
\\
bibliography{"
<<
getListOfBibFiles
(
","
,
TRUE
)
<<
"}
\n
"
"
\n
"
;
...
...
src/latexgen.cpp
View file @
8e0e64c0
...
...
@@ -525,10 +525,15 @@ static void writeDefaultFooter(FTextStream &t)
Doxygen
::
citeDict
->
writeLatexBibliography
(
t
);
// Index
QCString
unit
;
if
(
Config_getBool
(
"COMPACT_LATEX"
))
unit
=
"section"
;
else
unit
=
"chapter"
;
t
<<
"% Index
\n
"
"
\\
newpage
\n
"
"
\\
phantomsection
\n
"
"
\\
addcontentsline{toc}{
part
}{"
<<
theTranslator
->
trRTFGeneralIndex
()
<<
"}
\n
"
"
\\
addcontentsline{toc}{
"
<<
unit
<<
"
}{"
<<
theTranslator
->
trRTFGeneralIndex
()
<<
"}
\n
"
"
\\
printindex
\n
"
"
\n
"
"
\\
end{document}
\n
"
;
...
...
src/translator_en.h
View file @
8e0e64c0
...
...
@@ -1825,7 +1825,7 @@ class TranslatorEnglish : public Translator
/*! Header for the page with bibliographic citations */
virtual
QCString
trCiteReferences
()
{
return
"Bibliograph
ic References
"
;
}
{
return
"Bibliograph
y
"
;
}
/*! Text for copyright paragraph */
virtual
QCString
trCopyright
()
...
...
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