TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to convert a LaTeX 2.09 template to LaTeX2e (pdflatex):


How should I convert this line ?

\documentstyle[hyperref, margin, line]{res_yy}

I don't know what class I need to use

\documentclass{article} %% ???
share|improve this question
Looks like a rather specialist style file! I very much doubt you'll be able to do a 'quick' conversion (i.e. without reworking a lot of the code). There is no res_yy class for LaTeX2e. – Joseph Wright Oct 1 '11 at 7:25
Perhaps take a look at tex.stackexchange.com/questions/80/… – Joseph Wright Oct 1 '11 at 7:26
By the way, did you try just compiling the document 'as is' with LaTeX2e. There is some auto-detect code to try to work in 'compatibility mode'. – Joseph Wright Oct 1 '11 at 8:42
Sure, compiling the document 'as is' work. I've been using this template for 6 years now. But I would like to use LaTeX2e feature like \usepackage[utf8]{inputenc} and so on. – Doud Oct 1 '11 at 9:33
Well I found a res_yy.sty. It loads article.sty. So you could try to remove the line \input article.sty in a (renamed) copy of res_yy.sty and then load it with \usepackage and look what happens. If you want to use hyperref you should also remove the \nofiles command. – Ulrike Fischer Oct 1 '11 at 10:37

The short answer is that there is no easy conversion for a completely general case. LaTeX2.09 style files are very much a mix of formatting and 'additional' code, even more than is the case with LaTeX2e.

More specifically, the LaTeX2.09 style in question has never been converted into a LaTeX2e class. That means that there the change




is not possible: the later does not exist. That leaves you needing to recreate the layout and macros provided by res_yy in LaTeX2e. This is certainly possible, but I suspect that the effort is not really balanced off by the outcome. The amount of work needed to do the conversion seems at least equal to starting either from article or a specialist CV class.

share|improve this answer

I was using the exact same style file for N years and having a hard time today to use some packages. Here's the hack I succeeded based on Ulrike's suggestion.

First, replace following lines in res_yy.sty

\input article.sty



%\input article.sty

Then, in the main .tex file, replace

\documentstyle[hyperref, margin, line]{res_yy}



After this, your .tex will compile with 'line' and 'margin' style.

I can finally use the enumitem package with this style. Yes!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.