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,174 questions
3
votes
1
answer
58
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
160
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
947
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
36
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
34
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-...
3
votes
2
answers
158
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
44
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
65
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{...
0
votes
0
answers
48
views
ToC for a journal volume
I am trying to make a small conference-paper volume for a local conference, and I am having some issues with Table of Contents part. I want to make it automatic, but can't figure out the syntax, ...
2
votes
1
answer
33
views
singlecol-new: General warning triggered in Overleaf
having downloaded current version of the singlecol-new.cls, which is needed for some of the InderScience journals, I get general warning in Overleaf TexLive 2024:
L3 programming layer <2024-03-14&...
0
votes
0
answers
19
views
Can someone identify the next font/document settings? [duplicate]
I'm currently writing a paper and searching for the appropriate document settings(font, line spacing, margins etc.). I saw the next paper, and this is exactly what I've been searching for.
This is a ...
3
votes
0
answers
160
views
Is there a .cls file of the layout of the Latex Companion 3rd edition?
The layout of the Latex Companion 3rd edition is really elegant.
I understand (Production Notes, end of the document) that an assembly of 140 packages was used.
Sorry for my naive question, but are ...
5
votes
1
answer
162
views
new versions of fancyhdr break caesar_book class
When I compile caesar_example.tex, the page numbers do not appear. They only show up if I use an older version of fancyhdr (e.g., this one).
I am using TeX Live 2022 on Debian.
Is this issue related ...
0
votes
0
answers
51
views
using LMS class file
The document class of London Mathematical Society lms isn't available at CTAN and so it can't be part of any TeX distribution. I downloaded the template from this website https://ctan.mirror.garr.it/...
0
votes
1
answer
38
views
\nocite{*} causes Undefined control sequence at \printbibliography
Using \nocite{*} leads to a Undefined control sequence at \printbibliography. If I define a specific source, such as \nocite{axford-1961}, it compiles without issue.
Compiler: XeLaTeX
I thought it ...
7
votes
1
answer
188
views
Why does \appendix reset the counter of the level below the main sectioning level?
In book.cls \appendix is defined as:
\newcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}}
While in ...
0
votes
0
answers
65
views
Convert .bib to .docx in command line (as does: https://www.bibtex.com/c/bibtex-to-ama-converter/)
I frequently use the excellent following website to convert my bibliography from .bib to .docx for coauthors working with me on scientific stuff who don't use latex:
https://www.bibtex.com/c/bibtex-to-...
0
votes
0
answers
60
views
How can I use Springer "svmult" latex template in local with Visual Studio Code?
I'm trying to use this template from Overleaf
text
I executed this on Overleaf it worked well.
However, since I upload a lot of images, I prefer to run the Latex code locally.
But even the template ...
0
votes
1
answer
102
views
fontspec and custom class triggers The font size \normalsize is not defined
I'm trying to create class based on beamer to make presentations as simple as possible while following the graphic manual we have.
I need to use fontspec and I'm using luaLaTeX package to load OTF ...
0
votes
0
answers
39
views
Where to put new TeX classes in Slackware Linux?
I've just downloaded some interesting TeX classes from CTAN website, but I'm not sure where to put these classes in order to make them recognized by my TeX software. I'm using Slackware 15.0.
1
vote
1
answer
136
views
Setting up LaTeX for lecture notes. Which class is the most useful?
I have considered the classes report and book. I need to add the dates for each lecture(chapter). Is that possible for these specific classes?
1
vote
0
answers
60
views
How to tell latex where to find the .cls file? [duplicate]
So I have this folder structure:
root
|- main.tex
|- myfolder
|- abc.cls
When I want to compile main.tex:
\documentclass[a4paper,twoside,10pt]{abc}
\begin{document}
Hello world
\end{document}
it ...
0
votes
0
answers
30
views
Figures and tables are not shown
I was writing in a \documentclass[conference]{IEEEtran} and figures and tables were shown. When i shifted to \documentclass[]{IEEEphot} figures and tables are not shown anymore. I have included all ...
0
votes
0
answers
58
views
Europass CV content not fitting & exceeding page size
While making europass cv in latex i used \ecvblueitem to make two sections (section 1 and section 2). Section 1 has text around half of the page whereas Section 2 has text exceeding one page.
(1) How ...
1
vote
1
answer
78
views
Font size conflict between document class and tikzpicture
Here are my files reduces for the MWE :
file 1 :
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\begin{document}
\input{Chaine_Fonctionnelle}
\end{document}
file 2 :
\documentclass[...
0
votes
0
answers
26
views
Documentclass Report: Undefined Control Sequence [duplicate]
What mistake am I making? Am I missing something?
\documentclass[a4paper,oneside,12pt]{report}
\begin{document}
Test
\end{document}
EDIT:
The compiler is having trouble understanding a command you ...
1
vote
0
answers
53
views
How to have multiple departments within the same university be in a single line for the affiliations in Springer latex template?
I want to have multiple departments within the same university be on the same line (no line breaks). The line should break with different universities.
Currently, this is how it looks like: (here X &...
0
votes
0
answers
80
views
How can I modify the note and footnote of the template article for Elsevier's document class `elsarticle'
I'm working with the template article for Elsevier's document class `elsarticle'.
This is an MWE:
\documentclass[preprint,12pt]{elsarticle}
%% Use the option review to obtain double line spacing
%% \...
0
votes
0
answers
27
views
how i can make the numer of subsection in right side
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage[english, russian]{babel}
\usepackage{nopageno}
\...
0
votes
1
answer
55
views
Figure Alt text dialogue box will appear when mouse over the figures
I want to add alternative text (Alt-text) to have a dialogue box appear when hovering over the figures. Additionally, I need to ensure PDF accessibility tagging is implemented in this PDF. My MWE is ...
0
votes
1
answer
119
views
Tufte Class and Margins
I have recently gotten acquanited with the tufte document class and I love its style very much; the only thing that bothers is the side margin use, even though I understand that it is exactly what the ...
0
votes
1
answer
46
views
Inconsistent symbols in slides documentclass
Problem description
I like how the slides document-class typesets most of the maths, which I crop and use in a WYSIWYG slide editor.
First, I'm not sure how to set the font to 10pt, so that the new ...
1
vote
1
answer
65
views
Problem placing information at the bottom of the first page
I am working on the development of template and I would like to have something similar like this:
I'm working in twocolumn document and I tried to replicate it in \fancyfoot[L]{} (only for the first ...
0
votes
1
answer
152
views
Command \ch and \arctg already defined
Two errors:
document.tex: error: 2: Command \ch already defined. \begin{document}
document.tex: error: 2: Command \arctg already defined. \begin{document}
for that simple piece of code:
\documentclass[...
0
votes
0
answers
40
views
How can I adjust caption formatting without the caption package
I'm trying to build a custom class that matches my organization's template. I managed to get the formatting for table/figure captions to match using the caption package, but the caption package does ...
2
votes
1
answer
533
views
Conflict between Springer document class and \cline [duplicate]
So, I am trying to write down a table in the "sn-jnl" document class from Springer: when I do it it "article" instead I get exactly what I want:
\documentclass{article}
\usepackage{...
2
votes
0
answers
74
views
Create TEX file without document environment [closed]
Is it possible to create document classes for forms (e.g. "donation confirmation"), so that in the TEX file, one has to only include the document class and the commands provided by it, but ...
0
votes
1
answer
107
views
Wrap text in \location argument of \personalinfo field of \makecvheader command in altacv.cls
I am writing my CV and I want to add an address using the \location field in the \makecvheader command. My location information is however large and going out of the page. I have a lot of unused space ...
1
vote
1
answer
82
views
Difficulty with `tableofcontents` and page-numbering
I'm writing my math thesis with Texmaker, but somehow my LaTeX codes fail to produce the PDF layout required by my school. Ideally, I'm hoping to achieve the following result:
Please notice that this ...
0
votes
0
answers
28
views
sysbio class conflicts with font size macros in tikz pictures
The sysbio official class file has caused many problems. I find it conflict with font size macros in tikz pictures, e.g. the following MWE produces an error:
\documentclass{sysbio}
\usepackage{tikz}
\...
1
vote
1
answer
27
views
Problem refering to appendix using the sysbio class
With the MWE:
\documentclass{sysbio}
\usepackage{hyperref}
\begin{document}
\section{Introduction}
Some thing in \ref{app::a}
Some thing in \autoref{app::a}
\appendix
\section{some appendix}
\label{...
0
votes
1
answer
80
views
Error in chapter Style modification
for the past few days, I have been attempting to change the chapter style, but I've encountered an error with the class I am using. Here is my code:
\documentclass[a4paper,12pt]{extra/MyThesis}
\...
3
votes
0
answers
90
views
Usage of a university template produces unrelated errors in xcolor package
I'm new to this forum and I have a question regarding a template.
Here's the basic code:
\documentclass[a4paper,
DIV=13,
12pt,
BCOR=10mm,
twoside,
parskip=half,
automark
]{OTHRartcl}
\title{This is a ...
3
votes
1
answer
162
views
How to let LaTeX forget that a class has been loaded?
Consider the two files
% mydoc.tex
\documentclass{myclass}
\begin{document}
\end{document}
% myclass.cls
\LoadClass[x]{myclass}
When LaTeXing mydoc.tex, I get two errors (the second one after ...
1
vote
0
answers
76
views
What is the closest to a 'canonical' document class for something shorter than an article?
I'm looking to write a document which is lesser in scope than a full-fledged "article" (in the document-class sense). Some characterization explaining what I mean:
I doesn't have as many ...
1
vote
1
answer
100
views
How to change word size and baseline documentclass in latex without affecting table
I'm almost finished with my paper, but I realized that I need to have 1.5 line spacing and 12pt font size. When I switch from \documentclass[table]{article} to \documentclass[table, 12pt]{article} and ...
0
votes
0
answers
28
views
How to add a research paper (class) to a thesis (class) in one OverLeaf file [duplicate]
I have a thesis class that has the following tex file as a main file and it is called: thesis.tex
%------------------------ Preamble and bibliography resources
\documentclass[12pt,oneside]{...
5
votes
1
answer
199
views
Package and class names
Here's the smallest question I've ever asked.
Can a package and a class have the same name?
0
votes
1
answer
64
views
Biblatex "style" option not recognized when passed through a macro in a custom class
I'm porting my long preamble into a separate class file, and this is the only error left. In the MWE, I'm passing two key-value options to my class using xkeyval and feeding them to biblatex after ...
0
votes
1
answer
66
views
document class not working properly - strange font
I am having a strange problem with the "Document class" option in Lyx. Up until now, all document classes showed as "unavailable". Nonetheless, when I viewed documents as PDFs, ...