Stack Exchange Network

Stack Exchange network consists of 175 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
29 views

Include filename in a nested document

I have a large project split in multiple files. I'd like to get each subfile name in the pdf to monitor my document. From different posts on this forum i understand Currfile package could help by ...
0
votes
0answers
13 views

When working with subfiles, my main file doesn't take over the “\vspace{}” in my subfiles

I have a main file (report.tex) which includes: \subfile{Introduction/Introduction.tex} When I compile the subfile (Introduction.tex) on its own it had 1 line jumping to a 2nd page. I wanted to get ...
0
votes
1answer
33 views

“Run section” in LaTeX?

Anybody know of any LaTeX/TeX package or GUI that allows LaTeX script to be run in sections? I'm after a feature similar to MATLAB's "run section" feature. My LaTeX documents tend to take ages to ...
3
votes
2answers
26 views

Bibliography as chapter (in ToC, fancyhdr) in book document class

I want my bibliography to be treated as a chapter with class book, but right now it's being treated as a section of the previous chapter (the LE header is of the previous chapter, and it's not bolded /...
3
votes
1answer
74 views

Emacs+AUCTeX: improve emacs support on cls and sty file

Considering the well-polished work on the support of tex file in Emacs by AUCTeX, it is quite confusing the support on .cls and .sty files is rather weak. For example, the \if statement is never ...
0
votes
0answers
35 views

Texmaker, Natbib and Subfile

I am having some problems compiling my pdf to include my citations when using subfile in texmaker. I have tried latex/bib/latex/latex and it doesn't seem to work. I have the following as my main doc: ...
0
votes
1answer
29 views

Main bibliography at the end of the main document and at the end of the subfiles

I already read this article, this article and related, and still couldn't make it. Any help would be appreciated! Long post, so if you want to skip, go to last paragraph, and last bit of Latex code. ...
0
votes
2answers
86 views

How to /includegraphics from sub directory of main image folder, using subfiles

As i cant comment on posts yet, i will have to ask this question. Here is the link with the example: (The last answer by markellos is what im using and reffering to) path of figures in different ...
0
votes
1answer
210 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
1answer
208 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
34 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
82 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
27 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
232 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
48 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
18 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
92 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
37 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
35 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
462 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
115 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
114 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 ...
1
vote
1answer
210 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
71 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
90 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
142 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
284 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
38 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
47 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
106 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
42 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
109 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
468 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
96 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
209 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
156 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
53 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
254 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
107 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
68 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
206 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
335 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 ...
5
votes
1answer
600 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
148 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
204 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
159 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
141 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
264 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 ...