Questions tagged [document-classes]

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

Filter by
Sorted by
Tagged with
495
votes
11answers
445k 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 ...
87
votes
2answers
10k 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 ...
341
votes
13answers
174k 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 ?
387
votes
31answers
545k 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 ...
86
votes
6answers
6k 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 ...
168
votes
1answer
75k 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 document ...
24
votes
2answers
37k 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 ...
18
votes
1answer
14k 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 ...
104
votes
16answers
52k 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 ...
90
votes
1answer
10k 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: ...
16
votes
1answer
27k 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 ...
26
votes
3answers
4k 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 ...
33
votes
1answer
17k 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.
31
votes
3answers
10k 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 ...
51
votes
3answers
20k 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 ...
52
votes
3answers
9k 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.
19
votes
3answers
2k 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? \...
79
votes
5answers
30k 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 ...
13
votes
3answers
33k 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 ...
18
votes
4answers
9k 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 ...
125
votes
3answers
248k 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} ...
33
votes
4answers
13k 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 ...
20
votes
3answers
14k 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} .....
13
votes
1answer
17k 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? \...
35
votes
1answer
51k views

How can I get \maketitle to create a separate title page with the article class?

I am working on a maths assignment and new to using LaTeX. I have written the assignment up, but I would like the title page to be its own page. Currently my title page is a few lines generated by \...
50
votes
7answers
67k 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 ...
25
votes
5answers
11k 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.
20
votes
4answers
13k 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?
23
votes
3answers
2k 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, ...
26
votes
5answers
7k 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 ...
48
votes
4answers
39k 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?
56
votes
3answers
133k 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 ...
10
votes
2answers
17k views

Install custom .cls using TeX Live in local directory

Background There is a .cls file that pdflatex should 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 to have ...
36
votes
4answers
18k 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 ...
37
votes
7answers
2k 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 ...
19
votes
3answers
1k 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 ...
28
votes
1answer
71k views

Disable two column mode for separate part

I am writing a document using the report class in two column mode, but I need a \section to spread across both columns, but how can I set that? Something like \documentclass[10pt,danish,a4paper,...
27
votes
2answers
4k 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?
12
votes
2answers
6k 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 ...
27
votes
4answers
1k 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 ...
21
votes
3answers
12k 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
3answers
661 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;)).
9
votes
3answers
6k views

Is there a class for typesetting novels? [duplicate]

Is there a class for typesetting novels? I know it's trivial to you, but I really need one.
8
votes
1answer
485 views

Unused global option in KOMAscript wrapper class

I want to write several classes, most of them will use KOMA classes as base class. However I stumbled upon the problem that some options (mainly concerned with layout) are not processed if given in ...
5
votes
2answers
905 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 ...
2
votes
1answer
842 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
2answers
943 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 ...
5
votes
1answer
2k views

I get an error when using `\ExecuteOptions` together with `\usepackage{geometry}`

I'm writing a custom document class. It's kinda simple, but it will use the geometry package to set page size, orientation and margins. However... Whenever I use that package, the \ExecuteOptions ...
5
votes
1answer
1k 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 manuscript,...
1
vote
1answer
434 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 ...