hi i use mac and use texshop.The problem is that i have made 2 files for text and figure.when i combined the figure file with the text(i had to include \usepackage{graphicx}).It is showing me an error particularly after i enter the \usepackage{graphicx}.I have attached my preamble beneath..please help me.i need urgent help in this..Has any one of you faced a similar problem?
\documentstyle[12pt]{article}
\usepackage{graphicx}
\setlength{\oddsidemargin}{0.5in} % lhs margin - 1.in
\setlength{\headheight}{0.0in} \setlength{\headsep}{0.0in}
\setlength{\topskip}{0.0in} \setlength{\footheight}{2ex}
\setlength{\footskip}{6ex}
\setlength{\textwidth}{6.0in} % 8.5in - lhsmargin - rhs margin
\setlength{\topmargin}{0.5in} % top margin - 1.0in
\setlength{\textheight}{8.5in} % 11.in - top margin - bottom margin
\setlength{\parindent}{0.4in} \setlength{\parskip}{1.5ex}
Graphics, Figures & Tables ⇒ help desperately regarding preamble
help desperately regarding preamble
The \documentstyle command is for LaTeX 2.09, and \usepackage is for LaTeX 2e.
If it were me, I'd change \documentstyle to \documentclass and make the entire thing a LaTeX 2e document. LaTeX 2.09 is obsolete.
I'd also accomplish the tweaks on the margins by using the geometry package rather than setting all those lengths separately, some of which aren't even in my article document class.
If it were me, I'd change \documentstyle to \documentclass and make the entire thing a LaTeX 2e document. LaTeX 2.09 is obsolete.
I'd also accomplish the tweaks on the margins by using the geometry package rather than setting all those lengths separately, some of which aren't even in my article document class.
-
- Posts: 6
- Joined: Thu Nov 05, 2009 11:23 pm
Re: help desperately regarding preamble
@ frabjous
Thanks a lot..That change did work and i could include the image.About the geometry package,I am working on LATEX for a professor(he intends to print a book),and that is his standard format..Will the geometry command be as equally effective?
Thanks a lot..That change did work and i could include the image.About the geometry package,I am working on LATEX for a professor(he intends to print a book),and that is his standard format..Will the geometry command be as equally effective?
Re: help desperately regarding preamble
I don't see why not. But if it works with the commands you have, then don't worry about it. I mainly mentioned it because I still couldn't compile your code even with the change I mentioned, because some of those lengths were undefined in my article.cls.