1

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[left=15mm,right=15mm,top=15mm,bottom=20mm]{geometry}
\usepackage[main=russian,english]{babel}    %% загружает пакет многоязыковой вёрстки
\usepackage{fontspec}                     %% подготавливает загрузку шрифтов Open Type, True Type и др.
\usepackage{indentfirst}
\usepackage{titlesec,titletoc}
%\usepackage[normalem]{ulem}
\usepackage[final]{microtype}
%\usepackage[colorlinks=true,linkcolor=black]{hyperref}

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

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

\clubpenalty=10000
\widowpenalty=10000
\tolerance=1070
2
  • Please don't shout. People can hear perfectly well if you speak normally. – cfr Jul 28 '18 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 '18 at 23:23
2
xelatex "\PassOptionsToClass{a5paper}{book} \input{kafka}"

change book to your own used documentclass

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