| 1 |
% \iffalse meta-comment |
| 2 |
% !TeX spellcheck = en-US |
| 3 |
% |
| 4 |
% File: lastpackage.sty |
| 5 |
% Version: 2014/06/27 v0.1 |
| 6 |
% Author: Matthias Pospiech |
| 7 |
% Email: <[email protected]> |
| 8 |
% |
| 9 |
% Copyright (C) 2014 by Matthias Pospiech <[email protected]> |
| 10 |
% --------------------------------------------------------------------------- |
| 11 |
% This work may be distributed and/or modified under the |
| 12 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
% of this license or (at your option) any later version. |
| 14 |
% The latest version of this license is in |
| 15 |
% http://www.latex-project.org/lppl.txt |
| 16 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
% version 2005/12/01 or later. |
| 18 |
% |
| 19 |
% This work has the LPPL maintenance status `maintained'. |
| 20 |
% |
| 21 |
% The Current Maintainer of this work is Matthias Pospiech. |
| 22 |
% |
| 23 |
% This work consists of the files lastpackage.dtx and lastpackage.ins |
| 24 |
% and the derived filebase lastpackage.sty. |
| 25 |
% |
| 26 |
% \fi |
| 27 |
% |
| 28 |
% \iffalse |
| 29 |
%<*driver> |
| 30 |
\ProvidesFile{lastpackage.dtx} |
| 31 |
%</driver> |
| 32 |
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 33 |
%<package>\ProvidesPackage{lastpackage} |
| 34 |
%<*package> |
| 35 |
[2014/06/27 v0.1 Empty package used for executing code after this package] |
| 36 |
%</package> |
| 37 |
% |
| 38 |
%<*driver> |
| 39 |
\documentclass{ltxdoc} |
| 40 |
\usepackage{hypdoc} |
| 41 |
\RequirePackage[% |
| 42 |
loadHyperref=true, |
| 43 |
createIndexEntries=false, |
| 44 |
applyLayout=true] |
| 45 |
{doctools} % |
| 46 |
% |
| 47 |
\usepackage{lmodern} |
| 48 |
|
| 49 |
\usepackage{lastpackage}[2014/06/27] |
| 50 |
|
| 51 |
\EnableCrossrefs % (default) Every new macro name used within a macrocode or |
| 52 |
% macrocode∗ environment will produce an index entry. |
| 53 |
% \DisableCrossrefs % turn off this feature |
| 54 |
% |
| 55 |
% If an index is created is determined by the use of the following |
| 56 |
% declarations in the driver file preamble; if neither is used, no index is |
| 57 |
% produced. |
| 58 |
\PageIndex % all index entries refer to their page number |
| 59 |
% \CodelineIndex % index entries produced by \DescribeMacro and \DescribeEnv |
| 60 |
% refer to page number but those produced by the macro |
| 61 |
% environment refer to the code lines, |
| 62 |
% which will be numbered automatically. |
| 63 |
% \CodelineNumbered % no index is created, but the code lines are numbered |
| 64 |
|
| 65 |
\RecordChanges |
| 66 |
|
| 67 |
|
| 68 |
\begin{document} |
| 69 |
\DocInput{lastpackage.dtx} |
| 70 |
\PrintChanges |
| 71 |
\PrintIndex |
| 72 |
\end{document} |
| 73 |
%</driver> |
| 74 |
% \fi |
| 75 |
% |
| 76 |
% \CheckSum{0} |
| 77 |
% |
| 78 |
% \CharacterTable |
| 79 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 80 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 81 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 82 |
% Exclamation \! Double quote \" Hash (number) \# |
| 83 |
% Dollar \$ Percent \% Ampersand \& |
| 84 |
% Acute accent \' Left paren \( Right paren \) |
| 85 |
% Asterisk \* Plus \+ Comma \, |
| 86 |
% Minus \- Point \. Solidus \/ |
| 87 |
% Colon \: Semicolon \; Less than \< |
| 88 |
% Equals \= Greater than \> Question mark \? |
| 89 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 90 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 91 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 92 |
% Right brace \} Tilde \~} |
| 93 |
% |
| 94 |
% |
| 95 |
% \changes{v0.1}{2014/06/27}{Converted to DTX file} |
| 96 |
% |
| 97 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 98 |
% |
| 99 |
% \providecommand*{\url}{\texttt} |
| 100 |
% \GetFileInfo{lastpackage.dtx} |
| 101 |
% \title{The \textsf{lastpackage} package} |
| 102 |
% \author{Matthias Pospiech \\ \url{[email protected]}} |
| 103 |
% \date{\fileversion~from \filedate} |
| 104 |
% |
| 105 |
% \maketitle |
| 106 |
% \begin{abstract}\noindent |
| 107 |
% This package can be used to define the last point where some code shall be |
| 108 |
% executed. It does not provide any function. |
| 109 |
% \end{abstract} |
| 110 |
% |
| 111 |
% \section{Usage} |
| 112 |
% If you use the command \cs{ExecuteAfterPackage} of \package{templatetools} |
| 113 |
% for example as |
| 114 |
% \iffalse |
| 115 |
%<*example> |
| 116 |
% \fi |
| 117 |
\begin{lstlisting}[style=lstDemoStyleLaTeXCode] |
| 118 |
% load geometry after hyperref |
| 119 |
\ExecuteAfterPackage{hyperref}{\usepackage{geometry}} |
| 120 |
\end{lstlisting} |
| 121 |
% \iffalse |
| 122 |
%</example> |
| 123 |
% \fi |
| 124 |
% you could have the problem, that hyperref is not loaded and thus the package |
| 125 |
% geometry will only be loaded at \cs{AtEndPreamble}. |
| 126 |
% |
| 127 |
% With this package this can be changed to |
| 128 |
% \iffalse |
| 129 |
%<*example> |
| 130 |
% \fi |
| 131 |
\begin{lstlisting}[style=lstDemoStyleLaTeXCode] |
| 132 |
% load geometry after hyperref |
| 133 |
\ExecuteAfterPackage{hyperref}{\usepackage{geometry}} |
| 134 |
\ExecuteAfterPackage{lastpackage} |
| 135 |
{\IfPackageNotLoaded{geometry}{\usepackage{geometry}}} |
| 136 |
\end{lstlisting} |
| 137 |
% \iffalse |
| 138 |
%</example> |
| 139 |
% \fi |
| 140 |
% |
| 141 |
% \StopEventually{} |
| 142 |
% \section{Implementation} |
| 143 |
% |
| 144 |
% \iffalse |
| 145 |
%<*lastpackage.sty> |
| 146 |
% \fi |
| 147 |
% |
| 148 |
% \begin{macrocode} |
| 149 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 150 |
\ProvidesPackage{lastpackage}[2014/06/27 v0.1 Empty package used for executing code after this package] |
| 151 |
% \end{macrocode} |
| 152 |
% |
| 153 |
% \iffalse |
| 154 |
%</lastpackage.sty> |
| 155 |
% \fi |
| 156 |
% |
| 157 |
% \Finale |
| 158 |
\endinput |
| 159 |
|