how to write two or three single hyphens?
Hello, describing linux file permissions I would like to write rwx------ As I expected the hyphens are converted to two long dashes (excuse me if I missed the correct name), so I tried something like this rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in context I'm still getting the long dashes. How can I prevent this conversion, please? regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/
Hello, is this what you are looking for? \starttext rwx\,-\,-\,-\,-\,-\,- \stoptext I tried the small space macro from LaTeX and it works here, too, so i suspect it is more a TeX macro. Andy On 31.05.2012, at 11:16, Jan Pohanka wrote:
Hello,
describing linux file permissions I would like to write rwx------ As I expected the hyphens are converted to two long dashes (excuse me if I missed the correct name), so I tried something like this rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in context I'm still getting the long dashes. How can I prevent this conversion, please?
regards Jan
-- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 31.05.2012 um 11:16 schrieb Jan Pohanka:
Hello,
describing linux file permissions I would like to write rwx------ As I expected the hyphens are converted to two long dashes (excuse me if I missed the correct name), so I tried something like this rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in context I'm still getting the long dashes. How can I prevent this conversion, please?
\definehighlight[filepermission][style=\setff{none}] \starttext Verbatim: \type{rwx------} Highlight: \filepermission{rwx------} \stoptext Wolfgang
\definehighlight[filepermission][style=\setff{none}]
Great, thank you. Anyway what is the purpose of the \setff macro? I have not found its documentation anywhere. Also why the latex way -{}- does not work? It is a feature of luatex? best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/
On 31-5-2012 11:46, Jan Pohanka wrote:
\definehighlight[filepermission][style=\setff{none}]
Great, thank you. Anyway what is the purpose of the \setff macro? I have not found its documentation anywhere. Also why the latex way -{}- does not work? It is a feature of luatex?
-{}- is a side effect of traditional tex and sort of a hack too Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 31.05.2012 um 11:46 schrieb Jan Pohanka:
\definehighlight[filepermission][style=\setff{none}]
Great, thank you. Anyway what is the purpose of the \setff macro?
In MkIV you have tell which features of a font (e.g. ligatures or kerning) have to enabled, this is done in two steps. 1. You define a list with the features you want, e.g. \definefontfeature[myfeatures][liga=yes,kern=yes] which activates ligatures and kerning. 2. You apply this list to a font, normally this is done in the typescripts, e.g. \definetypeface[mainface][rm][serif][palatino][default][features=myfeatures] Sometimes it is necessary to add additional features or to switch a different feature list *in* the document. To do this context provides the commands \addfontfeature and \setfontfeature which can be also called in the two shorter commands \addff and \setff. In the \definehighlight command I enabled the predefined “none” list where ligatures and kerning is disabled to prevent that -- results in –. Wolfgang
Thank you for the detailed explanation.
best regards
Jan
Dne Thu, 31 May 2012 12:19:38 +0200 Wolfgang Schuster
Am 31.05.2012 um 11:46 schrieb Jan Pohanka:
Great, thank you. Anyway what is the purpose of the \setff macro?
In MkIV you have tell which features of a font (e.g. ligatures or kerning) have to enabled, this is done in two steps.
1. You define a list with the features you want, e.g.
\definefontfeature[myfeatures][liga=yes,kern=yes]
which activates ligatures and kerning.
2. You apply this list to a font, normally this is done in the typescripts, e.g.
\definetypeface[mainface][rm][serif][palatino][default][features=myfeatures]
Sometimes it is necessary to add additional features or to switch a different feature list *in* the document. To do this context provides the commands \addfontfeature and \setfontfeature which can be also called in the two shorter commands \addff and \setff. In the \definehighlight command I enabled the predefined “none” list where ligatures and kerning is disabled to prevent that -- results in –.
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 ___________________________________________________________________________________
On Thu, May 31, 2012 at 11:46:32AM +0200, Jan Pohanka wrote:
Also why the latex way -{}- does not work? It is a feature of luatex?
{} breaking ligatures is “an accidental feature¹” in traditional TeX that LuaTeX got rid of. Regards, Khaled ¹ https://groups.google.com/forum/?fromgroups#!msg/comp.lang.perl/Egohpu5chYU/...
participants (5)
-
Andy Thomas
-
Hans Hagen
-
Jan Pohanka
-
Khaled Hosny
-
Wolfgang Schuster