-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathextramarks.sty
85 lines (85 loc) · 3.26 KB
/
extramarks.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%%
%% This is file `extramarks.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fancyhdr.dtx (with options: `extramarks')
%%
%% This is a generated file.
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
%% http://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}
\ProvidesPackage{extramarks}
[2025/01/07 v5.1.1
Extra marks for LaTeX]
% Copyright (C) 1994-2025 by Pieter van Oostrum <[email protected]>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
\DeclareRelease{v4}{2024/11/30}{extramarks-v4.sty}
\DeclareCurrentRelease{}{2025/01/07}
\@ifundefined{NewMarkClass}
{\PackageWarningNoLine{extramarks}{%
**************************************************\MessageBreak
Your LaTeX installation is too old for extramarks version 5.\MessageBreak
We will fallback to extramarks version 4 now.\MessageBreak
Please note that some commands will not be available,\MessageBreak
and that the functionality may be slightly different.\MessageBreak
You are advised to update your LaTeX installation.\MessageBreak
**************************************************}
\RequirePackage{extramarks-v4}\endinput}{}
\AtBeginDocument{%
\IfPackageLoadedT{multicol}%
{\IfPackageAtLeastF{multicol}{2024-11-21}{%
\PackageWarningNoLine{extramarks}{%
You are using package `extramarks' with a version\MessageBreak
of `multicol' that is too old. The new version\MessageBreak
of `multicol' will be released on June 1, 2025.\MessageBreak
We will fallback to extramarks version 4 now.}%
\let\extramarks\undefined
\RequirePackage{extramarks-v4}
}%
}%
}
\ifx\@mkboth\@gobbletwo\else\def\@mkboth{\protect\markboth}\fi
\NewMarkClass{extramarks-left}
\NewMarkClass{extramarks-right}
\newcommand\extramarks[2]{%
\InsertMark{extramarks-left}{#1}%
\InsertMark{extramarks-right}{#2}}
\newcommand\extramarksleft[1]{%
\InsertMark{extramarks-left}{#1}}
\newcommand\extramarksright[1]{%
\InsertMark{extramarks-right}{#1}}
\newcommand\firstleftmark{\FirstMark{2e-left}}
\newcommand\lastrightmark{\LastMark{2e-right}}
\newcommand\firstrightmark{\rightmark}
\let\firstrightmark \rightmark
\newcommand\lastleftmark{\leftmark}
\let\lastleftmark \leftmark
\newcommand\firstleftxmark{\FirstMark{extramarks-left}}
\newcommand\lastrightxmark{\LastMark{extramarks-right}}
\newcommand\firstrightxmark{\FirstMark{extramarks-right}}
\newcommand\topleftxmark{\TopMark{extramarks-left}}
\newcommand\toprightxmark{\TopMark{extramarks-right}}
\newcommand\lastleftxmark{\LastMark{extramarks-left}}
\newcommand\firstxmark{\firstleftxmark}
\let\firstxmark\firstleftxmark
\newcommand\lastxmark{\lastrightxmark}
\let\lastxmark\lastrightxmark
\newcommand\topxmark{\topleftxmark}
\let\topxmark\topleftxmark
\endinput
%%
%% End of file `extramarks.sty'.