Hello, how to typeset "centerd asterisk" ("*") in Ctx? I mean the symbol which is used in the third level of itemization (http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX. (I cannot find the symbol definition in Ctx itemize-command definition (source files) and simple writing "\textasteriskcentered" doesn't work.) Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
just copy some symbol from here:
http://en.wikipedia.org/wiki/Asterisk#Encodings
and be sure to use a font containing them.
alternatively define a command which temporarily switches to such a font
in, displays the symbol, and switches back.
Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
how to typeset "centerd asterisk" ("*") in Ctx?
I mean the symbol which is used in the third level of itemization ( http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX.
(I cannot find the symbol definition in Ctx itemize-command definition (source files) and simple writing "\textasteriskcentered" doesn't work.)
Thank you in advance.
Best regards,
Lukas
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4
Tel: +420 241 096 751 Fax: +420 244 461 038
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hello,
could you provide a MWE?
---- A file in UTF-8
\starttext
% Let's use the default Ctx font
% What to come here?
\stoptext
----
Lukas
On Tue, 09 Jun 2015 09:46:55 +0200, Philipp A.
just copy some symbol from here: http://en.wikipedia.org/wiki/Asterisk#Encodings
and be sure to use a font containing them.
alternatively define a command which temporarily switches to such a font in, displays the symbol, and switches back.
Procházka Lukáš Ing. - Pontex s. r. o.
schrieb am Di., 9. Juni 2015 um 09:25 Uhr: Hello,
how to typeset "centerd asterisk" ("*") in Ctx?
I mean the symbol which is used in the third level of itemization ( http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX.
(I cannot find the symbol definition in Ctx itemize-command definition (source files) and simple writing "\textasteriskcentered" doesn't work.)
Thank you in advance.
Best regards,
Lukas
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
Am 09.06.2015 um 09:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
: Hello,
how to typeset "centerd asterisk" ("*") in Ctx?
I mean the symbol which is used in the third level of itemization (http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX.
(I cannot find the symbol definition in Ctx itemize-command definition (source files) and simple writing "\textasteriskcentered" doesn't work.)
The symbols in different itemise levels can be shown with \symbol[1], \symbol[2] etc. but since these numbered symbols can be redefined it is better to use the named symbol to access the star with \symbol[star]. The following example shows a few of the predefined symbols. \starttext \starttabulate[|l|c|] \NC \bf Command \NC \bf Symbol \NC\NR \TB \NC \type{\symbol[1]} \NC \symbol[1] \NC\NR \NC \type{\symbol[2]} \NC \symbol[2] \NC\NR \NC \type{\symbol[3]} \NC \symbol[3] \NC\NR \NC \type{\symbol[4]} \NC \symbol[4] \NC\NR \NC \type{\symbol[5]} \NC \symbol[5] \NC\NR \NC \type{\symbol[6]} \NC \symbol[6] \NC\NR \NC \type{\symbol[7]} \NC \symbol[7] \NC\NR \NC \type{\symbol[8]} \NC \symbol[8] \NC\NR \TB \NC \type{\symbol[bullet]} \NC \symbol[bullet] \NC\NR \NC \type{\symbol[dash]} \NC \symbol[dash] \NC\NR \NC \type{\symbol[star]} \NC \symbol[star] \NC\NR \NC \type{\symbol[triangle]} \NC \symbol[triangle] \NC\NR \NC \type{\symbol[circle]} \NC \symbol[circle] \NC\NR \NC \type{\symbol[square]} \NC \symbol[square] \NC\NR \NC \type{\symbol[diamond]} \NC \symbol[diamond] \NC\NR \TB \NC \type{\symbol[smallcircle]} \NC \symbol[smallcircle] \NC\NR \NC \type{\symbol[medcircle]} \NC \symbol[medcircle] \NC\NR \NC \type{\symbol[bigcircle]} \NC \symbol[bigcircle] \NC\NR \stoptabulate \stoptext Wolfgang
Hello,
thank you, that's great.
One more question - how to use another symbol, "bigstar" (see "symbols-a4.pdf" or the attached image)?
I tried the following code, but with no success:
----
\starttext
Ttt \symbol[bigstar]
Aaa \bigstar
Bbb \symbol[mathabx][bigstar]
\stoptext
----
Best regards,
Lukas
On Tue, 09 Jun 2015 11:02:05 +0200, Wolfgang Schuster
Am 09.06.2015 um 09:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
: Hello,
how to typeset "centerd asterisk" ("*") in Ctx?
I mean the symbol which is used in the third level of itemization (http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX.
(I cannot find the symbol definition in Ctx itemize-command definition (source files) and simple writing "\textasteriskcentered" doesn't work.)
The symbols in different itemise levels can be shown with \symbol[1], \symbol[2] etc. but since these numbered symbols can be redefined it is better to use the named symbol to access the star with \symbol[star].
The following example shows a few of the predefined symbols.
\starttext
\starttabulate[|l|c|] \NC \bf Command \NC \bf Symbol \NC\NR \TB \NC \type{\symbol[1]} \NC \symbol[1] \NC\NR \NC \type{\symbol[2]} \NC \symbol[2] \NC\NR \NC \type{\symbol[3]} \NC \symbol[3] \NC\NR \NC \type{\symbol[4]} \NC \symbol[4] \NC\NR \NC \type{\symbol[5]} \NC \symbol[5] \NC\NR \NC \type{\symbol[6]} \NC \symbol[6] \NC\NR \NC \type{\symbol[7]} \NC \symbol[7] \NC\NR \NC \type{\symbol[8]} \NC \symbol[8] \NC\NR \TB \NC \type{\symbol[bullet]} \NC \symbol[bullet] \NC\NR \NC \type{\symbol[dash]} \NC \symbol[dash] \NC\NR \NC \type{\symbol[star]} \NC \symbol[star] \NC\NR \NC \type{\symbol[triangle]} \NC \symbol[triangle] \NC\NR \NC \type{\symbol[circle]} \NC \symbol[circle] \NC\NR \NC \type{\symbol[square]} \NC \symbol[square] \NC\NR \NC \type{\symbol[diamond]} \NC \symbol[diamond] \NC\NR \TB \NC \type{\symbol[smallcircle]} \NC \symbol[smallcircle] \NC\NR \NC \type{\symbol[medcircle]} \NC \symbol[medcircle] \NC\NR \NC \type{\symbol[bigcircle]} \NC \symbol[bigcircle] \NC\NR \stoptabulate
\stoptext
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
Am 09.06.2015 um 12:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
: Hello,
thank you, that's great.
One more question - how to use another symbol, "bigstar" (see "symbols-a4.pdf" or the attached image)?
The document you mention is only relevant for LaTeX.
I tried the following code, but with no success:
---- \starttext Ttt \symbol[bigstar]
Aaa \bigstar
Bbb \symbol[mathabx][bigstar]
\stoptext
You have to use math mode to show the symbol but not every font contains it. \setupbodyfont[xits] \starttext $ \bigstar \quad ★ $ \stoptext The better solution is to use a symbol font like Font Awesome [1] which contains the symbol you want to use. [1] http://fontawesome.io/icon/star Wolfgang
participants (3)
-
Philipp A.
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster