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
1answer
27 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
13 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
29 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
32 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
43 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
17 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
48 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
41 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
47 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
30 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
47 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
86 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
38 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
42 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
52 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
117 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
38 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
47 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
109 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
40 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
59 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
102 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
174 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
40 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
113 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
64 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
36 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 ...
4
votes
2answers
150 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
55 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
65 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
29 views

How to assign the same error message—such as key setting preamble only—to multiple keys?

We know how to restrict the setting of a single key to be 'preamble only' from a previous post. That's version 0.1 in the code below. To avoid code duplication for each key necessitating this ...
0
votes
0answers
79 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
43 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
78 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
84 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
50 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
51 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?
0
votes
1answer
43 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 ...
0
votes
1answer
420 views

Pandoc: not using LaTeX packages

I am using pandoc to convert my .tex-file into a PDF, but my definitions are not being used. Example: \documentclass[12pt,letterpaper]{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage[...
1
vote
1answer
65 views

\renewenvironment for \begin{comment}

In my document, there are several comments like \begin{comment} comment \end{comment} As the comment environment doesn't work, e.g., in footnotes, I want to replace it by the "note" environment. I ...
0
votes
0answers
31 views

What effect \StartShownPreambleCommands has?

It seems to me that the XeTeX is completely insensitive to where do I put \StartShownPreambleCommands or to whether I comment it out. My Q. is what is the intended effect of this command \...
2
votes
2answers
130 views

How to get different chapter titles in TOC

How do I get different chapter titles in TOC, e.g. "Chapter" for the first few chapters and "Appendix" for the last? This is a part of my preamble and my main document: \usepackage[toc,page]{...
0
votes
0answers
35 views

Testing package modifications

How can I add an option to a certain package through the preamble without modifying the *.sty file itself. I need to propose an additional option to the varioref package, I need to test such ...
2
votes
1answer
107 views

Converting pdf to png with htlatex and format controlling problem -resolved

I am using miktex on windows system. I try to convert .tex file to html and then copy it to word. The challenge comes from .pdf figure Converting process can be achieved by the previous post ...
0
votes
0answers
52 views

Is it possible to comment out multiple paragraphs in preamble?

I wonder if there is a way to comment out many paragraphs in preamble. I learned that in the document one can utilize the Comment package. I would like to do the same within the preamble.
1
vote
2answers
366 views

Multi line titles with pandoc

Given the following pandoc preamble: --- title: Data Cleaning and Featurization to Support \\ Data Mining in the SomethingSomething Dataset subtitle: SomeCsClass Final Project with A and B ...
4
votes
2answers
1k views

Add ORCiD logo to moderncv using classic style

I'm trying to add the ORCiD logo to the moderncv using \moderncvstyle{classic}, but I always get an error. For the symbol itself, I tried using academicons package described here: Is there a ...

1
2 3 4 5
7