5

a page is not cropped, when standalone class is used together with xelatex and koma-script classes (scrreprt,scrbook or scrartcl). Here is very short MWE:

\documentclass[class=scrreprt]{standalone}
\begin{document}
    text
\end{document}

and it works just fine when instead compiled with pdflatex or with standard classes (i.e. replacing scrreprt in MWE by article, book etc). is there a chance to get a cropped page with standalone+xelatex+koma-script working together? (I use latest versions of the packages)

3
  • How do expect to use two classes within the same document?
    – Bernard
    Dec 30, 2017 at 20:35
  • 1
    the class is actually standalone, but there is also the possibility to specify the underlying class as shown in MWE.
    – user54824
    Dec 30, 2017 at 20:38
  • Didn't know that.
    – Bernard
    Dec 30, 2017 at 20:40

2 Answers 2

4

Use

\documentclass[class=scrreprt,preview]{standalone}
0
6

Deactivate KOMA-Script option pagesize (default is auto):

\documentclass[class=scrreprt,pagesize=off]{standalone}
\begin{document}
text
\end{document}
1
  • thanks, I confirm that it also solves my issue!
    – user54824
    Dec 30, 2017 at 22:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .