Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subfiles]

{subfiles} is about a class and package for multi-file projects in LaTeX

0
votes
1answer
36 views

Getting error “Citation XX on page XX undefined on input line X”

I am starting a new latex project on Overleaf and I am having an issue with handling my references. I get the error message "Citation XX on page XX undefined on input line XX" as well as the citations ...
5
votes
0answers
148 views

Multiple subfiles in folders sharing the same root bibliography

I created a book project (multilingual XeLaTeX) following the modular approach from https://en.wikibooks.org/wiki/LaTeX/Modular_Documents and particularly @ paragraphs "Subfiles" (for the usage of the ...
0
votes
0answers
31 views

Modular projects: Compile parent and child documents using separate custom classes

I would like to compile a main.tex parent document using a custom class as well as child documents using different custom classes. I would like compilation of the parent document to automatically ...
0
votes
0answers
27 views

Using appendix package with subfiles

I'm trying to add some appendices to my thesis (using the book class), which I've done so far using subfiles, that way I don't need to compile the entire mainfile every time and I do avoid switching ...
0
votes
1answer
22 views

Multilined and Misformatted Table of Contents in Master/Subfiles Document

I'm trying to figure out what I did that screwed up the formatting of this course notes template. I apologize for not having a better MWE, but it seems to all have parts together to it. MWE (edited):...
1
vote
1answer
120 views

Proper reference numbers with subfiles

