Linked Questions

1
vote
1answer
705 views

Combining everything before begin document into a package [duplicate]

sorry if the title is badly worded but I wasn't sure how to word it. My question is this: I have a lot of things before \begin{document} in my latex file, maybe like 180 lines of setting up commands ...
0
votes
2answers
90 views

How can I make a single file of the packages I use? [duplicate]

Good morning, I would like to know whether someone can help me with this: I need to learn how can make style file archive.sty, because in the preamble of my source file I have to write all packages ...
0
votes
0answers
31 views

How to Create My OWN LaTeX Template Document? [duplicate]

For almost every document that I type in LaTeX, I start by opening one of the most recent documents that I made, copying all of the packages and pre-set commands, and pasting them in the new document. ...
566
votes
12answers
530k views

Where do I place my own .sty or .cls files, to make them available to all my .tex files?

I know how to define a package or a class, but how do I make it available (to myself) at all times? Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to ...
25
votes
3answers
2k views

Customizing LaTeX - create a document class or a package?

Are there general rules for when to create a document class vs. creating a package to customize LaTeX? Does one have benefits over the other? My specific need is to create a customized page layout, ...
4
votes
0answers
15k views

Loading a custom template in TexStudio

Following an answer on my previous question about creating a default preamble, I tried to create a custom template in TexStudio using the commands file-->make template. Even though the template is ...
11
votes
1answer
383 views

Can loading unused packages slow down the compilation of a document?

Let's say I call booktabs even if I don't write any table in my document. Would it be better if I leave it out?
1
vote
1answer
148 views

automatically inject code into preamble in cascading manner

Is there a standard way to automatically inject certain files into a LaTeX preamble? Naturally I could write some patch code for this but I thought I should check if there's some "preferred" way to ...
0
votes
1answer
78 views

Pros and cons using \usepackage and \input used for preamble

Recently, I found a question on how to use preamble kind of thing that we can use for storing the name of the style files and personal macros. I generally use \input{preamble.tex}. What is the pros ...
1
vote
0answers
71 views

Best way to reuse and change code in a lot of documents

I would like to use in a lot of documents the same title page and some settings in a way that when I want to implement a change to take effect in all of them. One way that I thought is to place ...