diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-29 14:42:44 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-29 14:42:44 (GMT) |
commit | a3093ff24ec75b70d6d7dc37ca2c7e68f36161fe (patch) | |
tree | c6e31cce71003196c812fd80994753b53c58fada /src/latexdocvisitor.cpp | |
parent | e901c9b30d3f13a38a5e69025b3f1ced9d1c981f (diff) | |
download | Doxygen-a3093ff24ec75b70d6d7dc37ca2c7e68f36161fe.zip Doxygen-a3093ff24ec75b70d6d7dc37ca2c7e68f36161fe.tar.gz Doxygen-a3093ff24ec75b70d6d7dc37ca2c7e68f36161fe.tar.bz2 |
Problem with `<hr>` in LaTeX multicolumn cell
In case we have a `<hr>` in a table cell then it is displayed as a horizontal line (in LaTeX) unless it is in a multicolumn cell. In the later case it throws an error:
```
! You can't use `\hrule' here except with leaders.
\DoxyHorRuler ... }{0ex plus 0ex minus 0ex}\hrule
```
We have to use use `\hrulefill` in a table but in combination with the table option of xcolor this gives some problems so a new command has to be defined for this.
See also:
- horizontal rule / line inside a multicolumn field (https://tex.stackexchange.com/questions/506211/horizontal-rule-line-inside-a-multicolumn-field)
- interaction between \usepackage[table]{xcolor} and \hrulefill (https://tex.stackexchange.com/questions/506221/interaction-between-usepackagetablexcolor-and-hrulefill)
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index a0bbf73..5e424b0 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -280,7 +280,10 @@ void LatexDocVisitor::visit(DocLineBreak *) void LatexDocVisitor::visit(DocHorRuler *) { if (m_hide) return; - m_t << "\\DoxyHorRuler\n"; + if (insideTable()) + m_t << "\\DoxyHorRuler{1}\n"; + else + m_t << "\\DoxyHorRuler{0}\n"; } void LatexDocVisitor::visit(DocStyleChange *s) |