Questions tagged [subfiles]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Unwanted blank page

In my project, shown below, a blank page appears after the title and I don't want it. \documentclass[a4paper,11pt]{book} \usepackage{import} \usepackage{paquetes} \usepackage{subfiles} \usepackage{...
0
votes
0answers
37 views

Problem for experts when compiling a document with multiple files in Latex [closed]

I found a question very interesting and intricate: Problem with subfiles project. Even looking in other threads I have not found a similar problem. I believe that expert help can help all those who ...
1
vote
1answer
47 views

Problem with subfiles project

Everyone! I'm a bit new with latex and I'm trying to create a project with a few subfiles and I found a problem that I just dont understand. I will first put you in context. My directory distribution ...
0
votes
0answers
11 views

Using subfiles package with listings package

I'm doing some notes for programming contests and I had managed to make both packages work nicely with each other (and the graphicx package) via the following: % Fix for relative path file insertion (...
0
votes
0answers
27 views

Including figures caption on a separate tex file?

I am using overleaf, the compiler is pdflatex. I have a main.tex and then a file.tex for each of my section, all glued together with the package subfiles. I would like to avoid interruptint the text ...
0
votes
1answer
24 views

separate custom commands and document into different files

I have some extensive calls of \renewcommand{} that are cluttering my document.tex file. I would like to save them in a separate file (costum_definitions). Consider the following example: \...
1
vote
1answer
58 views

Why does this work in some subfiles not in others

So I'm writing a large document (almost a book) of notes, so to organize the document I have been using subfiles. Most of the time I am unable to compile the section that I am working on, and have to ...
0
votes
1answer
58 views

Merge tex files with same layout and form

I need your help. I am trying to prepare my template to write my thesis and I have 2 TeX files provided by the university. I couldn't merge them (I used \include, \input and subfiles). The best I ...
4
votes
1answer
69 views

How do I reference sections in other subfiles?

I cannot figure out how in the world I am suppose to reference other sections in subfiles. I have prepared a simple example below: main \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{...
1
vote
1answer
50 views

Unable to reference figure from one subfile to another subfile when compiling ONLY the subfile

I have the following files in Overleaf: main.tex in root directory: \documentclass[conference]{IEEEtran} \usepackage{xr} \usepackage{subfiles} \begin{document} \section{Methodology} \label{...
2
votes
1answer
131 views

Chapter bibliography using subfiles

Introduction I am writing a report consisting of several assignments for one of my university courses. My OS is Windows and I use TeXstudio as editor. I am using the subfiles package as I want to ...
2
votes
1answer
90 views

Using Inkscape-generated figures in LaTeX document: How to make process more efficient?

I use LaTeX to type up lecture notes for math and physics, and I use Inkscape whenever I need to generate graphics for them. I want to find a faster method for doing this. Currently, I do the ...
0
votes
0answers
24 views

Legrand Orange Book - master subfiles and different classes

I'm looking to use the Legrand Orange book to write a mathematics course package, however I'm having trouble making a few modifications. I'd like to use master/subfiles or another package like that ...
1
vote
2answers
109 views

Standalone in subfile

I am trying to do cirkuittikz diagram inside a subfile but if i compile main it does not work. main: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{standalone} \usepackage{...
3
votes
1answer
56 views

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

Compile subfile bibliography with .bib file in subdirectory from main document file [duplicate]

I am using Windows as OS and TeXstudio as editor. My project has the following structure: -project -myclass.cls -main.tex -chapter1 -chapter1.tex -bibgraf.bib -...
1
vote
1answer
75 views

Using minted within a subfile to list a code in a subdirectory

I am using Windows as OS and TeXstudio as editor. My project has the following structure: -project -main.tex -chapter1 -chapter1.tex -bibgraf.bib -figures -...
1
vote
1answer
108 views

Subfiles, pythontex and \pyverbatim -> standalone + pythontex

I would like to introduce some python using pythontex in some of my chapters. I'm using the package subfiles to have a master documents and some childs and it's very convenient for me, I would like to ...
0
votes
1answer
62 views

Can I edit the subfiles package to not include new lines after each subfile?

I would like to include a number of subfiles, each of which contains a single sentence, so that together they form a paragraph. However, the subfiles package makes each sentence into a separate ...
0
votes
0answers
37 views

in subfile: name{theorem.0.1} has been referenced but does not exist, replaced by a fixed one

since I was not able to find a solution online, which fixed this problem, so I hope someone here can help me :) Here is my main.tex file: \documentclass[a4paper,12pt,headsepline]{article} \...
0
votes
0answers
37 views

subfile subsection indexing

following structure: \section{Methods} \subfile{./methods/methods.tex} and in methods.tex : \subsection{Deformable ...} yields indexing in form of 4.0.1 Deformable ... whereas it is supposed to ...
0
votes
1answer
38 views

Disable headers in sub-files when compiled stand-alone

I am writing a large report (using the report class), and hence have a "main" file alongside all the parts as separate TeX files. The subfiles package is used to import all of the part files into the "...
0
votes
1answer
36 views

subfiles: can't find citations in main file but in subfiles with TeXstudio [closed]

I can not print the references in my main.tex. However, there is no problem in the subfiles. Editor: TexStudio, on macOS/ubuntu and mactex/texlive 2019 I followed this approaches: https://latex.org/...
1
vote
1answer
43 views

Getting main document's name when using subfiles

When using the subfiles package, is there some command to get the main document's name, even when compiling one of the child documents? Here's a MWE showing what I mean: \RequirePackage{filecontents}...
0
votes
2answers
64 views

Different behaviours when using subfiles package

I use the subfiles package to divide the main document I'm working on into chapters, so that I don't have to compile the whole document everytime. This means that I don't print the bibliography in ...
0
votes
1answer
134 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
33 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
122 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
36 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
139 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
89 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: ...
1
vote
1answer
52 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
581 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
716 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 ...
6
votes
1answer
517 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
41 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
1answer
39 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
515 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
70 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
38 views

How to compile subfiles with custom fonts applied in main.tex [closed]

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
235 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
63 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
70 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 ...
5
votes
2answers
1k 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
280 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 ...
2
votes
1answer
318 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
459 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
82 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
171 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
327 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 \...