GeneralHelp converting 2.09 style macros to 2e ones

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
madiyaan
Posts: 1
Joined: Mon Mar 01, 2010 9:30 am

Help converting 2.09 style macros to 2e ones

Post by madiyaan »

Hello,

I am preparing a submission to a journal that uses 2.09 style latex macros. Here is the journal website with the latex macros: http://www.jilp.org/latex/.

This sample compiles fine and produces a pdf. However, my submission uses the algorithmx and graphicx packages. If I try to do a \usepackage{graphicx} etc. in my tex file, it complains saying that I should not be using latex 2.09 style \documentstyle{}.

I then tried changing \documentstyle to \documentclass. It compiles fine; however, macros like page numbering, title, etc. do not compile and have to be commented out. So I am stuck between:

1. Choosing the macros provided which are latex 2.09 style and my graphicx and algorithmx packages cannot be used.
2. Changing documentstyle to documentclass so I am able to use graphicx and algorithmx packages. But the titles cannot be done and the font size and page layout look very different from option 1.

Now the journal wont accept any entry that is not formatted according to their macros. How can I port these macros to latex 2e so I can use the modern packages?

Sorry, I am very new to Latex and am asking this very elementary question.

EDIT: Here was the original document start:

Code: Select all

\documentstyle[jilp,twoside,11pt]{article}
\input epsf %% at top of file

\jilpheading{1}{1993}{1-15}{6/91}{9/91}
\ShortHeadings{Minimizing Conflicts: A Heuristic Repair Method}
{Minton, Philips, Johnston, \& Laird}
\firstpageno{25}

And here is the one I modified so I could use my modern packages (note that I had to comment out \jilpheading, etc. because it would not compile. Also, the page layout looks different from the one produced by latex 2.09)

Code: Select all

\documentclass[jilp,twoside,11pt]{article}
\usepackage[dvips]{graphicx}
\usepackage{algorithm}
\usepackage{algpseudocode}
\input epsf %% at top of file

%\jilpheading{1}{1993}{1-15}{6/91}{9/91}
%\ShortHeadings{Minimizing Conflicts: A Heuristic Repair Method}
%{Minton, Philips, Johnston, \& Laird}
%\firstpageno{25}

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Help converting 2.09 style macros to 2e ones

Post by localghost »

The old LaTeX2.09 document style loaded packages in the option list. So the entry »jilp« is not an option like 11pt, it's a package. Thus the first lines of your preamble in LaTeX2e syntax should look like shown below.

Code: Select all

\documentclass[11pt,twoside]{article}
\usepackage[T1]{fontenc}      % Cork Encoding
\usepackage[utf8]{inputenc}   % Unicode inputencoding
\usepackage{jilp}             % Formats according JILP
\usepackage{graphicx}         % Graphics inclusion
Everything that comes next is compiling fine because the jilp package provides all necessary structures. But the sample file I obtained from the link you gave causes some other errors. There are the commands (control sequences) \twltt and \shortcite which are not defined. But that's no reason to panic because they are not really needed. The first one is used in the first figure but its purpose is not really clear. The latter one seems to be provided by the obsolete named package, an old one for LaTeX2.09 and not available any more in modern distributions. But this packages is not requested by the sample. I deleted and respectively replaced them so that the sample file compiles flawlessly.

The use of epsf is not recommendable any more because there's graphicx now. Load the latter one without any driver options. It will detect on its own which compiler is running and will load the suitable driver.


Best regards and welcome to the board
Thorsten
Post Reply