Difference between revisions of "Command/style"
< Command
Jump to navigation
Jump to search
(new) |
(add example) |
||
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:examples> | </context></cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> |
Revision as of 19:59, 12 September 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