I'm trying to make a PDF document through the linux command line.
For this I have previously written a file .tex
which executes perfectly in TexMaker
, to generate the PDF I use the command
pdflatex archivo.tex
This is the LaTeX code
\documentclass[12pt, a4paper]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[spanish, activeacute]{babel}
\usepackage{enumerate}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{graphicx}
\graphicspath{ {/root/Imágenes/} }
\colorlet{LIME GREEN}{green}
\title{\textbf{\textcolor{green}{Tipo de vulnerabilidad \\
\large SPF BAD CONFIGURATION }}}
\begin{document}
\maketitle
El protocolo SPF (Sender Policy Framework) es un protocolo empleado para ...
\begin{figure}[ht]
\includegraphics[width=\linewidth]{funcionamientoSPF}
\centering
\caption{Funcionamienot de SPF}
\end{figure}
....
%\begin{center}
\begin{tabular}{|p{2cm}|p{10cm}|}
\hline
\centering Opci'on & {\centering Descripci'on} \\
\hline
\hline %<--------- linea 63
+all & Indica que se autoriza el env'io de correo desde servidores no declarados en el registro\\
\hline
~all & Indica que se autoriza el env'io de correo desde servidores no declarados en el registro SPF, recomendando los declarados en el mismo. Es probable que entre como spam si el rando no est'a bien definido\\
\hline
-all & Indica que mo se autoriza explicitamte el env'io de correo desde servidores no declarados en el registro SPF\\ \hline
?all & "No se puede decir nada de la validaci'on", el correo es aceptado\\
\hline
\end{tabular}
%\end{center}
Un registro SPF cuidadosamente dise'~nado reducir'a la probabilidad de que el nombre de dominicio se falsifique y evite que los mensajes se marquen como spam antes de que lleguen a sus destinatarios.
\end{document}
And when executing by command line it gives me the following error:
LaTeX Warning: No \author given.
</root/Imágenes/funcionamientoSPF.png, id=1, 660.96938pt x 477.28313pt>
<use /root/Imágenes/funcionamientoSPF.png> [1{/var/lib/texmf/fonts /map/pdftex/updmap/pdftex.map}]
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \hrule \@height \arrayrulewidth\futurelet...
l.63 \hline
?
Could anyone give me any idea why I'm getting that error? Thank you very much.
When compiling the code, it did not give me any error on the line indicated in the comment (63). Anyway, to avoid any error with that double horizontal line, it is preferable to just leave one
\hline
. I also made a couple of changes to your code to center the titles and put them innegrita
, plus a few formatting and other minor fixes that I'll explain below.On the other hand, there are other observations that I allow myself to make regarding the presentation of the tables (according to typographical conventions), among others. And I must clarify that this is already an optional matter: as a widespread recommendation in the world of typography, the use of vertical lines in tables is usually avoided at all costs. Whether for stylistic or format reasons, it is recommended to do without them. This use is what has now been adopted by convention in the texts that contain these elements, and it cannot be denied that this simplicity gives the text a very aesthetic character. Here I attach the code of your table with these changes.
PS : It is NOT recommended to put color in the titles.