4

It seems like \linegoal isn't working correctly with LuaTeX:

LuaTeX output

With pdfTeX the output is fine:

pdfTeX output

Is there a way get \linegoal working with lualatex? Or is there an alternative?

MWE:

% !TeX TS-program = lualatex
\documentclass[twocolumn]{article}

\usepackage{linegoal}

\usepackage{blindtext}

\begin{document}
    Hello \fbox{\parbox{\linegoal}{World}}

    \blindtext[5]
\end{document}
5

Pkg linegoal needs an update. This fixes the issue for luatex:

\let\pdfsavepos\savepos
\let\pdflastxpos\lastxpos
\let\pdflastypos\lastypos

\documentclass[twocolumn]{article}

\usepackage{linegoal}

\usepackage{blindtext}

\begin{document}
    Hello \fbox{\parbox{\linegoal}{World}}

    \blindtext[5]
\end{document}
2
  • 1
    You could \RequirePackage{luatex85} – Joseph Wright Jan 23 '20 at 13:52
  • @JosephWright Yes, of course. Just wanted to point out the specific items in linegoal that need to be fixed. – AlexG Jan 23 '20 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.