Questions tagged [document-classes]
{document-classes} is for questions relating to the document class of the TeX file. This sets up various document-wide formatting elements.
1,176 questions
0
votes
0
answers
38
views
A counter to replace chapters not supported in amsart
Related to question without an answer Defining chapter in LaTeX under amsart, I know that amsart class haven't a \chapter command.
To write a chapter I use the enviroment center, like the example ...
0
votes
0
answers
69
views
Does changing to journal specified class clash with nepture?
Suppose you are submitting an article to a journal, which recommends its users to use a specific document class. So, you changed the article to the specified document class.
Can it happen that a latex ...
1
vote
0
answers
29
views
\footnotesize not defined in minimal document class [duplicate]
I'm trying to use the \footnotesize in a document which is of class minimal, and I get an Undefined control sequence..
Here is a MWE
\documentclass{standalone}
\begin{document}
foo\\
\...
1
vote
1
answer
73
views
Empty sheet after declaration [closed]
I am currently writing a thesis with Latex. According to the university's guidelines, a declaration of independence must be inserted between the bibliography and the appendix. I am using the package “...
3
votes
1
answer
84
views
Is that mandatory requirement to put \RequirePackage after \LoadClass?
Description
In .tex, we should use \documentclass and \usepackage in order.
However, in .cls, it seemed not mandatory.
Consider the following examples:
\LoadClass after \RequirePackage:
\begin{...
0
votes
0
answers
57
views
How to fix the \hfill command in the memoir document class?
I was surprised to observe that the \hfill command apparently does not work (at least not inside a \begin{matrix}...\end{matrix} construction) when using the memoir latex document class. Why is this, ...
0
votes
2
answers
105
views
Is it possible to test if a document class is loaded, and if not, load one, otherwise use the one already loaded?
I have a shared preamble file that provide uniform configuration for my documents. But it has no document class of its own. That way, I can determine the class for each document. But that means it ...
3
votes
1
answer
92
views
Custom document class always pick the default logo even if I change to other logos
I want to create a custom class with an option to change logo. But the default logo is always selected even if I change to other logos.
\ProvidesClass{myclass}[2024/12/01 v 1.00 class for fun]
\def\@...
5
votes
2
answers
207
views
How to change the numeration of sections from "0.x" to "1", "2", etc.?
So I've looked through some similar (but not the same) questions, I've look through the template I was given but I don't understand how do I change the numeration of the sections from "0.x" ...
4
votes
3
answers
1k
views
Old math books fonts
I am currently working on a book/articles. I really (really!) enjoy the styling of the Nagoya Math Journal from the late 80s-90s. Here's an example : https://www.cambridge.org/core/services/aop-...
0
votes
0
answers
61
views
Custom compiler errors/warnings
I own a LaTeX project with many contributors that don't necessarily use LaTeX every day so they often make "little mistakes" as writing ... instead of \dots in mathmode or using nonadaptive ...
0
votes
0
answers
204
views
Set the class files directory for Latex
How, when I run the pdflatex or lualatex or similar command, can I tell Latex where to look for class files?
Let's say I have a directory structure like this:
root
|--- [my program, etc.]
|--- latex-...
4
votes
2
answers
361
views
Argument of \let has an extra }
I simply want to highlight the title of a subsection with below:
\subsection{\hl{Computation Time}} \label{sec:comp_time}
I added "\usepackage{soul}" at the beginning of the latex file.
But ...
0
votes
2
answers
103
views
How to set \baselineskip in a class file?
I want to change the length of \baselineskip for my latex documents. This is my test document:
\documentclass{testlayout}
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ...
3
votes
1
answer
149
views
What's wrong with nicematrix and socg-lipics-v2021.cls?
Sorry for asking for help to understand a custom conference class file. The class file is a wrapper available here around the LIPIcs class file. When compiling a basic document such as
\documentclass{...