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

learn more… | top users | synonyms

1
vote
2answers
70 views

Split thesis chapters into separate files for compilation speed

I am writing a thesis using a template similar to this template. The main file (dissertation.tex) uses \include{} to include each chapter. I have a large chapter (over 60 pages with 70 images) that ...
1
vote
1answer
21 views

Table of contents with subfiles package

I am writing a report consisting of 3 separate files, each include a self-contained mathematical text. I work with the subfiles package. I have created three chapters in 3 separate files and included ...
2
votes
1answer
26 views

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 ...
0
votes
0answers
19 views

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?
1
vote
0answers
70 views

Cross-reference auto-completion with Subfile [closed]

I'm using Sublime Text 3 with LatexTools for my document. I have a document main.tex, which has subfiles Chapter1.tex, Chapter2.tex, etc. I would like to be able to have auto-complete for my ...
0
votes
0answers
40 views

Subfiles in subdirectory, file not found

I am writing a long document with two other people using Dropbox as the file storage mechanism. I want to have each person be able to work on their piece individually. Therefore I want to be able to ...
1
vote
0answers
69 views

Handle .bib in subfiles

I have a problem very similar to the question being asked in Bibliographies when using subfiles . My .bib is references in main.tex. When compiling main, everything works like a charm. Working on the ...
0
votes
0answers
68 views

Problem referencing/labeling while using the subfiles package

I have a problem using labels together with the subfiles package. When I'm writing in one section and I try to reference to different section (or for that matter anything within that section) I get an ...
0
votes
0answers
29 views

Integration of tex-file into another tex-file but with separate titlepage and bibliography

I am writing my cumulative PhD thesis and need to integrate the already written papers into my PhD main file. I need the following things: the page numbering to continue throughout the whole PhD ...
0
votes
0answers
30 views

Combining multiple files into one using subfiles [duplicate]

I have seen simple tools for accomplishing this with \input and \include, but none for using the subfiles package. What I am trying to do is have a very large software design document split into files ...
5
votes
0answers
141 views

Manage a publishing house with Latex [closed]

I work for a publisher who is primarily specializing in educational publications, offering final exams with sample solutions, exercise books and so on. The company is start-up and we write everything ...
6
votes
1answer
226 views

modular chapters of a dissertation

I have several different chapters I would like to include into a dissertation. Each chapter is a standalone paper and has its own directory structure (figures, tables, etc.). I would like to retain ...
2
votes
2answers
84 views

\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} ...
2
votes
1answer
46 views

Use of the subfiles package results in a compilation error, due to the compiler erroneously parsing a commented-out “\end{document}”

I have the following two files in a folder: mymainfile.tex: \documentclass{article} \usepackage{subfiles} \begin{document} %\end{document} \subfile{mysubfile.tex} \end{document} mysubfile.tex: ...
2
votes
1answer
475 views

