Difference between revisions of "Symbols"
Jump to navigation
Jump to search
(reformatted, updated) |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | Symbols are named graphical or typographic elements. They can be divided into symbol sets, which gives some namespace independence, as well. You can load the symbol definitions from a <tt>symb-bla</tt> file with: |
− | |||
− | < | ||
− | |||
<texcode> | <texcode> | ||
\usesymbols[bla] | \usesymbols[bla] | ||
</texcode> | </texcode> | ||
− | Given a symbol <tt>Snowman</tt> defined in a symbolset <tt>Weather Symbols</tt>, you could typeset the symbol with: | + | |
+ | Given a symbol <tt>Snowman</tt> defined in a symbolset <tt>Weather Symbols</tt> in that file, you could typeset the symbol with: | ||
+ | |||
<texcode> | <texcode> | ||
\setupsymbolset [Weather Symbols] | \setupsymbolset [Weather Symbols] | ||
\symbol [Snowman] | \symbol [Snowman] | ||
</texcode> | </texcode> | ||
+ | |||
Or, alternatively, you don't need to load the entire symbolset: | Or, alternatively, you don't need to load the entire symbolset: | ||
+ | |||
<texcode> | <texcode> | ||
\symbol[Weather Symbols][Snowman] | \symbol[Weather Symbols][Snowman] | ||
</texcode> | </texcode> | ||
+ | You can override the existing symbols used at different levels in itemized lists by redefining the existing symbol numbers, with code like the following: | ||
− | + | <context source="yes"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <context> | ||
\usesymbols[mvs] | \usesymbols[mvs] | ||
\definesymbol[1][{\symbol[martinvogel 2][PointingHand]}] | \definesymbol[1][{\symbol[martinvogel 2][PointingHand]}] | ||
\definesymbol[2][{\symbol[martinvogel 2][CheckedBox]}] | \definesymbol[2][{\symbol[martinvogel 2][CheckedBox]}] | ||
+ | |||
\startitemize[packed] | \startitemize[packed] | ||
\item item \item item | \item item \item item | ||
Line 47: | Line 37: | ||
* [http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf comprehensive] list of symbols in TeX fonts | * [http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf comprehensive] list of symbols in TeX fonts | ||
− | |||
* [http://www.unicode.org/charts/symbols.html Unicode slots] of symbols | * [http://www.unicode.org/charts/symbols.html Unicode slots] of symbols | ||
+ | * [[Symbols/utf8|handy UTF-8 list]] | ||
===Predefined Symbol Sets=== | ===Predefined Symbol Sets=== | ||
− | (Try [[ | + | (Try {{cmd|showsymbolset}}<tt>[some set]</tt>!) |
+ | |||
+ | * [[source:symb-imp-cc.mkiv|cc]] : [https://creativecommons.org/share-your-work/cclicenses/ Creative Commons] logos, set <tt>cc</tt> | ||
+ | * [[source:symb-imp-cow.mkiv|cow]] : Cow-TeX logos, sets <tt>cownormal</tt> and <tt>cowcontour</tt> | ||
+ | * [[source:symb-imp-eur.mkiv|eur]] : Adobe Euro (Serif|Sans|Mono), defines the <tt>euro</tt> symbol (no sets) | ||
+ | * [[source:symb-imp-jmn.mkiv|jmn]] : Janusz M. Nowacki’s navigational symbols (sets <tt>navigation 1-4</tt>) | ||
+ | * [[source:symb-imp-mis.mkiv|mis]] : common bullets (no sets, but default definition for enumerations) | ||
+ | * [[source:symb-imp-mvs.mkiv|mvs]] : [[Symbols/mvs|Martin Vogel’s Symbols]] (sets <tt>astronomic, zodiac, europe, martinvogel 1-2</tt>; replaces LaTeX’s `marvosym`) | ||
+ | * [[source:symb-imp-nav.mkiv|nav]] : Hans Hagen’s [[Symbols/nav|navigational symbols]] (sets <tt>navigation 1-3</tt>) | ||
+ | * [[source:symb-imp-was.mkiv|was]]: Roland Waldi’s symbols (sets <tt>wasy general, music, astronomy, astrology, geometry</tt>; replaces LaTeX’s `wasysym`) | ||
+ | |||
+ | <context source="yes"> | ||
+ | \usesymbols[mvs] | ||
+ | \bTABLE | ||
+ | \bTR | ||
+ | \bTD\showsymbolset[astronomic] \eTD | ||
+ | \bTD\showsymbolset[zodiac] \eTD | ||
+ | \bTD\showsymbolset[europe] \eTD | ||
+ | \bTD\showsymbolset[martinvogel 1] \eTD | ||
+ | \eTR | ||
+ | \eTABLE | ||
+ | </context> | ||
+ | |||
+ | |||
+ | === See also === | ||
− | * [[ | + | * The commands in category [[:Category:Commands/Symbols|Commands/Symbols]]. |
− | + | * Create your symbol with [[symbolset]] | |
− | |||
− | |||
− | |||
− | |||
− | * [[ | ||
[[Category:Fonts]] | [[Category:Fonts]] | ||
[[Category:Symbols]] | [[Category:Symbols]] |
Latest revision as of 21:22, 6 March 2024
Symbols are named graphical or typographic elements. They can be divided into symbol sets, which gives some namespace independence, as well. You can load the symbol definitions from a symb-bla file with:
\usesymbols[bla]
Given a symbol Snowman defined in a symbolset Weather Symbols in that file, you could typeset the symbol with:
\setupsymbolset [Weather Symbols] \symbol [Snowman]
Or, alternatively, you don't need to load the entire symbolset:
\symbol[Weather Symbols][Snowman]
You can override the existing symbols used at different levels in itemized lists by redefining the existing symbol numbers, with code like the following:
\usesymbols[mvs] \definesymbol[1][{\symbol[martinvogel 2][PointingHand]}] \definesymbol[2][{\symbol[martinvogel 2][CheckedBox]}] \startitemize[packed] \item item \item item \startitemize[packed] \item item \item item \stopitemize \item item \stopitemize
Which (free) font contains some symbol?
- comprehensive list of symbols in TeX fonts
- Unicode slots of symbols
- handy UTF-8 list
Predefined Symbol Sets
(Try \showsymbolset[some set]!)
- cc : Creative Commons logos, set cc
- cow : Cow-TeX logos, sets cownormal and cowcontour
- eur : Adobe Euro (Serif|Sans|Mono), defines the euro symbol (no sets)
- jmn : Janusz M. Nowacki’s navigational symbols (sets navigation 1-4)
- mis : common bullets (no sets, but default definition for enumerations)
- mvs : Martin Vogel’s Symbols (sets astronomic, zodiac, europe, martinvogel 1-2; replaces LaTeX’s
marvosym
) - nav : Hans Hagen’s navigational symbols (sets navigation 1-3)
- was: Roland Waldi’s symbols (sets wasy general, music, astronomy, astrology, geometry; replaces LaTeX’s
wasysym
)
\usesymbols[mvs] \bTABLE \bTR \bTD\showsymbolset[astronomic] \eTD \bTD\showsymbolset[zodiac] \eTD \bTD\showsymbolset[europe] \eTD \bTD\showsymbolset[martinvogel 1] \eTD \eTR \eTABLE
See also
- The commands in category Commands/Symbols.
- Create your symbol with symbolset