Questions tagged [documentclass]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
38 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
0 votes
2 answers
131 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
  • 91
0 votes
1 answer
300 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
67 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
42 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
  • 483
0 votes
0 answers
26 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
  • 483
1 vote
1 answer
260 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
80 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
118 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
428 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
97 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
45 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
  • 169
0 votes
1 answer
29 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
  • 169
0 votes
1 answer
53 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
45 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
28 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
176 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
  • 368
0 votes
1 answer
89 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
100 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
58 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
7 votes
1 answer
911 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
  • 425
1 vote
1 answer
430 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
242 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
16 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
451 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
111 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
222 views

CV documentclass [closed]

What document class is used in this CV: I'm looking for something similar.
Vika's user avatar
  • 341
2 votes
0 answers
91 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
186 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
2k 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
79 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
209 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
232 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
329 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
281 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.2k
0 votes
1 answer
132 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
2k 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
327 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,946
1 vote
0 answers
120 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
148 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
719 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
69 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?
Ксения Цочева's user avatar
0 votes
1 answer
588 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,754
1 vote
0 answers
95 views

Class wrapper: Why "unused global option(s)" warning

I am trying to write a wrapper around some documentclasses as a small test. Everything works so far, but why do I get an LaTeX Warning: Unused global option(s): [math=true,tikz=true,base=normal,type=...
raedma's user avatar
  • 1,754
0 votes
0 answers
363 views

Language options: what is the use of "main=french" in the \documentclass command?

If using the option english,french with babel and french in the \documentclass command, the following warning results. Package babel Warning: Last declared language option is "french", but the ...
LPH's user avatar
  • 246
0 votes
1 answer
247 views

How can I use \textsc inside a \documentclass (poster) option?

I am using a quite nice looking poster template I found here to base my poster on. However, I want to use \textsc{} in my title, and the template won't let me. I get the following error: Argument of \...
rdv's user avatar
  • 297
1 vote
1 answer
334 views

How to make an A4 publication fit in a letter document for ArXiv

I have written a paper in A4 format (Springer Journal style) and need to submit it to ArXiv. However, ArXiv messes up with the margins of the file for some reason. According to their FAQ, it is ...
Cesar's user avatar
  • 121
0 votes
1 answer
176 views

Show bookmarks in pdf from custom documentclass

I have been trying to get the pdf with bookmarks, just like this, but from a custom documentclass from GitHub. I tried everything from the forums and nothing works from me. The only option in to add ...
Carlos's user avatar
  • 3