You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
TeX
57 lines
1.5 KiB
TeX
%%
|
|
%% This is file `ifprintedition.sty',
|
|
%% generated with the docstrip utility.
|
|
%%
|
|
%% The original source files were:
|
|
%%
|
|
%% ifprintedition.dtx (with options: `package')
|
|
%% This is a generated file.
|
|
%%
|
|
%% Project: ifprintedition
|
|
%% Version: 2023/07/12 v0.1
|
|
%%
|
|
%% Copyright (C) 2023 by Taha Ahmed
|
|
%% https://git.solarchemist.se/taha/ifprintedition
|
|
%%
|
|
%% This work may be distributed and/or modified under the
|
|
%% conditions of the LaTeX Project Public License, either
|
|
%% version 1.3c of this license or (at your option) any later
|
|
%% version. This version of this license is in
|
|
%% https://www.latex-project.org/lppl/lppl-1-3c.txt
|
|
%% and the latest version of this license is in
|
|
%% https://www.latex-project.org/lppl.txt
|
|
%% and version 1.3 or later is part of all distributions of
|
|
%% LaTeX version 2005/12/01 or later.
|
|
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
|
|
\ProvidesPackage{ifprintedition}
|
|
[2023/07/12 v0.1 Detect class options printedition and webedition]
|
|
\newif\if@printedition
|
|
\newif\if@option@printedition
|
|
\newif\if@option@webedition
|
|
\DeclareOption{printedition}{%
|
|
\@printeditiontrue
|
|
\@option@printeditiontrue
|
|
}
|
|
\DeclareOption{webedition}{%
|
|
\@printeditionfalse
|
|
\@option@webeditiontrue
|
|
}
|
|
\ProcessOptions*\relax
|
|
\newcommand*{\ifprintedition}{%
|
|
\if@printedition
|
|
\expandafter\@firstoftwo
|
|
\else
|
|
\expandafter\@secondoftwo
|
|
\fi
|
|
}
|
|
\newcommand*{\ifwebedition}{%
|
|
\if@webedition
|
|
\expandafter\@firstoftwo
|
|
\else
|
|
\expandafter\@secondoftwo
|
|
\fi
|
|
}
|
|
\endinput
|
|
%%
|
|
%% End of file `ifprintedition.sty'.
|