summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/asciilist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-01 23:36:06 +0000
committerKarl Berry <karl@freefriends.org>2016-03-01 23:36:06 +0000
commit8dfefaf0b70d00685bc9b450a00f5015e7849497 (patch)
tree82ab4c3970b02fe03a975ed08e9e54fe1271c49b /Master/texmf-dist/source/latex/asciilist
parente7dd41895d83a8493af36e8684ff8371abb0c2c0 (diff)
asciilist (28feb16)
git-svn-id: svn://tug.org/texlive/trunk@39906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/asciilist')
-rw-r--r--Master/texmf-dist/source/latex/asciilist/asciilist.dtx105
-rw-r--r--Master/texmf-dist/source/latex/asciilist/asciilist.ins1
2 files changed, 22 insertions, 84 deletions
diff --git a/Master/texmf-dist/source/latex/asciilist/asciilist.dtx b/Master/texmf-dist/source/latex/asciilist/asciilist.dtx
index d149d65f71c..f0012cf4010 100644
--- a/Master/texmf-dist/source/latex/asciilist/asciilist.dtx
+++ b/Master/texmf-dist/source/latex/asciilist/asciilist.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2014-2015 by Richard Gay <gay@mais.informatik.tu-darmstadt.de>
+% Copyright (C) 2014-2016 by Richard Gay <gay@mais.informatik.tu-darmstadt.de>
% -------------------------------------------------------
%
% This file may be distributed and/or modified under the
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{asciilist}
%<*package>
- [2015/11/13 v2.0 Package for quickly creating nested lists]
+ [2016/02/23 v2.0a Package for quickly creating nested lists]
%</package>
%
%<*driver>
@@ -81,10 +81,13 @@
% \GetFileInfo{asciilist.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment,\def,\gdef,\edef}
-%
+%
%
% \title{The \textsf{asciilist} package\thanks{This document
-% corresponds to \textsf{asciilist}~\fileversion, dated \filedate.}}
+% corresponds to \textsf{asciilist}~\fileversion, dated \filedate.
+% The package is available online at
+% \url{http://www.ctan.org/pkg/asciilist} and
+% \url{https://github.com/Ri-Ga/asciilist}.}}
% \author{Richard Gay \\ \texttt{gay@mais.informatik.tu-darmstadt.de}}
%
% \maketitle
@@ -553,8 +556,9 @@
% \end{macrocode}
% Ensure that the scanning for an item char starts with the very first
% line of the environment.
+% \changes{v2.0a}{2016/02/23}{Improved first-line handling.}
% \begin{macrocode}
- \asclst@newline%
+ \asclst@ifnextnewline{}{\asclst@newline}%
}{%
% \end{macrocode}
% Ensure that all remaining open list environments are closed before
@@ -700,6 +704,17 @@
\fi\asclst@@do}%
% \end{macrocode}
% \end{macro}
+%
+% \begin{macro}{\asclst@ifnextnewline}
+% The |\asclst@ifnextnewline|\marg{iftrue}\marg{iffalse} macro checks
+% whether the next character is a newline. If the check succeeds, then
+% the macro expands to \meta{iftrue}. Otherwise, the macro expands to
+% \meta{iffalse}.
+% \begin{macrocode}
+ \gdef\asclst@ifnextnewline{\@ifnextchar^^M}
+% \end{macrocode}
+% \end{macro}
+%
% The following ends the group with active line break catcode.
% \begin{macrocode}
}
@@ -854,8 +869,9 @@
% \end{macrocode}
% Ensure that the scanning for an item char starts with the very first
% line of the environment.
+% \changes{v2.0a}{2016/02/23}{Improved first-line handling.}
% \begin{macrocode}
- \asclst@docnewline%
+ \asclst@ifnextnewline{}{\asclst@docnewline}%
}{%
% \end{macrocode}
% Ensure that all remaining open list environments are closed before the
@@ -1372,82 +1388,5 @@
%\iffalse
%</package>
%\fi
-%
-%\iffalse
-%<*readme>
-The asciilist package
-=====================
-
-Copyright (C) 2014-2015 Richard Gay
-
-Released under the LaTeX Project Public License 1.2 or later
-
-PURPOSE
--------
-
-This package provides the environments AsciiList and AsciiDocList, which
-enable quickly typesetting nested lists in LaTeX without having to type
-individual item macros or opening/closing list environments.
-The package provides auxiliary functionality for loading such lists from
-files and provides macros for configuring the use of the list
-environments and the appearance of the typeset results.
-
-
-INSTALLATION
-------------
-
-The `asciilist' package comes with (at least) the following files
- asciilist.ins
- asciilist.dtx
-and possibly also with
- Makefile
- README.txt
- asciilist.pdf
- asciilist.sty
-
-To install the `asciilist' package, you additionally need
- docstrip.tex
-
-To build the package (asciilist.sty), run one of the following
- latex asciilist.ins
- make package (needs Makefile)
-
-Put the resulting asciilist.sty somewhere where LaTeX can find it.
-Read the documentation of your LaTeX system to find out where this
-might be.
-
-DOCUMENTATION
--------------
-
-To build the documentation of the `asciilist' package, you additionally
-need
- ltxdoc.cls
- idxlayout.sty
- xcolor.sty
- showexpl.sty
- paralist.sty
- trimspaces.sty
- etoolbox.sty
- hypdoc.sty
- makeindex
- pdflatex
-
-To build the documentation (asciilist.pdf), either run
- make docs (needs Makefile)
-or the following sequence of commands
- pdflatex asciilist.dtx
- makeindex -s gind.ist -o asciilist.ind asciilist.idx
- makeindex -s gglo.ist -o asciilist.gls asciilist.glo
- pdflatex asciilist.dtx
- pdflatex asciilist.dtx
-
-To build the README (README.txt), run one of the following
- latex asciilist.ins
- make package (needs Makefile)
-
-
-Happy TeX'ing
-%</readme>
-%\fi
% \Finale
\endinput
diff --git a/Master/texmf-dist/source/latex/asciilist/asciilist.ins b/Master/texmf-dist/source/latex/asciilist/asciilist.ins
index 02c319aa382..2a3c5dd417a 100644
--- a/Master/texmf-dist/source/latex/asciilist/asciilist.ins
+++ b/Master/texmf-dist/source/latex/asciilist/asciilist.ins
@@ -34,7 +34,6 @@ and version 1.2 or later is part of all distributions of LaTeX version
\generate{\file{asciilist.sty}{\from{asciilist.dtx}{package}}}
\nopreamble\nopostamble
-\generate{\file{README.txt}{\from{asciilist.dtx}{readme}}}
\generate{\file{AsciiList.example}{\from{asciilist.dtx}{ALexample}}}
\generate{\file{AsciiDocList.example}{\from{asciilist.dtx}{ADLexample}}}