summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-03 13:05:10 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-03 13:05:10 +0000
commitb92cdcac0a3665ba9f12d18a70d1879f1563560d (patch)
treed4887aed4f74032db69b03a7ea381825e57b6f60 /Master/texmf-dist/source
parentf53d41771bd380e3a5c63ff43cc0350764e62b13 (diff)
ifnextok v0.3
git-svn-id: svn://tug.org/texlive/trunk@23379 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/ifnextok.tex58
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/makedoc.cfg2
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/srcfiles.tex6
-rw-r--r--Master/texmf-dist/source/latex/ifnextok/testIfNT.tex16
4 files changed, 65 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex b/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex
index 716c2473430..5efcc81391c 100644
--- a/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex
+++ b/Master/texmf-dist/source/latex/ifnextok/ifnextok.tex
@@ -1,7 +1,9 @@
-\ProvidesFile{ifnextok.tex}[2011/05/23 documenting ifnextok.sty (UL)]
+\ProvidesFile{ifnextok.tex}[2011/06/26 documenting ifnextok.sty (UL)]
\title{\textsf{\huge ifnextok}\\---\\\cs{IfNextToken}
+% \MakeNotSkipping\\{\\\relax}%
instead of \cs{@ifnextchar}\\Does Not Skip Blank
- Spaces\thanks{This document describes version
+ Spaces,\\ [\,and \qtd{\texttt{\string\\ [}} may print bracket in\\
+ new line\,]\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{}
@@ -10,9 +12,18 @@
\documentclass{article}%% TODO paper dimensions!?
\input{makedoc.cfg} %% shared formatting settings
\usepackage{color}
-\usepackage[all]{ifnextok}
+% \ReadPackageInfos{ifnextok} %% 2011/06/26
+\usepackage[stdbreaks]{ifnextok} %% 2011/05/27
+% \usepackage{ifnextok} %% 2011/05/31
+\newcommand*{\secref}[1]{Section~\ref{sec:#1}} %% 2011/05/30
+\newcommand*{\meta}{\textit} %% 2011/06/14
+% \MakeActive\" \def"#1"{``#1''} %% 2011/06/25
+%% <- bad with examples!? TODO
+% \usepackage{german} \mdqoff %% 2011/05/31
+% \tracingmacros=1 \tracingonline=1
+% \IfNextSpace{\show\\}{\show\/}
\makeatletter
- \@beginparpenalty\@lowpenalty
+% \@beginparpenalty\@lowpenalty
% \show\@xnewline
% \tracingmacros=1 \tracingonline=1
% \NoNewlineSkipping
@@ -23,30 +34,42 @@
\makeatother
\sloppy
\begin{document}
+% \MakeNotSkipping\\{\\\relax}
\maketitle
\begin{abstract} %%% \noindent
+% \MakeNotSkipping\\{\\\relax}
+% \mdqon \MakeNotSkipping"{\rq\rq} (``Uwe L"uck" )
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
+ `\\' when %% v0.1a: was `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.\\
+ behavior, maybe limited to certain parts of the document source.\\
[It works!]
It may also be useful with active characters in lieu of `\\',
+% \mdqon
e.g., the double quote `"' with \ctanpkgref{german}`.sty'
or \ctanpkgref{babel}.
+
+ v0.3 fixes behavior in non-typesetting mode with
+ `\MakeNotSkipping', using a somewhat different technique
+ than \LaTeX's robustifications.
+% `\DeclareRobustCommand'.
\par\smallskip\noindent
\strong{Keywords:}\quad
macro programming, optional command arguments,
- manual line breaks
+ manual line breaks, humanities
+ \par\smallskip\noindent
+\strong{Related packages:}\quad \ctanpkgref{amsmath},
+ \ctanpkgref{mathtools}
\end{abstract}
+ \newpage %% 2011/06/26
\tableofcontents
-% \newpage
+ \newpage %% 2011/06/26
\section{Installing and Calling}
The package file `ifnextok.sty' is provided ready,
installation only requires putting it somewhere where \TeX\ finds it
@@ -57,13 +80,20 @@ 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}.
+in Section~\ref{sec:options}. E.g., the \emph{main goal} of
+writing the package is achieved by
+\[`\usepackage[stdbreaks]{ifnextok}'\]
-\section{The Package File}
-\subsection{Header (Legalize)}
+% \section{The Package File}
+\section{Header (Legalize)}
\input{ifnextok.doc}
\end{document}
VERSION HISTORY
-2011/05/22 very first
+2011/05/22f. very first
+2011/05/27 mentioning [stdbreaks] for v0.11
+2011/05/30 testing \MakeNotSkipping
+2011/06/02 for v0.21: "related packages"
+2011/06/26 for v0.3: mentioning \MakeNotSkipping, \newpage,
+ different sectioning
diff --git a/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg b/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg
index d74c564b879..b1d9cb4bb16 100644
--- a/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg
+++ b/Master/texmf-dist/source/latex/ifnextok/makedoc.cfg
@@ -1,4 +1,4 @@
-\ProvidesFile{makedoc.cfg}[2011/05/23 documentation settings]
+\ProvidesFile{makedoc.cfg}[2011/06/27 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}}
diff --git a/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex b/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex
index 5caae8e4bfb..e7f6f89d512 100644
--- a/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex
+++ b/Master/texmf-dist/source/latex/ifnextok/srcfiles.tex
@@ -1,6 +1,8 @@
\RequirePackage{myfilist}
-\ProvidesFile{srcfiles.tex}[2011/05/22 collect file infos]
+\ProvidesFile{srcfiles.tex}[2011/06/27 collect file infos]
\EmptyFileList %%% [readprov.sty,myfilist.sty]
\ReadPackageInfos{ifnextok}
-\ReadFileInfos{ifnextok,srcfiles,makedoc.cfg}
+\ReadFileInfos{ifnextok,testIfNT,srcfiles}
+\ReadPackageInfos{niceverb}
+\ReadFileInfos{makedoc.cfg}
\ListInfos[SRCFILEs.txt]
diff --git a/Master/texmf-dist/source/latex/ifnextok/testIfNT.tex b/Master/texmf-dist/source/latex/ifnextok/testIfNT.tex
new file mode 100644
index 00000000000..34db8216008
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifnextok/testIfNT.tex
@@ -0,0 +1,16 @@
+\ProvidesFile{testIfNT.tex}[2011/06/27 test ifnextok.sty]
+\RequirePackage{ifnextok}
+\makeatletter
+ \providecommand\StripEsc{\expandafter\@gobble\string}
+\makeatother
+\catcode`\"\active \edef"{q}
+\MakeNotSkipping{"}{\StripEsc\"}
+\documentclass{article}
+\begin{document}
+\tableofcontents
+\section{"a" b}
+\thispagestyle{headings}
+\markboth{}{"a" b}
+"a" b
+\typeout{"a" b}
+\end{document}