[tex-live] Trouble with Texlive2007 + scrlttr2 + asymTypB.lco

Bert Trüger xulxer at gmail.com
Thu Mar 1 13:30:44 CET 2007


Hi,

I have a problem with asymTypB.lco for scrlttr2 with Texlive2007. On Texlive
2005 I can't remember a serious problem, now scrlttr2 still works with
pdflatex and xelatex (I have added a minimal example), but with
asymTypB.lcopdflatex complains
"[PDFLaTeX] BriefvorlageLatex.tex =>
BriefvorlageLatex.pdf(/usr/local/texlive/2007/bin/i386-linux/pdflatex)
[PDFLaTeX] mit Status 1 beendet
/usr/local/texlive/2007/texmf-dist/tex/latex/koma-script/asymTypB.lco:11:Undefined
control sequence. }
./BriefvorlageLatex.tex:20:Command \@typearea at end already defined.
\begin{document}
./BriefvorlageLatex.tex:26:There's no line here to end. \opening{L.S.,}
./BriefvorlageLatex.tex:26:There's no line here to end. \opening{L.S.,}
[PDFLaTeX] 4 Fehler, 0 Warnungen, 0 badboxes" and xelatex will not compile.
The asymTypB.lco should be correct as I have copied and pasted the text from
"Replacing LATEX2ε standard classes with
KOMA-Script" to asymTypB.lco in the KomaScript-directory.

Has anybody an idea?

Thanks in advance

Chris

Minimal example:
\documentclass[%
% asymTypB,
  DIV=9,
  fontsize=11pt,
  pagesize,
  twoside,
  ]{scrlttr2}
\setkomavar{place}{Leiden}
\nexthead{}
\setkomavar{fromname}{Yuri Robbers}
\setkomavar{fromaddress}{Fruinlaan 15\\2313 EP Leiden\\The Netherlands}
\setkomavar{fromphone}{+31{--}71{--}5121365}
\setkomavar{fromfax}{+31{--}71{--}5144543}
\setkomavar{fromemail}{robbers at lemun.org}
\setkomavar{fromurl}{http://www.lemun.org}
\pagestyle{empty}

\begin{document}
 \begin{letter}{%
      The Prac\TeX\ Journal\\c/o the Editor{-}in{-}chief\\2701 Some
Street\\32768 Anytown}
\setkomavar{subject}{Beurteilung}
\opening{L.S.,}
Test
\closing{With kind regards,\\}
\end{letter}
\end{document}


asymTypB.lco:
\ProvidesFile{asymTypB.lco}%
             [2005/04/09 v0.2a unsupported LCO-file]%
\LoadLetterOption{DINmtext}%
\setlength{\oddsidemargin}{\useplength{toaddrhpos}}%
\addtolength{\oddsidemargin}{-1in}%
% Take care that the shift stays intact even after recalculating the pag
% layout (see Kohm & Morawski 2005, section C.7)
\l at addto@macro{\@typearea at end}{%
  \setlength{\oddsidemargin}{\useplength{toaddrhpos}}%
  \addtolength{\oddsidemargin}{-1in}%
}
\ifx\AtBeginDocument\@notprerr
  \KOMAoptions{DIV=last}%
\else
  \AtBeginDocument{%
    \g at addto@macro{\@typearea at end}{%
      \setlength{\oddsidemargin}{\useplength{toaddrhpos}}%
      \addtolength{\oddsidemargin}{-1in}%
    }%
  }%
\fi
% continue as per description
\@setplength{firstheadvpos}{0pt}%
\@setplength{firstheadwidth}{\paperwidth}%
\@setplength{firstfootvpos}{\paperheight}%
\@addtoplength[-]{firstfootvpos}{\useplength{toaddrvpos}}%
\@addtoplength{refvpos}{-1.5\baselineskip}%
\newkomavar{company}%
\@newplength{infocolwidth}%
% Kohm & Morawski 2005, C.7. Modifikationen (Modifications)
\ifdim \textwidth<0.666\paperwidth
  \@setplength{infocolwidth}{.22222\paperwidth}%
\else
  \@setplength{infocolwidth}{0.1667\paperwidth}%
\fi
% continue as per description
\firsthead{%
  \fontsize{7}{8}\sffamily
  \hspace*{\fill}%
  \begin{picture}(0,0)%
    \put(0,0){\parbox[t]{\useplength{infocolwidth}}{%
        \vspace{\useplength{toaddrvpos}}%
        \usekomavar{fromlogo}%
      }%
    }%
    \put(0,0){\parbox[t]{\useplength{infocolwidth}}{%
        \raggedright
        \vspace{\useplength{refvpos}}%
        \vspace{\useplength{refaftervskip}}%
        \usekomavar{place}\usekomavar{placeseparator}\\
        \usekomavar{date}\\[10\baselineskip]
        \usekomavar{fromname}
        \ifkomavarempty{company}{}{%
          \\
          \usekomavar{company}%
        }\\[\baselineskip]
        \usekomavar{fromaddress}\\
        \usekomavar*{fromphone}\usekomavar{fromphone}\\
        \usekomavar*{fromfax}\usekomavar{fromfax}%
        \\[\baselineskip]
        \usekomavar{fromemail}\\
        \usekomavar{fromurl}\\
      }%
    }%
    \put(0,0){\parbox[t]{\useplength{infocolwidth}}{%
        \raggedright
        \vspace{\useplength{firstfootvpos}}%
        \vspace{-\footskip}%
        \usekomavar{frombank}\\%
      }%
    }%
  \end{picture}%
  \hspace*{\useplength{infocolwidth}}%
}%
\l at addto@macro\@firstheadfootfield{\setkomavar{date}{}}
\nexthead{%
  \begingroup
    \@tempswatrue
    \if at twoside\ifodd\number\value{page}
        \else\@tempswafalse\fi\fi
    \if at tempswa
      \makebox[0pt][l]{%
        \hspace*{-\oddsidemargin}\hspace{-1in}%
        \hspace{\paperwidth}%
        \hspace{-\useplength{infocolwidth}}%
        \normalfont\fontsize{7}{8}\sffamily

        \begin{picture}(0,0)
          \put(0,0){\parbox[t]{\useplength{infocolwidth}}{%
              \vspace*{-\topmargin}\vspace{-1in}%
              \vspace{-\headheight}%
              \vspace{\useplength{toaddrvpos}}%
              \begin{tabular}{@{}c@{}}
                \usekomavar{fromlogo}\\
                \usekomavar{company}\\
              \end{tabular}%
            }%
          }%
        \end{picture}%
      }%
    \fi
  \endgroup
}%
\pagestyle{headings}%
\endinput
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/tex-live/attachments/20070301/00973366/attachment.html 


More information about the tex-live mailing list