4

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)

  • How do expect to use two classes within the same document? – Bernard Dec 30 '17 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 '17 at 20:38
  • Didn't know that. – Bernard Dec 30 '17 at 20:40
3

Use

\documentclass[class=scrreprt,preview]{standalone}
|improve this answer|||||
5

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

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

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.