12
votes
3answers
240 views

Gobbling an argument if it starts with #

My problem comes from pandoc and markdown, but it is not directly related with these tools, but instead with "customizing" the resulting pdf via some tex macro programming, so I think it is on topic. ...
8
votes
2answers
288 views

How to make a switch for print vs. display versions of a document with respect to links/URLs

I want the print version of a document have links or URLs written out but the online version have the abbreviated tag/name. So the switch, set at the beginning, will choose between two alternatives, ...
19
votes
1answer
9k views

Conditionally hidden slides in beamer

When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra ...
7
votes
4answers
1k views

Undefined control sequence \equal in section title while using packages hyperref and ifthen

I have a command that uses package ifthen. I use the command in section titles. I have to protect the command because otherwise I obtained the error Undefined control sequence \equal. So far, so ...
4
votes
3answers
1k views

How to use \newcommand for \href?

I want to format Wikipedia entries in my document in a standard way: \href{http://en.wikipedia.org/wiki/Foo}{Foo} So I thought about using \newcommand*: \documentclass{article} \usepackage{ifthen} ...