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

learn more… | top users | synonyms

1
vote
0answers
19 views

ShareLatex - using minted in subfiles

I am using ShareLatex with each of my sections split into subfiles, and now needs to insert some source code. In doing so i have used the package minted which works fine if i keep my code example in ...
1
vote
0answers
28 views

\pageref not working properly in main document with subfiles package and xr package

I have a main file setup with the subfiles package and the xr package. I am trying to make the \pageref command work properly for cross-references in the main file, but the page number it displays in ...
2
votes
0answers
14 views

Mixing sepfootnotes, endnotes and subfiles and declaring notecontents within subfiles

Dear comrades of Tex and LaTeX. I hope you're all doing alright. I'm using a "mix" of sepfootnotes, endnotes and subfiles in an arragement like that of the MWE below. The actual project is eleven ...
1
vote
0answers
22 views

Referencing a .bib file in a subfile [duplicate]

I want to cite references within a subfile and have the subfile correctly compile, but I seem not to be able to access my .bib from the subfiles, since it always gives me an error message when I try ...
1
vote
1answer
15 views

Subfile with \includegraphics not working in the mainfile

I have a problem trying to get my maindocument to compile a subdocument, with an included figure. I have the following file-structure setup: mainfile.tex /chap /chapter1 / ch1.tex ...
2
votes
1answer
58 views

Biblatex and Biber in a subfile

I have a problem with compiling a subfile with bibliography entries in it. My setup is a follows: My directory structure is: main.tex/chap/chapter1/subfile.tex Now, my main.tex has the following ...
0
votes
0answers
19 views

Importing graphics into a subfile and compiling both of them

I am using the subfiles package to include several documents into a single file and there I am trying to make both the subfile and the mainfile, correctly compile and show an imported graphic, like ...
1
vote
0answers
21 views

Using Chapterbib + subfiles + achemso

Firstly apologies if this is a silly mistake on my part. I am writing my thesis and using subfiles for each chapter. I would like a reference section at the end of each chapter so I am therefore ...
0
votes
0answers
13 views

Using apacite in combination with subfiles

I am using LaTeX to write my master thesis, and experience difficulties when citing in a subfile. In my main file, I have loaded the packages subfiles and apacite. Now, when I do \cite{refname} in one ...
5
votes
3answers
132 views

Custom format file and subfiles

I want to use a custom format file to speed up my compilation. However this doesn't play together with the subfiles package. Consider the following minimal example: preamble.tex ...
1
vote
1answer
54 views

Footnotes in Subfiles

I am writing a large report in TeXshop and have decided to use subfiles for each chapter, and have created a .bib bibliography. However, now that I have separated the chapters into subfiles, the ...
1
vote
1answer
29 views

siunitx custom file with subfiles

I recently decided to divide my thesis into several nested files as it follows: % Main.tex \documentclass{memoir} \usepackage{subfiles} \usepackage{siunitx} \include{units} \begin{document} ...
5
votes
2answers
47 views

Using fonts in modular documents

I have a document with a structure: +-- main.tex +-- style.sty +-- fonts | +-- times.tff +-- sections | +-- section1.tex | +-- section2.tex Main file main.tex includes section files via ...
6
votes
1answer
233 views

Is it possible to input a file while lowering every section it has by 1 level?

Assume that I want to add a part of a paper I've wrote into a different document. Inside the new document, the part of the paper should be only a section, so every section of the paper would become a ...
1
vote
0answers
31 views

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 ...
1
vote
0answers
62 views

path of figures in different directories with subfile latex

This is the structure of my directories - Main tex file /Diss/main.tex chapter tex files Diss/chap1/chap1.tex, Diss/chap2/chap2.tex etc Images Diss/chap1/images/f1.png, Diss/chap2/images/f2.png etc ...
1
vote
0answers
46 views

Can't compile with subfiles. Error File not found

I've a "main.tex" at the file "/main" divided in chapters, each chapter have sections. All chapters and sections have themself files. In the document "main.tex" call the chapters with the command ...
1
vote
1answer
91 views

bibtex references in subfile

I have a folder Report, that contains the file Report.tex and the subfolder References, which contains the files ref.tex and references.bib. In ref.tex I can reference a citation of references.bib. ...
2
votes
2answers
197 views

How to compile from a subchapter or how to set root file?

I have a document structure with subfiles/subchapters. Until know i worked with TexMaker and TexLive on Windows and with the following line in every subfile, everything just worked great. %!TEX root ...
6
votes
2answers
169 views

TOC and Subfiles: which TOC pkg for unique TOC compilation with each subfile?

The Subfiles package makes compiling individual parts of a LaTex document convenient. The package works so that each subfile inherits the master preamble main.tex and the user is able to compile ...
1
vote
1answer
111 views

Problem using \includeonly

I have a problem using the \includeonly command. I have a large document and I wanted to split it up into sections- each section would be in its own file and I would compile only the current chapter ...
2
votes
1answer
55 views

Is it possible to input tex files from subfolders inside subfiles?

I want to automate the process of inputting tex files from subfolders. Previously I managed to automate the inclusion of images from "images" subfolder within the subfolder of each subfile. I would ...
3
votes
3answers
173 views

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

My question is a followup question of this: Is it possible to use includegraphics with relative path inside subfiles? I have my images in sub/image folder. I want automatically add 'sub/images' path ...
1
vote
0answers
178 views

BibTeX and Subfiles package

My question is similar to Bibliographies when using subfiles, but I find some parts of the latter unclear and possibly not needed in my case. I am using the subfiles package in Xelatex, with a folder ...
6
votes
1answer
94 views

subfiles not detecting draft mode

specs: win7x64, miktex, texstudio folder structure: root/ - main.tex - text.tex I get expected wider left margin in main.tex: \documentclass[draft]{article} \usepackage{blindtext} % ...
0
votes
1answer
109 views

Should I still define a main file as master document when using the subfiles package?

This is pretty much very straightforward and probably a really naive question, but I need to know: I'm using the subfiles package to manage my project files and I have all the paths set so every ...
0
votes
1answer
224 views

Standalone chapters with separate references and counters

I'm looking for a convenient way to integrate standalone chapters in a main.tex (scrbook) file. More specifically, they will be already published papers within a thesis framework text and should ...
0
votes
0answers
61 views

Subfolders and Subfiles

I am trying to setup a LaTex Project for multiple users. Each user has there own sub folder in side of each Project sub-folder. I would like each week to be able to also be generated as standalone ...
1
vote
0answers
29 views

Compile several files in their own font size in a main document

I use the subfiles package to compile several files in a main document. I have for example a document file1.tex in 12 pt, and another file2.tex in 10 pt both in article class( in preamble : ...
2
votes
0answers
145 views

Warning when using subfiles

So I'm getting this warning whenever I typeset a document which is using the subfiles package for modular documents. The warning occurs both when running the master file as well as the individual ...
0
votes
0answers
48 views

Adding a document to another with a different document class

Main document: \documentclass[11pt,a4paper,oneside]{book} (for my thesis) Second .tex file: \documentclass[twocolumn]{phdsymp} (for my abstract) I need this second file to be added in my main file ...
2
votes
2answers
366 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 ...
5
votes
1answer
505 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 ...
3
votes
0answers
61 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
313 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 ...
1
vote
0answers
362 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 ...
4
votes
1answer
691 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 ...
1
vote
0answers
381 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 ...
5
votes
0answers
158 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 ...
7
votes
1answer
561 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
163 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} ...
3
votes
1answer
88 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
1k 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
61 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 ...
2
votes
1answer
710 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
139 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
160 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
129 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
454 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
125 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 ...