Hello, There are examples (usually one paragraph long) in my lecture text, and I want them to be typeset in smaller font (\tfx). An excerpt: The entities in question fall into two broad categories: {\em endogenous} (intrinsic to the SUI itself) and {\em exogenous} (belonging to a system's environment). \example{All processes that take place inside Earth (and other planets) are considered endogenous. These processes make the continents migrate, push the mountains up, trigger earthquakes and volcanism, and are driven by the warmth that is produced in the core of Earth.} More text... I hesitate about how to define \example. I know about \definedescription and \defineenumeration, but they seem not much logically suitable to me. What could you advise? Regards, Vyatcheslav
Hello,
There are examples (usually one paragraph long) in my lecture text, and I want them to be typeset in smaller font (\tfx). An excerpt:
The entities in question fall into two broad categories: {\em endogenous} (intrinsic to the SUI itself) and {\em exogenous} (belonging to a system's environment).
\example{All processes that take place inside Earth (and other planets) are considered endogenous. These processes make the continents migrate, push the mountains up, trigger earthquakes and volcanism, and are driven by the warmth that is produced in the core of Earth.}
More text...
I hesitate about how to define \example. I know about \definedescription and \defineenumeration, but they seem not much logically suitable to me. What could you advise?
Regards, Vyatcheslav
Hi, maybe you mean something like that: \define[1]\example{\tfx#1\tfa} \starttext \input tufte \example{\input tufte} \input tufte \stoptext best regards Bernhard
Am 12.02.10 18:59, schrieb Bernhard Rosensteiner:
maybe you mean something like that:
\define[1]\example{\tfx#1\tfa}
brr, when you want to define it in this way you should use grouping, e.g. \define[1]\example{{\tfx#1}} a better solution is \define\example{\groupedcommand{\tfx}{}} because you can now write \example{...} and {\example ...} The best way is to use \definealternativestyle, e.g. \definealternativestyle [example] [\tfx] [\tfx] the command takes three arguments because you can set with the third argument a different behaviour in titles etc. A third way is \definestartstop, e.g. \definestartstop[example][style=\tfx] this creates not only the command \example but also a example environment where you get a smaller font. Wolfgang
Am 12.02.2010 um 19:15 schrieb Wolfgang Schuster:
Am 12.02.10 18:59, schrieb Bernhard Rosensteiner:
maybe you mean something like that:
\define[1]\example{\tfx#1\tfa}
brr, when you want to define it in this way you should use grouping, e.g.
\define[1]\example{{\tfx#1}}
a better solution is
\define\example{\groupedcommand{\tfx}{}}
because you can now write
\example{...} and {\example ...}
The best way is to use \definealternativestyle, e.g.
\definealternativestyle [example] [\tfx] [\tfx]
the command takes three arguments because you can set with the third argument a different behaviour in titles etc.
A third way is \definestartstop, e.g.
\definestartstop[example][style=\tfx]
this creates not only the command \example but also a example environment where you get a smaller font.
posting amateur solutions brings always the pro´s on the scene ;-) thanks for your solutions best regards Bernhard
participants (3)
-
Bernhard Rosensteiner
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster