specs: win7x64, miktex, texstudio
folder structure:
root/ - main.tex - text.tex
I get expected wider left margin in main.tex
:
\documentclass[draft]{article}
\usepackage{blindtext} % accessories
\usepackage{showframe} % accessories
\usepackage{subfiles}
\usepackage{geometry}
\usepackage{ifdraft}
\ifdraft{\geometry{left=6cm, right=1cm, vmargin={2.5cm,3cm}, marginparwidth=5.5cm}}
{\geometry{left=2.7cm, right=2.7cm, top=2.7cm, bottom=2.7cm}}
\begin{document}
\section{Lorem}
\blindtext
\subfile{text}
\end{document}
However, when I compile text.tex
on its own, it does not pick the draft mode:
\documentclass[main.tex]{subfiles}
\begin{document}
\section{Text}
\blindtext
\end{document}
The left margin is just the normal width.
QUESTION Any ideas on how I can keep this conditional layout for single chapters?
I also use the \usepackage[obeyDraft]{todonotes}
, to have notes in that left margin which will disappear under the final
mode.
subfiles
(Federico Garcia) about that bug. @Oleg, do you want to write a short e-mail? – Ruben Aug 25 '15 at 18:14