{document-classes} is for questions relating to the document class of the TeX file. This sets up various document-wide formatting elements.

learn more… | top users | synonyms

9
votes
1answer
17k views

How do I put chapters into a LaTeX document?

I used the following LaTeX tag to make a chapter \chapter{title here} but it did not compile. The LaTeX compiler was talking about Undefined control sequence How can I get over this error?
0
votes
1answer
222 views

LyX 2.1.4 does't load Document Classes after using Reconfigure

I tried to add on the LyX (Windows 10) Layouts folder some .layouts, and after I run "Tools -> Reconfigure" and restarting LyX it doesn't neither the default classes. How can I solve this problem? I ...
5
votes
1answer
76 views

Toilet paper format [duplicate]

I am currently writing a document using \documentclass[a4paper]{article} (very classic, good and all). But I want to change it to a continuous page, a bit like a TP roll. Any idea how? Thanks all, ...
1
vote
2answers
24 views

The tikz-cd package is over running the bottom margin is a particular class file

I am using a particular class file fundam.cls. However, when I add the tikz-cd package, the bottom margin overruns. I suspect it is because the tikz-cd package is changing the paper type, making it ...
0
votes
1answer
35 views

problem creating lists inside custom environments

it's my first post here on LaTeX stackexchange, and it has to do with some problems I'm experiencing in using custom classes. I'm trying to write my CV in LaTeX. I copied some code online to create ...
1
vote
1answer
32 views

Customized Class with table of dynamic data

I am trying to write a class that could produce a table with employee name and salary in it. I need the user of the class is to be able to just write the employee name and the salary inside the tex ...
1
vote
1answer
45 views

Elsevier, sort bibliographic entries alphabetically by surnames of authors

References should be arranged first alphabetically and then further sorted chronologically if necessary. I have been asked to sort the references. Despite I have followed the solution here, it did ...
3
votes
0answers
46 views

Difference between tableofcontents and listoffigures internal codes

In standard classes book.cls and report.cls we find \newcommand\tableofcontents{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\...
1
vote
1answer
24 views

Empty page after each chapter?

After each chapter I do have an empty page (without any header or footer). I do not understand why. I hope someone may help me! Thanks a lot! \documentclass[a4paper, fontsize=11pt]{scrbook} \...
1
vote
0answers
27 views

Document class siamart0516 and citation problem

I'm using the document class siamart0516, which can be found here: https://www.siam.org/journals/tex/standard/siamart0516.cls For some reason, my reference failed to show up in the pdf file. I think ...
4
votes
1answer
37 views

Siamart0516 class and wrong hyperref driver

I'm using the siamart0516 document class and I keep getting errors like: Package hypdvips Error: Wrong hyperref driver `hxetex.def' selected! [ }] and LaTeX Error: Command \hc@orgtable already ...
3
votes
1answer
26 views

merge multiple figures into one pdf using standalone documentclass

I have 4 pdf figures which I would like to merge into one pdf figure (requirements of the journal). I have the follwoing piece of code: \documentclass[varwidth=true, border=100pt,preview]{standalone}...
12
votes
2answers
2k views

How to convert LaTeX 2.09 to LaTeX2e

I'm trying to convert a LaTeX 2.09 template to LaTeX2e (pdflatex): http://www.yisongyue.com/resume/ How should I convert this line ? \documentstyle[hyperref, margin, line]{res_yy} I don't know ...
1
vote
2answers
56 views

Remove header from class file

I'm a TeX newbie, and I try to edit a template tex class file, but I can't find where the header section is defined. It looks like this: but I want to remove it completely and edit the header from ...
2
votes
1answer
35 views

Why “mmadoc.tex” is not executing?

I have downloaded mmaaut.cls file from here and I saved it in folder where I use to place all my other Latex work file, but when I tried to run file mmadoc.tex in my WinEdt compiler, an error message ...
1
vote
1answer
48 views

Latex won class and macros

I'm writing my own simple template, what I have so far is a new, redefined make title command: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass}[2016/06/22 My custom class] \LoadClass{article} \...
0
votes
0answers
8 views