pgf Error: Arrow end type ``latex''' unknown

The following document: \documentclass[]{article} \usepackage{tikz} \usepackage{tikzscale} \usetikzlibrary{trees} \usetikzlibrary{calc} \begin{document} \tikzset{ block/.style = {draw, fill=white, ...
0
votes
0answers
36 views

subfiles in TeXworks pdflatex

I have a problem with subfiles. I have created a main file and then a subfile. Unfortunately when the subfile is called with \input{...} the main file does not find it; however there is no error ...
0
votes
0answers
48 views

/subfiles and name.sty problems

Situation: I have a main document (titr.text) on which \subfiles and child documents are called via \subfile commands, a separate novel.sty file for the preamble of the main document. Problem: My ...
2
votes
1answer
234 views

Subfiles errors while using style in the main file [duplicate]

I would like to build a modular document in latex. My main directory (in which I put the main file "thesis.tex") is called "tesi". Inside "tesi" i have another directory named "capitoli" where I ...
2
votes
0answers
83 views

Irregular behaviour when mixing \pagestyle and \newpage and \marginenote

This might be a newbie question, but I have been struggling for hours to find out what is going on and still it does not make any sense. I managed to create a MWE, but when I gradually transfer to ...
1
vote
2answers
80 views

Using subfiles package for beamer documents

When using subfiles package for beamer documents, I got wrong header bars in frames of sub files. My main file is as follows: % main.tex \documentclass{beamer} \usepackage{subfiles} \begin{document} ...
1
vote
0answers
78 views

Run modular TEX files using subfiles

I'm running into a little error here and I hope somebody can help me. I am setting up a modular Tex document, the structure is as follows |[tex] |-environment.tex |main.tex |bibtex.bib |mystyle.sty ...
3
votes
1answer
339 views

Conflict between subfiles, bm and newtxtext

I have a document made up of many sub-documents. These documents can be compiled separately using LaTeX and the subfiles package but not when I use both newtxtext and bm as well. How can I overcome ...
3
votes
0answers
77 views

Relatives/absolute path for listing with subfiles

I have problem with path management. Let me explain you: I work with subfiles that are arranged in this way: REPORT --Main.tex --lab1 ----Matlab ------CodeLab1.m ----Report ------Report_P1_1.tex ...
0
votes
0answers
43 views

How can I combine two standalone documents (CV and letter) into one? [duplicate]

I have two standalone .tex documents that compile fine independently: my resume that is using the well known moderncv package a standard .tex document (cover letter) I would like to combine, in a ...
1
vote
0answers
57 views

Subfiles will not work ERROR: Missing \endcsname inserted

I downloaded this template (https://github.com/tlatsas/thesis-latex-template) for my thesis. The template uses subfiles, but when i try to run a pdf on the subfile chapter1.tex i get the following ...
7
votes
1answer
2k views

Is it possible to use includegraphics with relative path inside subfiles?

Question I have many documents that I want to be merged inside one document. It could be for example a kind of year recap, with many different sources that use the same preambule like lectures, labs, ...
3
votes
1answer
506 views

Latexdiff with subfiles

Is there a way to make latexdiff work with the 'subfiles' package ? I use subfiles to include parts of the document from different .tex files. Latexdiff does not seem to mark changes in the ...
0
votes
1answer
166 views

subfiles inside a subfile using relative paths

Is there a way to use subfiles, in a way that you can compile the middle chapters, let me explain by example. main.tex (root folder) --Chapter 1 (Chapter 1 folder) ----Section 1.1 (Chapter 1 folder) ...
0
votes
0answers
185 views

Texstudio and subfiles package

I am using TexStudio and am very happy with it. Now I have discovered the subfiles package to be able to compile only the part of my document I am working on. But TexStudio detects that the document ...
9
votes
2answers
920 views

How can I include subfiles in to a subfiles?

First of all, I am a newbie here and I have no idea to post a query but I have a problem for which I require your help. I even don't know what should be the title of my problem but what my intuition ...
3
votes
1answer
229 views

Splitting the preamble

When working with big documents, especially when dealing with many lists, graphics, figures and includes, I often come up with a structure roughly looking like this. \documentclass{beamer} [preamble ...
1
vote
1answer
105 views

Accessing a style file from a subfolder.

I am currently working on a project with a number of other students. Now we are performing a number of tests on a hydraulic rig. As we are progressing with our tests we write test reports with our ...
5
votes
1answer
111 views

Header with scrpage2 disappears on “last page” when using subfiles package

When I put two or more TeX files together with the subfiles package, the header disappears on the last pages of the included files. Why is that? The Root.tex file: \documentclass[a4paper]{scrartcl} ...
12
votes
1answer
957 views

Compiling a main document with many TikZ subfiles efficiently

What would be the most efficient way to compile a document of the article class with many TikZ subfiles? In the main document, I have added \usepackage{standalone} and then \includestandalone for the ...
3
votes
2answers
538 views

\pgfplotstableread and subfiles

Is there a way to use a folder structure with subfiles and \pgfplotstableread? I have the following structure: main.tex \documentclass{article} \usepackage{pgfplots} \usepackage{subfiles} ...
4
votes
0answers
472 views

Package biblatex and subfile not working in subfiles [closed]

I am trying to use biber and package subfile. Thank to the community I manage to make it run in the main file. See here: Bibliographies when using subfiles The file bbl is not created in the folder ...
3
votes
2answers
297 views

Loading packages from separate document

I am using MikTeX and Texmaker to write in. My issue is that we are a group of people writing the same report, and I want to load the packages we are using from a separate file, or a similar method. ...
9
votes
1answer
1k views

Bibliographies when using subfiles

I am writing my Ph.D. thesis in XeLaTeX with Biblatex, and there are times when I need to compile individual chapters, and times when I need to compile the entire document, so I use subfiles, which ...
4
votes
1answer
1k views

Is there a LaTeX editor capable of synctexing a live preview from an included or inputted or subfiled chapter02.tex?

As a beginner... I thought I had settled for the distraction-free Gummi; but now I'm unsure, as I gather it's not so great for larger, modularized documents, such as writing a thesis: Gummi's live ...
2
votes
1answer
137 views

Can't find tikz subfiles

I've the following project structure: ./main.tex ./ch1/ch1.tex ./ch1/tikz1/tikz1.tex The main.tex looks like: \documentclass{book} \begin{document} \subfile{./ch1/ch1.tex} \end{document} The ...
2
votes
1answer
510 views

LaTeX - Standalone - figure reference in nested subfile error

for a few days I've been stacked with a problem which no manual or documentation resolved, please help: I have my 'main.tex' report document file, where I use the 'standalone' package to load the ...
2
votes
0answers
334 views

Input files relative to main file when using subfiles [closed]

I'm writing a report where I use the package subfiles to include different parts of my report. \input{misc/variables.tex} will include my variables file perfectly and render the subfiles. But if I ...
3
votes
1answer
4k views

LaTeX Error: File `subfiles.sty' not found

I'm using pdflatex to compile my .tex files and I'm new on this. I have this package that uses subfiles, but I can't compile because of this error: LaTeX Error: File `subfiles.sty' not found. I ...
1
vote
1answer
821 views

Combination of Subfiles, Apacite and Babel packages result in LaTeX error

For my bachelor thesis, I want to write my chapters in separate files and be able to compile them separately. To combine them, I use the subfiles package. For citations, I have to use Apa style via ...
3
votes
1answer
669 views

Use of apacite package with subfiles package or standalone package results in LaTeX Error: Can be used only in preamble

I want to create a multi-file project for my thesis, in which I use separate files for sections. To be able to compile these separate files I tried using the subfiles package and the standalone ...
2
votes
1answer
2k views

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 ...
2
votes
1answer
86 views

Separate chapters, each with individual preface, included in same document

I have a document I want to split up into individual sections. I'd like each individual section to be independently compilable, but of course I also need the whole document to compile. The trouble ...
4
votes
1answer
195 views

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 ...
13
votes
2answers
9k views

How to use the import package?

I've read about the import package and am now trying to use it in my document, but I only run into errors. I have a main file named /ProjectPath/header.tex which loads all packages, etc. ...
1
vote
1answer
548 views

How to use different preamble in subfiles root file and child file

I have both \maketitle \tableofcontents in the root file and child file when using subfiles package. When I compiling the child file, it works OK. But when I compiling the root file, the title and ...