diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/ifoddpage/ifoddpage.pdf | bin | 131336 -> 133988 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/ifoddpage/ifoddpage.dtx | 80 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/ifoddpage/ifoddpage.ins | 9 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty | 26 |
4 files changed, 76 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/latex/ifoddpage/ifoddpage.pdf b/Master/texmf-dist/doc/latex/ifoddpage/ifoddpage.pdf Binary files differindex ec7a188b0b8..3c487f795e4 100644 --- a/Master/texmf-dist/doc/latex/ifoddpage/ifoddpage.pdf +++ b/Master/texmf-dist/doc/latex/ifoddpage/ifoddpage.pdf diff --git a/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.dtx b/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.dtx index faacbdffa9f..fe0720777a2 100644 --- a/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.dtx +++ b/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.dtx @@ -1,28 +1,38 @@ % \iffalse meta-comment -% -% Copyright (C) 2011 by <+author+> <<+email+>> -% --------------------------------------------------------------------------- -% This work 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. -% -% This work has the LPPL maintenance status `maintained'. -% -% The Current Maintainer of this work is <+maintainer+>. -% -% This work consists of the files ifoddpage.dtx and ifoddpage.ins -% and the derived filebase ifoddpage.sty. -% +%<=*COPYRIGHT> +%% Copyright (C) 2011-2012 by Martin Scharrer <martin@scharrer-online.de> +%% ---------------------------------------------------------------------- +%% This work 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. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Martin Scharrer. +%% +%% This work consists of the files ifoddpage.dtx and ifoddpage.ins +%% and the derived filebase ifoddpage.sty. +%% +%<=/COPYRIGHT> % \fi % % \iffalse %<*driver> -\ProvidesFile{ifoddpage.dtx}[2011/09/13 v1.0 DTX file for ifoddpage package] +\ProvidesFile{ifoddpage.dtx}[% +%<=*DATE> + 2016/04/23 +%<=/DATE> +%<=*VERSION> + v1.1 +%<=/VERSION> + DTX file for ifoddpage package] \documentclass{ydoc} +\GetFileInfo{ifoddpage.dtx} +\usepackage{ifoddpage}[\filedate] \EnableCrossrefs \CodelineIndex \RecordChanges @@ -54,17 +64,15 @@ % % % \changes{v1.0}{2011/09/13}{First version.} +% \changes{v1.1}{2016/04/23}{Fixed misspelled macro name.} +% % % \DoNotIndex{\newcommand,\newenvironment} % -% \providecommand*{\url}{\texttt} % \GetFileInfo{ifoddpage.dtx} -% \title{The \textsf{ifoddpage} package} -% \author{Martin Scharrer\\ \url{martin@scharrer.me}} -% \makeatletter -% \def\@homepage{\url{http://www.ctan.org/pkg/ifoddpage}\\[\medskipamount]\url{https://bitbucket.org/martin_scharrer/ifoddpage}} -% \makeatother -% +% \author{Martin Scharrer} +% \email{martin@scharrer.me} +% \repository{https://bitbucket.org/martin_scharrer/ifoddpage} % \maketitle % % \section{Introduction} @@ -91,7 +99,7 @@ % % Note that this macro inserts an invisible element (a so called \emph{whatsit}) which is placed on the page. % It is possible that this happens to be at the very end of the last line of the page and any other code following it would then be placed -% on the next page. Some code like |\checkoddpage \ifoddapge odd\else even\fi| might then place the first macro on the current, say even, page but +% on the next page. Some code like |\checkoddpage \ifoddpage odd\else even\fi| might then place the first macro on the current, say even, page but % print `|even|' at the top of the next page which is odd. In order to avoid this both the check macro and the output text can be placed in the same % box (e.g.\ |\mbox|). If the full content can't be placed in a box, e.g.\ because line breaking is required a |\mbox| can also be substituded by % |\leavevmode| (to start a paragraph if required) and |\hbox| where the |{}| are replaced by |\bgroup| and |\egroup| so two alternative box ends can be specified: @@ -145,7 +153,7 @@ % % \begin{itemize} % \item Smaller code base, because no additional functionality is provided. -% \item The \Macro{ifoddapgeoroneside} conditional is also provided which simplifies code which has to handle odd/even margins. +% \item The \Macro{ifoddpageoroneside} conditional is also provided which simplifies code which has to handle odd/even margins. % \item The label code uses the same internal \LaTeX-core code as the normal \Macro\label and generates identical error, warning and info messages. % \item The fallback page number is not constant (0) but the current \texttt{page} counter value is used, which is a good approximation. % \end{itemize} @@ -159,10 +167,18 @@ %<*ifoddpage.sty> % \fi % \begin{macrocode} -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ifoddpage}[2011/09/13 v1.0 Conditionals for odd/even page detection] +%<!COPYRIGHT> +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{ifoddpage}[% +%<!DATE> +%<!VERSION> +%<*DRIVER> + 2099/01/01 develop +%</DRIVER> + Conditionals for odd/even page detection] % \end{macrocode} % +% % \begin{macrocode} \newcount\c@checkoddpage % \end{macrocode} @@ -243,7 +259,7 @@ % \begin{macro}{\@ifoddpage} % \begin{macrocode} \def\@ifoddpage{% - \ifoddside + \ifoddpage \expandafter\@firstoftwo \else \expandafter\@secondoftwo @@ -270,4 +286,4 @@ % \fi % % \Finale -\endinput +% \endinput diff --git a/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.ins b/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.ins index a46e1dc8e08..93fcec0efc7 100644 --- a/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.ins +++ b/Master/texmf-dist/source/latex/ifoddpage/ifoddpage.ins @@ -1,9 +1,10 @@ -% See file 'ifoddpage.dtx' for copyright and licence. -% -\input docstrip.tex +\input ydocstrip.tex \keepsilent \askforoverwritefalse + \generate{% - \file{ifoddpage.sty}{\nopreamble\from{ifoddpage.dtx}{ifoddpage.sty}}% + \file{ifoddpage.sty}{\nopreamble\from{ifoddpage.dtx}{ifoddpage.sty}}% } \endbatchfile + +%% vim: ft=tex diff --git a/Master/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty b/Master/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty index eeea03bb12e..8b32fe20041 100644 --- a/Master/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty +++ b/Master/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty @@ -1,5 +1,25 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ifoddpage}[2011/09/13 v1.0 Conditionals for odd/even page detection] +%% Copyright (C) 2011-2012 by Martin Scharrer <martin@scharrer-online.de> +%% ---------------------------------------------------------------------- +%% This work 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. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Martin Scharrer. +%% +%% This work consists of the files ifoddpage.dtx and ifoddpage.ins +%% and the derived filebase ifoddpage.sty. +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{ifoddpage}[% + 2016/04/23 + v1.1 + Conditionals for odd/even page detection] \newcount\c@checkoddpage \def\thecheckoddpage{\number\c@checkoddpage} \newif\ifoddpage @@ -37,7 +57,7 @@ \fi }% \def\@ifoddpage{% - \ifoddside + \ifoddpage \expandafter\@firstoftwo \else \expandafter\@secondoftwo |