Reducing the width between the section space [duplicate]

I came up with a minimum MWE to explain my predicament. I wish to reduce the space in between the sections as demarcated below: \documentstyle[12pt]{article} \setlength{\oddsidemargin}{0in} \...
1
vote
0answers
49 views

Translation from Memoir class to Book class of pretty tables

Gonzalo Medina pretty TOC/LOF/LOT (memoir class) can be found at Pretty List of Figures and List of Tables. If the class is switched to the book class, there are 187 error messages produced. Is there ...
1
vote
1answer
30 views

Undefined control sequence error

it might be a stupid question but I cannot see where the mistake is in this code: \documentclass[12pt]{article} \usepackage{amssymb} \renewcommand{\baselinestretch}{1.5} \setlength{\topmargin}{0cm} ...
6
votes
1answer
172 views

Algorithms and amsart

Basically, I have copied the code from an answer to this quesiton, for I have to translate some words. I have only changed documentclass from article to amsart. \documentclass[11pt]{amsart} \...
2
votes
1answer
36 views

Producing just a tight picture, is there a replacement for \documentclass{minimal}?

I want to produce a picture in PDF format using pdflatex, with nothing else in the page but the picture, so I decided to use the document class minimal \documentclass{minimal} \begin{document} \input{...
0
votes
0answers
22 views

Get translated LaTeX captions like \pagename with babel

I'm currently adding a feature to my own class file: automatic translation of the footer according the main language that has been defined in my document. \DeclareTranslationFallback{pageOfPages} {\...
1
vote
1answer
128 views

Aalto custom CLS file in Lyx?

Oxford has instructions to set up CLS file for Lyx here so this thread for Aalto uni. So How can you use Aalto custom CLS file in Lyx? Aalto files CLS file (copy here) Aalto Thesis LaTex ...
12
votes
1answer
12k views

Using a new document class/template with LyX?

I tried googling this elsewhere but I'm new to LaTeX and extremely confused about certain things. Basically I downloaded MikteX and I'm using the latest version of Lyx with it. Now all I basically ...
7
votes
1answer
104 views

How include a document with a documentclass in an another document

I write my thesis with the \documentclass{yathesis} and I must include my CV at the end of my thesis but my CV is in the \documentclass{CV}. How can I include this CV in my thesis without problems ...
2
votes
1answer
98 views

“Page intentionally left blank” with twoside openright

I'm using twoside,openright in my document class, and I'm wondering how to have "Page intentionally left blank" text on the pages that openright makes blank. I've seen people redefining \...
1
vote
0answers
28 views

Files required for Custom Document Class Style? [closed]

I am confused by errors in Trial 2 of this that *.STY file missing while only Document Class file *.CLS file given. Aspiring chat here. So Which files are required to use Custom Document Class Style? ...
66
votes
6answers
3k views

Which document class is being used?

Is there a way to programmatically determine which document class is in effect? I'd like to be able to write conditional macros that behave differently depending on which document class is currently ...
2
votes
0answers
18 views

How to branch based on the documentclass? [duplicate]

I have a macros.tex file where I keep my macros and I use them with different document classes. I want to skip including some of my macros based on the document class (e.g. if it is beamer). How ...
271
votes
12answers
106k views

How to create posters using LaTeX

I want to create posters for my poster presentation on a conference. What tools or LaTeX classes are available for preparing posters ?
2
votes
0answers
27 views

Overthinking it: document class report vs book for a thesis [duplicate]

I apologize in advance for the long wall of text; there is probably some way to condense this question to half the size without losing anything important, but I'm not sure which half to remove. I ...
1
vote
1answer
72 views

Texmaker cannot find class file. “LaTeX Error: File `revtex4-1.cls' not found.”

I am using Ubuntu 16.04 with Texlive, and more specifically with the Texmaker graphical editor. I am attempting to use a class file from a third party, .cls, which is located in a subdirectory of ~/...
0
votes
1answer
61 views

Use variables/properties in class file

I have a class resume which I use in a .tex file as \documentclass{resume} \begin{document} \end{document} but I also want to define some variables in my .tex document to be used in my class. How ...
31
votes
7answers
1k views

What is a template?

Regarding LaTeX I understand terms such as class, package, and so on but I don't understand the meaning of template as used by many questioners. Is it what is traditionally called a package or class ...
4
votes
1answer
473 views

Modular LaTeX document preambles and class files

I have been debating whether or not to ask this question as I don't intend to create an overly broad unanswerable, or solely opinion based question, but I have decided that there are probably some ...
4
votes
1answer
66 views

moderncv - why so many files?

As a very hands-on type of person, I said to myself why not learn LaTex trying to build something out of it, in order to learn all the intricacies of LaTex. So I'm creating my cv, using LaTex and ...
1
vote
2answers
38 views

Problems using QT.cls

I am attempting to use the class file qt.cls, available at the journal's website, but when I try to compile, even just using their example document in TexShop v3.61, I get the error: and when I go ...
1
vote
0answers
48 views

Editing .cls file [closed]

I am using a .cls file for my thesis but the document format is not perfect. I need to guarantee that the pages which are generated with the following commands are in the odd pages: \maketitle, \...
1
vote
0answers
24 views

In bioinfo.cls, how can I get a full width equation? [closed]

How can I get a full width equation while using the bioinfo class? I tried doing \usepackage{widetext} and throwing a \begin{widetext} and \end{widetext} at appropriate places, but it throws an ...
1
vote
1answer
29 views

Turn off book style margins for amsart document class

Is there some way to turn off the alternation of larger left/right margins ("book style margins") when using a document class that turns this on by default? I'm looking to do this in particular with ...
1
vote
0answers
46 views

Remove Blank Pages [closed]

MWE: \documentclass[a4paper,12pt,leqno,footinclude=true]{memoir} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \usepackage{tocloft}% \newcommand{\cftchapaftersnum}{.} \begin{document} % ---...
0
votes
5answers
147 views

No available SBL style?

Where can I find a link that actually works for the document class/stye/package Society of Biblical Literature (SBL)? AFAIK all related threads in this forum and elsewhere are either broken or the ...
3
votes
0answers
167 views

Getting the error: “! Argument of \MT@res@a has an extra }.” [closed]

I'm writing a submission for an ACM conference, using the ACM's acm_proc_article-sp document class. Now, this is a document I transitioned from another document class, so the LaTeX in the body of ...
2
votes
1answer
68 views

Help installing document class for LyX on Mac, unsure on where to start

I'm trying to download a document class from a university, and would like to use this for my thesis. However I'm very new to all of this, and so really have little clue on where to start. The ...
0
votes
0answers
45 views

res – A resumé class - Examples

I'm working on my resume (CV) and I would like to use the res documentclass. However, I can not find any document about this class and how to use it even on the CTAN website. Could you please help me ...
3
votes
1answer
42 views

Check what kind of document class is used with MWE

I try to autodefine the preamble using this and that approach but do get Undefined control sequence. \@ifundefined{\KOMAClassName } in case I write report for scrreprt. for both options. \...
0
votes
1answer
52 views

Changing the width of second page and so on in friggeri cv, keeping first intact?

Lots of people are interested in this at different places, but I couldn't find a direct solution. One can use the template from here. A part of it is answered here and a simple tweak would be to ...
1
vote
1answer
394 views

Undefined control sequence \bbl@nonfrenchlistspacing

I am trying to run the sample file hsp-monograph.ltx that comes with ouvrage-hermes downloaded from http://www.iste.co.uk/ \documentclass[english,allpages]{ouvrage-hermes}[2005/11/14] % Preamble: ...
1
vote
1answer
65 views

How to change spaces before and after sections and chapters

I am using this documentclass with option [twoside,12pt] and this MWE: \documentclass[twoside,12pt]{Classes/aesm_edspia1} \usepackage[latin1]{inputenc} \usepackage[english,french]{babel} \usepackage[...
1
vote
0answers
133 views

Cannot find .cls file [closed]

I have a macbook pro and installed MacTeX a few days ago. Our teacher wants us to do a report using a model of it in cls format. The format is the same folder as the file that I created, however ...