Comments (5)
FWIW, just keeping chapters in separate files doesn't require subfile
.
Apparently, that package lets you compile chapters independently* — which is pretty cool (normally one has to resort to \include
and \includeonly
, which works but is pretty annoying). So if you don't use that feature, maybe dropping subfile
is an (inconvenient) solution. (I suspect conditional compilation with the comment
package might help disabling subfile
when annoying, but this can be tricky—and pandoc wouldn't get it either).
From subfile
docs (which I find on TeXLive through texdoc subfiles
, recommended or on CTAN at http://ctan.mirror.garr.it/mirrors/CTAN/macros/latex/contrib/subfiles/subfiles.pdf):
With the subfiles set, the typesetting of a multi-file project consisting of one main file and one or more subsidiary files (subfiles) is more comfortable, since the user can LATEX either the main file, which will \input the subfiles normally, or the subfiles by themselves, which take the preamble of the main file and become self-sufficient LATEX documents.
from milewski-ctfp-pdf.
(BTW checking it out, didn't know about it and would have been useful!)
from milewski-ctfp-pdf.
I initially went with subfiles because I didn't want to put everything in one giant .tex file (to allow working on individual chapters separately). In addition, I had to add this:
milewski-ctfp-pdf/src/preamble.tex
Lines 94 to 103 in a3a74e0
so that the images could be embedded using relative path.
from milewski-ctfp-pdf.
I initially went with subfiles because I didn't want to put everything in one giant .tex file (to allow working on individual chapters separately).
To rephrase: if you want just that, the main file just needs to use \input{chapter1}
, without subfile
, and \input
just inlines the content of chapter1.tex
.
EDIT: so for that goal subfile
is indeed unnecessary.
from milewski-ctfp-pdf.
Closing this for now. The way I have it set up lets me include relative images, and I don't want to spend anymore time on this.
from milewski-ctfp-pdf.
Related Issues (20)
- Page numbers not aligning with the pdf page number
- nix-shell command doesn't work HOT 2
- inter-word spacing with fontdimen
- Why not give Haskell example of implementation of coproduct?
- Are there readily built pdf files for the covers?
- Cannot build HOT 5
- Possibly a mistake that causes confusion HOT 2
- `make scala` fails to produce full PDF HOT 12
- Missing figure HOT 1
- Chapter 3 - Section 3.5 Clarification
- chapter section numbering
- Haskell version being created when using scala command HOT 7
- Scala Snippet 23 in Chapter 3.4 is Not Desugared
- Releasing in Different Extensions HOT 1
- Update to Scala 3? HOT 1
- ASCII rendering of _|_ instead of Unicode HOT 4
- Use Rust as an alternative of C++? HOT 2
- Consider Formally verifying the properties in Category Theory using proof assistants.
- Result folder appears empty HOT 4
- A mistake in Section 6.3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milewski-ctfp-pdf.