Questions tagged [subfiles]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

No page numbering is appearing when using fancy header and subfile packages?

I know this topic is the subject of numerous posts on this forum. I have read through them, but I don't really understand the answers and they haven't been working for me. Furthermore, I am also using ...
user avatar
0 votes
1 answer
23 views

Title page not showing up in subfile{} when included in main.tex

I am compiling a different documents of article class type and I am using a main tex file of report class to compile it into one pdf file. I used subfile{} to do so but the \maketitle{} page in ...
user avatar
0 votes
0 answers
27 views

Again troubles using the figure environment with the subfile package

I'm having troubles using the figure environment with the subfile package. Here is the setting I'm currently working on: root/ images/ img.png main/ main.tex mystyle.sty ...
user avatar
1 vote
1 answer
45 views

One pdf file for each chapter in addition to the global pdf

For my lecture notes, I have a big tex file containing \include commands (one for each chapter). Is there a way to typeset in one go : the whole file: i.e. all the files appearing in the includeonly (...
user avatar
  • 693
1 vote
1 answer
83 views

A error about subfiles and tikzpicture

I have a main.tex and a subfile. Subfile.tex file works independently, but when I run it with main.tex, the soft clip code gives an error. Is there any way to fix this? Where am i doing wrong? My main....
user avatar
1 vote
1 answer
38 views

Bibliography with subfiles

I am writing my PhD thesis in Overleaf and having issues with bibliography while using subfiles command. Ideally I would like one bibliography right at the end of the thesis instead of different ...
user avatar
  • 11
0 votes
0 answers
19 views

Error when trying to input an external file with xltabular package `\hline ->\noalign` [duplicate]

I am trying to stack several tables one on another. For this I am using xltabular packages. I want to input text from another file. The following code works without problem when removing / commenting ...
user avatar
  • 779
1 vote
1 answer
32 views

First page number misplaced when using subfile and loadgeometry

In a document (memoir class), I need to have a title page with large margins compared to the rest of the document. To do that, I use \savegeometry/\loadgeometry. However, if I include this title using ...
user avatar
  • 5,043
1 vote
1 answer
28 views

Bibliography imported from main and subfiles

I have a bib file that I need several subfiles to have access to. Currently the file structure is: project main.tex Bib.bib Chapters Chapter1 Chapter1.tex I can ...
user avatar
  • 115
1 vote
0 answers
44 views

Names of the files using subfiles package

I was wondering if there is a way to include with the subfiles package, files (in a main tex file) that don't have english names, especially in my case greek, but generally in other languages? I have ...
user avatar
1 vote
0 answers
34 views

Why would a \subfile{} call not return? [duplicate]

Tex presents no errors. Output Calling Sub2.tex. Sub2.tex entered. Calling Sub1.tex. Sub1.tex entered. Sub1.tex completed. Directory structure ./main.tex ./Sub2.tex ./Sub1.tex main.tex \...
user avatar
  • 11
1 vote
1 answer
57 views

Bibtex issues with subfile

Good day I am attempting to cite in a subfile using a global BibTeX file but I keep getting the following error You have cited something which is not included in your bibliography. Make sure that the ...
user avatar
0 votes
1 answer
150 views

My natbib referencing is not working on one particular PC and I don't know why

I am writing my PhD thesis, which is split into multiple chapter subfiles with a masterfile that combines them all for convenience of editing. I have attempted to implement citations in the subfiles ...
user avatar
1 vote
1 answer
38 views

hyperref and bibunit: Keep the destination of the cite-link in the same bibunit

I have a rather big and complex document with several bibunits and recurring citations. By default, all citations target the first appearance of a reference in a bibliography, leading to awkward jumps ...
user avatar
1 vote
2 answers
80 views

Possible subfiles/setspace issues

I seem to be having difficulty preventing my document from overwriting \doublespacing commands. I have a document using a subfiles structure (a Main.tex) that calls a number of subfile .tex's for each ...
user avatar
  • 73
1 vote
1 answer
66 views

Tikz-graphic gets squashed in subfigure

I try to display two tikz-plots in the same figure. But one gets totally squeezed into a small area. Here I use the same file in both subfigures, an get this result: \usepackage{subcaption} \...
user avatar
  • 529
1 vote
1 answer
87 views

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 ...
user avatar
  • 11
0 votes
1 answer
111 views

subfiles: bibliography not found in chapters

I'm using subfiles to split my document into multiple files, one per chapter. It works great, except for bibliography: if I compile the main document, the items are found, but if I compile a chapter ...
user avatar
  • 5,043
1 vote
1 answer
51 views

\newgeometry not applying to the last page of a subfile, but only in main document

I'm working on a two-sided document which collates a number of files using the subfiles package, some of which require wider margins for margin notes. However, the \newgeometry command consistently ...
user avatar
  • 13
0 votes
1 answer
173 views

How can I enforce creation of *.aux files?

I want to write a thesis using subfiles and xr for external references. I use subfiles because that allows me to compile chapters separately without having to compile the whole thesis. My problem is ...
user avatar
  • 1
1 vote
0 answers
53 views

Multiple bibliographies - one for each group of subfiles [closed]

I'm writing my thesis, and to allow working on separate sections more easily, I have broken the document down into subfiles. I have multiple subfiles per chapter, but I want to have one bibliography ...
user avatar
  • 11
1 vote
1 answer
35 views

Lettrine in a subfile produces weird alignment

I am trying to typeset a pretty document, and with that comes the need for lettrine. When I use it in my main.tex, everything works as expected. When I use it in a subfile, it works properly when I ...
user avatar
  • 27
0 votes
0 answers
40 views

Consistent biblatex citation numbering when using subfiles

I am using subfiles to split my project in individual parts. For the bibliography I am using biblatex. I only want a single bibliography for the whole document. But would like the citation references ...
user avatar
  • 794
0 votes
0 answers
40 views

Can a subfile have its own preamble without the standalone package?

Can a subfile have its own preamble without the standalone package? I tried adding a preamble to a subfile, basically just a different font and it did not work. Is there a way to do so (because I hear ...
user avatar
0 votes
1 answer
74 views

What is the use of subfile custom document class?

One way to use subfiles is: \documentclass[11pt]{book} \usepackage{subfiles} \begin{document} ... \subfile{finename} ... \end{document} Another way is: \documentclass[main.tex]{subfiles} \begin{...
user avatar
0 votes
1 answer
94 views

standalone wrongly claims sub-preamble of a subfile changed

(Maybe related to this question.) Each pdflatex compilation of the following MCE: \begin{filecontents}[overwrite]{subfile.tex} \documentclass{article} \newcommand\mycolon{:} \begin{document} Foo. \end{...
user avatar
1 vote
0 answers
228 views

One Dot vs Two Dots to import file

Sometimes I see one dot (like: \subfile{./chapters/file.tex}) and sometimes two (like: \graphicspath{{figures/}{../figures/}}) while importing a file. Can someone clarify which is used when?
user avatar
0 votes
0 answers
36 views

Set section counter for a subfile

My project is lengthy to the extend that I have to split it into sections, not just chapters. I use subfiles for this. preamble.sty: the whole main is added as externaldocument, to avoid specifying ...
user avatar
1 vote
1 answer
316 views

Subfiles package and ToC

I'm using the Subfiles package to compile a relatively large document in smaller steps. Each subfile is actually a chapter of the document. I would like to have a ToC in each chapter (in addition to ...
user avatar
  • 13
0 votes
1 answer
459 views

Overleaf Word Count grossly undercounting with Subfiles and Input

My Overleaf Latex project is grossly undercounting the words and equations in my document. The actual number of words is nearly 12,000 and 60 equations. Overleaf Word Count outputs only 130 words and ...
user avatar
1 vote
1 answer
474 views

ST3: no bib files found in a subfile

This could be a duplicate of No Bib File Found Sublime Text 3 LatexTools but I'm wondering if a solution was found for this? I'm writing my thesis in Sublime Text 3 on Win10. The LatexTools package is ...
user avatar
  • 173
1 vote
1 answer
34 views

thmname not getting replaced in subfile when loaded from mainfile

I have a theorem-style defined like this (based on this answer https://tex.stackexchange.com/a/65955/228413): \newtheoremstyle{note}% name {10pt}% space above {10pt}% ...
user avatar
0 votes
0 answers
84 views

Vim-Latex and subfiles without breaking autocompletion

I am using vim-latex to compile my latex code, but I want to use the latex package subfiles. My structure is this: ├── main.tex ├── main.tex.latexmain └── part ├── part.tex └── part.tex....
user avatar
  • 101
2 votes
1 answer
163 views

How to get a bibliography to work in subfiles?

I'm trying to get a bibliography to work while using subfiles for my dissertation. My goal is to have one main bibliography for all chapters. The current structure of my files is: Main Folder Thesis....
user avatar
1 vote
2 answers
111 views

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} \...
user avatar
  • 243
0 votes
1 answer
58 views

it it possible to compile a single tex file to pdf

I am now using \include to connect each single .tex as a whole book. Now I just want to compile one of the section of the book as a single pdf, is there any way to do this? I am already tried pandoc ...
user avatar
  • 243
0 votes
1 answer
279 views

Unable to load picture or PDF file using subfiles and XeLaTeX

I am trying to include diagrams in the tex file using .pdf_tex files using xelatex. main.tex: % Preamble \documentclass[10pt]{article} % Packages \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \...
user avatar
  • 195
1 vote
0 answers
78 views

What is the best practice for writing large documents?

As of now I have tried two ways of writing a large document (over 100 pages), one is to have everything (even the bibliography) in one single .tex file, and the other is to split the document into ...
user avatar
  • 1,856
1 vote
1 answer
190 views

Multi-file latex project, with a title page in hebrew

I have a large LaTeX project (my thesis) with a main TeX file (main.tex) and many subfiles contained in their own sub-directory. All are interrelated with the subfiles package. Now I want to add a ...
user avatar
  • 298
2 votes
1 answer
90 views

Understanding how cross-referencing LaTeX projects with subfiles

I am trying to cross-reference an entire subfile, i.e. not an individual section/subsection, and am unable to get the reference of a different subfile document to show up. All figures/tables/...
user avatar
3 votes
1 answer
418 views

\graphicspath not working with subfiles

I'm writing a document organized in many parts, so I use the subfiles packages. Each subdocuments has a directory for it's images : ./img/ ./img/1-Intro/test.png ./img/2-Analysis/ So my code ...
user avatar
2 votes
1 answer
123 views

Subfiles project issue: cannot load more than a single subfile [duplicate]

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 ...
user avatar
0 votes
2 answers
159 views

Compilation Error: "File ended while scanning for \documentclass" (Subfile package)

I'm getting this error constantly, since setting up a new TexLive instillation with TexStudio on a new laptop. This compiled fine on my desktop, and I'm stuck in knowing what the real root of the ...
user avatar
  • 1,099
1 vote
1 answer
156 views

Use listing for Matlab code from another file directory

I used the listingcode example from here What can I use to typeset MATLAB code in my document? to load a matlab code file directly into LaTeX, but I use different file directories as followed: \...
user avatar
0 votes
0 answers
102 views

How to allocate separate parts of a LaTex document to several distinct parts in a uniform file?

Hello dear readers and researchers, I have begun learning La-Tex and I want to divide the main file into several section in separate sub sections of a uniform La-Tex project (pardon me for that I am ...
user avatar
1 vote
1 answer
127 views

How are subpreambles handled by the standalone package?

I wrote two simple files integrated using the standalone package: main.tex: \documentclass{article} \usepackage[subpreambles]{standalone} \begin{document} \input{myfile} \end{document} myfile.tex: ...
user avatar
  • 35
0 votes
0 answers
55 views

Conflicting Preamble

I am having an issue with my header showing up on each page (besides the chapter pages) in my document. I am including a MWE with all of the packages that I am using and wanted to see if anyone sees ...
user avatar
  • 245
0 votes
1 answer
74 views

Standalone and Coffins

I would like to compile a XeTeX file that pulls in multiple files that have coffins defined for their page geometry. All files compile on their own, and when I run them together, the coffin pages don'...
user avatar
  • 245
2 votes
1 answer
66 views

Tables gain two extra vertical lines when using subfiles package

I've had this issue for two weeks now and have not been able to come up with a solution or find one online. When using the subfiles package, any tables I make gain two extra vertical lines that border ...
user avatar
  • 176
1 vote
1 answer
136 views

Overleaf compiles text found after \end{document} in subfiles

I'm currently facing a problem where the main file compiles everything after \end{document} for all subfiles in the project. If I compile the individual documents one by one, the compilation stops ...
user avatar
  • 21

1
2 3 4 5