I'm confused about why for two seemingly identical lines of code, one file will give me an error while the other will not. Error-free code:
\hyperlink{page.2}{\normal{Insert text here:}}
\vspace{-6.5mm}\\
% \normal{Insert text here}
\begin{compactitem}
\item[$\bullet$ \Text { } {\color{OliveGreen}\bf{+}}:] \AddTicker
\item[$\bullet$ \Text { }{\color{red}\bf{-}}:] \DeleteTicker
\end{compactitem}
\vspace{1mm}\\
\hspace{0mm}\textbf{\normal {Insert text here:}}
Code that gives me errors (the error is in the line between vspace and hspace):
\normal{\hyperlink{page.3}{Insert text here:}}
\vspace{-6.5mm}\\
% \normal{None}
\begin{compactitem}
\item[$\bullet$ \Text{ } {\color{OliveGreen}\bf{+}}:] \AddTicker
\item[$\bullet$ \Text{ } {\color{red}\bf{-}}:] \DeleteTicker
\end{compactitem}
\vspace{0mm}\\
\hspace{0mm}\textbf{\normal {Insert text here:}}
I don't think it's the switch in order of \normal and \hyperlink as it doesn't give me an error in other places. I've read that many times this error has to do with ending a paragraph, so am I in trouble because I have a vspace of 0 mm instead of 1 mm?
Furthermore, although I get the following message, I still have a pdf output. Does that mean this is a warning message only, and my file compiled correctly after all?
output file: announcement.tex
Error: running 'texi2dvi' on 'announcement.tex' failed
LaTeX errors:
ex.tex:330: LaTeX Error: There's no line here to end.
\bf{-}
is wrong,\bf
should not be used in latex, but if it is used, it does not take an argument, so the syntax would be{\bf +}
(like the latex version{\bfseries +}
) not like\textbf{+}