{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

43
votes
2answers
3k views

Why should the minimal class be avoided?

In a comment to my answer to Drawing a rectangle along the border of a circle, Peter Grill said that he read that the minimal class should not be used for a Minimal Working Example. I wonder why, and ...
207
votes
11answers
54k 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 ?
155
votes
25answers
125k views

What are the available “documentclass” types and their uses?

Some of the available classes of documents in LaTeX are well known and widely used, such as the article and beamer classes, while others are not so well known, such as the standalone class. I found ...
52
votes
6answers
2k 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 ...
13
votes
1answer
2k views

Change document class per page

Let's say I have a document that has many pages and some pages have different formats. For example, most of the pages are fine with \documentclass{article} but there may be pages in the middle that I ...
82
votes
1answer
27k views

Regarding the `book`, `report`, and `article` document classes: what are the main differences?

What are the main differences between the book, report, and article document classes? I am interested in the following: visual differences in the final document; differences in the way the ...
64
votes
1answer
4k views

Cute (child-friendly) document in LaTeX

My girlfriend is teacher at primary school, she's new using LaTeX and she needs to make a "cute document" for kids, but I don't know how change the following items to make them look nice for the kids: ...
43
votes
15answers
12k views

What does the draft mode change?

I wonder which changes are made by the draft option? That means what will be changed by calling it as global class option (\documentclass[draft]{<class>}) or locally for a single package if it ...
20
votes
3answers
2k views

What is the advantage of using minimal over article when creating a standalone graphic?

What is the advantage of using minimal document class over article document class when creating a standalone graphic? Bonus question: Before I have time to make a test by myself, is there anybody ...
45
votes
5answers
9k views

A cookbook in LaTeX?

I am interested in making a cookbook in LaTeX. Each page will contain a recipe, including ingredients, instructions, and a photo of the finished food. Has this been done previously? Where do I ...
35
votes
6answers
25k views

How to APA 6th in LaTeX?

I have previously been writing psychology manuscripts according to the standards of the American Psychological Association (APA, version 5) using the excellent apa class, with apacite managing my ...
21
votes
3answers
2k views

Is there a documentclass that produces 'endless' pages?

Does anybody know of a documentclass that produces a page that has a fixed width and a variable length, depending on the actual content that needs to fit on the sheet? I'm trying to get something like ...
14
votes
4answers
3k views

Setting class options after \documentclass

Context: I'm working on my thesis, and the formatting requirements are pretty godawful. In addition to the version I submit to the grad school, I would like to also create a properly formatted version ...
13
votes
1answer
2k views

Chapter on the right side - How to turn it off?

As a documentclass I use book. Chapters always start on the right hand side. How can I turn it off? I don't want to have empty pages. I don't care on which side starts new chapter.
28
votes
2answers
2k views

Classes and packages – what's the difference?

Could someone explain the difference between classes and packages? We call prosper a class and amsmath a package. I couldn't find out the difference.
38
votes
3answers
11k views

Most useful additions in KOMA-Script?

(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script ...
7
votes
1answer
9k views

How to install an unavailable document class for LyX on Mac

I am new to LyX so I'm sorry if this question is really naive. I'm using LyX on a MacBook and I'm hoping to use the AEA document class on it. Since it is not available automatically, seems that I ...
12
votes
2answers
489 views

How to use showexpl with an external class?

The showexpl package defines LTXexample environment which allows to define a latex code and shows its result side by side. The problem is that it uses the same document class where the LaTeX code is ...
21
votes
5answers
3k views

Wrong A4 measurements?

I noticed that the paper size invoked by a4paper is not working right in my examples: \documentclass[a4paper,11pt,oneside]{article} \begin{document} Test \end{document} I checked with Preview.app ...
12
votes
3answers
3k views

Is there a way to use a document class/package from another folder?

I am building a document class and a set of packages to be used as templates for various documents. I'd like to aviod having to copy those over to another folder every time I use them, but I'd also ...
65
votes
3answers
104k views

\subtitle doesn't work in article document class

I'm relatively new to TeX but until now I used mostly the beamer class. There I did this: \documentclass{beamer} \title{title} \subtitle{subtitle} \author{name} \date{\today} \begin{document} ...
25
votes
5answers
7k views

How to write a LaTeX class file for my thesis

I want to design a new LaTeX for my college thesis, so that all students could use it. I have decent understanding of how LaTeX works. I am looking for some nice article explaining how to write a ...
40
votes
3answers
49k views

Where to put the institute information in the article document class?

I've seen in other document classes that one can input the authors' institutes via special commands, for example in revtex4 I can put \title{Aggregation According to Classical Kinetics---From ...
18
votes
5answers
5k views

Are there alternatives to Beamer for slides ?

I like Beamer and I use it but I wanted to check if there other classes for slides or presentation purposes to consider seriously when starting to write a presentation.
10
votes
3answers
3k views

Survey or questionnaire document class or package?

I like to create surveys and questionnaires, what would be a good \documentclass or package to use?
8
votes
2answers
3k views

Can I change documentclass in the middle of a document?

A school I'm applying to requires me to combine my research statement and my CV into a single document. However, my research statement is in the amsart document class while my CV is in the article ...
13
votes
2answers
9k views

\flushbottom vs \raggedbottom

I use \documentclass{book}. If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See question. These messages disappear when I ...
11
votes
3answers
4k views

Difference between \LoadClass and \LoadClassWithOptions

Can anyone tell me the difference between those two commands? Edit: Thanks for the answers, but I didn't get the clue yet. Here's an example: test.tex \documentclass[a4paper,oneside]{mytestclass} ...
16
votes
3answers
457 views

What's the use of the @compatibility condition?

All of the standard LaTeX document classes (article, book and report) declare some basic functionality and parameters based on the condition @compatibility. Here's an extract from from article.cls ...
5
votes
1answer
943 views

How can I see why a file isn't compiling somewhere else, if it does in my machine?

I'm attempting to submit a paper using the Elsevier Editorial System in LaTeX, and in the final step before submission it builds a file with information, the cover letter, and hopefully the ...
28
votes
3answers
12k views

Preparing cheat sheets

Are there any templates, document classes for preparing cheat sheets? If not, what would make it easy to produce such documents?
16
votes
8answers
5k views

What are your favorite document classes and what do you use them for?

I'm using the TeX Live distribution and I've noticed that there are a lot of document class files (291 actually) for different things (books, math, thesis, presentations, etc). What are your ...
16
votes
1answer
820 views

What document class should I use for a variable size image generator

Currently, whenever I want to make a math image, I head over to my Wikipedia Sandbox and use the WP math tag(which uses TeX). I then copy the image from the preview. I have TeXmaker (from USBTeX), ...
8
votes
3answers
1k views

Creating a complex template

I would like to create a complex template for documentation as a document class. I should be able to define my text fields (for instance, \documentNumber, \projectTitle). My class should be flexible ...
8
votes
1answer
3k views

Where can I find a `datasheet' document class or a tutorial on how to create one?

I'd like to be able to make a datasheet for a module that I'm building. By datasheet, I mean a document containing: A title page, with the primary features, applications, and an application block ...
6
votes
1answer
4k views

Install custom .cls using TeX Live in local directory

Background I have a .cls file that I would like pdflatex to use. I have read the following How to make LaTeX see local texmf tree Per-project texmf directory Create a local texmf tree in MiKTeX How ...
15
votes
2answers
1k views

Doing something only when the draft option is on?

I would like to do some stuff that is only enabled when the draft option is given in \documentclass[draft]{article}. How would I go about doing this?
10
votes
3answers
224 views

How many LaTeX classes and packages are there (say, on CTAN)?

Well, the question is pretty self-explanatory. (I'm writing a short tutorial on LaTeX, and wanted some trivia;)).
10
votes
4answers
2k views

How can I generate just pgf/TikZ images, not placed a whole page or slide?

I'd like to generate only a pgf/TikZ image with LaTeX, but so far I just managed to insert it into a document. The problem is that so far I can only get a page/a beamer slide rather than just the ...
10
votes
1answer
2k views

Are there any packages suited for making wedding invitations?

I'm getting married this coming winter, and it's about time to think about wedding invitations. Are their any document classes or packages suitable for this purpose?
9
votes
3answers
2k views

Beamer slides and tufte-handout

I have been experimenting with a setup for slides and handouts with one main.tex file that is \input{} into a "slides" and a "handout" file (as described in the beamer user guide 21.2.1, or this ...
7
votes
2answers
81k views

What is causing undefined control sequence?

I'm getting this error: ! Undefined control sequence. l.64 ...p(- \frac{E_j - E_i}{k_B T}) & \quad \text {: E_j > E_i}\\ ? ! Undefined ...
3
votes
1answer
1k views

Lyx 2.x: Document Class Not Available - Mac OS X 10.10 Yosemite PB 3

I'm running the latest Mac OS X 10.10 Yosemite beta, and I ran into a problem installing MacTeX (2014) and LyX (2.1.2). Upon successful installation of both, LyX would launch with an error: "Document ...
6
votes
1answer
304 views

How can one undefine an already processed class option?

I'm using a class classX that accepts class option optionX. Thus, I can write: \documentclass[optionX]{classX} ... Now, as I understand it, being a class option, after classX processes this ...
5
votes
1answer
4k views

Define abstract environment in book

I want to define an abstract environment for \documentclass{book}. Therefore, I copied the relevant definitions from report.cls from here into my preamble. But it doesn't work. Where's the problem? ...
5
votes
1answer
2k views

Documentclass for Homework Problems

Are there any good documentclasses on CTAN (or built in to some distributions) that are designed for turning in homework problem sets? I've managed to find one, but it's a bit awkward. Are there any ...
4
votes
2answers
504 views

How to configure theorems depending on the document class?

I would like to have \newtheorem{teo}{Teorema}[chapter] if the book class is loaded but \newtheorem{teo}{Teorema}[section] if the article class is loaded. Can I do this with some sort of ...
3
votes
2answers
80 views

tikz: table with mathmode and drawing in article documentclass in LyX

This is a follow up question to my earlier question here (Thanks to @Gonzalo for nice answer). I want to make the same table with boxes in article documentclass. My MWE \documentclass{article} ...
18
votes
3answers
1k views

Customizing LaTeX - create a document class or a package?

Are there general rules for when to create a document class vs. creating a package to customize LaTeX? Does one have benefits over the other? My specific need is to create a customized page layout, ...
9
votes
1answer
874 views

Can Lyx syntax files override document class defaults?

I'm editing a client's Latex file in Lyx, where the client has used a document class not supported by Lyx. In these cases, I use tex2lyx with either -c article or -c report to ensure Lyx can import ...