{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

4
votes
1answer
375 views

Creating static head title for a document class

I am making my own document class in LaTeX but I have a problem on how will I make this title appear automatically when my class is used. Should I code it this way? \AtBeginDocument{% ...
1
vote
1answer
234 views

How to redefine default macros of document class

When choosing a document class, I find they all generate some unwanted change to my document, but I'm having trouble changing the default macros to set the formatting right. In my preamble I'm ...
5
votes
1answer
3k 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? ...
20
votes
5answers
2k 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 ...
0
votes
1answer
405 views

modular title pages

How to achieve having modular title pages in latex (xelatex), to only have to change one word in the .tex file and have it changed? All the files must be defined in the project's directory, not ...
0
votes
1answer
332 views

Setting Space Between Paragraph in A Custom Class

I've been trying set space between paragraph to 3 spaces with 1.5 line spacing on text (based on my thesis requirement). Searching around, looks like everyone suggest either using the parskip package ...
11
votes
2answers
7k 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 ...
5
votes
1answer
246 views

badness messages when changing from report to book class

When I change the documentclass from report to book I suddenly get a lot of messages like this: Underfull \vbox (badness 10000) has occurred while \output is active [] Does anyone have an ...
4
votes
2answers
281 views

Can I use beamer without setting \documentclass to beamer?

I want to have a PDF that is the normal type: \documentclass[a4paper,11pt]{article} with normal TeX tables, graphs and words, but I want it such that there's beamer slides scattered throughout of the ...
20
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 ...
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: ...
0
votes
0answers
83 views

Best documentclass to use for a dissertation/thesis [duplicate]

Possible Duplicate: LaTeX templates for writing a thesis Is there a canonical documentclass for theses? I can see some Unis offer their own templates but they also include some advanced ...
8
votes
1answer
747 views

How can I get documentation for the LaTeX letter class?

I am trying out TeX and writing some correspondence in it just to learn the basic commands. For the "letter" document class, I have found this reference site: ...
2
votes
2answers
330 views

Not able to switch to any other document class than “article”

I'm using LyX with Hebrew and whenever I'm trying to change my document setting to something else than article (i.e. article(AMS)) I can't create a pdf. I'm getting these errors: Undefined control ...
6
votes
1answer
124 views

Detect number of pages in custom class

How can I make a conditional in my custom documentclass (based on article) for when the document is only one page long? I need this because when it is only one page, I don't want to put the page ...
11
votes
1answer
1k 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. ...
4
votes
1answer
407 views

Making a stand-alone image with gastex

I want to do the following: Make an image using gastex. Compile the image to a stand-alone pdf image. I.e., at the end of this stage I'll have a myImage.pdf file. Include my image in a large latex ...
5
votes
1answer
6k views

Can I disable italics in the body text of a theorem without amsthm/ntheorem?

I'm submitting a paper and am required to use a provided document class which defines its own theorem environments, so I can't use packages like amsthm or ntheorem. The class doesn't define a ...
0
votes
1answer
861 views

AIChE Journal: Format file for LaTeX

I want to submit my article in AIChE Journal and don't know how to format my manuscript with AIChE Journal format. Please help me and provide me a LaTeX sample file for AIChE Journal. I am a bit new ...
11
votes
1answer
2k views

Roman Page Numbering for TOC in Article

I'm writing something with the article class, and I'd like to have the table of contents pages numbered with roman numerals, and in addition and most importantly: to have the arabic numbers reset ...
7
votes
1answer
495 views

Is it possible to use \PassOptionsToClass into a package?

Context: I'm building a new package for my university. I need to set a lot of options for the document class, like twoside, a4paper, 12pt, or firstpagenum=chapter. I would like to set them by default ...
2
votes
1answer
2k views

Which TeX distribution? (Undefined control sequence)

(FYI I am new to LaTeX) I'm trying to compile a TeX document that someone else has given me. I had BasicTex installed, and it didn't seem to work. My friend said he uses TeX Live, so I tried ...
8
votes
1answer
1k views

Effect of the definition of a language for \documentclass

What exactly does \documentclass[american]{article} do with the definition of a language and in what case is it useful to define a language? What is the difference to ...
2
votes
2answers
250 views

Using \usebox inside a \newcommand

I have this code: %Abstracts \newcommand{\@spanishabstractname}{{\bfseries Resumen}} \newsavebox\@sabstract \newenvironment{spanishabstract}{% ...
3
votes
1answer
719 views

Using fleqn option in a new LaTeX class

I am creating a new LaTeX class, necessarily the equations must be aligned to the left so I use the file fleqn.clo in the class code. The problem is that when using the equation environment the result ...
9
votes
2answers
866 views

Changing the text size is not working

I am an eighth grader that needs some help. I am a noob at anything TeX or LaTeX, and am just starting out. I am using USBTeX, just in case that matters. I cannot seem to change the text size in ...
1
vote
1answer
1k views

acmsmall.cls not found [duplicate]

Possible Duplicate: How can I manually install a package on MiKTeX (Windows) I am writing this because I need a more efficient way to use the acmsmall class. The problem is when I add the ...
2
votes
1answer
196 views

Trouble with latex and dvips with an FSTTCS documentclass

Following from my other question Which DVI viewer on linux?, now that I can easily view DVI files I came to the conclusion that the unusual document class I used for my document defines some ...
2
votes
1answer
322 views

PSTricks and documentclass

I have a problem using PSTricks for elsevier journal. As you may know, preprints and review versions of papers usually use a different documentclass in LaTeX than the one used for the final version ...
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, ...
4
votes
1answer
259 views

Naming LyX layout appropriately

I am continuing my question from Class relationship between two given .cls file? To use an custom document class one needs to create LyX layout named appropriately. In my custom document class. I ...
1
vote
1answer
1k views

Custom LaTeX Report Class

This is my first question and I'm new to LaTeX. I've probably jumped into the deep end here, but I found an interesting class that I want to learn how to use. First of all, I have Tex Live 2011 ...
4
votes
2answers
749 views

How to define a table in documentclass?

Consider a simple table in the document: \begin{tabular}{ l c r } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \end{tabular} How we can define this table within the ...
3
votes
1answer
780 views

Obtaining the location of the document class [duplicate]

Possible Duplicate: Where do I place my own .sty files, to make them available to all my .tex files? Our organization produced a document class for internal use. The document class uses ...
4
votes
1answer
3k views

How to customize a document class?

In LaTeX, we modify a predefined documentclass to fit our need. I wonder how we can edit the original documentclass (e.g. article) to have our customized properties? I mean which file is responsible ...
21
votes
5answers
6k 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 ...
14
votes
1answer
693 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), ...
2
votes
1answer
302 views

Move .tex files from TeXlipse to TeXShop

I am a newbie at LaTeX/TeXlipse/TeXShop. I am currently writing a LaTeX document using TeXlipse plugin in Ubuntu. Due to hardware issues on the Ubuntu machine I need to port the .tex files to TeXShop ...
10
votes
2answers
437 views

Copy right of style files, e.g. Cambridge University Press's

Just started using LaTeX so pardon my ignorance here. I was wondering whether style files created for example by Cambridge University Press are free to be used for commercial purposes (a book, ...
0
votes
1answer
530 views

DocumentClass Writing [duplicate]

Possible Duplicate: Style/class tutorials I am a newbie at LaTeX. But I need start from my own text style in LaTeX. I want to setup page format, margins, paragraphs style, fonts, etc. Can ...
7
votes
2answers
180 views

How to clear what has been previously declared with \AtEndDocument?

I am using a class file that uses \AtEndDocument to include a table of contents at the end of the document. However, I would like to override the original \AtEndDocument and force the document not to ...
40
votes
15answers
9k 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 ...
9
votes
1answer
323 views

Which document class/package produced this document? [closed]

I'm very curious as to what document class could produce a document like this. I'd like to use it myself but I don't have access to the TeX source. Has anyone seen something similar (or the same)? And ...
3
votes
1answer
220 views

create a self-contained source?

Is there a simple way to export a self-contained source for a large LaTeX document? I would like it to export all of the class files, etc as well as the sources that I have written in order to create ...
1
vote
1answer
604 views

use beamercolorbox in book

How can i use beamer commands and environments like beamercolorbox in other document classes like article or book? Is there an alternative to beamercolorbox in another package or document class?
4
votes
3answers
302 views

What is the easiest way to mix document classes in the same PDF?

I would like a letter at the start of my report, but it would be a different document class. Could I use the same .tex file, with \begin{document}\end{document}\begin{document}\end{document}?
9
votes
1answer
3k views

Can \documentclass{minimal} create documents with nonstandard page sizes?

I need to create a document for a square piece of paper. I've been trying to use \documentclass{minimal}, but it doesn't work. This is my code: \documentclass{minimal} \special{papersize=14in,14in} ...
5
votes
2answers
611 views

If document class is equal to something then do not use package

I am trying to create a file which includes common packages and macros I use. It is something like this. commonDefinitions.tex \interdisplaylinepenalty=2500 \usepackage{algorithmic} ...
1
vote
0answers
93 views

.cls vs .sty files [duplicate]

Possible Duplicate: Classes and packages – what's the difference? Here is a simple question with a little background. My company just started using LaTeX for our documents, and there ...
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 ...