Re: [NTG-context] Manually scaling math fences
On Tue, 7 Mar 2017, Hans Hagen wrote: \MEAN[delimiter=auto] expands to \left\langle .. \right\langle \MEAN[delimiter=] expands to \langle .. \rangle \MEAN[delimiter=big] expands to \big\langle ... \big\rangle \MEAN[delimiter=Big] expands to \Big\langle ... \Big\rangle \MEAN[delimiter=bigg] expands to \bigg\langle ... \bigg\rangle \MEAN[delimiter=Bigg] expands to \Bigg\langle ... \Bigg\rangle I am not sure whether `delimiter` is the best key. I think that `scale` may be better, but using `scale` for specifying the scaling of math delimiters will be inconsistent with how `scale` is used everywhere else. Another option is to use `alternative` key. it would be something factor=2 or so, not the funny XxXxxxXX kind of flags Sure. factor=(auto|none|1|2|3|4) is also ok (and would be directly mapped to choosemathbig). Aditya ___ 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] description renders unintended results (LUATEX BUG?)
> On 8 Mar 2017, at 01:04, Alan Braslauwrote: > > The two systems are very different, MKII being > "frozen" and MKIV having evolved in some ways significantly. It is not > a question of TeX engines, but rather of entire systems. > ok, that makes sense. > But it sounds like you want to be using an itemize or enumeration > rather than a description. well i do need the description as the items are not numbered or annotated in a sequential way. i could use a \sym{tag} but then the available space is constant, and not variable as is when using description. Or is there a better (simpler) way? .F signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] description renders unintended results (LUATEX BUG?)
You can see from your log that context --pdftext is running the MKII macros and context is running MKIV macros. The two systems are very different, MKII being "frozen" and MKIV having evolved in some ways significantly. It is not a question of TeX engines, but rather of entire systems. But it sounds like you want to be using an itemize or enumeration rather than a description. \startitemize [n] \startitem one \startitemize [a] \startitem two \stopitem \startitem three \stopitem \stopitemize \stopitem \startitem four \startitemize [a,continue] \startitem five \stopitem \startitem six \startitemize \startitem seven \stopitem \startitem eight \stopitem \startitem nine \stopitem \stopitemize \stopitem \stopitemize \stopitem \startitem ten \stopitem \stopitemize Alan ___ 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] description renders unintended results (LUATEX BUG?)
On Tue, 7 Mar 2017 18:04:34 +0100 Floris van Manenwrote: > The incorrect nesting seems to be connected to the luatex engine. > If i have the same source compiled by pdftex, it works as intended. > > So is the different rendering an intended feature of luatex, or a > simple bug? mkii or mkiv? (pdftex is mkii, luatex is usually mkiv) Alan ___ 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] description renders unintended results (LUATEX BUG?)
The incorrect nesting seems to be connected to the luatex engine. If i have the same source compiled by pdftex, it works as intended. So is the different rendering an intended feature of luatex, or a simple bug? .F > On 6 Mar 2017, at 00:34, Floris van Manenwrote: > > Is there anyone out there who has a clue as how to fix this? > > Thanks > .F > > >> On 4 Mar 2017, at 11:58, Floris van Manen wrote: >> >> >>> On 4 Mar 2017, at 11:25, Otared Kavian wrote: >>> >>> Since you specify >>> align=left >>> in the setup of your description, I don’t see why the output would be >>> unexpected. With the following version of your example code I get the >>> attached PDF output. >> >> I got the left/right discrepancy between the sample code and the rendering. >> However the unexpected is the fact that it does not indent properly: >> >> The intended is this: >> >> 1one >> a two >> b three >> 2four >> c five >> d six >> x seven >> y eight >> z nine >> 3ten >> >> The unintended result (also in your rendering) is this: >> >> 1one >> atwo >> bthree >> 2four >> cfive >> dsix >> xseven >> yeight >> znine >> 3ten >> >> >> >> ___ >> 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 > ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] pdfinfo
Perhaps not the best answer, but exiftool can add that metadata after the fact. -m On March 7, 2017 8:55:17 AM PST, Csikos Belawrote: >Dear context users: > >In latex I could use \pdfinfo command to add information metadata to >pdf file: >Title, Author, Creator, Producer, CreationDate, ModDate, Subject, >Keywords. >I found that I can set title, author, subtitle (=subject) and keyword >with >\setupinteractions command. > >How can I set the remaining ones (CreationDate, ModDate, Creator, >Producer)? > >Thank you in advance, > >bcsikos > >___ >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 ___
[NTG-context] pdfinfo
Dear context users: In latex I could use \pdfinfo command to add information metadata to pdf file: Title, Author, Creator, Producer, CreationDate, ModDate, Subject, Keywords. I found that I can set title, author, subtitle (=subject) and keyword with \setupinteractions command. How can I set the remaining ones (CreationDate, ModDate, Creator, Producer)? Thank you in advance, bcsikos ___ 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] Manually scaling math fences
On 3/7/2017 7:35 AM, Otared Kavian wrote: Hi Aditya, I agree totally with you and support your suggestion… Maybe instead of the « delimiter » keyword, one could introduce a keyword such as « size »: \MEAN[size=auto] expands to \left\langle .. \right\langle \MEAN[size=] expands to \langle .. \rangle \MEAN[size=big] expands to \big\langle ... \big\rangle \MEAN[size=Big] expands to \Big\langle ... \Big\rangle \MEAN[size=bigg] expands to \bigg\langle ... \bigg\rangle \MEAN[size=Bigg] expands to \Bigg\langle ... \Bigg\rangle with integrals we have factor as key ... anyway, i'll look into it (not in the middle of something else) .. luatex actually has a bitmore control over these matters built in Best regards: OK On 6 Mar 2017, at 20:57, Aditya Mahajanwrote: Hi Hans, There are instances where the automatic scaling provided by \left and \right is not ideal and one has to use manual scaling. For example: \starttext \startTEXpage \startformula \left\langle \sum_{i=1}^n A_i x_i \right\rangle \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle \stopformula \stopTEXpage \stoptext Currently, math fences always default to using \left and \right, which can lead to undesirable results. For example: \definemathfence [MEAN] [angle] [command=yes, color=blue] \starttext \startTEXpage \startformula \MEAN{ \sum_{i = 1}^n A_i x_i } \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle \stopformula \stopTEXpage \stoptext Could we add an option to \definefence that allows the user to select the delimiter scaling using a key (say, `delimiter`) so that \MEAN[delimiter=auto] expands to \left\langle .. \right\langle \MEAN[delimiter=] expands to \langle .. \rangle \MEAN[delimiter=big] expands to \big\langle ... \big\rangle \MEAN[delimiter=Big] expands to \Big\langle ... \Big\rangle \MEAN[delimiter=bigg] expands to \bigg\langle ... \bigg\rangle \MEAN[delimiter=Bigg] expands to \Bigg\langle ... \Bigg\rangle I am not sure whether `delimiter` is the best key. I think that `scale` may be better, but using `scale` for specifying the scaling of math delimiters will be inconsistent with how `scale` is used everywhere else. Another option is to use `alternative` key. it would be something factor=2 or so, not the funny XxXxxxXX kind of flags Thanks, Aditya ___ 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 ___ -- - 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 ___