Difference between revisions of "Symbols"

From Wiki
Jump to navigation Jump to search
m
(reformatted, updated)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
< [[Basics|Text formatting]] | [[Fonts]] >
+
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/nav|Navigational Symbols]] | [[Symbols/mvs|Martin Vogel's Symbols]] | [[Symbols/utf8|handy utf-8 list]]>
 
  
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]
 
\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
 
</texcode>
 
<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://homepage.mac.com/atl/tex/ Zapf Dingbats, Unicode and Apple symbols] and how to use them with ConTeXt (Adam's page)
 
 
* [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===
Line 54: Line 44:
 
(Try {{cmd|showsymbolset}}<tt>[some set]</tt>!)
 
(Try {{cmd|showsymbolset}}<tt>[some set]</tt>!)
  
* [[source:symb-eur.tex|eur]] : Adobe Euro (Serif|Sans|Mono), defines {{cmd|texteuro}} (no sets)
+
* [[source:symb-imp-cc.mkiv|cc]] : [https://creativecommons.org/share-your-work/cclicenses/ Creative Commons] logos, set <tt>cc</tt>
* [[source:symb-jmn.tex|jmn]] : Janusz M. Nowacki's navigational symbols (sets <tt>navigation 1-4</tt>)
+
* [[source:symb-imp-cow.mkiv|cow]] : Cow-TeX logos, sets <tt>cownormal</tt> and <tt>cowcontour</tt>
* [[source:symb-mis.tex|mis]] : common bullets (no sets, but default definition for enumerations)
+
* [[source:symb-imp-eur.mkiv|eur]] : Adobe Euro (Serif|Sans|Mono), defines the <tt>euro</tt> symbol (no sets)
* [[source:symb-mvs.tex|mvs]] : [[Symbols/mvs|Martin Vogel's Symbols]] (sets <tt>astronomic, zodiac, europe, martinvogel 1-3</tt>; replaces LaTeX's marvosym)
+
* [[source:symb-imp-jmn.mkiv|jmn]] : Janusz M. Nowacki’s navigational symbols (sets <tt>navigation 1-4</tt>)
* [[source:symb-nav.tex|nav]] : Hans Hagen's [[Symbols/nav|navigational symbols]] (sets <tt>navigation 1-3</tt>)
+
* [[source:symb-imp-mis.mkiv|mis]] : common bullets (no sets, but default definition for enumerations)
* [[source:symb-uni.tex|uni]] : Unicode symbols (including Zapf Dingbats, lots of sets...)
+
* [[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-was.tex|was]]: Roland Waldi's symbols (sets <tt>wasy general, music, astronomy, astrology, geometry, physics, apl</tt>; replaces LaTeX's wasysym)
+
* [[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 ===
 
=== See also ===
 +
 
* The commands in category [[:Category:Commands/Symbols|Commands/Symbols]].
 
* The commands in category [[:Category:Commands/Symbols|Commands/Symbols]].
 
+
* Create your symbol with [[symbolset]]
{{Getting started navbox}}
 
  
 
[[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?

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