Re: rcsinfo Konfiguration nach \begin{document}, warum

Julius Müller (via tex-d-l Mailing List) <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo Uwe,

Am 26.01.23 um 22:58 schrieb Uwe Brauer:
>
>> Was ist, wenn Du Deine Konfiguration in ein \AtBeginDocument packst?
>> Wird es dann korrekt genutzt?
> Danke, funktioniert aber leider auch nicht

Diese Aussage hat mich genug irritiert, das ausprobieren zu wollen.
Deshalb habe ich meine TeXlive-2019-Umgebung reaktiviert (scrpage2 ist
schon lange deprecated und wird seit TeXlive 2020 nicht mehr
mitgeliefert). Die hier angegebenen Versionen erzeugen bei mir dasselbe
Ergebnis wie Dein Minimalbeispiel.

Version 1: alles in einer Datei

\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage[scrpage2]{rcsinfo}
\makeatletter
\AtBeginDocument{
\def\@rcsInfoFancyInfo{{\footnotesize%
\emph{\fcolorbox{black}{yellow}{Rev: \rcsInfoRevision,}
\rcsInfoOwner,
\rcsInfoLongDate,
\rcsInfoTime}}}
}
\makeatother
\begin{document}
\rcsInfo $Id: manual-matlab-git.tex,v 2716 2023/01/26 10:48:53 oub Exp oub $

Some text
\end{document}

Version 2: Format-Definition in einer .sty-Datei

\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage{test}
\begin{document}
\rcsInfo $Id: manual-matlab-git.tex,v 2716 2023/01/26 10:48:53 oub Exp oub $

Some text
\end{document}

und in test.sty:

\RequirePackage[scrpage2]{rcsinfo}
\AtBeginDocument{
\def\@rcsInfoFancyInfo{{\footnotesize%
\emph{\fcolorbox{black}{yellow}{Rev: \rcsInfoRevision,}
\rcsInfoOwner,
\rcsInfoLongDate,
\rcsInfoTime}}}
}

In Version 2 kann sogar die \rcsInfo-Zeile in die Präambel verlegt
werden, wo sie meiner Meinung nach eher hingehört. Auch dann entspricht
das Ergebnis noch immer dem Ausgangspunkt.

Gruß
Julius

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.