无法关闭桌子

无法关闭桌子

我不明白为什么下面的代码会生成如我附件中所见的表格:

 \centering
          \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|}
          \hline
          \centering
          \includegraphics[height=1.59cm,width=3.0cm]{img/logo} &
          \centering
          \Large{PLANO GERAL DE \\ PROTEÇÃO RADIOLÓGICA} \\
          \tiny{SPR F.02}&
          \centering
          \scriptsize{Pág. \thepage\ de \pageref{LastPage}\\
          Data: 26/07/2013\\
          Rev. 0}\tabularnewline
          \end{tabular}%

正如您所见,底线没有正确关闭表格。

桌子不会关闭

答案1

从问题中很难确定,但看起来需要的是标题中的表格。类似

\documentclass{article}
\usepackage{array}
\usepackage[demo]{graphicx} % Demo option means a rule is used for the image
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage[a4paper,hmargin = 1cm,headheight=50pt]{geometry}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[C]{%
  \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|}
  \hline
  \centering
  \includegraphics[height=1.59cm,width=3.0cm]{img/logo} &
  \centering
  {%
    \Large
    PLANO GERAL DE \\ PROTEÇÃO RADIOLÓGICA%
  }\\
  {%
    \tiny
    SPR F.02%
  }&
  \centering
  {%
    \scriptsize
    Pág. \thepage\ de \pageref{LastPage}\\
    Data: 26/07/2013\\
    Rev. 0%
  }%
  \tabularnewline
  \hline
\end{tabular}%
}
\begin{document}

Just some content

\end{document}

似乎可以覆盖它:我调整了页眉空间的大小以适应相当大的框,并稍微整理了一下表格本身。我还处理了\LargeETC。正如评论中所提到的那样。

答案2

这完成了工作:

\pagestyle{fancy}
\fancypagestyle{plain}{%
    \fancyhf{}
    \fancyhead[C]{%
    \centering
          \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|}
          \hline
          \centering
          \includegraphics[height=1.59cm,width=3.0cm]{img/logo} &
          \centering
          \Large{PROCEDIMENTO ESPECÍFICO DE \\ PROTEÇÃO RADIOLÓGICA} \\
          \tiny{SPR F.30}&
          \centering
          \scriptsize{PER \numero \\ Rev. \rev \\ Data: \data \\ Pág. \thepage\ de \pageref{LastPage}}          \tabularnewline
          \hline
          \end{tabular}%
    }      
}

另外,还必须补充一点:

\renewcommand{\headrulewidth}{}

为了得到一行来结束表格,请先进行序言。

相关内容