Skip to content

Commit

Permalink
fix problem with doubly inserted horizontal space
Browse files Browse the repository at this point in the history
  • Loading branch information
cgnieder committed Jan 29, 2022
1 parent 1b1218b commit 5094a53
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
--------------------------------------------------------------------------
the FNPCT package v1.0a 2022/01/04
the FNPCT package v1.0b 2022/01/29

footnote kerning
footnotes' interaction with punctuation

--------------------------------------------------------------------------
Clemens Niederberger
Web: https://github.com/cgnieder/fnpct/
E-Mail: [email protected]
E-Mail: [email protected]
--------------------------------------------------------------------------
Copyright 2012--2022 Clemens Niederberger

Expand Down
8 changes: 4 additions & 4 deletions fnpct-manual.cls
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
% --------------------------------------------------------------------------
% the FNPCT package
%
% footnote kerning
% footnotes' interaction with punctuation
%
% --------------------------------------------------------------------------
% Clemens Niederberger
% Web: https://github.com/cgnieder/fnpct/
% E-Mail: [email protected]
% E-Mail: [email protected]
% --------------------------------------------------------------------------
% Copyright 2012--2022 Clemens Niederberger
%
Expand All @@ -30,9 +30,9 @@

\setcnltx{
package = {fnpct} ,
info = {Footnote kerning and multiple footnotes} ,
info = {footnotes' interaction with punctuation} ,
authors = Clemens Niederberger ,
email = [email protected] ,
email = [email protected] ,
url = https://github.com/cgnieder/fnpct/ ,
abstract = {%
The \fnpct\ package basically does two things to footnotes: if footnote
Expand Down
Binary file modified fnpct-manual.pdf
Binary file not shown.
7 changes: 3 additions & 4 deletions fnpct-manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
% --------------------------------------------------------------------------
% the FNPCT package
%
% footnote kerning
% footnotes' interaction with punctuation
%
% --------------------------------------------------------------------------
% Clemens Niederberger
% Web: https://github.com/cgnieder/fnpct/
% E-Mail: [email protected]
% E-Mail: [email protected]
% --------------------------------------------------------------------------
% Copyright 2012--2022 Clemens Niederberger
%
Expand Down Expand Up @@ -609,7 +609,6 @@ \subsection{biblatex's \cs*{footcite}}\label{sec:biblatex}

\end{document}
TODO:
- memoir, \mutfootsep
- memoir, \multfootsep
- \thanks
- French
- nested notes and \AdaptText\footnotetext{om}{\IfNoValueTF{#1}{#NOTE{#2}}{#NOTE[#1]{#2}}}
23 changes: 7 additions & 16 deletions fnpct.sty
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
% --------------------------------------------------------------------------
% the FNPCT package
%
% footnote kerning
% footnotes' interaction with punctuation
%
% --------------------------------------------------------------------------
% Clemens Niederberger
% Web: https://github.com/cgnieder/fnpct/
% E-Mail: [email protected]
% E-Mail: [email protected]
% --------------------------------------------------------------------------
% Copyright 2012--2022 Clemens Niederberger
%
Expand All @@ -27,10 +27,10 @@

\DeclareHookRule {begindocument} {fnpct} {after} {hyperref}

\tl_const:Nn \c_fnpct_date_tl {2022/01/04}
\tl_const:Nn \c_fnpct_date_tl {2022/01/29}
\tl_const:Nn \c_fnpct_version_major_number_tl {1}
\tl_const:Nn \c_fnpct_version_minor_number_tl {0}
\tl_const:Nn \c_fnpct_version_subrelease_tl {a}
\tl_const:Nn \c_fnpct_version_subrelease_tl {b}
\tl_const:Nx \c_fnpct_version_number_tl
{
\c_fnpct_version_major_number_tl .
Expand All @@ -41,7 +41,7 @@
\c_fnpct_version_number_tl
\c_fnpct_version_subrelease_tl
}
\tl_const:Nn \c_fnpct_info_tl {footnote~ kerning}
\tl_const:Nn \c_fnpct_info_tl {footnotes'~ interaction~ with~ punctuation}

\ProvidesExplPackage
{fnpct}
Expand Down Expand Up @@ -748,17 +748,7 @@
\fnpct_if_switched:T
{
\fnpct_if_class:nT {punctuation}
{
\bool_set_false:N \l__fnpct_collection_bool
\fnpct_foreach_action:nn {punctuation}
{
\fnpct_if_action:nT {##1}
{
\fnpct_skip_nobreak:c {l__fnpct_before_##1_dim}
\fnpct_action_break:
}
}
}
{ \bool_set_false:N \l__fnpct_collection_bool }
\bool_set_false:N \l__fnpct_end_collection_bool
\bool_set_false:N \l__fnpct_switched_bool
}
Expand Down Expand Up @@ -1405,3 +1395,4 @@ tablefootnote
* drop support of \innernote (maybe re-implement it in
future versions, depending on user feedback)
2022/01/04 v1.0a - correct file hooks
2022/01/29 v1.0b - remove erroneously inserted horizontal skip

0 comments on commit 5094a53

Please sign in to comment.