Re: lade packet, abhängig von der TL version?

Marei Peischl <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo Uwe,

On 6/5/23 17:50, Uwe Brauer (via tex-d-l Mailing List) wrote:
> Hallo
>
> Ist es möglich, eine if Konstruktion zu basteln, so daß,
>
>      1. wenn der File mit texlive 2023 kompiliert wird, eine Version eines Style files geladen wird,
>
>      2. Wird texlive 2019 benutzt wird eine andere Version des Style
>         files geladen
>
>
> So was wie
>
> if texlive=2023
>     \uspackage{version23/nicematrix}
> else
>      \uspackage{version19/nicematrix}
> end
>
> Das Problem kommt daher, daß nicht alle Authoren die selbe texlive
> Version installiert haben.

Jein. Also man würde es nicht direkt an der TeX Live Version festmachen, 
sondern eher an der LaTeX Version

\IfFormatAtLeastTF{2022/11/01}{
    \uspackage{version23/nicematrix}
}{
   \uspackage{version19/nicematrix}
}

Allerdings würe ich aus Erfahrung sagen es lohnt sich die Leute zum 
Update zu bewegen, insbesondere weil in der Zwischenzeit (Seit 2019 und 
ich nehme an, das ist die Erwartete Version) einige Dinge passiert sind.

Kann dann zum Beispiel sein, dass das Makro selber noch nicht existiert, 
d.h. man müsste das auch nochmal sicherstellen:

\makeatletter
\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
\makeatother


Grüße

Marei

> Gruß
>
> Uwe Brauer

-- 
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.