{documentclass-writing} is about writing document classes. If your question is about choosing, installing, or using document classes, choose {documentclass} instead.

learn more… | top users | synonyms

19
votes
1answer
271 views

When should I upload my new style?

I've been working lately in a new style for my university, which is heavily influenced by a pre-existing style (feupteses). However, feupteses was never meant for PhD dissertations, so I decided to ...
4
votes
2answers
212 views

Graphical vertical rule in tikz

I would like to make design (class), where I would like to have special type of paragraph that will have { character on left and will have height exactly same as height of whole paragraph. Also, I ...
4
votes
1answer
136 views

Class Design: Environment vs. Macro

I have seen What are the consideration when choosing either newcommand or newenvironment? but I think this is a little more specific. If it's a duplicate, then so be it. If the second part of the ...
3
votes
1answer
137 views

How to define default options to a class?

I do not undestand how to pass options to the parent class when writting a child class. I tried several possibilities but I never get flush left aligned equations. I do understand the difference ...
14
votes
1answer
137 views

Should I use packages when writing a class

I am trying to write a class based on the book class (a thesis class for my department). My question is: is it bad for some reason (or, is it considered bad) to use packages in the class files ...
14
votes
1answer
690 views

Creating new class file: Where to start?

Recently, a journal I have some editorial involvement with has decided that for its 'rapid publication' outlet, it will no longer accept submissions where LaTeX has been used to format the document. ...
9
votes
1answer
233 views

How to detect whether “I'm on arXiv.org”?

I write a class. I'm interested in having a different page headers (and eventually make some other small differences) based on whether the class is used on the site arXiv.org or not. Minimal example ...
4
votes
1answer
69 views

Display text on begin document [duplicate]

I'm developing my own documentclass. How can I make some text appear on the beginning of each document with this class? For now I'm working with this in the class: \newcommand{\showAtBegin}{Text} ...
4
votes
1answer
108 views

Create command to inline an image in a question?

How to create a command to can insert the image in a line of text question? Since I have a lot of question types made True/False, Short Answer types, Multiple choice, etc. I want the command to be ...
3
votes
1answer
291 views

Default options in custom memoir class

I can't get default arguments to work with my custom class based on memoir. I want to be able to define some default options (a4paper,danish) but I want to be able to override them when I call ...
10
votes
1answer
254 views

Developing a document class using a Writer2LaTeX-generated document as a starting point

Background My university is finally starting to become more LaTeX-aware and has developed and published a document class for theses and memoirs. This class is based on the memoir class and is now ...
6
votes
1answer
165 views

When writing my own document class, certain options don't get passed to base class. Why?

I'm trying to create my own class using scrbook as a base class, and biblatex as for my bibliography. Consider this MWE: \documentclass[bibliography=totoc,fontsize=12]{scrbook} ...
7
votes
2answers
229 views

How can I stop the “setspace” package from processing a “doublespacing” documentclass option?

LaTeX does not behave as I expected with the following files. First file: \documentclass[doublespacing]{article} \usepackage{lipsum} % for dummy text only \begin{document} \lipsum \end{document} ...
14
votes
3answers
486 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 ...
13
votes
3answers
970 views

Macro for Declaring Variables in Class Files

I'm designing a new LaTeX class, and trying to write a convenient helper command for declaring new 'variables' for use in the class. Specifically, say I want to use a variable called \foo. I'd like ...
25
votes
7answers
2k views

What's a good editor for (La)TeX programming?

I've found several questions about editors for writing LaTeX documents ( LaTeX Editors/IDEs seems to be the definitive one). But I'd like to know which editors are out there that help you develop ...
1
vote
0answers
25 views

How can I get texmaker to pick up my local class file [duplicate]

Possible Duplicate: Where do I place my own .sty files, to make them available to all my .tex files? I am using (as a newbie) texmaker to create documents on linux. I am making my first ...
1
vote
0answers
45 views

How can I pass class/package options with spaces in values? [duplicate]

Possible Duplicate: Spaces in pfgopts options I have read Joseph Wright's excellent article on key-value systems, as well as questions on this site about how to pass arguments to class ...
5
votes
2answers
325 views

Indent all the normal text

I decided to write my first own latex class that has to reproduce template used for some intenal type of documents made in word. I cannot find how to do one thing. In the template, all standard text ...
9
votes
1answer
330 views

Write a class with language dependent strings

I am unable to make my class strings language dependent using babel. I have the following minimal example: file test-babel.cls \NeedsTeXFormat{LaTeX2e}[1999/12/01] ...
6
votes
1answer
440 views

Create environment within my own latex class?

How can I automate multiple choice question type in my own class in LaTeX?
2
votes
1answer
492 views

Document Class for Briefing Notes

I was wondering whether there was a document class for briefing notes/memos in LaTeX. If there is not any what is the easiest way of making my own? PS: Sorry, I should have given an example. Here are ...
4
votes
1answer
132 views

Is there a way make a custom default document style in LaTeX? [duplicate]

Possible Duplicate: how to create a template or document class for latex? Currently, whenever I create a new document, I add a reference in the header to \input{header.tex} where ...
10
votes
1answer
252 views

Is TeX necessary if using LaTeX?

I have been using LaTeX for a little over two years now. I mostly use it to prepare homework solutions in mathematics and engineering coursework. I also use it to document my research and writing some ...
8
votes
2answers
169 views

Base a class on another class [duplicate]

Possible Duplicate: Defining a wrapper class for a set of document classes When writing a new class (say, journal), how can I base it on an existing class (say, scrbook)?
6
votes
1answer
278 views

Mark key-value class options as used

I have written a wrapper for the scrartcl class in the following way: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mycls}[2012/08/23] \RequirePackage{kvoptions} \DeclareStringOption{title} ...
12
votes
3answers
2k views

