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
94c31422
Commit
94c31422
authored
Sep 03, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #219 from albert-github/feature/bug_latex_index_toc
Different latex problems
parents
230a78be
fb4dad1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
cite.cpp
src/cite.cpp
+14
-5
latexgen.cpp
src/latexgen.cpp
+4
-14
No files found.
src/cite.cpp
View file @
94c31422
...
...
@@ -62,9 +62,14 @@ void CiteDict::writeLatexBibliography(FTextStream &t)
unit
=
"chapter"
;
t
<<
"% Bibliography
\n
"
"
\\
newpage
\n
"
"
\\
phantomsection
\n
"
"
\\
addcontentsline{toc}{"
<<
unit
<<
"}{"
<<
theTranslator
->
trCiteReferences
()
<<
"}
\n
"
"
\\
bibliographystyle{"
<<
style
<<
"}
\n
"
"
\\
phantomsection
\n
"
;
bool
pdfHyperlinks
=
Config_getBool
(
"PDF_HYPERLINKS"
);
if
(
!
pdfHyperlinks
)
{
t
<<
"
\\
clearemptydoublepage
\n
"
;
t
<<
"
\\
addcontentsline{toc}{"
<<
unit
<<
"}{"
<<
theTranslator
->
trCiteReferences
()
<<
"}
\n
"
;
}
t
<<
"
\\
bibliographystyle{"
<<
style
<<
"}
\n
"
"
\\
bibliography{"
;
QStrList
&
citeDataList
=
Config_getList
(
"CITE_BIB_FILES"
);
QCString
latexOutputDir
=
Config_getString
(
"LATEX_OUTPUT"
)
+
"/"
;
...
...
@@ -87,8 +92,12 @@ void CiteDict::writeLatexBibliography(FTextStream &t)
}
bibdata
=
citeDataList
.
next
();
}
t
<<
"}
\n
"
"
\n
"
;
t
<<
"}
\n
"
;
if
(
pdfHyperlinks
)
{
t
<<
"
\\
addcontentsline{toc}{"
<<
unit
<<
"}{"
<<
theTranslator
->
trCiteReferences
()
<<
"}
\n
"
;
}
t
<<
"
\n
"
;
}
void
CiteDict
::
insert
(
const
char
*
label
)
...
...
src/latexgen.cpp
View file @
94c31422
...
...
@@ -543,8 +543,10 @@ static void writeDefaultFooter(FTextStream &t)
else
unit
=
"chapter"
;
t
<<
"% Index
\n
"
"
\\
backmatter
\n
"
"
\\
newpage
\n
"
"
\\
phantomsection
\n
"
"
\\
clearemptydoublepage
\n
"
"
\\
addcontentsline{toc}{"
<<
unit
<<
"}{"
<<
theTranslator
->
trRTFGeneralIndex
()
<<
"}
\n
"
"
\\
printindex
\n
"
"
\n
"
...
...
@@ -1260,7 +1262,7 @@ void LatexGenerator::startTitleHead(const char *fileName)
static
bool
usePDFLatex
=
Config_getBool
(
"USE_PDFLATEX"
);
if
(
usePDFLatex
&&
pdfHyperlinks
&&
fileName
)
{
t
<<
"
\\
hypertarget{"
<<
stripPath
(
fileName
)
<<
"}{"
;
t
<<
"
\\
hypertarget{"
<<
stripPath
(
fileName
)
<<
"}{
}
"
;
}
if
(
Config_getBool
(
"COMPACT_LATEX"
))
{
...
...
@@ -1274,8 +1276,6 @@ void LatexGenerator::startTitleHead(const char *fileName)
void
LatexGenerator
::
endTitleHead
(
const
char
*
fileName
,
const
char
*
name
)
{
static
bool
pdfHyperlinks
=
Config_getBool
(
"PDF_HYPERLINKS"
);
static
bool
usePDFLatex
=
Config_getBool
(
"USE_PDFLATEX"
);
t
<<
"}"
<<
endl
;
if
(
name
)
{
...
...
@@ -1285,10 +1285,6 @@ void LatexGenerator::endTitleHead(const char *fileName,const char *name)
escapeMakeIndexChars
(
name
);
t
<<
"}}"
<<
endl
;
}
if
(
usePDFLatex
&&
pdfHyperlinks
&&
fileName
)
{
t
<<
"}"
<<
endl
;
}
}
void
LatexGenerator
::
startTitle
()
...
...
@@ -1428,18 +1424,12 @@ void LatexGenerator::startDoxyAnchor(const char *fName,const char *,
t
<<
"
\\
hypertarget{"
;
if
(
fName
)
t
<<
stripPath
(
fName
);
if
(
anchor
)
t
<<
"_"
<<
anchor
;
t
<<
"}{"
;
t
<<
"}{
}
"
;
}
}
void
LatexGenerator
::
endDoxyAnchor
(
const
char
*
fName
,
const
char
*
anchor
)
{
static
bool
pdfHyperlinks
=
Config_getBool
(
"PDF_HYPERLINKS"
);
static
bool
usePDFLatex
=
Config_getBool
(
"USE_PDFLATEX"
);
if
(
usePDFLatex
&&
pdfHyperlinks
)
{
t
<<
"}"
;
}
t
<<
"
\\
label{"
;
if
(
fName
)
t
<<
stripPath
(
fName
);
if
(
anchor
)
t
<<
"_"
<<
anchor
;
...
...
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