(I’m using the microtype package.)
I wanted to justify the last line of a footnote because it was very close to be full. Here is what it looked like:
The first two lines are from the same footnote, the third is from the following one.
- I tried
\linebreak, which justified it the way I wanted but created a blank line in between my two footnotes:
- Then, I used
\setlength{\parfillskip}{0pt plus\dimexpr\textwidth-2\parindent}instead, found in this answer. It does justify the line, and without adding a blank line; but it works as if themicrotypepackage wasn’t loaded, i.e. without exdentation, in that case:
While this is better, it clashes with how justification is done in the rest of the document.
Does anyone know a way to get the same justification as 1. but without the blank line? (Like in 2.)
MWE (compiled with LuaLaTeX):
\documentclass{article}
\usepackage{microtype}
\begin{document}
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} dolor sit amet, consectetur adipiscing elit. % 1) last line not full
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.\linebreak} dolor sit amet, consectetur adipiscing elit. % 2) last line full in microtype style but followed by a blank line
Lorem ipsum\footnote{{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} \setlength{\parfillskip}{0pt plus\dimexpr\textwidth-2\parindent}} dolor sit amet, consectetur adipiscing elit. % 3) last line full but not in microtype style
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} dolor sit amet, consectetur adipiscing elit. % 4) same as 1), to show there is no blank line after 3)
\end{document}



\documentclass...to\end{document}that we could compile that shows your problem. – Peter Wilson Dec 01 '22 at 19:43\linebreak). Did you try it with my MWE? – SpleenRain Dec 02 '22 at 22:42\parfillskip0pt Sed...at the beginning of the footnote (since it's already scoped), but this matches your no.3. The microtype adjustment doesn't take effect on the last line. Burying the final period with\rlap{.}gets closer, but overshoots by a tiny amount. I think it's necessary to know how microtype works, but I don't. – barbara beeton Dec 03 '22 at 00:42