Possibility to pass options to packages

I am searching for a possibility to give additional options to another package. I have tried it with \PassOptionsToPackage. My idea was that I can use something like ...
0
votes
1answer
386 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 ...
10
votes
2answers
140 views

article wrapper class that locks down some options, passes others through

I'm writing a wrapper document class that starts with article and adds a bunch of customizations (required for a particular journal style). One of the requirements is to lock down certain options: ...
5
votes
2answers
8k views

how to create a template or document class for latex?

I need to write a document class or template, as for an article, letter, etc. Is there software for this? How do I set it up so that anyone can use my class just like \documentclass{article}?
0
votes
1answer
203 views

Introducing special signs to cls file [duplicate]

Possible Duplicate: How to type special/accented letters in LaTeX? Can sameone provide some suggestion how to introduce special signs to cls file? I had tried to avoid this problem by ...
24
votes
2answers
2k views

\newcommand vs \DeclareRobustCommand

I sort of understand the difference between the two. But that's not what I'm interested in—I just want to know, which one should I use? In general, when I'm creating commands in a package or class, ...
4
votes
1answer
637 views

Access title and author in custom class [duplicate]

Possible Duplicate: Use the values of \title, \author and \date on a custom title page How can I access the title and author in my custom class based on article, so that I can insert them ...
6
votes
1answer
118 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 ...
2
votes
1answer
357 views

Modify footer of first page in custom class

I know I can do \maketitle \thispagestyle{fancy} But I want my custom class that I am making (based on article) to do this for me. It already does pagestyle{fancy}, but I can't get it to change the ...
2
votes
2answers
920 views

ProcessOptions and ProcessKeyvalOptions

\ProcessOptions and \ProcessKeyvalOptions Which comes first? Does it matter? \ProcessOptions\relax or \ProcessOptions* What's the difference? Apparently for keyval there is only the starred ...
3
votes
1answer
115 views

Heading width are wrong if they are defined in a class

I created a new class based on the book class. In this class I use the package fancyhdr in order to define some heading content. In my document, I load my new class and then I set the page dimensions ...
4
votes
1answer
381 views

Problem when bidi & hyperref packages are used with custom document class (XeLaTeX)

There is a problem when bidi & hyperref packages are used together and custom document style is used. For example: \documentclass[unicode]{myreport} \usepackage{xltxtra} \author{Author} ...
5
votes
1answer
319 views

Class name that is also a trademark

I am sorry if this question is off-topic or there is a better place--feel free to move it or close with an explanation. I have no affiliation with Vistaprint. I would like to publish a class with the ...
14
votes
1answer
598 views

How does “missing \begin{document}” work?

I would like to know how does LaTeX invoke the error Missing \begin{document}. I would like to reproduce it in the sense of the following MWE (it will become a part of my own document class): ...
8
votes
2answers
443 views

Loading package twice with \RequirePackage causes “option clash”

I thought that loading a package twice with the same options cannot lead to option clash, still I get a clash in the following simple example: \documentclass{article} ...
4
votes
1answer
109 views

How do I add an option that sets a flag to a document class?

I want to add an option that sets a flag to a document class. That is, I want to be able to type \documentclass[foo]{class} and get one type of behavior, and type \documentclass{class} to get a ...
5
votes
0answers
252 views

Beginner issues about custom class files [closed]

I am trying to write my first ugly .cls for LaTeX related to the following problem which Mike and me are trying to solve (we will post soon the link to Github for people who are interested to work ...
8
votes
1answer
1k views

Using of \usetikzlibrary in an expl3 package fails

In the example below I provided a small test package mytestpackage.sty which uses the syntax of expl3. If I use the command \usetikzlibrary inside the package I will get the error: Runaway argument? ...
2
votes
2answers
237 views

Using \usebox inside a \newcommand

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

Where can I find spanish documentation for creating LaTeX classes?

Searching the web for spanish documentation about creating classes for LaTeX, I found this website belongs to the class of "Scientific text processing in high quality" (Procesamiento de textos ...
3
votes
1answer
676 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 ...
18
votes
3answers
987 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
2answers
676 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 ...
4
votes
2answers
619 views

How to make onecolumn/twocolumn parts in a document class?

I have a simple document class adapted from article, but independent (.cls file). The document is twocolumn, but when I add a title with \newcommand\maketitle{\begin{titlepage}% \begin{center}% ...