{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

3
votes
1answer
259 views

cls file - multiple files

I am writing a .cls file so that I can maintain consistency across many documents. The cls file is soooo long, and I would like to split it up into parts, in a similar fashion that one does when ...
6
votes
1answer
105 views

Commands with Capital letters in their name

A topic that appear over and over is to explain the difference about commands such as \operatorname vs. \DeclareMathOperator. So far I've seen discussions about using one or the other, but no one ...
6
votes
1answer
148 views

Is the LPPL compatible with the corporate design of a university?

I created a .cls file for the letterhead of my university. Can I write something like This class is licensed under LaTeX Project Public License(LPPL) and only university staff is allowed to use ...
2
votes
1answer
163 views

How to prevent offsetting a margin?

I have basic class file and I would like to use fancyhdr. Here is the markup of some-class.cls: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{some-class}[2013/07/29] ...
5
votes
1answer
80 views

Is there any other margin I must set to reduce margin to zero?

I have basic class file and I would like to set margins of an a4paper to 0mm. Here is the markup of some-class.cls: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{some-class}[2013/07/29] ...
4
votes
0answers
91 views

Loading a class within a class [duplicate]

I'm trying to develop a set of custom classes. They are all very similar, but each do slightly different things (a custom letter, article and report for example. Since they share things in common, I ...
3
votes
2answers
1k views

Default values in \newcommand & renewing \maketitle

I am working on customizing a thesis document class according to my needs. I am trying to renew the \maketitle command to modify my title page, and I am facing two problems: I wish to define a ...
2
votes
1answer
272 views

Create a document class based on a KOMA-Script class: paper size problem

I want to create a document class based on a KOMA-Script class. First I would like change paper size, which would be defined in cls file. I see that similar problem was questioned in here, but without ...
4
votes
1answer
407 views

Trying to create simple template for novice users

I am trying to create a simple template for students to create a one page abstract. The idea is that they just define their title, author, and abstract, and another file could actually have the main ...
4
votes
2answers
212 views

Inheriting from beamer

I'm trying to write (my first) document class which will be an extension of beamer. In particular I want this class to produce the slides that I like. One of the things that I want is to have a ...
6
votes
0answers
156 views

Vertical space between 2 subsequent headers (of chapters, sections, etc) [closed]

I'm writing a LaTeX class for my bachelor's thesis. My university's standard says that there should be a space after headers: 2cm if there's text after the header 1.3cm if there's another header ...
5
votes
2answers
984 views

LaTeX Document class for department technical reports

Can anyone recommend a LaTeX document class that I could modify for use as our department technical report series? Something in the vein of document classes from publishers (Springer, Elsevier etc) ...
2
votes
1answer
2k views

friggeri CV biblatex problem? [closed]

I am trying to compile the cv template given here I am using ubuntu 13.04, TeXStudio 2.5.2 and TeXLive 2012. I set up texstudio to use biber to compile the biblatex entries and also modified the code ...
11
votes
2answers
199 views

What is the best practice for arithmetic operations specially for package/class writing?

There are some possibilities to execute arithmetic operations inside a package or class. TeX TeX supports \advance, \multiply or \divide to execute arithmetic operations. However the syntax is more ...
2
votes
1answer
76 views

Using a variable as a package setting within a class

I have defined a new class. Within this class, I am calling on the hyperref package, and I set the following options: \RequirePackage{hyperref} \hypersetup { pdfauthor={...}, pdfsubject={...}, ...
4
votes
1answer
767 views

Define variable in a class

I am trying to figure out how to use a variable in a class. From another question (Macro for Declaring Variables in Class Files) I got started. However, I find myself in need of using four lines or ...
7
votes
2answers
303 views

New class base on book class with options

I created a class of my own that uses book as base class. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{manuscript}[2013/03/23 Creative writing manuscripts class] \LoadClass[a4paper,12pt,oneside]{book} ...
4
votes
1answer
225 views

Changing Template Header for Appendices

I am using a modified BYU Thesis Template for my thesis. I want to be able to change the page header for the the appendices to read "Appendix A Data & Display" instead of "Chapter A Data & ...
0
votes
0answers
37 views

How make a class or package? [duplicate]

I want to make a class or package but i don't have example class or package Would you help me and give a example document (*.cls) or package(.*sty) ?
19
votes
1answer
282 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
240 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
148 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
261 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
146 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 ...
15
votes
1answer
1k 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
248 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
90 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
115 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 ...
4
votes
1answer
499 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
355 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
187 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
361 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
654 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
3answers
1k 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 ...
26
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
49 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
429 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
471 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
490 views

Create environment within my own latex class?

How can I automate multiple choice question type in my own class in LaTeX?
2
votes
2answers
689 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
151 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 ...
11
votes
1answer
269 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
217 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
341 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} ...
13
votes
3answers
3k 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
438 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
160 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
13k 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
267 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 ...