{subfiles} is about a class and package for multi-file projects in LaTeX
Questions tagged [subfiles]
268 questions
8
votes
2 answers
How do I get consecutive section numbering for an entire document using subfiles?
When using the subfiles package, each subfile starts numbering sections with 1.
How can I get consecutive numbering for the entire document?
user38559
- 81
- 2
5
votes
1 answer
Some comments being interpreted when using subfiles?
I am writing my thesis using a college provided template which uses subfiles. I have was stuck for a few hours on an issue wherein some comments are being interpreted by the compiler when the subfiles package is used and a subfile is compiled.
For…
Adi
- 261
5
votes
2 answers
Subfolders and Subfiles
I am trying to setup a LaTex Project for multiple users. Each user has their own sub-folder inside of each Project sub-folder. I would like each week to be able to also be generated as standalone document. The Problem that I run into is LaTeX does…
5
votes
2 answers
Subfiles and Referencing
I am having some trouble getting a modular document to work.
This is what my files look like at the moment
./rootdoc.tex
./tex/childdoc.tex
./bib/bibliography.bib
the files look like...
./rootdoc
\documentclass{book}
%some packages …
Quantifeye
- 373
4
votes
2 answers
Using command defined in a main file in subfiles
I am using the package subfiles with the main document as main.tex and inside the main.tex there are:
\subfile{file1.tex}
\subfile{file2.tex}
and I defined some commands inside main.tex
\usepackage{todonotes}
\newcommand{\todoiteminline}[3]{
…
mommomonthewind
- 741
3
votes
1 answer
How to combine several LaTeX files with equations and tables into one?
I am preparing a thesis including equations, figures, and tables. I have read up on combining LaTeX files, but my problem persists. I created the main file and imported preamble, chapterfiles, and bibliography into the main file. Chapter files…
user24180
- 31
3
votes
1 answer
Should I edit the subfiles package to remove unwanted newlines?
I am using subfiles with multiple comment environments inside (which I use as translation versions and annotations of a text).
Example:
guitarteacher.txt
\documentclass[../resume]{subfiles}
\begin{document}
\begin{English}
Guitar…
julkarham
- 299
2
votes
2 answers
how to handle subfiles picture in latex
Now I am using subfile to compile document independent, I want to insert a picture in the sub document like this:
\documentclass[../../../dolphin-book-2020.tex]{subfiles}
\begin{document}
\subsection{GitHub…
Dolphin
- 843
2
votes
1 answer
Subfiles project issue: cannot load more than a single subfile
I tried to use the instructions from this link to split my current master thesis into multiple .tex files using the subfiles package.
However, I am unable to compile more than a single file. I have reproduced a minimalist version of the code to…
Zigzagoon2
- 21
- 1
2
votes
0 answers
subfiles: link to a main.tex with absolute path
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.com/learn/Multi-file_LaTeX_projects i can write in…
curious
- 141
2
votes
0 answers
vimtex and subfiles
I'm sure this is extremely simple but I just can't figure it out.
I have the following directory structure:
main.tex
sections
|
section1.tex
where main.tex contains
\documentclass{article}
\usepackage{subfiles}
\begin{document}
…
ira
- 121
2
votes
0 answers
Using figures in subfiles
I have just started to use the subfilespackage. I have the following folder structure:
|-Document
| Test.tex
|-img
| hierarchy.png
|-tex
| subtest.tex
The code for each document goes:
For…
Amphiaraos
- 121
2
votes
3 answers
\renewcommand only in subordinated file with subfiles package
Is there a way to renew a command only when the child file is compiled with the subfiles-package?
main.tex:
\documentclass{article}
\usepackage{subfiles}
\newcommand{\foo}{foo}
\begin{document}
\foo % always returns foo
…
neic
- 379
- 2
- 13
1
vote
0 answers
Why would a \subfile{} call not return?
Tex presents no errors.
Output
Calling Sub2.tex.
Sub2.tex entered.
Calling Sub1.tex.
Sub1.tex entered.
Sub1.tex completed.
Directory…
DevJoe
- 11
1
vote
1 answer
Subfiles is not ignoring \end{document}
As far as I understand the subfiles for use in the subfiles package should all end with \end{document}, so that they can be built independently. However, I'm finding that, in order for each of my subfiles to be included in the output of my main.tex…
Ben
- 11