Command/definestyle

Unofficial ConTeXt Wiki mirror

Last modified: 2023-09-12

Summary

The command \definestyle is used to define a custom text style.

Settings

\definestyle[...][...][...=...,...]
[...] name
[...] name
...=...,... inherits from \setupstyle

Option Explanation
name of new style
parent style (inheritance)
\definestyle[MyStyle][method=command] also creates a command \MyStyle, otherwise you can use the new style only in style assignments.

Description

Examples

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
    

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: