GeneralNoob help needed

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rousie313
Posts: 3
Joined: Sat Apr 24, 2010 6:14 pm

Noob help needed

Post by rousie313 »

im getting like 19 errors that i have no idea how to troubleshoot or fix. any advice appreciated!

these are my errors for the following code:
watermarks.tex...
watermarks.tex(1): LaTeX Warning: You have requested package `AMSsymb',
watermarks.tex(11): Error: ! Undefined control sequence.
watermarks.tex(30): Error: ! LaTeX Error: \caption outside float.
watermarks.tex(38): Error: ! Paragraph ended before \color@fb@x was complete.
watermarks.tex(39): Error: ! Missing } inserted.
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).
watermarks.tex(44): Error: ! Undefined control sequence.
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).
watermarks.tex(44): Error: ! A <box> was supposed to be here.
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).
watermarks.tex(44): Error: ! Undefined control sequence.
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).
watermarks.tex(44): Error: ! Missing number, treated as zero.
watermarks.tex(44): Error: ! Illegal unit of measure (pt inserted).

Code: Select all

\documentclass{article}

\usepackage{fullpage}
\usepackage[pdftex]{graphicx}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{color}
\usepackage{amsmath}
\usepackage{AMSsymb}

\makealetter
\AddToShipoutPicture{
		\setlength{\@tempdimb}{.5\paperwidth}
		\setlength{\@tempdimc}{.5\paperheight}
		\setlength{\unitlength}{1pt}
		\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
		\makebox(0,0){rotatebox{45}{\textcolor[gray]{0.75}
		{\fontsize{6cm}{6cm}\selectfont{S.M.R}}}}}}
\definecolor{light}{cmyk}{0,0,0.08,0}
\definecolor{mycyan}{cmyk}{1,0,0,0}
\definecolor{mymag}{cmyk}{0,1,0,0}
\definecolor{myyellow}{cmyk}{0,0,1,0}
\definecolor{darkmag}{rgb}{.5,0,.5}
\definecolor{light_gray}{gray}{.85}
\definecolor{darg_gray}{gray}{.5}	
\begin{document}

\begin{center}
\includegraphics[width=.5\textwidth]{./IB}\\
\caption{Inglorious Bastards}
\end{center}

\setlength{\fboxsep}{8pt}
\setlength{\fboxrule}{2pt}

\begin{center}
{\color{blue}\fcolorbox{green}(light){\parbox{5.5in}{\ "You probably heard we ain't in the prisoner-takin' business; we in the killin' Nazi business. And cousin, business is a-boomin.", Lt. Aldo Raine.} 

\end{center}




\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Noob help needed

Post by josephwright »

Please tell us where "AMSsymb" comes from. This does not look like a standard package.
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Noob help needed

Post by localghost »

You are doing many mistakes like mixing up braces with parenthesis. At other places they are missing. Captions can only be used inside a float (see error message). I strongly recommend to do some basic reading [1]. Moreover you are loading obsolete packages [2]. And you are using superfluous driver options like pdftex [3]. Furthermore your example contains packages like those of the AMS that are not relevant for the problem [3]. Compare the corrected code below with yours and learn. Reading the according package manuals will also help

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage{graphicx}
\usepackage{eso-pic}
\usepackage{color}
%\usepackage{amsmath}
%\usepackage{amssymb}

\makeatletter
\AddToShipoutPicture{%
  \setlength{\@tempdimb}{.5\paperwidth}
  \setlength{\@tempdimc}{.5\paperheight}
  \setlength{\unitlength}{1pt}
  \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
  \makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}
  {\fontsize{6cm}{6cm}\selectfont{S.M.R}}}}}}
\makeatother

\definecolor{light}{cmyk}{0,0,0.08,0}
\definecolor{mycyan}{cmyk}{1,0,0,0}
\definecolor{mymag}{cmyk}{0,1,0,0}
\definecolor{myyellow}{cmyk}{0,0,1,0}
\definecolor{darkmag}{rgb}{.5,0,.5}
\definecolor{lightgray}{gray}{.85}
\definecolor{darkgray}{gray}{.5}   

\begin{document}
  \begin{center}
    \includegraphics[width=.5\textwidth]{./IB}
%    \caption{Inglorious Bastards}
  \end{center}

  \setlength{\fboxsep}{8pt}
  \setlength{\fboxrule}{2pt}

  \begin{center}
    \fcolorbox{green}{light}{%
      \parbox{0.8\textwidth}{%
        \color{blue}
        "You probably heard we ain't in the prisoner-takin' business; we in the killin' Nazi business. And cousin, business is a-boomin.", Lt. Aldo Raine.
      }
    }
  \end{center}
\end{document}
[1] View topic: LaTeX Resources for Beginners
[2] View topic: Obsolete packages and document classes - Avoid usage!
[3] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
rousie313
Posts: 3
Joined: Sat Apr 24, 2010 6:14 pm

Re: Noob help needed

Post by rousie313 »

it is just a package my instructor asked us to use, i believe it is for defining mathematical symbols
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Noob help needed

Post by localghost »

rousie313 wrote:it is just a package my instructor asked us to use, i believe it is for defining mathematical symbols
You should only use package from which you know what they are doing. There exists a package called amssymb from AMS-LaTeX. For comparison you can attach your file to your next post. Nevertheless it is not relevant for the solution of your problem.
rousie313
Posts: 3
Joined: Sat Apr 24, 2010 6:14 pm

Re: Noob help needed

Post by rousie313 »

aside from the amssymb problem is there any other issues with my code that is producing the other errors or is it all because of the misuse of the amssymb package
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Noob help needed

Post by localghost »

rousie313 wrote:aside from the amssymb problem is there any other issues with my code that is producing the other errors or is it all because of the misuse of the amssymb package
Read my first reply and the last sentence of my former one.
Post Reply