Loading src/doxygen.sty +10 −0 Original line number Diff line number Diff line Loading @@ -434,6 +434,16 @@ }% {\end{xtabular*}\par}% % Used by nested tables \newenvironment{TabularNC}[1]% {% \setlength{\tmplength}% {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)}% \par\begin{tabular*}{\linewidth}% {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|}% }% {\end{tabular*}\par}% % Used for member group headers \newenvironment{Indent}{% \begin{list}{}{% Loading src/latexdocvisitor.cpp +17 −6 Original line number Diff line number Diff line Loading @@ -809,6 +809,17 @@ void LatexDocVisitor::visitPost(DocHtmlDescData *) { } static const char *getTableName(const DocNode *n) { bool isNested=FALSE; while (n && !isNested) { isNested = n->kind()==DocNode::Kind_HtmlTable; n = n->parent(); } return isNested ? "TabularNC" : "TabularC"; } void LatexDocVisitor::visitPre(DocHtmlTable *t) { m_rowSpans.clear(); Loading @@ -818,7 +829,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t) { m_t << "\\begin{table}[h]"; } m_t << "\\begin{TabularC}{" << t->numColumns() << "}\n"; m_t << "\\begin{" << getTableName(t->parent()) << "}{" << t->numColumns() << "}\n"; m_numCols = t->numColumns(); m_t << "\\hline\n"; } Loading @@ -833,14 +844,14 @@ void LatexDocVisitor::visitPost(DocHtmlTable *t) } else { m_t << "\\end{TabularC}\n"; m_t << "\\end{" << getTableName(t->parent()) << "}\n"; } } void LatexDocVisitor::visitPre(DocHtmlCaption *) void LatexDocVisitor::visitPre(DocHtmlCaption *c) { if (m_hide) return; m_t << "\\end{TabularC}\n\\centering\n\\caption{"; m_t << "\\end{" << getTableName(c->parent()) << "}\n\\centering\n\\caption{"; } void LatexDocVisitor::visitPost(DocHtmlCaption *) Loading Loading
src/doxygen.sty +10 −0 Original line number Diff line number Diff line Loading @@ -434,6 +434,16 @@ }% {\end{xtabular*}\par}% % Used by nested tables \newenvironment{TabularNC}[1]% {% \setlength{\tmplength}% {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)}% \par\begin{tabular*}{\linewidth}% {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|}% }% {\end{tabular*}\par}% % Used for member group headers \newenvironment{Indent}{% \begin{list}{}{% Loading
src/latexdocvisitor.cpp +17 −6 Original line number Diff line number Diff line Loading @@ -809,6 +809,17 @@ void LatexDocVisitor::visitPost(DocHtmlDescData *) { } static const char *getTableName(const DocNode *n) { bool isNested=FALSE; while (n && !isNested) { isNested = n->kind()==DocNode::Kind_HtmlTable; n = n->parent(); } return isNested ? "TabularNC" : "TabularC"; } void LatexDocVisitor::visitPre(DocHtmlTable *t) { m_rowSpans.clear(); Loading @@ -818,7 +829,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t) { m_t << "\\begin{table}[h]"; } m_t << "\\begin{TabularC}{" << t->numColumns() << "}\n"; m_t << "\\begin{" << getTableName(t->parent()) << "}{" << t->numColumns() << "}\n"; m_numCols = t->numColumns(); m_t << "\\hline\n"; } Loading @@ -833,14 +844,14 @@ void LatexDocVisitor::visitPost(DocHtmlTable *t) } else { m_t << "\\end{TabularC}\n"; m_t << "\\end{" << getTableName(t->parent()) << "}\n"; } } void LatexDocVisitor::visitPre(DocHtmlCaption *) void LatexDocVisitor::visitPre(DocHtmlCaption *c) { if (m_hide) return; m_t << "\\end{TabularC}\n\\centering\n\\caption{"; m_t << "\\end{" << getTableName(c->parent()) << "}\n\\centering\n\\caption{"; } void LatexDocVisitor::visitPost(DocHtmlCaption *) Loading