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
0answers
30 views

How to reduce space between nomenclature header and first entry?

once again i ask for help from you all! I am currently working on my final thesis in Overleaf. In order to decrease the amount of pages necessary to show my entire nomenclature, i have slightly ...
1
vote
0answers
18 views

Text not showing as bold in slides

I am preparing some slides and want to use bold text occasionally in a definition. I can use bold text outside a definition, but it just wont work inside. I was sent a template for the slides and I ...
0
votes
0answers
20 views

Collapse line spacing between items in the preamble of an r markdown pdf output to single spacing

I'm starting to explore Latex right now, working with Rstudio and using an r markdown file to produce a report in pdf format. I would like to find a way to adjust the spaces between lines of the title,...
0
votes
0answers
23 views

Lyx preamble definecolor error

I have a lot of custom commands in my preamble, and I am using these setting for all my new and old documents. Lately I added a command to change the default green color by adding the following ...
1
vote
2answers
35 views

Package for parsing author data

Is there a general solution for parsing document author data (name, address, email etc)? I am imagining something like \documentclass{whatever} \addauthor[email = ..., address = ..., other = ..., ...
1
vote
1answer
67 views

How are subpreambles handled by the standalone package?

I wrote two simple files integrated using the standalone package: main.tex: \documentclass{article} \usepackage[subpreambles]{standalone} \begin{document} \input{myfile} \end{document} myfile.tex: ...
0
votes
1answer
43 views

Missing # inserted in tabular mode

I'm somewhat new to Latex. Right now, I'm stuck with table creation. After searching this and other forums, I didn't manage to sort this out yet, so I kindly ask for your support. If I missed the ...
0
votes
0answers
58 views

cannot compile matrix to pdf

I have a problem knitting my rmd to pdf. I have tried copying the code that works for others from this forum but it is not working for me. I keep receiving: !LaTeX Error: Can be used only in preamble. ...
0
votes
1answer
34 views

Convert two-sided document into single-sided with page numbers, header and footer

I want to convert my thesis into a single-sided document with page numbers, header and footer. \documentclass[twosided,12pt]{book} \usepackage{fancyhdr} \usepackage{lipsum} \renewcommand{\chaptermark}[...
0
votes
0answers
44 views

Precompiled Preamble does not respect fontspec Tex Ligatures fontspec

I have successfully setup a precompiled preamble as described in this Tex-Stackexchange post. However, one problem remains: If I move fontspec to the preamble the ligatures stop to work. Currently my ...
0
votes
1answer
36 views

minimum working example preamble in a separete file

Context I have seen other posts on preambles in separate files, but they do not meet my needs because they do not include minimum working examples. In addition, when I look in [1], this is a pretty ...
0
votes
0answers
22 views

Preamble performing similar to revtex typesetting

I use python matplotlib package for creation of figures and I can indicate prefferable latex preamble for compilation of text (e.g. axes labels). Although I cannot use revtex class itself (\...
0
votes
0answers
33 views

What Causes the Chapter Title to Get Repeated in the Header

I've got a rather awkward question. In my preamble there has to be some command that causes the chapter title to be repeated in the header on every commencing page of the chapter. The following ...
0
votes
2answers
36 views

can't pass optional arguments to a \newenvironment using fancyvrb

I am trying to define a new script environment built on fancyvrb's Verbatim environment. Preamble: \usepackage{fancyvrb} \newenvironment{script}[1][firstnumber=1] {\VerbatimEnvironment\...
0
votes
1answer
54 views

[arara]: Reuse compiled preamble with pdflatex and mylatexformat.ltx

When running pdflatex more than once successively, is it possible to: • Compile your preamble packages • Snapshot this moment in compilation • Continue running through the rest of the pdflatex ...
0
votes
0answers
18 views

Is this the best way to define new preamble commands and restructure the already defined ones?

I have a latex class that extends the AMS article class amsart. I have adjusted the margins and wanted to add a few new preamble styled parameters like \author{Name}, e. g., \class{Algebra}. After ...
2
votes
1answer
57 views

Should I place my preamble on a .tex file or on a .sty file

I'm writing my thesis and have decided to place my preamble with packages and custom new commands and macros in there in order to have a cleaner main.tex file. I have placed my preamble in a file ...
1
vote
2answers
71 views

Forest package: How to use \forestset in the preamble?

I'm trying to automate the layout for certain trees that I wish to use repetitively, but I don't seem to be able to get the \forestset command to work in the preamble. In the codes below, I suppose ...
1
vote
1answer
48 views

Block additional document contents after appendices

I'm using the appendix package's appendices environment, and due to style changes for the appendices, placing anything after the appendices doesn't make sense. I'd like to raise an error if anything ...
0
votes
1answer
31 views

Having a literal “@” in TexMaker user commands

I am wanting to make a user command that serves as a one-click preamble. \documentclass[answers,10pt]{article} \usepackage[margin=1.in]{geometry} \input{mystyle.sty} \makeatletter \@ifclassloaded{...
0
votes
2answers
55 views

How to put a logo on the left corner and text on the right corner?

I'm a beginner and I try since yesterday to put a logo on the left corner and text on the right corner, like this : but I just can't do it. Could you please help me? Sorry for my english, I'm a ...
1
vote
1answer
98 views

How to typeset the German letter ß in \address with amsart

I would like to typeset an author's address which contains the German letter ß, but \ss keeps typesetting as "ss". Here is a MWE: % !TEX encoding = UTF-8 Unicode \documentclass{amsart} \...
0
votes
0answers
47 views

How to insert pages in the pre-textual elements in the correct order?

I have a problem in my work with the pre-textual elements. I have to insert three pages between them and they must appear in the bookmarks. I did this in the preamble, but they went on the wrong pages....
0
votes
0answers
45 views

What are the Main LaTeX Commands?

On Texmaker editor in order to overwrite existing default font type to modify it to my custom font I use the commands below, which work fine: \renewcommand{\familydefault}{\sfdefault} \usepackage{...
1
vote
1answer
53 views

Can we store preamble into another Tex file and use them in any other Tex file

Can we store a latex preamble into another file to avoid writing all same stuff in another file.If we can then can we change the title in another Tex file?
5
votes
3answers
161 views

How to name command arguments [duplicate]

Is there a way to give a "name" to the arguments of a command and use them in its definition? What I'd like to do is to be able to get the value of an argument with a "label" like #...
0
votes
0answers
39 views

My bibliography isn't appearing [duplicate]

I am using biber for my citations for the first time, and although I followed all turtorials the command \printbibliography simply doesn't do anything. Who knows how to fix the problem? Please find ...
0
votes
1answer
49 views

Is (( \usepackage[T1]{fontenc} )) responsible for the python font in PDF code cells?

I'd like to make my PDFs stand out so I'm trying to change the default Python font that gets used in the code cells when exporting PDFs with nbconvert. I was exploring in article.tplx and found ...
0
votes
1answer
57 views

Unknown cause of Missing \begin{document} error

I am working on a research paper and have recently been getting a "missing \begin{document}" error even though I've included it in what I believe to be the proper place. \documentclass[12pt,...
0
votes
0answers
47 views

Why when clicking on a pre-textual element, does the pdf always return to the first page?

I have two text elements in my work: pre-text elements and texts. Every time I click on a pre-textual element, the document goes back to the job's home page. How to fix this? Follow the preamble. \...
0
votes
0answers
14 views

Problems in preamble - \usepackage{datenumber,datetime}

I am having trouble placing this code in my preamble. \documentclass{article} %%<========problem? \usepackage[english,italian]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
0
votes
3answers
121 views

How to declare an alias of an existing math operator? [closed]

I am wondering how to declare a command \multinom which should resemble the standard notation for the multinomial coefficient. I am trying \newcommand{\multinom}[2]{\binom{#1}{#2}} in the preamble, ...
0
votes
0answers
55 views

Changing margins with geometry package

I am using the geometry package to change my margins, but it does not seem to work. I tried using \usepackage[margin=1in]{geometry}, but it didn't work when I changed to \usepackage[left=1.5in,right=...
0
votes
0answers
80 views

Math symbols not “curvy” and elegant

my visual output looks like As you can see the \in command and the arrows produced a harder output. Here is my preamble, it's a mess, and there are a lot of comments, but I'm trying to clean it up. ...
1
vote
0answers
136 views

Anyone else having package-problems with their old Code on a new laptop?

I am facing the following Problem. I am using a preambel in LaTex that I need for a specific Type of document for my university. However I am not able to use the exact same code on a different Laptop. ...
5
votes
1answer
218 views

How to write a clean and organized preamble in LaTeX?

I hope that everyone is safe and all right with the health crisis we're facing. My question today is maybe a elementary one but let's go : Some months ago, one among us has said, in an answer to a ...
1
vote
2answers
41 views

Autoheight for table with \si units

\documentclass{scrreprt} \usepackage{siunitx} \sisetup{per-mode=fraction} %Einheiten mit Bruchstrich \begin{document} \begin{table} \begin{center} \begin{tabular}{|l|l|} ...
3
votes
0answers
134 views

Speed up compilation LuaLatex Windows TexLive

I would like to pre-compile the preamble to speed up the compilation of my LuaLatex documents. I have seen several questions regarding this (eg: Question 1, Question 2, Question 3), but all are ...
2
votes
1answer
80 views

Using headers in external TikZ figures with \includestandalone

I am facing an issue using figures in standalone files. My problem is related to the one described here. As I use many similar styled figures I want to put the header into a separate file so I can ...
1
vote
1answer
49 views

\AtEndPreamble hook breaks hyperref with bibliography

In the past I used \usepackage{hyperref} within the \AtEndPreamble{} hook, without problems. At least I think so. However, recently the hook breaks the links to my bibliograpy. Is that a bug or am I ...
5
votes
2answers
216 views

newcommand for math mode only

My preamble contains the following definition \newcommand* {\pdiffat}[3] {\left(\frac{\partial{#1}}{\partial{#2}}\right)_{#3}} which is meant to be used in math mode only. However, overleaf ...
0
votes
1answer
57 views

Error with preamble – the preamble for my homework doesnt even compile

I have huge problems and I feel like I am going in circles now for a while. For my homework, I have to work with the math-packages, but nothing seems to work. I am working with TeXstudio (I could ...
0
votes
0answers
81 views

Texmaker - ! LaTeX Error: File `l3backend-pdfmode.def' not found [duplicate]

I need to include animate package in my text. When I tried that, I got an error: LaTeX Error: File `l3backend-pdfmode.def' not found. So after that I also inserted package l3backend into my ...
0
votes
0answers
102 views

pre-compiling long document preamble

I have several long documents (500-1000+ pages), where the pre-amble is itself rather lengthy (say, 15-25 packages being loaded, with multiple option tweaks, lots of custom functions, etc, etc). When ...
0
votes
1answer
46 views

How to determine the options available in the second parameter of latex preamble /DeclareUnicodeCharacter

Context I am using Sphinx and latexpdf to build reStructured documentation for my project. The documentation draws in remote data that it cannot control (only escape/parse etc). My current build ...
0
votes
1answer
92 views

Can be used only in the preamble error - and yes, it's in the preamble

I have these lines \documentclass[../main.tex]{subfiles} \usepackage{float} \usepackage[font=small,skip=2pt]{caption} \usepackage{graphicx} \graphicspath{{Images}{../Images/}} \input{commands} % ...
0
votes
1answer
141 views

Set Section name as a mark for Fancyhdr header

I am using the fancyhdr package in my code and the preamble looks like this \fancyhf{} \pagestyle{fancy} \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \fancyhead[LE,RO]{\thepage} \fancyhead[RE]{\...
0
votes
0answers
54 views

Why the * in \newcommand*? [duplicate]

I saw several examples of user defined macros using \newcommand (without the *), and examples with \newcommand*. Trying both in my test documents doesn't show any difference. So why the asterisk? ...
1
vote
2answers
57 views

How to omit or include paragraph according to a preamble setting?

Is it possible by including a command to the preamble to make several paragraphs in different places in the main document to be included or not according to my will?
4
votes
4answers
108 views

How can I modify the environment of enumerate to put every item in a minipage?

I'm writing a little exam generation package in R that takes a list of questions, randomizes question order and responses, and creates a .pdf. One issue I have is that questions and their responses ...

1
2 3 4 5
7