Menu

#108 Package crop and typearea

KOMA-Script 3.49.3
closed
2026-07-24
2026-07-24
Cabohah
No

It seems, that package typearea sometimes overwrites the page size setting of package crop, (maybe when it is loaded before crop, i.e. automatically by a KOMA-Script class?). So IMHO a good solution would be, if option pagesize would be automatically deactivated after loading crop.

See the old TeX.SX question: Titlepage bleed in KOMA-Script with Crop for an example and more information.

Discussion

  • Markus Kohm

    Markus Kohm - 2026-07-24

    This would only partly help. It seems to be more also an issue of the combination of geometry and crop than of typearea and crop. If you run, e.g.,

    \documentclass[a4paper,11pt]{article}
    
    \usepackage[cross, center,
        width=214truemm,
        height=301truemm]{crop}% a4 + 4mm bleed
    
    \usepackage[]{geometry}
    
    \usepackage{lipsum}
    \begin{document}
    
    \newgeometry{
        left=1.50cm, right=1.50cm,
        top=1.50cm, bottom=2.00cm
    }
    \begin{titlepage}
        Titlepage
    \end{titlepage}
    \restoregeometry
    
    \newpage
    
    \lipsum
    
    \end{document}
    

    with LuaLaTeX you will have the wrong paper size 210x297mm on every page. With PDFLaTeX and XeLaTeX it would work.

    On the other hand, if you try the original example from TeX.SX with PDFLaTeX it also works, but not with LuaLaTeX or XeLaTeX. If you add pagesize=auto to the example, it also works with XeLaTeX, but still not with LuaLaTeX.

    The manual of geometry package recommends to use driver=none, when using geometry together with package crop. And indeed this does work in all cases but usage of XeLaTeX, (which is not really supported by crop). If you also add pagesize=false it also works with XeLaTeX. However, if you need to explicit add option driver=none to geometry you also can add option pagesize=false to typearea (resp. the global options), can't you?

     
  • Cabohah

    Cabohah - 2026-07-24

    Indeed. It seems that all three packages interfere. And because XeLaTeX is not longer recommended and it works with PDFLaTeX and LuaLaTeX, when loading geometry with option driver=none, I can agree this is the more important change to the original example.

     
  • Markus Kohm

    Markus Kohm - 2026-07-24
    • status: open --> closed
    • assigned_to: Markus Kohm
     
  • Markus Kohm

    Markus Kohm - 2026-07-24

    IMHO no action needed.

     

Log in to post a comment.