我正在使用 Pandoc 将markdown
文档转换为tex
。
文档中有一个表格,其源代码如下:
| Video | Pose Estimation | Notation | Gloss | English Translation |
| :----------: | :-----------: | :-------: | :-----------: | :----------------: |
| ![ASL HOUSE](assets/videos/original/asl_house.gif){ width=2.5cm } | ![ASL HOUSE](assets/videos/pose/asl_house.gif){ width=2.5cm } | ![HOUSE](assets/writing/house.png){ width=1cm } | HOUSE | House |
| ![ASL WRONG-WHAT](assets/videos/original/asl_wrong_what.gif){ width=2.5cm } | ![ASL WRONG-WHAT](assets/videos/pose/asl_wrong_what.gif){ width=2.5cm } | ![WRONG-WHAT](assets/writing/wrong_what.png){ width=0.7cm } | WRONG-WHAT | What's the matter?<br> What's wrong? |
| ![ASL DIFFERENT](assets/videos/original/asl_different.gif){ width=2.5cm } | ![ASL DIFFERENT](assets/videos/pose/asl_different.gif){ width=2.5cm } | ![DIFFERENT](assets/writing/different.png){ width=1cm } | DIFFERENT<br> BUT | Different<br> But |
如果我以 HTML 形式生成表格,它看起来像这样:
但是,当我使用 pdflatex 生成它时,它看起来像:请注意,“Gloss”和“English Translation”是
- 底部对齐
- 不要在“不同”和“但是”之间划线
它生成的 LaTeX 有什么问题?
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1846}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2000}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1385}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2000}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2769}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\centering
Video
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
Pose Estimation
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
Notation
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
Gloss
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
English Translation
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\includegraphics[width=2.5cm]{parts/background/assets/videos/original/asl_house.png}
&
\includegraphics[width=2.5cm]{parts/background/assets/videos/pose/asl_house.png}
&
\includegraphics[width=1cm]{parts/background/assets/writing/house.png}
& HOUSE & House \\
\includegraphics[width=2.5cm]{parts/background/assets/videos/original/asl_wrong_what.png}
&
\includegraphics[width=2.5cm]{parts/background/assets/videos/pose/asl_wrong_what.png}
&
\includegraphics[width=0.7cm]{parts/background/assets/writing/wrong_what.png}
& WRONG-WHAT & What's the matter? What's wrong? \\
\includegraphics[width=2.5cm]{parts/background/assets/videos/original/asl_different.png}
&
\includegraphics[width=2.5cm]{parts/background/assets/videos/pose/asl_different.png}
&
\includegraphics[width=1cm]{parts/background/assets/writing/different.png}
& DIFFERENT BUT & Different But \\
\end{longtable}