summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-30 00:14:37 +0000
committerKarl Berry <karl@freefriends.org>2012-08-30 00:14:37 +0000
commit41372d8ac796d1e2bb38706da4bbc87487a4acfd (patch)
tree4ce3a28efad6e970bb6d63fa42d9a030fc96bfe6
parent8231318d57cff4a8f9fcd70d387a3f00f4513428 (diff)
fnpct (28aug12)
git-svn-id: svn://tug.org/texlive/trunk@27551 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/fnpct/README4
-rw-r--r--Master/texmf-dist/doc/latex/fnpct/fnpct_en.pdfbin858829 -> 864716 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fnpct/fnpct_en.tex164
-rw-r--r--Master/texmf-dist/tex/latex/fnpct/fnpct.sty104
4 files changed, 147 insertions, 125 deletions
diff --git a/Master/texmf-dist/doc/latex/fnpct/README b/Master/texmf-dist/doc/latex/fnpct/README
index c84b019f4de..a04810fa820 100644
--- a/Master/texmf-dist/doc/latex/fnpct/README
+++ b/Master/texmf-dist/doc/latex/fnpct/README
@@ -1,9 +1,9 @@
--------------------------------------------------------------------------
-the FNPCT package v0.2e
+the FNPCT package v0.2f
footnote kerning
-2012/07/24
+2012/08/27
--------------------------------------------------------------------------
Clemens Niederberger
Web: https://bitbucket.org/cgnieder/fnpct/
diff --git a/Master/texmf-dist/doc/latex/fnpct/fnpct_en.pdf b/Master/texmf-dist/doc/latex/fnpct/fnpct_en.pdf
index a3361ff9733..ef9d893491c 100644
--- a/Master/texmf-dist/doc/latex/fnpct/fnpct_en.pdf
+++ b/Master/texmf-dist/doc/latex/fnpct/fnpct_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fnpct/fnpct_en.tex b/Master/texmf-dist/doc/latex/fnpct/fnpct_en.tex
index 3759393b79c..f32444f17af 100644
--- a/Master/texmf-dist/doc/latex/fnpct/fnpct_en.tex
+++ b/Master/texmf-dist/doc/latex/fnpct/fnpct_en.tex
@@ -67,6 +67,11 @@
\renewcommand*\partformat{%
\textcolor{main}{\partname~\thepart\autodot}}
+\KOMAoptions{captions=nooneline}
+\setcapindent{1.5em}
+\setkomafont{caption}{\normalfont\footnotesize\sffamily}
+\setkomafont{captionlabel}{\normalfont\footnotesize\sffamily\scshape}
+
\addcmds{
AdaptNote,
AdaptNoteMark,
@@ -247,19 +252,20 @@ provided.}}
\begin{document}
\section{License and Requirements}
-\fnpct is placed under the terms of the LaTeX Project Public License,
-version 1.3 or later (\url{http://www.latex-project.org/lppl.txt}).
-It has the status ``maintained.''
+Permission is granted to copy, distribute and/or modify this software under the
+terms of the \LaTeX\ Project Public License, version 1.3 or later
+(\url{http://www.latex-project.org/lppl.txt}). The package has the status
+``maintained.''
-\fnpct depends on the \paket*{l3kernel}, \paket*{xparse}, \paket*{l3keys2e} and
-\paket*{scrlfile}.
+\fnpct depends on the packages \paket*{l3kernel}, \paket*{xparse}, \paket*{l3keys2e}
+and \paket*{scrlfile}.
\section{What's it all about?}
\subsection{Introduction}
The purpose of this package is to offer kerning for footnote marks, \ie the
superscripts. This is not appropriate for all superscripts. Symbols must be
handled differently than numbers. And of course the amount depends on the chosen
-font. Robert Bringhurst says in ``\citetitle{bringhurst04}'':
+font. Robert Bringhurst says in \citetitle{bringhurst04}:
\begin{zitat}[\emph{\citetitle{bringhurst04}} \cite{bringhurst04}]
Superscripts frequently come at the ends of phrases or sentences. If they are
@@ -332,8 +338,8 @@ with \fnpct:\\
\end{minipage}\hfil
\begin{beschreibung}
- \option{punct-after}{\default{true}/false} when \code{true} the punctuation sign
- will be placed \emph{after} the footnote.
+ \option{punct-after}{\default{true}|false} when \code{true} the punctuation sign
+ will be placed \emph{after} the footnote. Default = \code{false}
\end{beschreibung}
Like all options it can also be set using the setup command.
\begin{beschreibung}
@@ -389,60 +395,69 @@ with the \cmd{setfnpct} command. Most of them are for adjusting the kerning.
\default{Underlined} values are set if the option is used without value.
\begin{beschreibung}
- \option{add-punct-marks}{<mark>[<space after>][<space before>]} add another punctuation
- mark for the position switching and spacify kerning if necessary. An existing entry
- will be overwritten. This option accepts list of marks.
+ \option{add-punct-marks}{<mark>[<space after>][<space before>]}
+ add another punctuation mark for the position switching and spacify kerning if
+ necessary. An existing entry will be overwritten. This option accepts a list of
+ marks.
%
- \option{remove-punct-marks}{<mark>} remove punctuation mark from the kerning/position
- switching behaviour. This option accepts a list of marks.
+ \option{remove-punct-marks}{<mark>}
+ remove punctuation mark from the kerning/position switching behaviour. This
+ option accepts a list of marks.
%
- \option{after-dot-space}{<dim>} space to be inserted after a footnote mark and
- before the full stop (``footnote \emph{after} dot''). A negative space
- will move the full stop further to the footnote mark. Default = \code{-.06em}
+ \option{after-dot-space}{<dim>}
+ space to be inserted after a footnote mark and before the full stop
+ (``footnote \emph{after} dot''). A negative space will move the full stop
+ further to the footnote mark. Default = \code{-.06em}
%
- \option{after-comma-space}{<dim>} space to be inserted after a footnote mark and
- before the comma (``footnote \emph{after} comma''). A negative space
- will move the comma further to the footnote mark. Default = \code{-.06em}
+ \option{after-comma-space}{<dim>}
+ space to be inserted after a footnote mark and before the comma
+ (``footnote \emph{after} comma''). A negative space will move the comma further
+ to the footnote mark. Default = \code{-.06em}
%
- \option{after-punct-space}{<dim>} set \emph{all} spaces, \ie also the ones for
- marks you've added with \key{add-punct-marks}.
+ \option{after-punct-space}{<dim>}
+ set \emph{all} spaces, \ie also the ones for marks you've added with
+ \key{add-punct-marks}.
%
- \option{punct-after}{\default{true}/false} when \code{true} the punctuation sign
- will be placed \emph{after} the footnote Default = \code{false}.
+ \option{punct-after}{\default{true}|false}
+ when \code{true} the punctuation sign will be placed \emph{after} the footnote.
+ Default = \code{false}.
%
- \option{before-dot-space}{<dim>} space to be inserted after a footnote mark and
- before the full stop (``footnote \emph{before} dot''), \ie with
- \key{punct-after}{true}. Default = \code{-.16em}
+ \option{before-dot-space}{<dim>}
+ space to be inserted after a footnote mark and before the full stop (``footnote
+ \emph{before} dot''), \ie with \key{punct-after}{true}. Default = \code{-.16em}
%
- \option{before-comma-space}{<dim>} space to be inserted after a footnote mark and
- before the comma (``footnote \emph{before} comma''), \ie with
- \key{punct-after}{true}. Default = \code{-.16em}
+ \option{before-comma-space}{<dim>}
+ space to be inserted after a footnote mark and before the comma (``footnote
+ \emph{before} comma''), \ie with \key{punct-after}{true}. Default = \code{-.16em}
%
- \option{before-punct-space}{<dim>} set \emph{all} spaces, \ie also the ones for
- marks you've added with \key{add-punct-marks}.
+ \option{before-punct-space}{<dim>}
+ set \emph{all} spaces, \ie also the ones for marks you've added with
+ \key{add-punct-marks}.
%
- \option{before-footnote-space}{<dim>} space to be inserted between a word and
- the following footnote mark. Default = \code{.06em}
+ \option{before-footnote-space}{<dim>}
+ space to be inserted between a word and the following footnote mark. Default =
+ \code{.06em}
%
- \option{dont-mess-around} sets all mentioned lengths to \code{0pt} and
- \key{punct-after}{true}. Basically this is as if you hadn't loaded \fnpct except
- the multiple footnote commands and \cmd{innernote} are still available, see
- sections~\ref{sec:multiple} and~\ref{sec:nested}, respectively.
+ \option{dont-mess-around}{\default{true}|false}
+ sets all mentioned lengths to \code{0pt} and \key{punct-after}{true}. Basically
+ this seems as if you hadn't loaded \fnpct except the multiple footnote commands
+ and \cmd{innernote} are still available, see sections~\ref{sec:multiple}
+ and~\ref{sec:nested}, respectively. Default = \code{false}
%
- \option{multiple}{\default{true}/false} lets \cmd{footnote} be equal to
- \cmd{multfootnote}. Default = \code{false}
+ \option{multiple}{\default{true}|false}
+ lets \cmd{footnote} be equal to \cmd{multfootnote}. Default = \code{false}
%
- \option{mult-fn-delim}{<delimiter>} sets the delimiter for the \cmd{multfootnote}
- command. Default = \code{;}
+ \option{mult-fn-delim}{<delimiter>}
+ sets the delimiter for the \cmd{multfootnote} command. Default = \code{;}
%
- \option{mult-fn-sep}{<separator>} sets the separator between multiple footnote
- marks. Default = \code{,}
+ \option{mult-fn-sep}{<separator>}
+ sets the separator between multiple footnote marks. Default = \code{,}
%
- \option{normal-marks}{\default{true}/false} sets the footnote marks in the foot
- not as superscripts but as normal font. If you're not using a \paket[koma-script]{KOMA-Script}
- class this option will load the package \paket*{scrextend}. See section~\ref{sec:normal}
- for more information. \emph{This option can only be set in the preamble}. Default
- = \code{false}
+ \option{normal-marks}{\default{true}|false}
+ sets the footnote marks in the foot not as superscripts but as normal font. If
+ you're not using a \paket[koma-script]{KOMA-Script} class this option will load
+ the package \paket*{scrextend}. See section~\ref{sec:normal} for more information.
+ \emph{This option can only be set in the preamble}. Default = \code{false}
\end{beschreibung}
So if you want to extend the punctuation switching and kerning to other punctuation
@@ -611,7 +626,7 @@ separator:
\subsection{Automagic}\secidx[automagic]{multiple footnotes}
If you want you can turn all footnotes into \cmd{multfootnote}s.
\begin{beschreibung}
- \option{multiple}{\default{true}/false} let \cmd{footnote} behave like \cmd{multfootnote}.
+ \option{multiple}{\default{true}|false} let \cmd{footnote} behave like \cmd{multfootnote}.
\emph{This option can only be set in the preamble}. Default = \code{false}
\end{beschreibung}
\begin{beispiel}
@@ -659,9 +674,10 @@ The output of the following code can be seen in figure~\ref{fig:nested:a}.
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{nested_ex_a.pdf}}
- \caption{\cmd{innernote} example (a)}\label{fig:nested:a}
+ \begin{captionbeside}{\cmd{innernote} example (a)}
+ \fbox{\includegraphics{nested_ex_a.pdf}}
+ \end{captionbeside}
+ \label{fig:nested:a}
\end{figure}
This is especially useful if you have more than one additional footnote inside a
@@ -688,9 +704,10 @@ the output of this code:
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{nested_ex_b.pdf}}
- \caption{\cmd{innernote} example (b)}\label{fig:nested:b}
+ \begin{captionbeside}{\cmd{innernote} example (b)}
+ \fbox{\includegraphics{nested_ex_b.pdf}}
+ \end{captionbeside}
+ \label{fig:nested:b}
\end{figure}
\cmd{innernote} can also be used to escape minipages. In this case use
@@ -724,9 +741,10 @@ See figure~\ref{fig:nested:c} for the output of the following code:
\end{document}
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{nested_ex_c.pdf}}
- \caption{\cmd{innernote} example (c)}\label{fig:nested:c}
+ \begin{captionbeside}{\cmd{innernote} example (c)}
+ \fbox{\includegraphics{nested_ex_c.pdf}}
+ \end{captionbeside}
+ \label{fig:nested:c}
\end{figure}
\secidx*{nested footnotes}
@@ -758,9 +776,9 @@ and bricks\footnote{probably fired clay bricks}.
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{normal_ex.pdf}}
- \caption{Demonstration of the \key{normal-marks} option.}
+ \begin{captionbeside}{Demonstration of the \key{normal-marks} option.}
+ \fbox{\includegraphics{normal_ex.pdf}}
+ \end{captionbeside}
\label{fig:normal}
\end{figure}
@@ -807,7 +825,7 @@ will turn all \cmd{footnote<class>} commands into the corresponding
\fnpct has an additional package option which \emph{cannot} be set with \cmd{setfnpct}
and only has any effects if \paket{bigfoot} has been loaded:
\begin{beschreibung}
- \option{bigfoot-default-top}{\default{true}/false} sets the \code{default} footnote
+ \option{bigfoot-default-top}{\default{true}|false} sets the \code{default} footnote
class as top layer. Default = \code{false}
\end{beschreibung}
@@ -838,9 +856,9 @@ lumber according to some sources} and bricks%
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{bigfoot_ex.pdf}}
- \caption{\paket*{bigfoot} example}
+ \begin{captionbeside}{\paket*{bigfoot} example}
+ \fbox{\includegraphics{bigfoot_ex.pdf}}
+ \end{captionbeside}
\label{fig:bigfoot}
\end{figure}
@@ -920,9 +938,9 @@ bricks}.
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics{fixfoot_ex.pdf}}
- \caption{\paket*{fixfoot} example}
+ \begin{captionbeside}{\paket*{fixfoot} example}
+ \fbox{\includegraphics{fixfoot_ex.pdf}}
+ \end{captionbeside}
\label{fig:fixfoot}
\end{figure}
@@ -1062,8 +1080,8 @@ afterwards. This can result in dummy arguments or an overwritten \code{*} argume
\Befehl{AdaptNoteMark}{\cmd{cs}} \cnpkgdocarrow\ this lets \cmd{cs} adapt to the
kerning behaviour and adds an optional \code{*}. Required syntax: \cmd{cs}[<oarg>]
% strict
- \option{strict}{\default{true}/false} when \code{true} \cmd{AdaptNote} (and the
- other two) will issue errors if the note command in question has already been
+ \option{strict}{\default{true}|false} when \code{true} \cmd{AdaptNote} (and the
+ others) will issue errors if the note command in question has already been
adapted. Default = \code{false}
\end{beschreibung}
@@ -1081,9 +1099,9 @@ text in a sidenote.;A second sidenote.}.
\end{beispiel}
\begin{figure}[h]
- \centering
- \fbox{\includegraphics[trim=2.5cm 24.5cm 2cm 1cm,scale=.75]{tufte_ex.pdf}}
- \caption{Adapt {tufte-latex}.}
+ \begin{captionbeside}{Adapt {tufte-latex}.}
+ \fbox{\includegraphics[trim=2.5cm 24.5cm 2cm 1cm,scale=.65]{tufte_ex.pdf}}
+ \end{captionbeside}
\label{fig:tufte}
\end{figure}
diff --git a/Master/texmf-dist/tex/latex/fnpct/fnpct.sty b/Master/texmf-dist/tex/latex/fnpct/fnpct.sty
index 4db1e4d3518..0099729df06 100644
--- a/Master/texmf-dist/tex/latex/fnpct/fnpct.sty
+++ b/Master/texmf-dist/tex/latex/fnpct/fnpct.sty
@@ -31,8 +31,8 @@
\RequirePackage { xparse , l3keys2e , scrlfile }
\ProvidesExplPackage
{fnpct}
- {2012/07/24}
- {0.2e}
+ {2012/08/27}
+ {0.2f}
{footnote kerning}
% --------------------------------------------------------------------------
@@ -68,6 +68,13 @@
{ #2 }
}
+% scratch variables:
+\tl_new:N \l_fnpct_tmpa_tl
+\tl_new:N \l_fnpct_tmpb_tl
+\dim_new:N \l_fnpct_tmpa_dim
+\dim_new:N \l_fnpct_tmpb_dim
+\int_new:N \l_fnpct_tmpa_int
+
% rigid lengths:
\dim_new:N \l_fnpct_after_comma_dim
\dim_set:Nn \l_fnpct_after_comma_dim { -.06em }
@@ -137,7 +144,7 @@
\tl_put_right:Nn \l_fnpct_punctuation_marks_tl { ##1 }
\prop_put:Nnn \l_fnpct_punctuation_marks_after_prop { ##1 } { 0pt }
\prop_put:Nnn \l_fnpct_punctuation_marks_before_prop { ##1 } { 0pt }
- \tl_set:Nx \l_fnpct_last_punct_mark_tl { ##1 }
+ \tl_set:No \l_fnpct_last_punct_mark_tl { ##1 }
}
}
{
@@ -154,14 +161,14 @@
\tl_put_right:Nn \l_fnpct_punctuation_marks_tl { #1 }
\prop_put:Nnn \l_fnpct_punctuation_marks_after_prop { #1 } { #2 }
\prop_put:Nnn \l_fnpct_punctuation_marks_before_prop { #1 } { 0pt }
- \tl_set:Nx \l_fnpct_last_punct_mark_tl { #1 }
+ \tl_set:No \l_fnpct_last_punct_mark_tl { #1 }
}
{
- \int_zero:N \l_tmpa_int
+ \int_zero:N \l_fnpct_tmpa_int
\tl_map_inline:nn { #1 }
{
\tl_put_right:Nn \l_fnpct_punctuation_marks_tl { ##1 }
- \int_compare:nTF { \l_tmpa_int < ( \tl_count:n { #1 } - 1 ) }
+ \int_compare:nTF { \l_fnpct_tmpa_int < ( \tl_count:n { #1 } - 1 ) }
{
\prop_put:Nnn \l_fnpct_punctuation_marks_after_prop { ##1 } { 0pt }
\prop_put:Nnn \l_fnpct_punctuation_marks_before_prop { ##1 } { 0pt }
@@ -170,8 +177,8 @@
\prop_put:Nnn \l_fnpct_punctuation_marks_after_prop { ##1 } { #2 }
\prop_put:Nnn \l_fnpct_punctuation_marks_before_prop { ##1 } { 0pt }
}
- \tl_set:Nx \l_fnpct_last_punct_mark_tl { ##1 }
- \int_incr:N \l_tmpa_int
+ \tl_set:No \l_fnpct_last_punct_mark_tl { ##1 }
+ \int_incr:N \l_fnpct_tmpa_int
}
}
}
@@ -181,9 +188,9 @@
{
\quark_if_no_value:nF { #3 }
{
- \tl_set:Nn \l_tmpa_tl { #3 }
- \tl_remove_all:Nn \l_tmpa_tl { [\q_no_value]\q_no_value }
- \fnpct_add_punctuation:V \l_tmpa_tl
+ \tl_set:Nn \l_fnpct_tmpa_tl { #3 }
+ \tl_remove_all:Nn \l_fnpct_tmpa_tl { [\q_no_value]\q_no_value }
+ \fnpct_add_punctuation:V \l_fnpct_tmpa_tl
}
}
}
@@ -271,21 +278,21 @@
{ #2 }
{
\fnpct_check_punctuation_auxii:nnn { #1 }
- { \fnpct_check_punctuation_auxi:VTF \l_tmpa_int { #2 } { #3 } }
+ { \fnpct_check_punctuation_auxi:VTF \l_fnpct_tmpa_int { #2 } { #3 } }
{ #3 }
}
}
\cs_new:Npn \fnpct_check_punctuation_auxii:nnn #1#2#3
{
- \int_set:Nn \l_tmpa_int { #1 }
- \int_incr:N \l_tmpa_int
- \tl_set:Nx \l_tmpb_tl { \int_to_arabic:n { \l_tmpa_int } }
+ \int_set:Nn \l_fnpct_tmpa_int { #1 }
+ \int_incr:N \l_fnpct_tmpa_int
+ \tl_set:Nx \l_fnpct_tmpb_tl { \int_to_arabic:n { \l_fnpct_tmpa_int } }
\tl_remove_all:NV \l_fnpct_punctuation_marks_tl
\l_fnpct_current_punct_mark_tl
\tl_put_right:NV \l_fnpct_punctuation_marks_tl
\l_fnpct_current_punct_mark_tl
- \int_compare:nTF { \l_tmpa_int < \tl_count:V \l_fnpct_punctuation_marks_tl }
+ \int_compare:nTF { \l_fnpct_tmpa_int < \tl_count:V \l_fnpct_punctuation_marks_tl }
{ #2 }
{ #3 }
}
@@ -295,7 +302,11 @@
\cs_generate_variant:Nn \tl_put_right:Nn { NV }
\cs_new:Npn \fnpct_get_head:NN #1#2
- { \exp_after:wN \fnpct_get_head_aux:Nw \exp_after:wN #1#2 \q_stop }
+ {
+ \tl_if_blank:VTF #2
+ { \tl_set:Nn #1 { #2 } }
+ { \exp_after:wN \fnpct_get_head_aux:Nw \exp_after:wN #1#2 \q_stop }
+ }
\cs_new:Npn \fnpct_get_head_aux:Nw #1#2#3 \q_stop
{ \tl_set:Nn #1 { #2 } }
@@ -314,9 +325,9 @@
{
\prop_map_inline:Nn \g_fnpct_adapted_notes_prop
{
- \prop_get:NnN \g_fnpct_adapted_notes_prop { ##1 } \l_tmpb_tl
+ \prop_get:NnN \g_fnpct_adapted_notes_prop { ##1 } \l_fnpct_tmpb_tl
\exp_after:wN
- \token_if_eq_meaning:NNTF \l_tmpb_tl \l_peek_token
+ \token_if_eq_meaning:NNTF \l_fnpct_tmpb_tl \l_peek_token
{
\bool_set_true:N \l_fnpct_multiple_footnotes_bool
\prop_map_break:
@@ -342,15 +353,7 @@
}
\cs_new:Npn \fnpct_punct_if_after:T #1
- {
- \bool_if:nT
- {
- \bool_xor_p:nn
- { \l_fnpct_punct_after_bool }
- { \l_fnpct_reverse_switch_bool }
- }
- { #1 }
- }
+ { \fnpct_punct_if_after:TF { #1 } {} }
% this is where the magic happens:
% #1: original command
@@ -377,16 +380,16 @@
\tl_use:N \l_fnpct_current_punct_mark_tl
\fnpct_no_break:
\prop_get:NVNT \l_fnpct_punctuation_marks_after_prop
- \l_fnpct_current_punct_mark_tl \l_tmpa_dim
- { \skip_horizontal:N \l_tmpa_dim }
+ \l_fnpct_current_punct_mark_tl \l_fnpct_tmpa_dim
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
}
\fnpct_write_note:Nnnn #1 { #2 } { #3 } { #4 }
\fnpct_write_inner:N #1
\fnpct_punct_if_after:T
{
\prop_get:NVNT \l_fnpct_punctuation_marks_before_prop
- \l_fnpct_current_punct_mark_tl \l_tmpa_dim
- { \skip_horizontal:N \l_tmpa_dim }
+ \l_fnpct_current_punct_mark_tl \l_fnpct_tmpa_dim
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
\fnpct_no_break:
\tl_use:N \l_fnpct_current_punct_mark_tl
}
@@ -446,15 +449,15 @@
\tl_use:N \l_fnpct_current_punct_mark_tl
\fnpct_no_break:
\prop_get:NVNT \l_fnpct_punctuation_marks_after_prop
- \l_fnpct_current_punct_mark_tl \l_tmpa_dim
- { \skip_horizontal:N \l_tmpa_dim }
+ \l_fnpct_current_punct_mark_tl \l_fnpct_tmpa_dim
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
}
\fnpct_write_notes:N #1
\fnpct_punct_if_after:T
{
\prop_get:NVNT \l_fnpct_punctuation_marks_before_prop
- \l_fnpct_current_punct_mark_tl \l_tmpa_dim
- { \skip_horizontal:N \l_tmpa_dim }
+ \l_fnpct_current_punct_mark_tl \l_fnpct_tmpa_dim
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
\fnpct_no_break:
\tl_use:N \l_fnpct_current_punct_mark_tl
}
@@ -484,11 +487,11 @@
% #1: original note command
\cs_new_protected:Npn \fnpct_write_notes:N #1
{
- \int_zero:N \l_tmpa_int
+ \int_zero:N \l_fnpct_tmpa_int
\seq_map_inline:Nn \l_fnpct_multiple_footnotes_seq
{
\fnpct_read_note_with_option:w ##1 \q_stop { #1 }
- \int_incr:N \l_tmpa_int
+ \int_incr:N \l_fnpct_tmpa_int
}
}
@@ -504,10 +507,10 @@
{
\bool_if:nT
{
- \int_compare_p:n { \l_tmpa_int > 0 }
+ \int_compare_p:n { \l_fnpct_tmpa_int > 0 }
&&
\int_compare_p:n
- { \l_tmpa_int < \seq_count:N \l_fnpct_multiple_footnotes_seq }
+ { \l_fnpct_tmpa_int < \seq_count:N \l_fnpct_multiple_footnotes_seq }
}
{
\IfBooleanTF { #1 }
@@ -572,9 +575,9 @@
\bool_if:NT \l_fnpct_hyperref_bool
{
\prop_get:NnN \g_fnpct_inner_footnote_hyperref_prop
- { ##1 } \l_tmpa_tl
+ { ##1 } \l_fnpct_tmpa_tl
\Hy@raisedlink
- { \exp_args:No \hyper@@anchor { \l_tmpa_tl } }
+ { \exp_args:No \hyper@@anchor { \l_fnpct_tmpa_tl } }
}
##2
}
@@ -593,20 +596,20 @@
\cs_new:Npn \kfp
{
\fnpct_no_break:
- \prop_get:NnN \l_fnpct_punctuation_marks_before_prop { . } \l_tmpa_dim
- \prop_get:NnN \l_fnpct_punctuation_marks_after_prop { . } \l_tmpb_dim
+ \prop_get:NnN \l_fnpct_punctuation_marks_before_prop { . } \l_fnpct_tmpa_dim
+ \prop_get:NnN \l_fnpct_punctuation_marks_after_prop { . } \l_fnpct_tmpb_dim
\bool_if:NTF \l_fnpct_punct_after_bool
- { \skip_horizontal:N \l_tmpa_dim }
- { \skip_horizontal:N \l_tmpb_dim }
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
+ { \skip_horizontal:N \l_fnpct_tmpb_dim }
}
\cs_new:Npn \kfc
{
\fnpct_no_break:
- \prop_get:NnN \l_fnpct_punctuation_marks_before_prop { , } \l_tmpa_dim
- \prop_get:NnN \l_fnpct_punctuation_marks_after_prop { , } \l_tmpb_dim
+ \prop_get:NnN \l_fnpct_punctuation_marks_before_prop { , } \l_fnpct_tmpa_dim
+ \prop_get:NnN \l_fnpct_punctuation_marks_after_prop { , } \l_fnpct_tmpb_dim
\bool_if:NTF \l_fnpct_punct_after_bool
- { \skip_horizontal:N \l_tmpa_dim }
- { \skip_horizontal:N \l_tmpb_dim }
+ { \skip_horizontal:N \l_fnpct_tmpa_dim }
+ { \skip_horizontal:N \l_fnpct_tmpb_dim }
}
% --------------------------------------------------------------------------
@@ -987,6 +990,7 @@
\l_fnpct_multiple_footnote_separator_tl
2012/07/24 v0.2e - improved scanning ahead for punctuation marks, adapted
to deprecated functions in l3kernel and l3packages
+2012/08/27 v0.2f - switched to internal scratch variables
% --------------------------------------------------------------------------
% NOTES: