I seem to be having difficulty preventing my document from overwriting \doublespacing commands. I have a document using a subfiles structure (a Main.tex) that calls a number of subfile .tex's for each chapter of the document, each of which begin something like:
\documentclass[Main.tex]{subfiles} \doublespacing \begin{document} ... \end{document} Each subfile that requires double spacing sets \doublespacing rather than setting it once in Main.tex, so as not to affect the various single-spaced lists of symbols, acronyms, etc, that are subfile'd in Main.tex prior to the main chapters.
However, something appears to be overwriting each chapter's internal \doublespacing command, as everything is single spaced when Main.tex is pdflatex'd. Of course, the individual subfiles have the correct double spacing when compiled. This only occurred after an update to MikTex, and it did not happen before. So my thought is that a newer version of a certain package is interfering with either subfiles or setspace, but am unsure where it's happening. I hesitate to include my preamble, as it's a custom .cls used by Main.tex that I made, with a very large number of packages. Is this a simple fix?
EDIT: so I've stripped everything away in the pre-amble, yet it still doesn't work. I have two files, in totality:
% Main.tex \documentclass{article} \usepackage{lipsum} \usepackage{setspace} \usepackage{subfiles} \begin{document} \subfile{testsub.tex} \newpage \end{document} and
% Subfile #X \documentclass[Main.tex]{subfiles} \doublespacing \begin{document} \section{Introduction} \lipsum \end{document} My older version of MikTex didn't ignore the \doublespacing within the subfile. Can I change this somehow?