Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [documentclass]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
82 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?
shmwot's user avatar
  • 13
0 votes
0 answers
51 views

Strange work of showframe package

I am trying to write a simple class and set all necessary parameters (paper size, font size, margins, header, footer, etc.) by myself. I do not want to load complex classes like article, report, book,...
ASKrasnow's user avatar
0 votes
2 answers
91 views

DIsplay ORCID icon instead of ID in LNCS template

In the LNCS document class (llncs) display ORCID ID in authors name, instead of ORCD icon: \author{First Author\inst{1}\orcidID{0000-1111-2222-3333} \and Second Author\inst{2,3}\orcidID{1111-2222-3333-...
Amina Umar's user avatar
1 vote
1 answer
27 views

option legalpaper for documentclass exam not working -- please help

I am trying to create a multiple choice exam on US Legal paper. I am using TeXShop on a MacBook Air M2 running MacOS 14.4.1. I've just installed TeXLive 2024. Here is part of the console log: LaTeX2e &...
dhhepting's user avatar
1 vote
0 answers
40 views

Why are all of the documentclass of my tex file on overleaf changed to \documentclass[reprint,nofootinbib]{revtex4-2}?

I suppose I use \documentclass[aps,pra,twocolumn]{revtex4-2} originally, and today I opened the overleaf and found that all these changed to \documentclass[reprint,nofootinbib]{revtex4-2}, accompanied ...
karry's user avatar
  • 147
4 votes
1 answer
56 views

In LuaLaTeX can I issue a LoadClass from a lua script invoked from a "user" class file?

LuaLaTeX: The desire is to maintain some parameters in a lua script and, from these, amongst other things, construct a \LoadClass statement which can be invoked from one's own class file. I can get ...
Chris Shattock's user avatar
1 vote
2 answers
442 views

Issue with \documentclass{sn-jnl}

If I try to compile with pdflatex (or just latex) the following simple code (sn-jnl.cls is the documentclass for Springer journals, so I assume it is widely used...) \documentclass{sn-jnl} \...
mvs's user avatar
  • 101
1 vote
1 answer
1k views

Referencing style for springer documentclass[default,iicol]{sn-jnl}

I am using the new nature class from Springer, which is available on this https://www.springernature.com/gp/authors/campaigns/latex-author-support I am having trouble in selecting the bibliography ...
AnkanBan's user avatar
4 votes
1 answer
123 views

unsupported document class detected with Copernicus Latex Package

I’m trying to compile the template of the Copernicus Latex package (used for Copernicus journals). I downloaded the package from Copernicus website: https://publications.copernicus.org/for_authors/...
Clmt's user avatar
  • 43
0 votes
0 answers
43 views

Change all four margins by a certain amount, temporarily, in book documentclass

Is there a way to subtract a certain amount of space from all four margins (top, bottom, left, and right) in a document that has (say) \documentclass[11pt]{book}? I wish to temporarily (for a couple ...
Noah J's user avatar
  • 515
0 votes
0 answers
28 views

How does the book document class ordinarily handle margins?

I wish to use the geometry package's \newgeometry (later on followed by \restoregeometry) in order to temporarily alter the margins of a document whose class is set to book. But I would like to ...
Noah J's user avatar
  • 515
1 vote
1 answer
432 views

Can't compile - Undefined control sequence

I am writing my thesis, and I can't understand what is the problem because the spelling seems correct to me. Maybe its the report document class that is the problem. I really don't understand. \...
enrico223's user avatar
0 votes
1 answer
157 views

How to solve Undefined controll sequence in document class (.cls) file

I have to write a document class with 2 parameters (one gives a logo and one a chess board). The code for the two parameters are working fine but i get some errors and i dont know how to fix them. ...
Nutellafreak's user avatar
0 votes
0 answers
162 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
1 vote
1 answer
509 views

pandoc-template markdown to pdf with latex no working

I’m trying to create a minimal working pandoc template that would just take the latex.cls from the YAML metadata block in the source.md file. So here is my template: $if(documentclass)$ \documentclass{...
Louis's user avatar
  • 303
1 vote
1 answer
217 views

Redefine the abstract environment to be the first bold paragraph

I am using overleaf for my text and want the Abstract as a first paragraph of the document in bold rather than a separate section on top. I am using the following document class. Can some help me with ...
Ali Babar's user avatar
2 votes
1 answer
70 views

Adding custom class version to document

I like to add the version information of my documentclass to the document. \ProvidesClass{myclass}[2022/10/27 v1.12 MyClass] In the PDF: 2022/10/27 v1.12 MyClass How can i do that?
flymg's user avatar
  • 179
0 votes
1 answer
38 views

Using pictures in class file

I'm wondering how i can use a logo in a .cls file. This logo shall be on all pages of the document. The classfile looks like this: \ProvidesClass{myclass}[2022/10/27 v1.12 MyClass] \LoadClass{...
flymg's user avatar
  • 179
0 votes
1 answer
67 views

LMS template: to delete header and footer

I'm using Overlead's template of London Mathematical Society lms class [lms.cls], but I got this on top right of the first page How can I remove this one and this following one on the bottom left as ...
W. Wongcharoenbhorn's user avatar
0 votes
0 answers
52 views

Error with report class

I am using the following packages for writing a document \documentclass[12pt,a4paper,twoside]{report} \usepackage[subpreambles=true]{standalone} \usepackage[utf8]{inputenc} \usepackage[english]{babel}...
KRISHNA CHAUHAN's user avatar
1 vote
0 answers
29 views

Is it possible to merge the documentclass file and the main tex file? [duplicate]

A normal TeX file looks something like this (MWE): \documentclass{article} \begin{document} Contents \end{document} In this case, one must have two files in order for the document to be compiled : ...
beaniehat's user avatar
0 votes
0 answers
269 views

About LaTeX document preamble

This migh be a silly question but I ask to you LaTeX veterans for help in improving my LaTeX-document preamble. The following is what I usually run as predefinite preamble, but I suspect that I could ...
Henry's user avatar
  • 402
0 votes
1 answer
104 views

Disable a package/classoption when the draft mode is on

I have a custom .cls file which passes the parameters of the \documentclass to a4paper. In this .cls file, I have (from the top), \NeedsTeXFormat{LaTeX2e}[1996/12/01] \ProvidesClass{Thesis} ...
Tom's user avatar
  • 123
1 vote
1 answer
150 views

What documentclass to use for publications not meant to be printed

I'm looking for a documentclass or a setup where the paper size (like A4) and "page breaks" aren't part of the output. How do I end up with one long pdf, with no page distraction?
Søren's user avatar
  • 11
0 votes
0 answers
73 views

Margins are not correct with \geometry{ ... } and \documentclass{Thesis}

\documentclass[a4paper, 11.5pt, oneside]{Thesis} %ECS Thesis style by Steve Gunn %Set margins \usepackage{geometry} \geometry{ a4paper, top=20mm, left=20mm, bottom=20mm, right=...
Jedwin Villanueva's user avatar
8 votes
1 answer
1k views

General advices to create a LaTeX class

I have some time working with LaTeX, so I decided to create my own LaTeX class to simplify my preamble and, by the way, learn something I haven't done yet. To get started I looked for some guides as: ...
AmadoC's user avatar
  • 445
1 vote
1 answer
489 views

Extra \endgroup error after transforming \documentclass{article} into \documentclass{revtex4-2}

Can you please help me identify what is wrong with my coding? I've searched online for solutions but I couldn't find a working one. Before, I used article for my \documentclass to complete my thesis. ...
Azmadi M's user avatar
0 votes
1 answer
349 views

Adding a CV document to an Article document in Overleaf

I'm writing an article in Overleaf using \documentclass[12pt]{article} I have several sections in this document. I'd like to add a CV under one of these sections. Any idea how I could do this? Thanks ...
London63's user avatar
0 votes
0 answers
17 views

a5paper option in documentclass produces strange white space/margins and hyperref fixes it [duplicate]

I observed a very strange behaviour of latex when it comes to the pagesize: When I create a document in a5paper by just using \documentclass[a5paper]{book} then the output pdf seems to be in A4 but ...
Nathanael Skrepek's user avatar
0 votes
0 answers
31 views

Book starts from left page [duplicate]

I'm writing my thesis using the book document class in LaTeX. I don't know why, but after the last compilation the document started from the left page. As you can see the right margin of the first ...
lorellan's user avatar
1 vote
1 answer
634 views

How to add .tex file with beamer to the main one?

I want to add a presentation to the main file, for which I need to define \documentclass. I tried to do this using standalone, but the presentation itself looks like plain text and I also get an error ...
SDoukin's user avatar
  • 23
1 vote
1 answer
139 views

centering table caption in a class created by my university

I am using a document class written by my university. I tried to put the caption of my table in the center. However, I could not manage to do that. Please find a working example and the files in this ...
Smai's user avatar
  • 13
-2 votes
1 answer
250 views

CV documentclass [closed]

What document class is used in this CV: I'm looking for something similar.
Vika's user avatar
  • 489
2 votes
0 answers
106 views

Document Class/Template to recreate GM Owner's Manual

I own a highly modified GM vehicle, and I'm interested in creating a "stock-alike" owners manual for my vehicle, incorporating my modifications. I'm not necessarily looking for something ...
Nick2253's user avatar
  • 182
1 vote
1 answer
209 views

TeX Live won't work with custom class. Says Undefined control sequence \if@cref@hyperrefloaded

since switching to Linux and therefore switching from MiKTeX to TeX Live, I'm having problems getting all my documents compiled with a custom class made by a fellow student from my university. The ...
bst's user avatar
  • 13
0 votes
2 answers
3k views

"! LaTeX Error: Environment table undefined." in minimal documentclass [duplicate]

I was about to put together an MWE for testing pgfplotstable when pdflatex gave me the error: ! LaTeX Error: Environment table undefined. See the LaTeX manual or LaTeX Companion for explanation. Type ...
Horror Vacui's user avatar
0 votes
2 answers
87 views

How to use \include or \input (or another command?) to render dissertation chapters as research articles?

I have multiple "content" file that I need to pull into two different directions for two different document classes, book and article. There is only one book file, and I am successfully ...
DietCherryPepsi's user avatar
0 votes
0 answers
226 views

Undefined control seqeunece.\ documentclass

may u help me with this error When I write this simple command in texstudio?when I type \ documnet class the error will apppear but when I typ doc.. and then the software propose default the phrase \...
Soheil's user avatar
  • 1
1 vote
0 answers
263 views

Compiler can't find cls files in Windows

I have TeXLive2014 under Windows10 that was working fine for 6 years. Problems started a week ago or so. I opened a document which compiled in December correctly, made some irrelevant changes (nothing ...
Rafał Zduńczyk's user avatar
0 votes
0 answers
440 views

Options passed to \documentclass not recognised

I am using latex to write my thesis and I am using a template with a modified class. Since last Wednesday, the options that I declare at the top of the document in the \documentclass command are not ...
granprix's user avatar
3 votes
1 answer
383 views

Pass the final/draft option to the document from the command line

I have a document that starts with \documentclass[aps, pra, draft]{revtex4} Once in while I want to change draft for final but without modifying the file. How can I effectively change draft to final ...
alfC's user avatar
  • 14.5k
0 votes
1 answer
151 views

What files are accessed in a documentclass? [closed]

I was considering writing my own classes and thought copying and pasting the original class (report) would be a good starting point. I assumed that if I: copied report.cls to myreport.cls in my ...
user1683586's user avatar
1 vote
1 answer
3k views

\document ->\endgroup ERROR

These two lines: \documentclass[aps,prl,two column]{revtex4}% \begin{document} Produce the following error: ! Extra \endgroup. \document ->\endgroup \init@documenthook \set@...
Gal V's user avatar
  • 11
1 vote
0 answers
365 views

MSCS LaTeX style won't compile

I am trying to prepare a manuscript to submit to MSCS. I have downloaded the MSCS LaTeX style package (as suggested at the author instructions page). However, I cannot compile even the MSCguide.tex ...
Alejandro DC's user avatar
  • 1,966
1 vote
0 answers
151 views

Can I use my own documentclass (custom.cls) with latex2html?

I posted a question similar to this on [email protected], but lack of response makes me wonder whether the list still has active members. For production of stand-alone documents in PDF format, I ...
russ's user avatar
  • 67
0 votes
0 answers
188 views

want to use my own language babel but clashing with document class

I want to use mongolian babel with the other document class but it crashes everytime. \documentclass[colophon, english]{phduio} \usepackage{phdstyle} % Custom style \usepackage{kantlipsum} % Dummy ...
Quintis's user avatar
  • 155
1 vote
0 answers
722 views

Explicit path to document class [duplicate]

What is the proper way to set document class by providing the path to the custom class file? Something like this: \documentclass{../myclass/myclass} This kind of works but I'm getting an error that ...
Maštarija's user avatar
2 votes
1 answer
77 views

When do curly braces disappear in macro definitions? (e.g. \documentclass expansion)

I've been looking into how \documentclass and friends are actually defined, and I noticed something peculiar which I'd like to understand. Let's say I have \documentclass[11pt, titlepage]{article}. ...
Dennis Müller's user avatar
0 votes
0 answers
22 views

Error 'CBabstract' not found

I am trying to use document class \documentclass[b5paper,11pt]{CBabstract} but I have the following error: File 'CBSabstract.cls' not found. Could you please help?
senorita.xi's user avatar
0 votes
1 answer
774 views

Hyperref: `\hypersetup` ignored for `\AtBeginDocument`

I want to add an option to a class text.cls that automatically loads a default style for hyperref supplied via the hypersetup command. This works as expected. However, if I want to account for the ...
raedma's user avatar
  • 1,794