Consider the following mwe divided in 3 files: main.tex: \documentclass[12pt]{report} \usepackage{subfiles} \newcommand{\onlyinsubfile}[1]{#1} \newcommand{\notinsubfile}[1]{} \usepackage{amsmath} ...
0
votes
1answer
46 views

Make " an active quote while including subfiles with spaces in their path

I'm preparing a book. There is a requirement that the individual sections are available as separate files, so I'm using the subfile package. I would really like to keep the ability to name my TeX ...
1
vote
0answers
15 views

How to compile subfiles with custom fonts applied in main.tex

I have structure of the project like.. \documentclass[a4,twoside,11pt]{report} \usepackage{subfiles} \graphicspath{{images/}{../images/}} \usepackage{fontspec} \setmainfont[AutoFakeBold=0.5, ...
4
votes
1answer
55 views

How to include titles in Table of Contents?

I have a bit of an odd request––but I can't seem to find the solution anywhere. I have compiled one main document that includes multiple subfiles by way of the subfile package. Here are MWEs: Main ...
1
vote
1answer
36 views

noindent first paragraph of subfiles

I'm using the subfiles package and would like for the first paragraph of each included subfile to have no indent. However, I'd like to do this in the main file instead of adding \noindent to the ...
0
votes
1answer
28 views

subfile Option output name

I am using the package subfiles in MikTeX (with XeLaTeX). It works like a charm, but I would like to display the compiled subfile in MikTex as PDF. This is common in MikTeX: The editor opens a PDF ...
2
votes
2answers
272 views

In TeXstudio, how to compile only the subfile?

There exist several questions along the same line as mine here, but none of them have been answered: How do I compile standalone files in TeXStudio? Texstudio and subfiles package Problems when ...
1
vote
2answers
57 views

Error with algorithm package occurred when using standalone subfile

I am trying to create a standalone subfile in which I want to add some algorithms. The document is compiled right when I am using the \documentclass[9pt]{article} in the preamble. But the following ...
1
vote
1answer
69 views

How to nest multiple documentclass

I would like to create a running diary of documentclass 1 that constitutes multiple instances of documentclass 2, where preferred documentclass 2 is 'minutes'. I am aware of subfiles, but don't know ...
0
votes
0answers
20 views

Is there a way to compile only certain tags?

In this question, the responses show how to use tags in a document. Is there anyway to use these, along with an 'includeonly'-type command similar to the subfiles package?
1
vote
1answer
148 views

Page numbering in document with multiple files

I've set up a document to have multiple sections, and I want it to have consistent, increasing page numbers throughout. I also want to be able to typeset the individual files for printing and get the ...
3
votes
1answer
70 views

Possible ways to split up and then recombine lecture notes

I'm teaching Math Methods of Physics this fall, and want to provide written notes after class for the students to use. I'd like for them to be individual lectures, but combinable into one document ...
0
votes
1answer
82 views

\autoref with subfiles in TexStudio

I am using TexStudio with the subfiles package to split my project into smaller pieces, with the advantage that I can compile a subfile indepentent of the main stuff. Now using the \autoref command of ...
0
votes
1answer
111 views

Include title in header using subfiles

I split my LaTeX document into subfiles and I try to have the title in the header, using \fancyhead. I define \thetitle in my cover file called "cover.tex", which I reproduced in the MWE below \...
3
votes
1answer
28 views

Reference list from file for citations

I try to automate part of the work linked to a set of figures. The figures are generated from data files, and I would like to add the source of the data for each figure, from a file containing the ...
5
votes
1answer
223 views

Subfiles failing with custom class

I'm writing a document using the AASTeX template, and would like to use the subfiles package to manage the sections. I'm following the ShareLatex example available here, and have modified it to use ...
0
votes
0answers
36 views

bibtex when using subfiles package [duplicate]

Edit: This question is actually a duplicate of this question. It's solution worked for me. Basically, I want to do what this question is doing, but using bibtex instead of biblatex. To summarize ...
1
vote
0answers
25 views

Cannot find subfile with subdirectory [closed]

I want to include a subfile in the main document. I put a subfile in a different directory called "sections" , but the main.tex can’t find it. Error File 'section/chapter I.tex' not found. here's my ...
1
vote
0answers
92 views

LaTeX Error: Can be used only in preamble. But I have it in preamble [closed]

! LaTeX Error: Can be used only in preamble. All my \usepackage commands begin before \begin{document} and I still get this error? :( This happened when I tried to add a subfiles package.
1
vote
0answers
35 views

External document cross-referencing not working [duplicate]

I am having trouble getting cross-referencing to work. I am using the package xr-hyper. I have a 'main' file called main.tex and two subfiles called intro.tex (Introduction) and app.tex (Appendix A). ...
6
votes
1answer
106 views

How to configure latex to put bibliography at end of each chapter when using subfiles?

I'd like to have the bibliography of each chapter at its end. Here is an MWE of how I built my thesis: I have a directory tree which looks like this: |-main.tex |-ref.bib |--Ch1 |---ch1.tex |--Ch2 |-...
0
votes
0answers
337 views

Problems when compiling subfiles (with the subfiles package)

My document is becoming quite big, so I decided to switch from \include to \subfile so I can compile only the chapter I'm working on. I have the following files: a main document thesis.tex a ...
1
vote
0answers
81 views

Subfile Compilation with RevTex [duplicate]

I use subfiles package with RevTex4-1, and the main file works fine. But when I compile the subfile, I got \bibdata{app-miNotes} No file app-mi.bbl. @CONTROL{REVTEX41Control} \citation{...
1
vote
1answer
127 views

Problem with accents in .Bib file

I've been trying to find the source of problem without success, It keeps coming. I'm trying to move from writing linear to modular, since the notes are getting bigger, so I'm using the subfile ...
0
votes
1answer
102 views

Edit table of contents [book] [duplicate]

I'd like to edit the table of contents for a book-class file. The problem that I'm facing is that I have a lot of separate Chapters, with no sections, in the first part of the book. If I just use \...
2
votes
0answers
47 views

subfiles: link to a main.tex with absolute path [closed]

Suppose i have a main repertory 'main' containing a file 'main.tex' and a child repertory named 'subfile' himself containing a file called 'subfile1.tex'. Thanks to this link https://fr.sharelatex....
4
votes
1answer
197 views

What is best practice to set up Multi-file tex documents?

I have researched the topic how to split my big book project into several files. Basically there are two main packages I found one should work with which are the “standalone” and the “subFile” package....
3
votes
1answer
95 views

Trouble when using the subfiles and wrapfig packages together

Take 2. I'm currently trying to write my undergraduate thesis using ShareLaTeX. Because it's a long paper, I spent awhile last night setting up the subfiles package so that each section of the paper ...
1
vote
0answers
58 views

Subfiles not working when different folder levels exist between main and component parts

I have the following folder structure Project | 00Main | | | | Main.tex | 01Components | | IntroFolder | | | Introduction.tex | | DataChapterFolder | | | Data.tex | | ...
1
vote
1answer
179 views

cross-references across different subfiles

I have a problem with a cross-reference across two files. My files are arranged like in this example here: https://tex.stackexchange.com/a/148818/147782 two files included in the main file with \...
-1
votes
1answer
264 views

How to use bibtex with subfile

I am a newbie, and I have been looking for the solution for a while. But if I use subfile for separate files, how can I do citations in the subfiles that refer to the global bibliography? Like if I ...
4
votes
1answer
436 views

Subfiles package - two levels (subfile in subfile)

Although the documentation of the subfiles package states that nesting is supported, I somehow can't get it to work. I have the following structure: ./main.tex ./level1/level1.tex ./level1/level2/...
1
vote
1answer
136 views

Show a full outline with subfolders in TeXnicCenter?

I have a question regarding the structure of a project in TeXnicCenter. I am currently writing my thesis and created a project with a main document main.tex. Each chapter is a tex subfile that I link ...
1
vote
1answer
187 views

Latexpand not finding include and input files

Using Latexpand script, I am trying to compile the multiple latex files. But Latexpand is not finding the include and input files, whereas all the files are located at the specified locations. It says ...
0
votes
0answers
145 views

How to show references after splitting Latex to several files

I am writing a paper by splitting it to several subfiles and editing each subfile once a time. For each subfile, it has the code: \documentclass[../../main.tex]{subfiles} \begin{document} Content ...
2
votes
0answers
41 views

What factors should I bear in mind when choosing between subfiles and standalone?

The ShareLaTeX documentation recommends these two technologies for working with multifile documents. The documentation says that subfiles is easier to use, and standalone allows per-file preambles; ...
1
vote
1answer
116 views

How to define subfigure in a .cls (class) of latex project?

For my thesis work, I have a template given by my university which has a class(.cls), many sections(.tex) and a bibliography(.bib) in separate files. In the thesisclass.cls file everything has been ...
1
vote
1answer
234 views

latexdiff file not found on include figure.tikz

I am running latexdiff --flatten main.tex main.tex > new.tex to produce a document with all the input, include and subfile LaTeX files included. The goal is to then do the same with an older ...
0
votes
1answer
157 views

Wrong label of chapter (using subfile) with glossary

I trying to have the good number when I refer the Chapter 2 of my Ph.D Thesis but without success. I have four files, the main with a lot of packages and : % Manuscrit.tex ----> Main files \...
1
vote
1answer
192 views

Wrong label of chapter (using subfile)

I trying to have the good number when I refer the Chapter 2 of my Ph.D Thesis but without success. I have four files, the main with a lot of packages and : % Manuscrit.tex ----> Main files \...
1
vote
0answers
37 views

Creating a paper consisting of included subfiles (package standalone) all with a ToC

So I have a paper which consists out of a main body and several included subfiles who must be able to compile standalone. Therefore, I am using the package standalone and created the main.tex file as ...
0
votes
1answer
244 views

Default location for input [duplicate]

I have file structure that looks like this: images/ 1.png 2.png 3.png photos/ 1.jpg 2.jpg 3.jpg self/ chapter1.tex chapter2.tex chapter3.tex copied/ chapter1....
6
votes
1answer
1k views

Cross references and subfiles

I want to take references between subfiles for a big project, the main structure is for the main files is main.tex: \documentclass[12pt]{book} \usepackage{subfiles} \usepackage{xr} \...
1
vote
1answer
41 views

A problem using subfigimg when merging cells

I have asked help before in order to use subfigimg with label in here: https://tex.stackexchange.com/questions/387837/how-to-use-subfigimg-macro-and-label. which @Skillmon helped me solved, however i ...
1
vote
1answer
235 views

Conflicts between subfiles and caption packages

I am writing a paper that has an online appendix. The paper and appendix reference figures in each other. I'd like to be able to compile each of the documents as a separate .pdf file and maintain ...