LaTeX 需要运行 3 次才能获得正确的表格布局

问题描述 投票:0回答:1

我正在尝试使用包含长表的 xelatex 生成报告。不知何故,我必须重新运行 xelatex 3 次才能使表格布局正确。 显然,问题来自最后 3 列以及我在那里使用多列的事实。我能以某种方式避免生成 3 次吗?

...

\renewcommand{\arraystretch}{1.4}
\arrayrulecolor{white}
\setlength{\arrayrulewidth}{1mm}
\footnotesize



\begin{longtable}{
  |
  >{\centering\arraybackslash}m{1.5cm}|   
  >{\centering\arraybackslash}m{1.5cm}|   
  >{\centering\arraybackslash}m{1.5cm}|   
  >{\centering\arraybackslash}m{2.8cm}|   
  >{\centering\arraybackslash}m{3.2cm}|   
  >{\centering\arraybackslash}m{2.8cm}|  
  >{\centering\arraybackslash}m{2cm}|     
  >{\centering\arraybackslash}m{2.5cm}|   
  >{\centering\arraybackslash}m{0.6cm}| 
  >{\centering\arraybackslash}m{0.6cm}| 
  >{\centering\arraybackslash}m{0.6cm}
  }

    % -------------------------- Table Header ---------------------------------

    
    \rowcolor{strapagBlue} 
    \multicolumn{2}{|c|}{\textbf{Nom du site}} & \textbf{Cell-ID} &\textbf{Pays} & \textbf{Responsable}   & \textbf{BTS-Type} & \textbf{TX-Puissance} & \textbf{Antenne} & \multicolumn{3}{c}{\textbf{Azimut}} \\

    \rowcolor{strapagBlue} 
    \textbf{Code} & \textbf{Cellule} & &\textbf{Canton}  & & \textbf{Status} & \textbf{ERP} & \textbf{Fabricant} & \multicolumn{3}{c}{\textbf{El. Tilt}} \\

    \rowcolor{strapagBlue} 
    \textbf{X-Coord.} & \textbf{Y-Coord.} & \textbf{Altitude} & \textbf{Commune} & \textbf{Coordination}   & \textbf{Polarisation} & \textbf{Nb. TRX} & \textbf{Haut. Ant.} & \multicolumn{3}{c}{\textbf{Tilt Mech.}} \\

    \hline


    \endhead

    % ---------------- Content ---------------
    
    \rowcolor{lightGray} 
    \multicolumn{2}{|c|}{\textbf{XXXXX} } & \textbf{236 0321} & CH & XXXX& Normal BTS, MBSe3 & 38.0dBm & 3 x K741515   
    & 20° &  115°  &  210°  \\ 
    
    \hline

...

enter image description here

enter image description here

latex xelatex
1个回答
0
投票

不,如果你使用

\multicolumn
,这是不可能的。如果您查看 9 页长的文档,您就可以看到它。

© www.soinside.com 2019 - 2024. All rights reserved.