summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-16 20:24:43 +0000
committerKarl Berry <karl@freefriends.org>2022-04-16 20:24:43 +0000
commit7d72ead6b8682a0bbc5147d57d3d26c35cf816c2 (patch)
tree7c6e7233b3cb5bdec23b8eb012b558b9f89bc423 /Master/texmf-dist/doc/lualatex
parent27c9dc6aece409690e3c020b4882dfee978205f8 (diff)
autopuncitems (16apr22)
git-svn-id: svn://tug.org/texlive/trunk@63045 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex')
-rw-r--r--Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.pdfbin38603 -> 42099 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.tex55
2 files changed, 44 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.pdf b/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.pdf
index c377b41f50e..29b5f6d6276 100644
--- a/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.pdf
+++ b/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.tex b/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.tex
index e30c85e26fb..89552c0db5d 100644
--- a/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.tex
+++ b/Master/texmf-dist/doc/lualatex/autopuncitems/autopuncitems.tex
@@ -1,5 +1,5 @@
% Kale Ewasiuk (kalekje@gmail.com)
-% 2022-01-30
+% 2022-04-16
% Copyright (C) 2021-2022 Kale Ewasiuk
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -208,24 +208,36 @@ If you disable auto-pass nested lists, and don't use \cmd{\APpass}, here is what
\end{itemize}
\end{LTXexample}
-You may want to use the \cmd{AutoPuncItems} environment outside a list environment instead,
-say perhaps if you're using the \cmd{beamer}.
-Note that nested lists are normally not punctuated, and since the first-level list is inside the environment, it's considered nested.
-If you would like to disable the prevention of auto-punctuating all nested lists, use the \cmd{\disableAPprotectnest}.
-Note that nested lists will cause an error to occur.
-
+\subsection{Expanding list contents}
\begin{LTXexample}
-\disableAPprotectnest
-\begin{AutoPuncItems}
-\begin{itemize}
+\def\listexample{
\item one
\item two
\item three
\item four
+}
+--will work fine (expand once)
+\begin{itemize}[autopuncO]
+ \listexample
\end{itemize}
-\end{AutoPuncItems}
+
+--will throw error
+ (author to fix this)
+%\begin{itemize}[autopuncE]
+% \listexample
+%\end{itemize}
+
+--does not give desired result
+ (no items found)
+\begin{itemize}[autopunc]
+ \listexample
+\end{itemize}
+
\end{LTXexample}
+
+\subsection{Using the environment}
+
The normal way to use the environment should be inside the first list, like so.
\begin{LTXexample}
@@ -240,6 +252,27 @@ The normal way to use the environment should be inside the first list, like so.
\end{itemize}
\end{LTXexample}
+You may want to use the \cmd{AutoPuncItems} environment outside a list environment instead,
+say perhaps if you're using the \cmd{beamer}.
+Note that nested lists are normally not punctuated, and since the first-level list is inside the environment, it's considered nested.
+If you would like to disable the prevention of auto-punctuating all nested lists, use the \cmd{\disableAPprotectnest}.
+Note that nested lists will cause an error to occur.
+
+\begin{LTXexample}
+\disableAPprotectnest
+\begin{AutoPuncItems}
+\begin{itemize}
+ \item one
+ \item two
+ \item three
+ \item four
+\end{itemize}
+\end{AutoPuncItems}
+\end{LTXexample}
+
+
+
+
\end{document}