Can I set paper size from command line? F.e.

xelatex -papersize=a5 -jobname=kafka_A5 kafka.tex

But in my case, the effect only applies to the first page. And while it is cut off.enter image description here

Begin of document

\documentclass[a4paper, openright, twoside, 10pt]{extreport}
\usepackage[main=russian,english]{babel}    %% загружает пакет многоязыковой вёрстки
\usepackage{fontspec}                     %% подготавливает загрузку шрифтов Open Type, True Type и др.

% -------------- Настраваем шрифты -----------------------------
\setmainfont[StylisticSet=1]{Kurale}% Основной шрифт текста

% ================ Настройка некоторых параметров =================|
\parindent=25pt %------------------------------Отступ первой строки|
% -----------------------------------------------------------------|

  • Please don't shout. People can hear perfectly well if you speak normally.
    – cfr
    Jul 28, 2018 at 23:20
  • Please can you make your example compilable? People can't reproduce the problem with this. Do note that changing the paper size will not change the logical layout of the page by itself. So if you just change the paper, you'll have A4 layout or US letter layout on A5 paper, which obviously won't fit.
    – cfr
    Jul 28, 2018 at 23:23

1 Answer 1

xelatex "\PassOptionsToClass{a5paper}{book} \input{kafka}"

change book to your own used documentclass

  • If I understand "-papersize" deprecated? Jul 28, 2018 at 20:08
  • I'm afraid, but that does not change anything. Outsize is a4. Jul 28, 2018 at 20:17
  • do you have package geometry loaded?
    – user2478
    Jul 28, 2018 at 20:19
  • yes I have package geometry loaded Jul 28, 2018 at 20:23
  • 1
    @Игорь yes. It is done by \PassOptionsToClass{a5paper}{extreport}. Or as an alternative: \PassOptionsToPackage{a5paper}{geometry}
    – user2478
    Jul 29, 2018 at 7:15

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.