Difference between revisions of "Command/style"
< Command
Jump to navigation
Jump to search
(new) |
BruceH2020 (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 40: | Line 40: | ||
More normal text. | More normal text. | ||
{\style[bolditalic]Another bold move, but more moving.} | {\style[bolditalic]Another bold move, but more moving.} | ||
+ | </context></cd:example><cd:example title="own style (from the source)"><context source="yes"> | ||
+ | \definestyle[one][style=bold,color=darkblue] | ||
+ | |||
+ | test \one{test} test | ||
+ | |||
+ | test \style[one]{test} test | ||
+ | |||
+ | test \style[color=red]{test} test | ||
+ | |||
+ | test \style[Serif at 20pt]{test} test | ||
+ | </context></cd:example><cd:example title="You can change font as well"><context source="yes"> | ||
+ | Some text in the default bodyfont. | ||
+ | |||
+ | \style[style={\switchtobodyfont[heros,10pt]}]{The quick brown} | ||
+ | \style[style={\switchtobodyfont[heros,10pt]\bf}]{fox jumps over} | ||
+ | \style[style={\switchtobodyfont[heros,10pt]\it}]{the lazy dog} | ||
+ | |||
+ | And back to the default again. | ||
</context></cd:example></cd:examples> | </context></cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> |
Latest revision as of 21:51, 29 October 2023
Contents
\style
Summary
The command \style is generally usable to change the font style.
Settings
Settings argument
Description
Examples
simple use
You can use it as a command or as a switch:
Some normal text. \style[bold]{A bold move.} More normal text. {\style[bolditalic]Another bold move, but more moving.}
own style (from the source)
\definestyle[one][style=bold,color=darkblue] test \one{test} test test \style[one]{test} test test \style[color=red]{test} test test \style[Serif at 20pt]{test} test
You can change font as well
Some text in the default bodyfont. \style[style={\switchtobodyfont[heros,10pt]}]{The quick brown} \style[style={\switchtobodyfont[heros,10pt]\bf}]{fox jumps over} \style[style={\switchtobodyfont[heros,10pt]\it}]{the lazy dog} And back to the default again.