14 questions linked to/from Which document class is being used?
737 views

### conditional commands in .sty file, conditional on \documentclass [duplicate]

Possible Duplicate: Which document class is being used? I'd like to include conditional formatting in a .sty file, conditional on the document class of the document that invokes it. For example, ...
625 views

### Current document class name [duplicate]

Possible Duplicate: Which documentclass is being used? Is it possible to get the name of the current document class name from a package being used by that document? An example of what I mean: In ...
103 views

### How to check for document class in conditionals [duplicate]

Possible Duplicate: Which documentclass is being used? I know how to use conditionals in LaTeX, but I need to check what documentclass is being used. I need to not include a package when I'm ...
82 views

### If-then in a document style for specific document classes [duplicate]

Possible Duplicate: Which documentclass is being used? I want to make a style that would include some specific instructions if the document is using the memoir class, but I don't want those ...
69 views

### Conditional for documentclass [duplicate]

I was wondering whether it is possible to execute a command depending on the used documentclass. \documentclass{dinbrief} %\documentclass[a4paper]{letter} \usepackage{ifthen} \begin{document} \...
56 views

### conditional usepackage given documentclass [duplicate]

Possible Duplicate: Which document class is being used? How would I conditionally usepackage{enumitem} if the document class is memoir (but not beamer)? Could I use the etoolbox primitives, or ...
27 views

### How to distinguish documentclass environment that is current in [duplicate]

The environment is: \documentclass{beamer} \usepackage{xparse} \usepackage{expl3} Or: \documentclass{article} \usepackage{xparse} \usepackage{expl3} Following is an accustomed command sequence, \...
22 views

### How to branch based on the documentclass? [duplicate]

I have a macros.tex file where I keep my macros and I use them with different document classes. I want to skip including some of my macros based on the document class (e.g. if it is beamer). How ...
10k views

### Test if a package (or package option) is loaded

[french]{babel} (aka frenchb) is incompatible with some other packages, such as tikz, since it tries to insert \thinspace before semi-colons. In order to make these two play nice, you have to call \...
2k views

### If document class is equal to something then do not use package

I am trying to create a file which includes common packages and macros I use. It is something like this. commonDefinitions.tex \interdisplaylinepenalty=2500 \usepackage{algorithmic} \usepackage{...
900 views

### How to configure theorems depending on the document class?

I would like to have \newtheorem{teo}{Teorema}[chapter] if the book class is loaded but \newtheorem{teo}{Teorema}[section] if the article class is loaded. Can I do this with some sort of ...
991 views

### How to configure fancyhdr depending on the document class [duplicate]

Possible Duplicate: How to configure theorems depending on the document class? I would like to have if the book class is loaded but if the article class is loaded. Can I do this with some sort of ...
249 views

### How to write the documentclass into a file

Suppose I have received a selfcontained LaTeX source file, main.tex. It includes a file of macro definitions, my_macros.tex, that the author included in the preamble. This macro file is under my ...
245 views

### Ignore \pause macro from beamer in scrartcl document

I'm bulding up a beamer presentation and an article. Therefore I have to create some figures which are used in both files. So I created an additional .tex file for each figure which I include in every ...