Hello list, I've got a lot of newbie questions. I'm writing a technical document with context for the first time to try it. I come from a TeX/LaTeX world. -> How to print a tilda? I'm trying to write an URL with a tilda in it with the font \tt. \widetilda, \tilda do not output any character. Even \~{} do not print anything. And it does not seem to appear somewhere in the wiki or in the "special characters" section of the "ConTeXt an excursion" excellent document. -> How could I do french guillemets (<< and >>)? Is it possible? -> I would like to make a glossary, ie an index with a definition for each entry. Many parts of the manual could help me but i don't really now in which direction to dig: is it a list of definition? Should I use registers? -> I'm trying to put a metapost graphic in the margin like te example in the manual reference (page 47) using the following command: \definestartstop[important][command={\inmarge{\useMPgraphic{bang}[width=\marginwidth]}}] But (of course :) it does not work at all and put some blank pages. Any idea? Thanks a lot for your help. And thanks a lot to all the developpers od ConTeXt: it is thought in a really smart way! -AJ
On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
Hello list, I've got a lot of newbie questions. I'm writing a technical document with context for the first time to try it. I come from a TeX/LaTeX world.
-> How to print a tilda? I'm trying to write an URL with a tilda in it with the font \tt. \widetilda, \tilda do not output any character. Even \~{} do not print anything. And it does not seem to appear somewhere in the wiki or in the "special characters" section of the "ConTeXt an excursion" excellent document. Which encoding are you using? Try \texttilde
-> How could I do french guillemets (<< and >>)? Is it possible?
Which inputregime are you using? With \enableregime[utf], you can input them directly, or try \leftguillemot and \rightguillemot (yes, the names are moronic, but that's Adobe's fault)
-> I would like to make a glossary, ie an index with a definition for each entry. Many parts of the manual could help me but i don't really now in which direction to dig: is it a list of definition? Should I use registers?
-> I'm trying to put a metapost graphic in the margin like te example in the manual reference (page 47) using the following command: \definestartstop[important][command={\inmarge{\useMPgraphic{bang} [width=\marginwidth]}}] But (of course :) it does not work at all and put some blank pages. Any idea?
For these two, others will have to help. Best Thomas
Quoting "Thomas A. Schmitz"
On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
Hello list, I've got a lot of newbie questions. I'm writing a technical document with context for the first time to try it. I come from a TeX/LaTeX world.
-> How to print a tilda? I'm trying to write an URL with a tilda in it with the font \tt. \widetilda, \tilda do not output any character. Even \~{} do not print anything. And it does not seem to appear somewhere in the wiki or in the "special characters" section of the "ConTeXt an excursion" excellent document.
Which encoding are you using? Try \texttilde
I'm using utf-8 encoding. \texttilde works great, thanks :) It outputs a tilda that is a bit high but i don't know if a lower one exists. Thanks a lot!
-> How could I do french guillemets (<< and >>)? Is it possible?
Which inputregime are you using? With \enableregime[utf], you can input them directly, or try \leftguillemot and \rightguillemot (yes, the names are moronic, but that's Adobe's fault)
I'm using \enableregime[utf]. I should find the french guillemets :) But \leftguillemot and \rightguillemot are working fine. Thanks a lot for all answers :) -AJ
Quoting "Thomas A. Schmitz"
On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
-> How could I do french guillemets (<< and >>)? Is it possible?
Which inputregime are you using? With \enableregime[utf], you can input them directly, or try \leftguillemot and \rightguillemot (yes, the names are moronic, but that's Adobe's fault)
For information: I've tried to type them directly on my keybord. They apear on my screen but the final pdf document output black rectangles. (I'm sure that all what I use is configured to use and produce utf8) But the workaround with \leftguillemot and \rightguillemot is fine for me. Thanks for all. -AJ
toto@tots-ns.net wrote:
Quoting "Thomas A. Schmitz"
: On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
-> How could I do french guillemets (<< and >>)? Is it possible?
Which inputregime are you using? With \enableregime[utf], you can input them directly, or try \leftguillemot and \rightguillemot (yes, the names are moronic, but that's Adobe's fault)
For information: I've tried to type them directly on my keybord. They apear on my screen but the final pdf document output black rectangles. (I'm sure that all what I use is configured to use and produce utf8) But the workaround with \leftguillemot and \rightguillemot is fine for me.
hm, this normally means that there is no correspondence between the utf vector's slot and a glyph ... meybe we need a fix? Hans
Hans Hagen wrote:
toto@tots-ns.net wrote:
For information: I've tried to type them directly on my keybord. They apear on my screen but the final pdf document output black rectangles. (I'm sure that all what I use is configured to use and produce utf8) But the workaround with \leftguillemot and \rightguillemot is fine for me.
hm, this normally means that there is no correspondence between the utf vector's slot and a glyph ... meybe we need a fix?
Just tried it with default LM, ec, and texnansi. No problem that I can see. Question to toto: What's your font setup for the document? (Someone asked what encoding, you answered UTF-8, which in ConTeXt parlance is the input "regime". We're also asking about the font's output "encoding". More at: http://wiki.contextgarden.net/Encodings_and_Regimes ) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoting Adam Lindsay
Hans Hagen wrote:
toto@tots-ns.net wrote:
For information: I've tried to type them directly on my keybord. They apear on my screen but the final pdf document output black rectangles. (I'm sure that all what I use is configured to use and produce utf8) But the workaround with \leftguillemot and \rightguillemot is fine for me.
hm, this normally means that there is no correspondence between the utf vector's slot and a glyph ... meybe we need a fix?
Just tried it with default LM, ec, and texnansi. No problem that I can see. Question to toto: What's your font setup for the document?
No font selecting command. It seems to be cm. I use two commands into my document without knowing beeing sure of what they do: \useencoding[utf8] and \enableregime[utf]
(Someone asked what encoding, you answered UTF-8, which in ConTeXt parlance is the input "regime". We're also asking about the font's output "encoding". More at: http://wiki.contextgarden.net/Encodings_and_Regimes )
I have no \usetypescript or \setupbodyfont commands. Cheers -AJ
On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
-> I'm trying to put a metapost graphic in the margin like te example in the manual reference (page 47) using the following command: \definestartstop[important][command={\inmarge{\useMPgraphic{bang} [width=\marginwidth]}}] But (of course :) it does not work at all and put some blank pages. Any idea?
I also tried, following the manual, "\inmarge" and then learned that it is Dutch and doesn't work with the (mewer) version I had. Use "\inmargin" instead. Cheers, Jörg
Quoting Jörg Hagmann
On Dec 2, 2005, at 8:30 AM, toto@tots-ns.net wrote:
-> I'm trying to put a metapost graphic in the margin like te example in the manual reference (page 47) using the following command: \definestartstop[important][command={\inmarge{\useMPgraphic{bang} [width=\marginwidth]}}] But (of course :) it does not work at all and put some blank pages. Any idea?
I also tried, following the manual, "\inmarge" and then learned that it is Dutch and doesn't work with the (mewer) version I had. Use "\inmargin" instead.
ok. With \inmargin it works fine. But my optional parameter [width=\marginwidth] is not allowed here. How could I tell to scale my graphic without saying it directly when creating the metapost graphic? Thanks a lot -AJ
toto@tots-ns.net wrote:
-> How could I do french guillemets (<< and >>)? Is it possible?
You can also use \quotation: \enableregime[utf] \mainlanguage[fr] % if you're writing in French \starttext Both «a» and \quotation{a} work OK here. \stoptext Btw: - \useencoding[utf8] has no sense - You are free to use \rightguillemet, so you don't need to depend on Adobe naming scheme unless you work on low level with fonts. Mojca
Quoting Mojca Miklavec
toto@tots-ns.net wrote:
-> How could I do french guillemets (<< and >>)? Is it possible?
You can also use \quotation:
\enableregime[utf] \mainlanguage[fr] % if you're writing in French \starttext Both «a» and \quotation{a} work OK here. \stoptext
Btw: - \useencoding[utf8] has no sense - You are free to use \rightguillemet, so you don't need to depend on Adobe naming scheme unless you work on low level with fonts.
Thanks a lot for your perfect answer :) -AJ
participants (6)
-
Adam Lindsay
-
Hans Hagen
-
Jörg Hagmann
-
Mojca Miklavec
-
Thomas A. Schmitz
-
toto@tots-ns.net