Tagged Questions
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 ...
8
votes
0answers
139 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 ...
3
votes
1answer
93 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 ...
6
votes
1answer
105 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
106 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}
...
6
votes
1answer
138 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
692 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 ...
10
votes
2answers
108 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:
...
2
votes
2answers
358 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
213 views
How to pass a string to a class
I have a class file where I load hyperref. Now I'd like to change the content of hyperref's \pdftitle from the main .tex file on:
\RequirePackage{filecontents}
\begin{filecontents}{myclass.cls}
...
1
vote
1answer
282 views
own class with twocolumns activated in \ifdefined for KOMA and xelatex
I want to do something like in http://stackoverflow.com/questions/1465665/passing-command-line-arguments-to-latex-document.
For better explanation I'll show a minimal running example:
My test.cls:
...
13
votes
2answers
395 views
Defining a wrapper class for a set of document classes
Until now, I have been collecting my "frequently used packages", custom macros, and configurations in a personal style file. However, some of those configurations depend on the use of one of the ...
3
votes
1answer
358 views
Best practice for setting package options through class options?
I want to process my class options so as to create a (potentially long) options list for package(s) I'm loading, e.g.
% set default package options here somehow
\DeclareOption{myvariant}{
% set a ...
10
votes
1answer
583 views
Changing the default options of a document class?
I would like to define some base-class.cls, with some options and their defaults, and then provide some mechanism so that other derived classes can reuse the existing options and change the defaults. ...