Search found 1 match

by manukoch
Tue Nov 30, 2010 7:23 pm
Forum: Text Formatting
Topic: Formatting based on context, environment
Replies: 0
Views: 942

Formatting based on context, environment

Hi,
I would like to write a macro that expands differently based on the context it is called in. So in normal text it should expand to value1, but if called in a section title or figure caption it should expand to the same text with different formatting.

I am aware that I should use the ifthenelse ...