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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
63 views

`table` option in report documentclass

I came across a LaTeX template for a report with the following documentclass options: \documentclass[ 11pt, twoside, table, openright, openany ]{report} What is the table ...
Stücke's user avatar
  • 293
0 votes
0 answers
42 views

Template/class systemic literature review

I'm looking for a template (or a class) to write a systematic literature review in Public Health Sciences. I can use the article class, or a specific class as oup-contemporary; but I'm wondering if ...
Pensée sauvage's user avatar
0 votes
0 answers
19 views

sn-jnl asterix not coming for corresponding author

I am writing a paper with sn-jnl. All authors are from single institute. So, I don't need to number the authors and affil. I proceed with: \documentclass[sn-mathphys]{sn-jnl} \usepackage{xcolor,bm,...
BaRud's user avatar
  • 2,159
3 votes
1 answer
144 views

Creating a private command within a LaTeX class

I am currently creating a new LaTeX class for my university. It has commands like \printTitle for rendering the title page that the writers call from their own .tex document. However, there are a ...
Badger Dowdeswell's user avatar
7 votes
1 answer
161 views

What command should supersede \DeclareRobustCommand?

In section 6.1 of clsguide.pdf (link: https://www.ctan.org/pkg/clsguide), under "Commands superseded for new material", the class guide lists the command \DeclareRobustCommand and \...
User23456234's user avatar
  • 1,445
0 votes
0 answers
19 views

Overriding caption placement defined by document class

I'm using the FrontiersinHavard Latex class provided by the author guidelines of the Frontiers Media. Strangely enough, even though their guidelines specifically state table captions should be placed ...
joaocandre's user avatar
0 votes
0 answers
41 views

Why is moderncv using serif font by default?

I'm writing a resumé using the moderncv class: \documentclass[letterpaper]{moderncv} \moderncvtheme[blue]{classic} \firstname{Joe} \familyname{Smith} \address{123 LaTeX Ave.}{TeXville, CA 12345-6789}...
Ben Zelnick's user avatar
0 votes
1 answer
93 views

Simple Beamer Template

How can I change the Beamer to the simplest class? For example, the text is black and the background is white like the follows
Harry's user avatar
  • 179
4 votes
1 answer
574 views

"Unknown theoremstyle" warning with Springer Nature template

As displayed in the table below, the Springer Nature journal article template (available through Overleaf here or from the Springer Nature website here) is supposed to have three predefined theorem ...
user143410's user avatar
0 votes
1 answer
271 views

LaTeX Document Class

I would like to know which LaTeX document class has been used for the following three papers. https://eprint.iacr.org/2010/488.pdf https://eprint.iacr.org/2023/250.pdf https://eprint.iacr.org/2022/261....
ishimasa's user avatar
0 votes
0 answers
36 views

Layouts that give more horizontal space for equations

This is a typography question as well as a LaTeX question. I'm writing a document where some of the equations are very wide, and I'm looking for ways to lay out the document that will help me fit as ...
N. Virgo's user avatar
  • 4,177
0 votes
0 answers
29 views

Using oneside command changes alot of my commands

I am currently writing my Thesis and I am using a template form the university of Bamberg in Germany (https://github.com/UBA-PSI/psi-thesis-guide). When I add in the documentclass the command oneside ...
Abibo's user avatar
  • 65
0 votes
0 answers
42 views

Same font has different name locally and on Overleaf. How to make document compile on both?

I am building a document class and I am using these fonts. Unfortunately, after an update the style naming convention changed slightly e.g. Medium is now Medm and SemiBold is now SmBld. This has not ...
Robert Manson-Sawko's user avatar
1 vote
1 answer
57 views

How to add new komavars in .cls to use in .lco?

I want to add \newkomavar in my .cls file and use it in an .lco file. But it seems the .lco is called before the .cls and it does not work. How can I define new koma variables and use them in an .lco ...
mrCarnivore's user avatar
  • 1,367
3 votes
1 answer
56 views

Options not passing through class file with \LoadClass command

The following code works fine and gives expected output. \documentclass[fontsize=14pt,twoside,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[none]{hyphenat} \usepackage{scrextend} \usepackage{...
user61681's user avatar
  • 1,729
0 votes
0 answers
28 views

tlmgr - List only packages, or only classes

The command tlmgr list --only-installed gives all packages and classes installed. Is there a way to only have the packages installed? Same question, but only for the classes installed. This will be ...
projetmbc's user avatar
  • 13.4k
3 votes
0 answers
31 views

"Unused global options(s)" when using arguments in options of class

I have been using a custom class file for some time now, which requires several options with arguments; e.g. my documents often begin with something like \documentclass[name=John\ Smith]{mathwork}. ...
Andy Wang's user avatar
1 vote
1 answer
267 views

Overleaf - Compiling multiple .tex files into multiple outputs (alternatively, nesting document classes?)

Clarification: I am looking for a way to automatically run pdflatex on multiple .tex files to produce multiple separate .pdf files when I click the Recompile button in Overleaf. I have multiple .tex ...
L Duran's user avatar
  • 13
0 votes
0 answers
24 views

Page orientation option doesn't work with new class

This is the new class I have created preloading article class \LoadClassWithOptions{article} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{chain}[4/4/2022] %Packages \RequirePackage{tabularx} \...
Karel Capek's user avatar
2 votes
1 answer
45 views

How to use symbol of \lambda from documentclass{acmart} in documentclass{article}?

Basically I want to use the symbol of \lambda in \documentclass{acmart} in a different document class without changing any other symbols. (I'm the guy from a previous question who asked about using \...
SomeBoringDude's user avatar
2 votes
1 answer
438 views

Bug in sn-jnl.cls with iicol mode and multiple affiliations

When using the Springer Nature sn-jnl.cls class file, the use of iicol mode leads to incorrect author affiliations if there are multiple affiliations. How to fix this? MRE: open the template here, try ...
swineone's user avatar
  • 193
0 votes
1 answer
53 views

Best way to automize a layout

I am new to classes and I would like to make a class that automatizes the complete layout of the document. This includes : setting a given pdf file as background, there is a different background in ...
John's user avatar
  • 239
0 votes
0 answers
79 views

\setlength{\textwidth} unwanted behaviour

The aomart.cls file has a line \setlength{\textwidth}{31pc} that regulates the width of the page. The default is 31pc, and if I increase it (in my own class file which is basically the same as aomart)...
Karl's user avatar
  • 273
0 votes
0 answers
37 views

Modifying the aomart class to book or report

I am writing some lecture notes using the aomart class, because I like almost everything about it. What I currently dislike is the fact that since it's an article I cannot use chapters and the page is ...
Karl's user avatar
  • 273
2 votes
3 answers
422 views

Latex Table Missing Border Lines

Once again when porting Latex Table code from one journal to springer format I am getting missing border lines( image attached). Latex code is as follows. Please suggest solution for missing border ...
user3696623's user avatar
0 votes
0 answers
74 views

Changing font size in custom document class

I am writing my own document class and would like to include a macro that makes the main text in my document 12pt. Everyone online says to do this with \documentclass[12pt]{article} however I can't ...
curry's user avatar
  • 283
5 votes
1 answer
324 views

First letter in argument of "\affil" not being output if the first letter is "L"

While trying to add company name in author affiliation, the letter "L" is missing after I compile my LaTeX document. Demonstration below: Latex: \documentclass{IEEEmce} \makeatletter \def\...
Farhan Kabir's user avatar
3 votes
2 answers
429 views

Undefined Control sequence while using \chapter command [duplicate]

I am a new Latex learner and was following a guide. I created a template document. I used \chapter{} command to make a new chapter but i got an error stating undefined control sequence. if i remove ...
Syed Ahmed's user avatar
1 vote
2 answers
164 views

How and where to install a .cls in a minimal TexLive distribution (MacOsX)?

I have a minimum LaTeX live installation which I don't remember how it got installed. I think it was a dependency of some other program and it got automatically installed. Nevertheless, the content of ...
Barzi2001's user avatar
  • 459
0 votes
1 answer
44 views

How can I produce italic Georgia font in a title page, via a custom class?

I am trying to build a LaTeX class the reproduces my organization's branded Word template, based on the report class. I have most of the elements worked out, except for one aspect. When a report ...
rsandler's user avatar
  • 483
0 votes
1 answer
40 views

Tabular font size in LIPIcs class

I am using the class lipics-v2021.cls from here. I have noticed that changing the font size before a tabular has no effect, as it would normally have: \documentclass{lipics-v2021} \begin{document} ...
Bubaya's user avatar
  • 2,149
0 votes
2 answers
41 views

Hitec change amount of content in the header

I've been trying out the Hitec class package to produce technical documents. The documentation is very sparse, however. Available here: https://mirrors.concertpass.com/tex-archive/macros/latex/contrib/...
James's user avatar
  • 125
2 votes
1 answer
102 views

Writing a class file from scratch and getting "Missing \begin{document}" error

I'm looking to write my own class file for a couple of reasons, but my main interest is better understanding LaTeX and how it works. I understand that I likely don't need to define my own class for ...
Metomorphose's user avatar
0 votes
1 answer
45 views

How to use Jeep format in report documentclass?

I was asked to use the Jeep format for writing my report but I can't seem to find any documentation on the subject. I was able to import jeep in my documentclass like this \documentclass[12pt,jeep]{...
Fabio Matos's user avatar
0 votes
0 answers
163 views

saving cls. files in different folder than .tex file

Is it possible to use a document class from a different folder than the .tex-files? My documentclass is used in more than 1 document. I want to use the document class for all of them. In my document I ...
Steven Schneiders's user avatar
1 vote
0 answers
37 views

Command `\RequirePackage` and packages conflict [closed]

I come from this comment both enlightened and with a question mark over my head: The command \makeatletter \makeatother requires packages, in my case pdfpages and xpatch. In so far I use these only ...
Bruno Peixoto's user avatar
0 votes
0 answers
99 views

Using class options in LyX

I've recently installed TeXlive and LyX. Now I'm trying to write a document using the tufte-book class. But I can't find any way to make the text column justified or make section, chapter numbers ...
kobaltishblue_312's user avatar
0 votes
1 answer
63 views

Problem passing a table as an argument to my class using the environment NiceTabularX and tabularray

I'm very used to come here often to debug my code and find solutions to my problem. But it's the first time i cannot find a solution to my exact problem or something i could adapt for my case. So here ...
gjjfournier's user avatar
2 votes
1 answer
111 views

Passing arguments using IfValueT

I have seen the following usage: \NewTColorBox[]{containerbox}{o o}{ %invisible boxes for sections (now grey) boxsep=0cm, boxrule=0cm, sharp corners, left=0cm, right=0cm, ...
rosecabbagedragon's user avatar
2 votes
1 answer
60 views

Splitting Author Name of Titlepage Over Two Lines When Using Smallcaps

I am using \maketitle and would like to split the author's name over two lines with an adjustable space in between. I am also using small caps with \author, which seems to be causing a problem. For ...
jean-marie's user avatar
  • 1,014
0 votes
1 answer
135 views

Best practices and general guidelines [closed]

I am translating a handwritten notes PDF to LaTeX. Do y'all have any tips on best practices for the same. It has multiple chapters (basically notes for a course) lots of equations and derivations with ...
Sahas-Ananth's user avatar
0 votes
1 answer
120 views

Passing parameters and arguments to a \documentclass without adding them directly to the \documentclass[ HERE ]{article}

I would like to pass several arguments to \documentclass[HERE]{beamer}. I have several arguments so I don't want to write them all in there. I would like to pass a file or write them down in the ...
Yi Qiang Ji's user avatar
1 vote
1 answer
321 views

Overleaf can't find the document class when it's in a folder

I am making my own document class called MyClass in overleaf. I would like to move the cls file into its own folder called Style. How do I change the command \documentclass[Path=./Style/]{MyClass} so ...
curry's user avatar
  • 283
0 votes
0 answers
45 views

How to process base document class options in the derived class?

I want to process options passed to the base class in my derived class. Specifically, I'd like to enforce margin sizes for the article class with geometry package. Moreover, I would like to forbid ...
Robert Manson-Sawko's user avatar
0 votes
1 answer
43 views

Display and wrap long labels in the margin with `showkeys` or `showlabels` with the `informs3` document class

I would like to display longer labels given to sections, theorems, and equations in the margin with line breaks so they do not extend outside the margin. I tried the two answers to this question, but ...
tvk's user avatar
  • 1,607
1 vote
0 answers
738 views

Why do I get the Package caption Warning?

While compiling my document, I get the following warning: Package caption Warning: Unknown document class (or package), standard defaults will be used. See the caption package documentation for ...
Emil's user avatar
  • 370
1 vote
0 answers
80 views

Problem with \RequirePackage in documentclass

Hey Guys I´m using LuaLateX in TeXstudios. I wanted to export the packages from my .tex into a .cls file to make the .tex file more clear. In my .tex file I include the .cls file like this: \...
Steven Schneiders's user avatar
0 votes
0 answers
160 views

How to use a LaTeX template created in TeXstudio in overleaf?

I'm new to LaTeX and I'm using overleaf to ease collaboration with co-authors for a paper. I need to follow a template that was provided by the conference, and they say the template has been checked ...
MonicaS8021's user avatar
0 votes
0 answers
95 views

LaTeX template for Springer economic journals?

In submission guidelines for Springer economic journals it is typically written that "We recommend using Springer Nature's LaTeX template". But in the template itself you can choose among ...
Kostiantyn Ivashchenko's user avatar
0 votes
1 answer
76 views

\tableofcontents overwrites document class header if TOC spans multiple pages

I am troubleshooting a conflict between the Springer Nature sn-jnl document class and the standard \tableofcontents command: If the table of contents (TOC) is entirely contained within a single page (...
user143410's user avatar

1
2 3 4 5
23