Re: [NTG-context] math symbol for "is an element of"
Thank you for your extremely thorough and helpful response, Hans! I'm still fairly new to ConTeXt, but I'm learning, and I have been helped greatly by all the support that is generously provided on this email list. With thanks, Sciurus -Original Message- From: Hans Hagen Sent: Friday, November 6, 2020 12:10 AM To: mailing list for ConTeXt users ; t...@projectivespace.com Subject: Re: [NTG-context] math symbol for "is an element of" On 11/6/2020 12:24 AM, t...@projectivespace.com wrote: > In this particular case, as Wolfgang pointed out, \in actually does work to > get the desired symbol in math mode. But it is good to know how to use text > substitutions too. WHen you are in doubt you can do this: \meaning\in it will show you that the commands is adapting itself to math mode. There are a few such commands with 'clashing' names. A variant on this is \NC which is the column separator but has a different meaning depending on where it's used. That one gets set to some meaning in environments. Another overloaded one is \\ and it could be a space or newline or ... Actually the last two are candidates for protectiopn against overload. btw, users can run context with --overloadmode=warning --overloadmode=error to see if their usage of commands or definitions bring conflicts. Currently \in is not yet protected against overload but it will be. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol for "is an element of"
Thank you, Hans! The links you gave me provide me with another useful tool in my toolbox (which I had not been aware of before). In this particular case, as Wolfgang pointed out, \in actually does work to get the desired symbol in math mode. But it is good to know how to use text substitutions too. Thanks, Sciurus -Original Message- From: ntg-context On Behalf Of Hans Åberg Sent: Thursday, November 5, 2020 12:44 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] math symbol for "is an element of" > On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote: > > Other than typing it directly (or cutting and pasting it), how does one get > the character ∈ (in case this gets garbled in emailing, this is supposed to > be the mathematical symbol that looks more or less like an epsilon, and > which is the mathematical symbol for "is an element of" a set). … > This is a very common character in mathematics, so I wanted to ask: what is > the recommended way to type this character? (I'm hoping to avoid having to > cut and paste the character into the document every time I want to use it. > And I don't have a utf enabled keyboard that would allow me to type this > symbol readily from the keyboard.) There is no recommended way. One can have it in the input sources. The quickest way to both design and use I have found is text substitutions [1]. For the mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the former unless one uses a command, see [2]. 1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html 2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol for "is an element of"
My sincere apologies. I tried to do my homework to avoid wasting everybody else's time with a silly question, but apparently I did not do so adequately. You're quite right -- it works with no problem. It was something else nearby that was causing my minimal example (apparently not minimal enough) to fail. That being said, the link to "\in" on the Math Basics page does point to the wrong place (the "\in" command used for references). I'll go correct that as my penance for asking such a ridiculous question. Thanks, and again my apologies, Sciurus -Original Message- From: Wolfgang Schuster Sent: Thursday, November 5, 2020 12:36 PM To: mailing list for ConTeXt users Cc: t...@projectivespace.com Subject: Re: [NTG-context] math symbol for "is an element of" t...@projectivespace.com schrieb am 05.11.2020 um 21:22: > A quick question for the ConTeXt mailing list: > > Other than typing it directly (or cutting and pasting it), how does one get > the character ∈ (in case this gets garbled in emailing, this is supposed to > be the mathematical symbol that looks more or less like an epsilon, and > which is the mathematical symbol for "is an element of" a set). > > \showmathfontcharacters gives the following information about it: > > U+02208: ∈ ∈ element of > width: 524262, height: 426798, depth: 33798, italic: 0 > mathclass: relation, mathname: in > > I'm not completely sure how to read this information, but if I read it > correctly, perhaps this character should be gotten with \in. Also, the Basic > Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states > that you should be able to type this character with "\in". But that doesn't > work (even inside a formula), since \in is used for references in ConTeXt. > And in fact the link on the Basic Math page for \in takes you to the > explanation of \in as used for ConTeXt references. > > This is a very common character in mathematics, so I wanted to ask: what is > the recommended way to type this character? (I'm hoping to avoid having to > cut and paste the character into the document every time I want to use it. > And I don't have a utf enabled keyboard that would allow me to type this > symbol readily from the keyboard.) Do you have a example where \in fails? \starttext \m {A \in B} \startformula A \in B \stopformula \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] math symbol for "is an element of"
A quick question for the ConTeXt mailing list: Other than typing it directly (or cutting and pasting it), how does one get the character ∈ (in case this gets garbled in emailing, this is supposed to be the mathematical symbol that looks more or less like an epsilon, and which is the mathematical symbol for "is an element of" a set). \showmathfontcharacters gives the following information about it: U+02208: ∈ ∈ element of width: 524262, height: 426798, depth: 33798, italic: 0 mathclass: relation, mathname: in I'm not completely sure how to read this information, but if I read it correctly, perhaps this character should be gotten with \in. Also, the Basic Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states that you should be able to type this character with "\in". But that doesn't work (even inside a formula), since \in is used for references in ConTeXt. And in fact the link on the Basic Math page for \in takes you to the explanation of \in as used for ConTeXt references. This is a very common character in mathematics, so I wanted to ask: what is the recommended way to type this character? (I'm hoping to avoid having to cut and paste the character into the document every time I want to use it. And I don't have a utf enabled keyboard that would allow me to type this symbol readily from the keyboard.) Thanks in advance, Sciurus ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] multiparagraph quotation
Thank you, Wolfgang, for your prompt and helpful solution! Although I didn't make it clear in the minimal working example, I am using this for ordinary dialog. For the record (and for anyone searching the mailing list in the future), to get that to work right, I had to put in one more thing into the first line of the example to get it to work: \setupdelimitedtext[quotation][repeat=yes, middle=“, leftmargin=0pt] \starttext \startquotation \input knuth \stopquotation \stoptext It seems like a little bit of overkill to set up a \startquotation \stopquotation for each piece of dialog, but it certainly solves the problem to do so. Again, many thanks! I'll post your solution to a suitable place in the Wiki when I get a chance. Sciurus -Original Message- From: Wolfgang Schuster Sent: Monday, November 2, 2020 10:56 AM To: mailing list for ConTeXt users Cc: t...@projectivespace.com Subject: Re: [NTG-context] multiparagraph quotation t...@projectivespace.com schrieb am 02.11.2020 um 18:26: > I'm trying to get quotation marks at the beginning of each new paragraph in > quotations (in ConTeXt Mk IV), as is the convention in English. Here's a > minimal working example of what I have tried: > > \setupdelimitedtext[quotation][repeat=yes, middle="] > \starttext > \quotation{\input knuth > } \startquotation \input knuth \stopquotation 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] multiparagraph quotation
I'm trying to get quotation marks at the beginning of each new paragraph in quotations (in ConTeXt Mk IV), as is the convention in English. Here's a minimal working example of what I have tried: \setupdelimitedtext[quotation][repeat=yes, middle="] \starttext \quotation{\input knuth } \stoptext However, it doesn't put left quotes at the start of each paragraph the way I'd like it to. I got this approach from the wiki page https://wiki.contextgarden.net/Command/setupdelimitedtext . However, I'm guessing this may have been only for Mk II since the \setupdelimitedtext doesn't seem to do anything here. (From what is said above on the wiki page, it looks like this might be only for Mk II, but I can't t tell.) I have searched the mailing list and stackexchange but haven't found a solution. I'm guessing that there's a simple way to do this that I am just not aware of. I'd appreciate any help anyone can offer me (and I'd be glad to put the solution into the wiki if that's appropriate, too). Thanks, Sciurus ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Introduction to ConTeXt Wiki pages
Hi all, Just wanted to put the word out that I have posted two new pages to the Wiki, both aimed at new users of ConTeXt: https://wiki.contextgarden.net/Introduction https://wiki.contextgarden.net/Some_Basic_Commands The first is an introduction to the general principles of writing documents in ConTeXt, and the second is just a list of commands that beginning users might be likely to want to use to customize their documents. I expect that I will be continuing to update the second page in particular, as I find other such commands or am able to provide further information or links. I am myself a relatively new user of ConTeXt (I started using it this summer, having used LaTeX for many years), so there is a whole lot that I don't know about it. I have tried to test out everything on these pages, so while the information there may not be complete, it should at least be correct. I don't claim to be any kind of authority on ConTeXt. I'm enjoying learning it (including the many things that I have learned from this mailing list!), and since I have seen in many places (including at the bottom of each mailing list email) encouragement to contribute to the Wiki, I have begun doing so. I am continuing to try to learn about ConTeXt, and I have decided that as I learn things and/or find things on the Wiki that could use supplementing, I'll try to add what I can. The Introduction to ConTeXt that I have posted reflects the understanding of ConTeXt that I have gained over these recent months of using it, however good or bad that understanding may be. I welcome all manner of feedback on these pages (and of course feel free to edit or contribute to them, as appropriate). Right now neither page is linked to from anywhere else in the Wiki, so users wouldn't find them except possibly by accident while searching for something else. If people think that these pages would be useful, then I'd be happy to let the Wiki administrators decide where best to put them. Thanks, Sciurus ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___