0
votes
0answers
48 views

A command for including a folder of macros

Is there any command to include a folder of macros(such as sty,def,... files) in preamble like one for graphics (\graphicspath{{figures/}}‎‎).
5
votes
1answer
117 views

re-define \ref and \label to include source filename?

I have a set of documents each with references that look like: \ref{figure1} and so on. This is no problem when building each document separately,but creates many duplicate references when using ...
8
votes
5answers
637 views

Calling \end{document} in a macro

I have a file, which is meant to be used as a fragment file inside a larger document: \include{boilerplate} content \include{boilerplate} The goal is to make a fragment file compilable. So inside ...
10
votes
2answers
3k views

Where to put a custom macros file?

I have a bunch of common commands I put in document preambles. I don't always use them all, but it makes the preamble too long for my tastes. I want to put them all in an external file (preferably in ...