Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [preamble]

{preamble} is everything before \begin{document} in a LaTeX document. It contains commands loading packages, definitions, and usually most style settings for a document.

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 views

Default not working for new command

\newcommand{\initialize}[2][tmargin=1in, bmargin=1in, right=0.75in, left=0.75in]{ \geometry{#1} \ifthenelse{\equal{#2}{}}{\setboolean{indent}{false}}{\setboolean{indent}{true}} \...
xyz04's user avatar
  • 137
1 vote
2 answers
44 views

Repeat \maketitle with exactly the same style and parameters

I am trying to create a document that will, at some arbitrary point, repeat the title from the front page. \documentclass[a4paper,anonymous]{lipics-v2021} \title{My Paper} \titlerunning{paper} \...
sxt643's user avatar
  • 11
2 votes
1 answer
94 views

The commands openany and oneside in the book document class

I have the following code \documentclass[12pt,a4paper,oneside,openany]{book} \usepackage[utf8]{inputenc} \usepackage[left=1in,right=1in,top=1.25in,bottom=1.25in,headsep=30pt,heightrounded] {...
Hussein Eid's user avatar
0 votes
1 answer
21 views

Preamble problem for beamer

I have a preamble that goes: \documentclass[]{beamer} %opening \title{} \author{Sean Thrasher} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{graphicx}...
Sean Thrasher's user avatar
1 vote
1 answer
36 views

An efficient way to insert a cover (first page) for batches of documents?

I have more than 50 .tex files of similar contents, all of which loads preload.tex. \documentclass[a4paper, 12pt, scheme = plain, UTF8]{ctexart} \input{preload.tex} \begin{document} contents contents ...
CasperYC's user avatar
  • 705
3 votes
1 answer
154 views

Is there a command something like \NeedsTeXFormatAtLeast{LaTeX2e}[date]

I know about the command \NeedsTeXFormat, as in such as \NeedsTeXFormat{LaTeX2e}[2023/11/01]. But: does this automatically allow a later LaTeX format to be used? if not, is there some similar command ...
murray's user avatar
  • 8,314
1 vote
0 answers
64 views

Lualatex Precompile Preamble Stops Randomly

to speed up the compilation of my tex-file I came across the idea of precompiling the preamble following this explaination: https://web.archive.org/web/20160912114941/http://www.howtotex.com:80/tips-...
simonroof's user avatar
3 votes
1 answer
182 views

Drawing a border around the progress bar in the Metropolis beamer theme

Hi all and happy new year! First time poster here and I just had a quick question that I am having trouble solving. I posted a MWE of basic LaTeX beamer code using the Metropolis theme.* I would like ...
cluelessmathematician's user avatar
0 votes
1 answer
29 views

Lyx \usepackage doesn't enable package physics - inserting a ket doesn't work

I have a Lyx document with the preamble: \usepackage{physics} and one line of code (in math mode): \ket{\phi} However it doesn't render the ket - it shows the backslash and the tag "ket" and ...
Anna Naden's user avatar
0 votes
0 answers
25 views

problem in numbering table of content

i have problem in my preamble, i observed that as the page number for the "List of Tables" is taking the page number of the last page of your document for example Tile page (i), Declaration ...
Ojo Ezekiel's user avatar
3 votes
1 answer
81 views

Adding to package hook after it's been loaded

It was my understanding of kernel hooks that adding to a hook only affects instances that follow that addition. This seems true for in-document hooks. For example, with \begin{quote} some text \end{...
mbert's user avatar
  • 4,216
0 votes
0 answers
57 views

TeX capacity exceeded, sorry [input stack size=10000] tcolorbox error

I'm trying to make a document using boxes made with tcolorbox but I keep on getting this error at the end of my second box definition. It's especially weird because this code is literally copy-pasted ...
BigBoyConst's user avatar
0 votes
0 answers
34 views

Adding a page in the end of a document with preamble

I am working on a special style package for a company and one of templates must include a special blank page in the end of a document. In order to do it I could make a command like \makeEndPage that ...
Daniel Neskorodov's user avatar
0 votes
1 answer
54 views

\includeonly{} not Working with Precompiled Preamble

Summary of issue I followed the guide linked in this answer, and it works perfectly for me. However, I find that if I use a precompiled preamble, and then specify \includeonly{}, the full document is ...
Joe.S's user avatar
  • 3
2 votes
1 answer
61 views

How can I add skype adress in my europasscv? [duplicate]

I am using this code to build my cv. I would like to add my skype adress with its symbol. How can I do ? % !TEX encoding = UTF-8 % !TEX program = pdflatex % !TEX spellcheck = en_GB \documentclass[...
HelpNeederStudent's user avatar
0 votes
2 answers
115 views

Empty first page and missing begin document [closed]

I'm getting the error: LaTeX Error: Missing \begin{document}. Everything in my document seemed to working earlier today, but now I have an empty first page with nothing but a page number at the top ...
EnigmaticBacon's user avatar
0 votes
0 answers
52 views

Compile with 3 different preambles

I have a tex file without a preamble (it starts with \begin{document}) to which I need to add a preamble that depends on the output type. I cannot use conditionals here because the first line (\...
Alberto Moyano's user avatar
1 vote
1 answer
257 views

Change default column type in tabularray

Is it possible to set all tblr in the document to be \linewidth wide specifying the X column type by default?. This requires not mentioning the number of columns like it happens in colspec, as it ...
Polizi8's user avatar
  • 311
2 votes
1 answer
61 views

Kerkis font activation error in latex

I am trying use kerkis font in latex using \usepackage{kmath,kerkis}. The following is my preamble: \documentclass[12pt]{article} \usepackage{kmath,kerkis} \usepackage[T1]{fontenc} \usepackage[...
Sayan's user avatar
  • 55
3 votes
1 answer
308 views

\parbox not working, or invisible?

I want to use \parbox to, well, make a box around text. But when I typeset, I just get the text and no box... I have no idea why. I am afraid it could be something in my preamble... I keep including ...
Jacob Shulman's user avatar
0 votes
0 answers
183 views

Look for a tutorial for the "precompile" teXstudio option

I assume that "precompile preamble" texStudio (advanced) option is meant to precompile a "preambule.tex" that is included before "begin{document}" in a "main.tex&...
Julien Faure's user avatar
0 votes
1 answer
207 views

Error in preamble while compiling

I am getting errors while compiling my files, but the errors are not mentioning the line numbers where I can check and correct them. Can someone tell me what are these errors about? enter code here ...
Formal_this's user avatar
0 votes
1 answer
31 views

How to turn arrow into command

I have found a symbol that I think is appropriate for a mathematical construct and this is the code for it \ \rotatebox[origin=c]{-90}{$\circlearrowright$}\ I would like to just type \act instead of ...
Karl's user avatar
  • 275
0 votes
2 answers
77 views

Preamble parametrization - passing parameters to `\usepackage` [closed]

I have CV in two languages, which share most of the preamble but \usepackage[<language>]{babel}. I want to parametrize the preamble similarly to: \usepackage[\cvLanguage]{babel} \usepackage{doi} ...
abukaj's user avatar
  • 147
2 votes
1 answer
79 views

Using \def to output boolean true/false values - Usage in Tasks Package "Resume" Function

I am attempting to use a \def (or any equivalent) to give a boolean output, but unable to do so. Compilation of below results in the following error: \documentclass{amsart} \usepackage{tasks} \begin{...
Harry's user avatar
  • 938
1 vote
0 answers
41 views

Error compiling my bibliography [duplicate]

I'm using Gummi {https://github.com/alexandervdm/gummi/} as my Latex editor. When I try to compile my .bib file, it returns the following error: My .bib file is bibligrafia.bib (generated using ...
JJP's user avatar
  • 81
0 votes
0 answers
27 views

Bibliography/references do not work in any capacity

This is my preamble, I have tried several things including running it through pdflatex (without fontspec etc.) and following documentation properly as far as I can tell (although it's clear that I'm ...
Golden_Serpents's user avatar
0 votes
1 answer
100 views

How to change quote behavior?

I'm using Org-Mode to write documents that I export to LaTeX. Org-Mode exports its quote blocks to: \begin{quote} ... \end{quote} In order to color these quotes I'm using the following code (found ...
crocefisso's user avatar
0 votes
0 answers
44 views

Is there a way to `\includeonly` when the memoir document is monolithic?

When writing a memoir document it's easy to focus on just one chapter by using \includeonly. \documentclass{memoir} \title{title} \author{author} \includeonly{chap-3} \begin{document} \include{chap-0}...
Sam7919's user avatar
  • 393
0 votes
0 answers
188 views

Numbering of theorems, lemmas, definitions, examples, etc for thesis

I am trying to work on the numbering of the theorems/definitions/lemmas etc., and I have some problems with the numbering. I would like the theorems, propositions, corollaries, definitions, ...
Vipul Singh's user avatar
1 vote
2 answers
54 views

Reduce white spacing before a SINGLE chapter heading in memoir class

I am using memoir document class. I wanted to decrease the space preceding my chapter headings, and I want to do it individually because I do not want to decrease white space before other headings (...
FueledByPizza's user avatar
0 votes
1 answer
408 views

Declare footnote text before usage in the preamble

I want to reuse footnotes. The problem is that it is inside \authors, and some solutions won't work. I tried first the fixfoot package, but it gives an error, and the package is not being updated for ...
DrBeco's user avatar
  • 237
0 votes
1 answer
73 views

expl3 / setlength not working in preamble with expl3

I am writing a package that should output typographic sizes. For example the absolute character height, the x height, average character width,... These should be available in the preamble. \...
alexBer's user avatar
  • 33
1 vote
1 answer
132 views

Loading a preamble from a separate file than the main file with the subfiles package. When I compile the main.tex everything works but not subfile

I have a document with a very long preamble in the separate file general.tex. The main.tex looks something like \documentclass[10pt, letterpaper]{article} \input{general.tex} \usepackage{subfiles} \...
Alex Cong's user avatar
0 votes
0 answers
52 views

Huge Spacing between \date and \abstract

I would like to reduce the spacing between the word "abstract and the date in this document: \documentclass[12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[font={footnotesize,bf}]{...
Matteo Bulgarelli's user avatar
0 votes
1 answer
82 views

How to included nested standalone documents with subpreambles

I have discovered that standalone package can be used to combine multiple standalone documents into one document. I find this beneficial to split my work into multiple files and then compile certain ...
nikost's user avatar
  • 211
2 votes
0 answers
90 views

standalone package wrongly claims sub-preamble of a subfile changed if used with \file_input:n instead of \input

As shown by the following MCE, the standalone package loaded with its subpreambles option gives the expected result with \input, but not with \file_input:n when the input file has a non empty preamble....
Denis Bitouzé's user avatar
2 votes
0 answers
76 views

How to access a unicode-math symbol in the preamble? [closed]

A demonstration of the problem by way of a minimal working example I saved the following LaTeX code in the file ~/Test.tex. \documentclass{article} \usepackage{unicode-math} \setmathfont{STIX Two Math}...
Evan Aad's user avatar
  • 11.1k
0 votes
0 answers
48 views

Highlighting all elements of type in the document

I would like to know if there's a command that I can use in the preamble to highlight all elements of a given type in a colour of my choosing. I would particularly like to highlight all math formulae. ...
lfba's user avatar
  • 731
0 votes
1 answer
66 views

Changing font size of main text and Centering title in "Pomona Linguistics LaTeX Template"

I am using Pomona Linguistics LaTeX Template (https://www.overleaf.com/latex/templates/pomona-linguistics-latex-template/bvdxdtpwysnd) provided at Overleaf and would like to: (1) Change the font size ...
Econ Latex Question's user avatar
0 votes
0 answers
607 views

"Command \algorithmic already defined" when attempting to compile in MiKTeX/TeXworks

I have two questions about the error message described by the subject line. My first question is why does Overleaf not have this error? And my second question is how do I solve this problem? I was ...
kwhobbs's user avatar
3 votes
2 answers
267 views

Moving \sffamily to latex preamble

I'm using \rmfamily and \sffamily to switch between two fonts in my document, one for sections and one for the rest of the text. However, I cant find a way to move my \sffamily command before \begin{...
curry's user avatar
  • 293
0 votes
0 answers
65 views

Umlaut in the name of the file containing the preamble

Using \input{filename} for a file in a subdir works fine even including the whole preamble, but when the targeted file has an Umlaut in its name, I get an Emergency stop with a Missing \begin{document}...
Nepumuk's user avatar
  • 483
0 votes
1 answer
237 views

how to hide a part of .tex file [duplicate]

I would like to be able to make sure that in the file (.tex) the entire preamble is not seen, in the sense that it is there and actually works, but not seen, so that it preserves all the lines of code ...
Antonello's user avatar
2 votes
1 answer
487 views

Switching paper size in amsart

Consider the following LaTeX Code: \documentclass[a4paper]{amsart} \usepackage{lipsum} \begin{document} \lipsum \end{document} The generated PDF has US Letter, Portrait (8.50 × 11.00 inch) as its ...
Wilfred Montoya's user avatar
0 votes
1 answer
120 views

Defining numerical variables in latex preamble

In my manuscript, I need to specify the vspace command in a few places. I wonder if I can define numerical variables for this purpose in an article document class. For example, instead of typing \...
Salivan's user avatar
  • 303
3 votes
1 answer
261 views

\addcontentsline link isn't taking me to correct page

Here's the code: \documentclass[a4paper]{article} \usepackage{cmbright} \usepackage{stix} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{amsmath, amssymb, ...
SingularisArt's user avatar
0 votes
0 answers
251 views

About LaTeX document preamble

This migh be a silly question but I ask to you LaTeX veterans for help in improving my LaTeX-document preamble. The following is what I usually run as predefinite preamble, but I suspect that I could ...
Henry's user avatar
  • 378
0 votes
1 answer
257 views

Set itemize default settings in preamble [duplicate]

If I want itemize always in this format \begin{itemize} \setlength{\parskip}{3pt} \setlength{\itemsep}{0pt plus 1pt} \item ... \end{itemize} How could I do? ...
user3713179's user avatar
0 votes
1 answer
77 views

Editing the style of chapters, sections, subsections, etc and add a chapter outline, along with a brief content section

I found this Algebra and Trigonometry crash course pdf, and I really like the style. Could someone give me tips or links to websites that teach you how to create chapters, sections, subsections, etc? ...
SingularisArt's user avatar

1
2 3 4 5
9