{documentclass-writing} is about writing document classes. If your question is about choosing, installing, or using document classes, choose {documentclass} instead.
8
votes
2answers
80 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 ...
1
vote
1answer
26 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
34 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
74 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
41 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
31 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
249 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
154 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
100 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
68 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 ...
13
votes
1answer
119 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 ...
12
votes
1answer
225 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. ...
8
votes
0answers
146 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
45 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
90 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
99 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 ...
8
votes
1answer
152 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
106 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
109 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}
...
11
votes
3answers
304 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
419 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
1k 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
43 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 ...
0
votes
0answers
96 views
Error about my own class created [closed]
I apologize if my question is written in draft form. In fact, I would like to avoid a long message. Briefly, I have tried to write my own class, in which I have gathered all my \newcommands and some ...
5
votes
2answers
143 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 ...
8
votes
1answer
136 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
319 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
272 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
99 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
228 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 ...
7
votes
2answers
130 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
140 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}
...
8
votes
3answers
707 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
322 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
109 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
2k 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
118 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 ...
20
votes
2answers
789 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
367 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
96 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
186 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
370 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 ...
2
votes
1answer
90 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
208 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
291 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 ...
13
votes
1answer
367 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
225 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
87 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 ...
4
votes
0answers
217 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 ...