cgnieder/fnpct

\kfp command can lead to a linebreak

cgnieder opened this issue · 4 comments

Original report by Anonymous.


Using the \kfp command can lead to a linebreak between the character before the \kfp command and the footnote sign. See the following example (if you delete the \kfp command, the footnote number is on the same line as the « character):

#!latex

\documentclass{article}

\usepackage[
  paperwidth=.5\textwidth,
  paperheight=12\baselineskip,
  margin=5pt,
  bottom=1.5cm]{geometry}

\usepackage[T1]{fontenc}

\usepackage[latin1]{inputenc}

\usepackage{fnpct}

\begin{document}

\noindent »The three little pigs built their houses
out of straw\footnote{not to be confused with hay}, 
sticks\footnote{or lumber according to some sources} 
and also bricks.«\kfp\footnote{probably fired clay bricks;or 
something}

\end{document}

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Hi,

the same thing is true when you add the space manually, for example like this:

#!latex

«\hskip-.16em\footnote{ ... }

so this is not really surprising. I agree, though, that for the actual use-cases of \kfp it is both unexpected and unwanted. I'll fix this the next few days.

Regards

Original comment by Anonymous.


Clemens,

you are correct, the \hskip has the same effect as \kfp. But as you say, its not the expected behaviour of \kfp. Thus, I am happy that you will fix this issue.

BTW, thanks a lot for this terrific package. I have long been waiting for a package which has the facility to switch punctuation and footnotes, since in my field (history) both conventions are possible. But also the kerning correction is a highly appreciated feature. Well, I suppose I digress a bit …

Regards,

Dominik Waßenhoven.-

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Hi Dominik,

The issue is fixed with v0.2b (https://bitbucket.org/cgnieder/fnpct/changeset/c425cfc3f8fd). Upload to CTAN will follow soon.

Thanks very much. I'm glad this package actually is useful! I wrote it out of fun instead of need (unlike most of my other packages) so I wasn't really sure if there was any “real” purpose for it.

FWIW: this issue led me to a “real” bug: both the \kfp and the \kfc commands didn't recognize it when one changed the amount kerning when with »add-punct-marks« like for example:

#!latex

\setfnpct{add-punct-marks=.[-.04em][.12em]}

This is also fixed.

Best,
Clemens

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Removing version: 0.2b (automated comment)