Menu

#28 \recalctypearea looses text when used in twocolum mode

KOMA-Script 3.37
closed
2022-06-09
2022-06-09
U_Fischer
No

The following document creates three pages and misses the last column (ending with ZZZ). Using \clearpage before \recalctypearea gives the expected result of four pages. Extending the text so that the last page has already started the second column works too.

\documentclass[DIV=14]{scrartcl}
\usepackage{lipsum}

\begin{document}
\twocolumn
\lipsum[1][1-4]\lipsum\lipsum[1-3]\lipsum* ZZZZ 

%\clearpage

\recalctypearea
xxx
\end{document}

Discussion

  • Markus Kohm

    Markus Kohm - 2022-06-09
    • labels: --> typearea, bug
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -The following document creates three pages and misses the last column (ending with ZZZ). Using clearpage before \recalctypearea gives the expected result of four pages.  Extending the text so that the last page has already started the second  column works too. 
    +The following document creates three pages and misses the last column (ending with ZZZ). Using `\clearpage` before `\recalctypearea` gives the expected result of four pages.  Extending the text so that the last page has already started the second  column works too. 
    
     ~~~~
     \documentclass[DIV=14]{scrartcl}
    
    • assigned_to: Markus Kohm
     
  • Markus Kohm

    Markus Kohm - 2022-06-09

    Ooooh. Yes, the ugly problem, that \newpage with LaTeX's build in two-column mode does not result in a new page but only in a new column.

    I could replace the \newpage in \typearea by a \clearpage. But this would be less compatible. So maybe I should use either:

    \if@twocolumn \clearpage \else \newpage \fi
    

    or (currently used in [r3888]):

    \newpage
    \if@twocolumn\ifnum\@colnum=\z@\else\null\newpage\fi\fi
    

    Thank you for the report.

     

    Related

    Commit: [r3888]


    Last edit: Markus Kohm 2022-06-09
  • Markus Kohm

    Markus Kohm - 2022-06-09
    • status: open --> closed
     
  • Markus Kohm

    Markus Kohm - 2022-06-09

    Fixed in [r3888].

     

    Related

    Commit: [r3888]


Log in to post a comment.