{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

271
votes
11answers
189k views

Where do I place my own .sty or .cls files, to make them available to all my .tex files?

I know how to define a package or a class, but how do I make it available (to myself) at all times? Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to ...
248
votes
11answers
91k 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 ?
236
votes
28answers
228k 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 ...
105
votes
1answer
41k 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 ...
83
votes
2answers
148k 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} ...
71
votes
1answer
5k 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: ...
63
votes
2answers
5k 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 ...
59
votes
4answers
8k views

document class for a restaurant menu

I'd like to typeset a restaurant menu. What would be a good document class or package to use? I'm hoping for an answer similar to this thread: Survey Document Class or Package?
59
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 ...
59
votes
5answers
15k 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 ...
56
votes
15answers
20k 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 ...
44
votes
3answers
76k 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 ...
42
votes
7answers
38k 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 ...
41
votes
3answers
13k 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 ...
34
votes
3answers
3k 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.
33
votes
3answers
19k 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?
28
votes
4answers
9k 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 ...
25
votes
3answers
4k 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 ...
23
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 ...
22
votes
5answers
4k 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 ...
22
votes
3answers
1k views

Classes for LaTeX documentation

I wonder which classes are available to typeset LaTeX manuals. Until now I have used ltxdoc. I’m satisfied with its functions but not with its layout/design and it’s not really flexible when writing ...
20
votes
4answers
569 views

Creating a class file vs using packages

In my limited LaTeX experience, I've always found that I can accomplish what I want by just using the relevant set of packages, even for more complex formatting. If I were to try and create a ...
20
votes
5answers
7k 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.
19
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, ...
19
votes
1answer
5k 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.
18
votes
2answers
2k 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?
18
votes
2answers
625 views

typesetting in the style of Turing's famous “ON COMPUTABLE NUMBERS”

Maybe an unusual question but I love the typographical style of this text. http://classes.soe.ucsc.edu/cmps210/Winter11/Papers/turing-1936.pdf I am an art student writing a research paper. I would ...
17
votes
8answers
7k 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 ...
17
votes
2answers
14k 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 ...
16
votes
3answers
611 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 ...
16
votes
1answer
1k 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), ...
15
votes
4answers
5k 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 ...
15
votes
3answers
853 views

Conflict between TikZ and university thesis class file

When compiling a document using my university's thesis class file and the TikZ package I receive an error message (missing number, treated as zero). Would someone know how I can solve this problem? ...
15
votes
4answers
5k 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 ...
15
votes
3answers
134k 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 ...
15
votes
1answer
5k 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 ...
15
votes
3answers
8k views

What is a good Manual/Guide class in LaTeX?

I am writing a manual/guide for our intranet using LaTeX. I am wondering if there are classes developed for this purpose? A search returns results that are manuals about using LaTeX. Spefically I ...
15
votes
1answer
3k 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?
15
votes
2answers
2k views

Is there a document class optimized for small screens (i.e. phone screens)

I happen to read more documents on my (android) phone, including scientific papers from the arXiv (where the TeX source is available). Obviously, such a narrow screen is not well suited to read papers ...
15
votes
1answer
481 views

Leveraging a dynamic preamble to generate multiple output formats

Background The diagram below shows an architecture for generating books using a dynamic preamble. The top part of the image shows the database relations between a book theme and its preamble. The top ...
15
votes
1answer
791 views

Is there a document class or package specifically for drafting United States legal documents?

I recently drafted a non-disclosure agreement in TeX using the document class article. I liked doing this a lot and I intend to continue doing my legal paperwork in TeX. Do document classes or ...
14
votes
2answers
1k views

What is the name of LaTeX's default style and why was it chosen for LaTeX?

LaTeX has a unique style compared to other document formatting applications and style guides. What is the name of this and why was it chosen for LaTeX? Why was the particular Computer Modern font ...
14
votes
3answers
1k views

How to make LaTeX not “Look like Lab Notes” [closed]

I often use LaTeX for general writings, as well as for my Lab and lecture notes. (Often, but not always via LyX). A large portion of this is RPG homebrew. One of my friends (who wouldn't know what ...
14
votes
3answers
960 views

LaTeX document without \documentclass

I need to create a really simple document template for other people to fill in and compile (e.g., they need to provide a name and email address). I could distribute it as a .cls file and a template ...
14
votes
2answers
2k views

What's the difference between a class and a style?

What are the actual differences between the two? I am new to LaTeX and I need to create a custom "look & feel" -- should I be looking into making a class or a style?
14
votes
3answers
6k 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?
14
votes
1answer
2k views

Which one is it: a4paper or paper=a4?

I'm using XeLaTeX mostly, and I never know what to put into \documentclass[]{}. Usually I use something like \documentclass[a4paper, 11pt]{scrartcl}. But I never know whether it's a4paper or paper=a4. ...
14
votes
3answers
5k 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 ...
14
votes
1answer
282 views

Why do AMS document classes incorporate amsthm rather than loading it?

Why do AMS document classes incorporate the amsthm package, rather than loading it using the usual \RequirePackage mechanism the way they load amsmath and amsfonts? The document classes even ...
14
votes
2answers
5k views

Best documentclass for class notes

Is there a documentclass specificaly for taking notes in a class? If not, what does the community see as things which should be included in such a class (which I'd be happy to write)? Edit: This was ...