[typearea] landscape & portrait in einem Dokument
Verfasst: Fr 10. Mai 2013, 17:57
Folgender Code scheint zu funktionieren und produziert auch die erwarteten PDF-Seiten.
Dem Kern scheint es aber nicht zugefallen. Hier sind ne Menge "böser" Anmerkungen, deren Sinn ich zwar nachvollziehen kann, aber von denen ich nicht weiß, wie ich sie handlen sollte.
\documentclass{scrartcl} \KOMAoptions{paper=landscape,pagesize=auto} \recalctypearea \usepackage{xltxtra} \defaultfontfeatures{Mapping=tex-text} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \usepackage{blindtext} \begin{document} \blindtext \newpage \KOMAoptions{paper=portrait,pagesize=auto} \recalctypearea \blindtext \newpage \KOMAoptions{paper=landscape,pagesize=auto} \recalctypearea \blindtext \end{document}
Package typearea Warning: Typearea changed! (typearea) You should do this only at preamble, because only (typearea) \begin{document} calculates output dimensions! (typearea) Trying to calculate new output dimensions, but (typearea) this is only a dirty hack on input line 17. [2] Package typearea Warning: Bad type area settings! (typearea) The detected line width is about 52% (typearea) larger than the heuristically detected line width. (typearea) You should e.g. decrease DIV, increase fontsize (typearea) or change papersize. Package typearea Warning: Typearea changed! (typearea) You should do this only at preamble, because only (typearea) \begin{document} calculates output dimensions! (typearea) Trying to calculate new output dimensions, but (typearea) this is only a dirty hack on input line 22. [3] (./01.aux) ** WARNING ** Unknown token "setpagedevice" ** WARNING ** Interpreting PS code failed!!! Output might be broken!!! ** WARNING ** Interpreting special command ps: (ps:) failed. ** WARNING ** >> at page="2" position="(89.2914, 757.701)" (in PDF) ** WARNING ** >> xxx "ps::%%PageBoundingBox: 0 0 595 842\x0a%%BeginPageSetup\x0a<<..." ** WARNING ** >> Reading special command stopped around >>0 0 bop\x0a%%EndPageSetup<< ** WARNING ** Unknown token "setpagedevice" ** WARNING ** Interpreting PS code failed!!! Output might be broken!!! ** WARNING ** Interpreting special command ps: (ps:) failed. ** WARNING ** >> at page="2" position="(89.2914, 757.701)" (in PDF) ** WARNING ** >> xxx "ps::%%PageBoundingBox: 0 0 595 842\x0a%%BeginPageSetup\x0a<<..." ** WARNING ** >> Reading special command stopped around >>0 0 bop\x0a%%EndPageSetup<< ** WARNING ** Unknown token "setpagedevice" ** WARNING ** Interpreting PS code failed!!! Output might be broken!!! ** WARNING ** Interpreting special command ps: (ps:) failed. ** WARNING ** >> at page="3" position="(126.283, 535.748)" (in PDF) ** WARNING ** >> xxx "ps::%%PageBoundingBox: 0 0 842 595\x0a%%BeginPageSetup\x0a<<..." ** WARNING ** >> Reading special command stopped around >>0 0 bop\x0a%%EndPageSetup<< ** WARNING ** Unknown token "setpagedevice" ** WARNING ** Interpreting PS code failed!!! Output might be broken!!! ** WARNING ** Interpreting special command ps: (ps:) failed. ** WARNING ** >> at page="3" position="(126.283, 535.748)" (in PDF) ** WARNING ** >> xxx "ps::%%PageBoundingBox: 0 0 842 595\x0a%%BeginPageSetup\x0a<<..." ** WARNING ** >> Reading special command stopped around >>0 0 bop\x0a%%EndPageSetup<< )