summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-23 22:05:28 +0000
committerKarl Berry <karl@freefriends.org>2011-05-23 22:05:28 +0000
commit6c53c3bf9c486cd85be55144beb951ccbfde3453 (patch)
tree87fbc166fa1eb3f7e3776e69322a4f5c857965b5 /Master/texmf-dist/source
parent52a388b5dfbf9e9147a7c07878b135825cad4656 (diff)
new latex package ifnextok (23may11)
git-svn-id: svn://tug.org/texlive/trunk@22588 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/ifnextok.tex69
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/makedoc.cfg43
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/srcfiles.tex6
3 files changed, 118 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex b/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex
new file mode 100644
index 00000000000..716c2473430
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex
@@ -0,0 +1,69 @@
+\ProvidesFile{ifnextok.tex}[2011/05/23 documenting ifnextok.sty (UL)]
+\title{\textsf{\huge ifnextok}\\---\\\cs{IfNextToken}
+ instead of \cs{@ifnextchar}\\Does Not Skip Blank
+ Spaces\thanks{This document describes version
+ \textcolor{blue}{\UseVersionOf{ifnextok.sty}}
+ of \file{ifnextok.sty} as of \UseDateOf{ifnextok.sty}.}}
+{ \RequirePackage{makedoc}[2010/12/20] \ProcessLineMessage{}
+ \MakeJobDoc{18}{\SectionLevelThreeParseInput}
+}
+\documentclass{article}%% TODO paper dimensions!?
+\input{makedoc.cfg} %% shared formatting settings
+\usepackage{color}
+\usepackage[all]{ifnextok}
+\makeatletter
+ \@beginparpenalty\@lowpenalty
+% \show\@xnewline
+% \tracingmacros=1 \tracingonline=1
+% \NoNewlineSkipping
+% \NextTokenForNextChar\@xnewline
+% \show\@xnewline
+% \show\\
+% \show\@normalcr
+\makeatother
+\sloppy
+\begin{document}
+\maketitle
+\begin{abstract} %%% \noindent
+ The 'ifnextok' package deals with the behavior of
+ \LaTeX's internal `\@ifnextchar' to skip blank spaces.
+ This sometimes has surprising or for some users really
+ \emph{unwanted} effects, especially with brackets following
+ `\\' where the user does \emph{not} intend to specify an
+ optional argument, rather wants that brackets are \emph{printed.}
+ The package offers commands and options for modifying this
+% \tracingmacros=1 \tracingonline=1
+ behavior, maybe limited to certain parts of the
+ document source.\\
+ [It works!]
+ It may also be useful with active characters in lieu of `\\',
+ e.g., the double quote `"' with \ctanpkgref{german}`.sty'
+ or \ctanpkgref{babel}.
+ \par\smallskip\noindent
+\strong{Keywords:}\quad
+ macro programming, optional command arguments,
+ manual line breaks
+\end{abstract}
+\tableofcontents
+
+% \newpage
+\section{Installing and Calling}
+The package file `ifnextok.sty' is provided ready,
+installation only requires putting it somewhere where \TeX\ finds it
+(which may need updating the filename data
+ base).\urlfoot{ukfaqref}{inst-wlcf}
+
+Below the `\documentclass' line(s) and above `\begin{document}',
+you load `ifnextok.sty' (as usually) by
+\[`\usepackage{ifnextok}'\qquad \mbox{or by}\qquad
+ `\usepackage[<options>]{ifnextok}'\]---<options> described
+in Section~\ref{sec:options}.
+
+\section{The Package File}
+\subsection{Header (Legalize)}
+\input{ifnextok.doc}
+\end{document}
+
+VERSION HISTORY
+
+2011/05/22 very first
diff --git a/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg b/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg
new file mode 100644
index 00000000000..d74c564b879
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg
@@ -0,0 +1,43 @@
+\ProvidesFile{makedoc.cfg}[2011/05/23 documentation settings]
+
+\author{Uwe L\"uck\thanks{\url{http://contact-ednotes.sty.de.vu}}}
+% \author{Uwe L\"uck---{\tt http://contact-ednotes.sty.de.vu}}
+
+%% hyperref:
+\RequirePackage{ifpdf}
+\usepackage[%
+ \ifpdf
+% bookmarks=false, %% 2010/12/22
+% bookmarksnumbered,
+ bookmarksopen, %% 2011/01/24!?
+ bookmarksopenlevel=2, %% 2011/01/23
+% pdfpagemode=UseNone,
+% pdfstartpage=10,
+% pdfstartview=FitH,
+ citebordercolor={ .6 1 .6},
+ filebordercolor={1 .6 1},
+ linkbordercolor={1 .9 .7},
+ urlbordercolor={ .7 1 1}, %% playing 2011/01/24
+ \else
+ draft
+ \fi
+]{hyperref}
+
+\RequirePackage{niceverb}[2011/01/24]
+\RequirePackage{readprov} %% 2010/12/08
+\RequirePackage{hypertoc} %% 2011/01/23
+\RequirePackage{texlinks} %% 2011/01/24
+\makeatletter
+ \@ifundefined{strong}
+ {\let\strong\textbf} %% 2011/01/24
+ {}
+ \@ifundefined{file}
+ {\let\file\texttt} %% 2011/05/23
+ {}
+\makeatother
+
+\errorcontextlines=4
+\pagestyle{headings}
+
+\endinput
+
diff --git a/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex b/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex
new file mode 100644
index 00000000000..5caae8e4bfb
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex
@@ -0,0 +1,6 @@
+\RequirePackage{myfilist}
+\ProvidesFile{srcfiles.tex}[2011/05/22 collect file infos]
+\EmptyFileList %%% [readprov.sty,myfilist.sty]
+\ReadPackageInfos{ifnextok}
+\ReadFileInfos{ifnextok,srcfiles,makedoc.cfg}
+\ListInfos[SRCFILEs.txt]