{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

1
vote
0answers
118 views

How to prepare a template for a journal [closed]

I want to prepare a template for the new launch journal in LaTeX. How to prepare template in LaTeX for a journal? Is there any package for it? Please help in this regard. sushil
7
votes
1answer
112 views

How can I separate design from content?

I am new to LaTeX and have completed my first document recently, and it came out to be excellent. However, I am not going to make several more documents which shall be similar. I found that although ...
1
vote
0answers
27 views

standalone: subprambles inverse

When splitting a document with the standalone class and package, the option subpreambles causes the main document to include all the preambles of the sub-files. The other way around is more difficult. ...
3
votes
2answers
371 views

Double dot at the end of sentence when figure reference ends with a dot

I try to make a class. I wrote \renewcommand\thetable{\thechapter\arabic{table}.} and under the table or in sentence I have e.g. "Table 2.1." but problem is when reference is at the end of ...
3
votes
1answer
95 views

Article class complaining about missing \title

I'm making a custom Latex class which I am basing on the article class. When compiling a document I get ! LaTeX Error: No \title given., even though I use \title in the document. How can I solve this ...
2
votes
0answers
40 views

Document class creation tutorial [duplicate]

Do you know any tutorial for create document class? I create my own documentclass by editing book class but not everything works fine. Thanks for help.
1
vote
0answers
212 views

Can I make documentclass{book} look more like a book? [closed]

I am fairly new to LaTeX and am trying to write a book. Being a newbie I plumped for \documentclass{book} because that seemed like the obvious choice but I can't get it to look like a book. I'm fairly ...
4
votes
0answers
201 views

Class available for law Reports?

Has anyone used LaTeX for writing Expert Witness reports or similar for UK Courts? These have to follow a particular format which would be ideal in Latex but I am a relative newcomer to Latex and ...
2
votes
0answers
48 views

Commands for getting and setting additional elements in a class and document

As I'm writing my first class, I'm wondering the best way to create additional elements that can be used both in the class file and the LaTeX document. For instance, I want the user to set the ...
5
votes
2answers
516 views

How to make a “template” for beamer?

I think that what I would like to do is a class file, however beamer is a latex class, so I'll try the long description: I have written quite a few commands to make a beamer document look the way I ...
3
votes
2answers
1k views

How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error ! Package ...
2
votes
1answer
331 views

Custom \maketitle in my custom class not working when I use report class

I am trying to write a new class using the report class. In my custom class I have used a custom \maketitle. But it is not working. But it works, if I use article class as my base. My class file is ...
8
votes
1answer
101 views

How to access \@title from a custom class

I was trying to write a custom LaTeX class where I need to access the value of \@title. I wrote \newcommand{\makeack}{Hello World \@title World} But the value of \@title is not printed when I use ...
-2
votes
1answer
1k views

\newcommand in class - undefined control sequence

I'm trying to write a class based on article.cls and I'm having some trouble with \newcommand. Here go the complete files. Class file \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{NITclsD} ...
5
votes
1answer
169 views

Access \@email in a custom LaTeX class

I am trying to customize an article class for my needs. I want to access \email{} in my class but without any success. This is my \maketitlepage section in cls file, \newcommand{\maketitlepage}{% ...
2
votes
0answers
158 views

Document class with table in the header [closed]

I'm trying to write a document class in which the header of the first page has a table. The header of the following pages should have another table. Well, I solved this problem in the .tex file (user ...
3
votes
1answer
295 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
113 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
152 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
178 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
87 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
2k 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 ...
4
votes
1answer
322 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
484 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
230 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
161 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
1k 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
223 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
87 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
1k 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 ...
9
votes
2answers
366 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
265 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
39 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
291 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
246 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
161 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
338 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
152 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
2k 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
251 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
99 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
118 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
572 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
403 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
197 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
424 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
740 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 ...
15
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 ...