Skip to content

Best way for line breaks in the tabular environment when tex2docx? #10657

Closed Answered by jgm
JPZ4-5 asked this question in Q&A
Discussion options

You must be logged in to vote

This does give me a docx table with a break in it (paragraph break):

\begin{table}[ht]
\begin{tabular}{ccccc}
\toprule
  a & frame [email protected]  & video [email protected]  & video [email protected] &
\begin{minipage}[c]{2cm}video mAP

@0.5:0.95\end{minipage} \\
DLA34&\textbf{90.16}&\textbf{100}&\textbf{78.23}&\textbf{24.81}\\
\bottomrule
\end{tabular}
\end{table}

I'm not sure you can use \\ to get a line break in a minipage as you're doing? Can you confirm by running pdflatex on that? If it works, pandoc should support it. Another alternative in TeX seems to be \newline, which pandoc should but does not currently support. So I just used a paragraph break in the above.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JPZ4-5
Comment options

@jgm
Comment options

jgm Mar 4, 2025
Maintainer

Answer selected by JPZ4-5
@JPZ4-5
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants