Difference between revisions of "Symbols"

From Wiki
Jump to navigation Jump to search
m (pre -> texcode)
(reformatted, updated)
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
< [[Visuals]]
+
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:
  
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:
  
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">
<texcode>
 
 
\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 28: Line 32:
 
\item item
 
\item item
 
\stopitemize
 
\stopitemize
</texcode>
+
</context>
<context>
+
 
\starttext
+
===Which (free) font contains some symbol?===
 +
 
 +
* [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
 +
* [[Symbols/utf8|handy UTF-8 list]]
 +
 
 +
===Predefined Symbol Sets===
 +
 
 +
(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]
 
\usesymbols[mvs]
\definesymbol[1][{\symbol[martinvogel 2][PointingHand]}]
+
\bTABLE
\definesymbol[2][{\symbol[martinvogel 2][CheckedBox]}]
+
\bTR
\startitemize[packed]
+
\bTD\showsymbolset[astronomic] \eTD
\item item \item item
+
\bTD\showsymbolset[zodiac] \eTD
\startitemize[packed]
+
\bTD\showsymbolset[europe] \eTD
\item item \item item
+
\bTD\showsymbolset[martinvogel 1] \eTD
\stopitemize
+
\eTR
\item item
+
\eTABLE
\stopitemize
 
\stoptext
 
 
</context>
 
</context>
 +
 +
 +
=== See also ===
 +
 +
* The commands in category [[:Category:Commands/Symbols|Commands/Symbols]].
 +
* Create your symbol with [[symbolset]]
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]
 +
[[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?

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