Re: [NTG-context] feature request
Hi Alan, > 1) when new to Context, coming from LaTeX and learning a new system; ... > One gets over the first case rather quickly and then there is no > going back: the philosophies are so different. Hmm, I'll make an effort to be a LaTeX user and also ConTeXt user. Best regards, Atsuhito Kohda 2019年7月5日(金) 0:56 Alan Braslau : > On Thu, 4 Jul 2019 11:16:22 -0400 (EDT) > Aditya Mahajan wrote: > > > > BTW, I constantly convert Beamer documents into ConTeXt's > > > simpleslide documents recently and it is very convenient > > > if I can use \pmatrix{a\cr c\cr} style because it is similar > > > to LaTeX documents. > > > > You can create a private module with the definitions that you need. > > If these are general enough, then you can also release it as a third > > party module for others to use. I don't see the value of adding (and > > maintaining!) a module that provides LaTeX compatibility as part of > > the core. > > LaTeX compatibility is desired (by some) > 1) when new to Context, coming from LaTeX and learning a new system; > 2) for ConTeXt users who are *required* to sometimes use LaTeX, >for example in submissions to journals etc. that accept LaTeX but >cannot handle Context sources. > > One gets over the first case rather quickly and then there is no > going back: the philosophies are so different. > > In the second case, I restrict myself to a strict use of the journal's > own template (for example with revtex), never asking for anything more > nor anything less. > > In a third situation of editors who give lip service to accepting TeX > submissions, I give them plain text for they are going to re-key in > everything in any case. I provide them with a pdf that they can use > to correct their markup. > > 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 > > ___ > ___ 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] feature request
Hi Aditya, > You can create a private module with the definitions that you need. If > these are general enough, then you can also release it as a third party > module for others to use. I don't see the value of adding (and > maintaining!) a module that provides LaTeX compatibility as part of the > core. I began to learn ConTeXt since april and begin to write real ConTeXt documents (mostly presentations) since june. Please don't ask me too much. My main request is not to provide LaTeX compatibility but to provide not only one command of matrix but full set of commands for various kind of matrices if possible. Personally, it is true that I think LaTeX compatibility is useful but it is not main issue. Best regards, Atsuhito Kohda 2019年7月5日(金) 0:18 Aditya Mahajan : > On Thu, 4 Jul 2019, Atsuhito Kohda wrote: > > > Hi Henri, > > Thanks for your suggestions, they are very instructive. > > However, my request is not a smart way of displaying matrices > > but to know why \bmatrix and \vmatrix are not provided > > in core part of ConTeXt although \pmatrix is provided already > > in math-pln.mkiv > > Henri has already answered this. > > [ ... ] > > > One might say ConTeXt is flexible but I've an impression > > that ConTeXt is in a state of confusion/disorder. > > > > I think it is better if a standard command is provided > > by core ConTeXt or by a module etc. > > > > Or is it ConTeXt way that each user defines his/her own commands > > in setup area and uses them in text area? > > I'm afraid consistency and/or portability is lost in such scenario. > > Let me provide an alternative point of view. The commands that you are > suggesting are encode the _visual_ meaning: pmatrix is a matrix with > parenthesis, bmatrix is a matrix with brackets, vmatrix is a matrix with > vertical bars, and so on. One could also use _semantic_ commands: in my > documents, I define a command called MATRIX for typesetting matrices, and > DET for determinant of a matrix. So, I simply type > > \MATRIX{1, 2; 5, 6} and \DET{1, 2; 5, 6}, etc. > > Now, depending on the audience, I sometimes map \MATRIX to pmatrix and > sometimes to bmatrix. I can simply copy paste the code without worrying > about notation. > > If you take this view, then the predefined matrix:parentheses, > matrix:brackets, and matrix:bars are sufficient. > > > BTW, I constantly convert Beamer documents into ConTeXt's > > simpleslide documents recently and it is very convenient > > if I can use \pmatrix{a\cr c\cr} style because it is similar > > to LaTeX documents. > > You can create a private module with the definitions that you need. If > these are general enough, then you can also release it as a third party > module for others to use. I don't see the value of adding (and > maintaining!) a module that provides LaTeX compatibility as part of the > core. > > 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 ___
Re: [NTG-context] feature request
Hi Henri, Thanks for your kind explanation. Generally I understand your point and the ConTeXt philosophy. > bmatrix, vmatrix, etc. are not defined by default, but > as you saw from my last message it is trivial to define these, > especially because templates (matrix:parentheses, etc.) > for them already exist in the core. If it is trivial to define bmatrix etc., then I think it is not bad to provide them in ConTeXt itself but it seems it violates the ConTeXt philosophy. I feel it is too strict or too formalism, but this is only my, very novice user's, naive impression. Best regards, Atsuhito Kohda PS. I'm a Japanese and it takes a bit long time to write an idea in English. Sorry for delay. 2019年7月4日(木) 14:48 Henri Menke : > The existing definition of \pmatrix in math-pln.mkiv is the original > Plain TeX definition, because in the very early days ConTeXt used to be > compatible with Plain. This tradition has prevailed until today. You > will find other remnants of Plain TeX in ConTeXt, e.g. \eqalign, but it > is better not to use them. > > Just like Plain TeX, ConTeXt does not provide \bmatrix and \vmatrix. > One reason is that they didn't exist in Plain, but another important > reason is that Hans is not a mathematician. If I remember correctly > ConTeXt was originally developed for typesetting of primary school > textbooks and last I checked matrix algebra was not part of the > curriculum. > > Other developers (Alan, Aditya, and others) have contributed math > typesetting macros over time, but these follow the ConTeXt philosophy of > providing strong defaults but trying to avoid feature creep. Therefore > bmatrix, vmatrix, etc. are not defined by default, but as you saw from > my last message it is trivial to define these, especially because > templates (matrix:parentheses, etc.) for them already exist in the core. > > It would sometimes be nice if you could just copy and paste LaTeX code > into a ConTeXt document and it just works™, but after all ConTeXt is not > LaTeX. > > Cheers, Henri > > > > ___ > 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] feature request
On Thu, 4 Jul 2019 11:16:22 -0400 (EDT) Aditya Mahajan wrote: > > BTW, I constantly convert Beamer documents into ConTeXt's > > simpleslide documents recently and it is very convenient > > if I can use \pmatrix{a\cr c\cr} style because it is similar > > to LaTeX documents. > > You can create a private module with the definitions that you need. > If these are general enough, then you can also release it as a third > party module for others to use. I don't see the value of adding (and > maintaining!) a module that provides LaTeX compatibility as part of > the core. LaTeX compatibility is desired (by some) 1) when new to Context, coming from LaTeX and learning a new system; 2) for ConTeXt users who are *required* to sometimes use LaTeX, for example in submissions to journals etc. that accept LaTeX but cannot handle Context sources. One gets over the first case rather quickly and then there is no going back: the philosophies are so different. In the second case, I restrict myself to a strict use of the journal's own template (for example with revtex), never asking for anything more nor anything less. In a third situation of editors who give lip service to accepting TeX submissions, I give them plain text for they are going to re-key in everything in any case. I provide them with a pdf that they can use to correct their markup. 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] feature request
On Thu, 4 Jul 2019, Atsuhito Kohda wrote: Hi Henri, Thanks for your suggestions, they are very instructive. However, my request is not a smart way of displaying matrices but to know why \bmatrix and \vmatrix are not provided in core part of ConTeXt although \pmatrix is provided already in math-pln.mkiv Henri has already answered this. [ ... ] One might say ConTeXt is flexible but I've an impression that ConTeXt is in a state of confusion/disorder. I think it is better if a standard command is provided by core ConTeXt or by a module etc. Or is it ConTeXt way that each user defines his/her own commands in setup area and uses them in text area? I'm afraid consistency and/or portability is lost in such scenario. Let me provide an alternative point of view. The commands that you are suggesting are encode the _visual_ meaning: pmatrix is a matrix with parenthesis, bmatrix is a matrix with brackets, vmatrix is a matrix with vertical bars, and so on. One could also use _semantic_ commands: in my documents, I define a command called MATRIX for typesetting matrices, and DET for determinant of a matrix. So, I simply type \MATRIX{1, 2; 5, 6} and \DET{1, 2; 5, 6}, etc. Now, depending on the audience, I sometimes map \MATRIX to pmatrix and sometimes to bmatrix. I can simply copy paste the code without worrying about notation. If you take this view, then the predefined matrix:parentheses, matrix:brackets, and matrix:bars are sufficient. BTW, I constantly convert Beamer documents into ConTeXt's simpleslide documents recently and it is very convenient if I can use \pmatrix{a\cr c\cr} style because it is similar to LaTeX documents. You can create a private module with the definitions that you need. If these are general enough, then you can also release it as a third party module for others to use. I don't see the value of adding (and maintaining!) a module that provides LaTeX compatibility as part of the core. 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] feature request
The existing definition of \pmatrix in math-pln.mkiv is the original Plain TeX definition, because in the very early days ConTeXt used to be compatible with Plain. This tradition has prevailed until today. You will find other remnants of Plain TeX in ConTeXt, e.g. \eqalign, but it is better not to use them. Just like Plain TeX, ConTeXt does not provide \bmatrix and \vmatrix. One reason is that they didn't exist in Plain, but another important reason is that Hans is not a mathematician. If I remember correctly ConTeXt was originally developed for typesetting of primary school textbooks and last I checked matrix algebra was not part of the curriculum. Other developers (Alan, Aditya, and others) have contributed math typesetting macros over time, but these follow the ConTeXt philosophy of providing strong defaults but trying to avoid feature creep. Therefore bmatrix, vmatrix, etc. are not defined by default, but as you saw from my last message it is trivial to define these, especially because templates (matrix:parentheses, etc.) for them already exist in the core. It would sometimes be nice if you could just copy and paste LaTeX code into a ConTeXt document and it just works™, but after all ConTeXt is not LaTeX. Cheers, Henri On 4/07/19 5:18 PM, Atsuhito Kohda wrote: > Hi Henri, > Thanks for your suggestions, they are very instructive. > However, my request is not a smart way of displaying matrices > but to know why \bmatrix and \vmatrix are not provided > in core part of ConTeXt although \pmatrix is provided already > in math-pln.mkiv > > About matrices, I first found commands in your first email in > http://dl.contextgarden.net/myway/context-latex-math.pdf > (like \startpmatrix \NC A\NC B\NR \NC C\NC D\NR\stoppmatrix) > and then browsing ma-cb-en.pdf I noticed another command > like \pmatrix{A\cr C\cr}. > Now by your email, I know a command \pmatrix{A, B; C, D} > > One might say ConTeXt is flexible but I've an impression > that ConTeXt is in a state of confusion/disorder. > > I think it is better if a standard command is provided > by core ConTeXt or by a module etc. > > Or is it ConTeXt way that each user defines his/her own commands > in setup area and uses them in text area? > I'm afraid consistency and/or portability is lost in such scenario. > > BTW, I constantly convert Beamer documents into ConTeXt's > simpleslide documents recently and it is very convenient > if I can use \pmatrix{a\cr c\cr} style because it is similar > to LaTeX documents. > > 2019年7月3日(水) 15:42 Henri Menke : > >> >> >> On 3/07/19 6:00 PM, Atsuhito Kohda wrote: >>> I've used LaTeX quite a long time but recently I begin to use ConTeXt >> too. >>> So I'm very sorry if the following is well-known issue. >>> >>> I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" >>> (ma-cb-en.pdf). And I notice it is defined in >>> /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). >>> But it seems \bmatrix, \vmatrix are not defined yet. >>> Is there any reason why they are not defined? >>> Similar commands or environments \begin{bmatrix}...\end{bmatrix}, >>> \begin{vmatrix}...\end{vmatrix} are very often used in mathematical >>> LaTeX documents. >>> It is very useful if we can use \bmatrix and \vmatrix in ConTeXt >>> documents, so please add >>> \unexpanded\def\bmatrix#1% >>> {\left[\matrix{#1}\right]} >>> \unexpanded\def\vmatrix#1% >>> {\left|\matrix{#1}\right|} >>> in math-pln.mkiv or somewhere. >> >> Ignore my other message, this is even better: >> >> \definemathmatrix >> [pmatrix] >> [matrix:parentheses] >> [simplecommand=pmatrix] >> >> \definemathmatrix >> [bmatrix] >> [matrix:brackets] >> [simplecommand=bmatrix] >> >> \definemathmatrix >> [vmatrix] >> [matrix:bars] >> [simplecommand=vmatrix] >> >> \definemathmatrix >> [Vmatrix] >> [left={\left\lVert\mskip\thinmuskip}, >>right={\mskip\thinmuskip\right\rVert}, >>align=middle, >>simplecommand=Vmatrix] >> >> \starttext >> >> \startformula >> \startpmatrix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stoppmatrix >> \quad >> \startbmatrix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stopbmatrix >> \quad >> \startvmatrix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stopvmatrix >> \quad >> \startVmatrix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stopVmatrix >> \stopformula >> >> \startformula >> \pmatrix{A, B; C, D} >> \quad >> \bmatrix{A, B; C, D} >> \quad >> \vmatrix{A, B; C, D} >> \quad >> \Vmatrix{A, B; C, D} >> \stopformula >> >> \stoptext >> >>> >>> By the way, I think it is critical to set >>> \setupmathematics[ampersand=normal] >>> to use \matrix above but I can't find this setting in ma-cb-en.pdf >>> It is great if this is added in ma-cb-en.pdf >>> >>> >>> >> ___ >>> If your question is of interest to
Re: [NTG-context] feature request
Hi Henri, Thanks for your suggestions, they are very instructive. However, my request is not a smart way of displaying matrices but to know why \bmatrix and \vmatrix are not provided in core part of ConTeXt although \pmatrix is provided already in math-pln.mkiv About matrices, I first found commands in your first email in http://dl.contextgarden.net/myway/context-latex-math.pdf (like \startpmatrix \NC A\NC B\NR \NC C\NC D\NR\stoppmatrix) and then browsing ma-cb-en.pdf I noticed another command like \pmatrix{A\cr C\cr}. Now by your email, I know a command \pmatrix{A, B; C, D} One might say ConTeXt is flexible but I've an impression that ConTeXt is in a state of confusion/disorder. I think it is better if a standard command is provided by core ConTeXt or by a module etc. Or is it ConTeXt way that each user defines his/her own commands in setup area and uses them in text area? I'm afraid consistency and/or portability is lost in such scenario. BTW, I constantly convert Beamer documents into ConTeXt's simpleslide documents recently and it is very convenient if I can use \pmatrix{a\cr c\cr} style because it is similar to LaTeX documents. 2019年7月3日(水) 15:42 Henri Menke : > > > On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > > I've used LaTeX quite a long time but recently I begin to use ConTeXt > too. > > So I'm very sorry if the following is well-known issue. > > > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > > (ma-cb-en.pdf). And I notice it is defined in > > /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). > > But it seems \bmatrix, \vmatrix are not defined yet. > > Is there any reason why they are not defined? > > Similar commands or environments \begin{bmatrix}...\end{bmatrix}, > > \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > > LaTeX documents. > > It is very useful if we can use \bmatrix and \vmatrix in ConTeXt > > documents, so please add > > \unexpanded\def\bmatrix#1% > > {\left[\matrix{#1}\right]} > > \unexpanded\def\vmatrix#1% > > {\left|\matrix{#1}\right|} > > in math-pln.mkiv or somewhere. > > Ignore my other message, this is even better: > > \definemathmatrix > [pmatrix] > [matrix:parentheses] > [simplecommand=pmatrix] > > \definemathmatrix > [bmatrix] > [matrix:brackets] > [simplecommand=bmatrix] > > \definemathmatrix > [vmatrix] > [matrix:bars] > [simplecommand=vmatrix] > > \definemathmatrix > [Vmatrix] > [left={\left\lVert\mskip\thinmuskip}, >right={\mskip\thinmuskip\right\rVert}, >align=middle, >simplecommand=Vmatrix] > > \starttext > > \startformula > \startpmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stoppmatrix > \quad > \startbmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopbmatrix > \quad > \startvmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopvmatrix > \quad > \startVmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopVmatrix > \stopformula > > \startformula > \pmatrix{A, B; C, D} > \quad > \bmatrix{A, B; C, D} > \quad > \vmatrix{A, B; C, D} > \quad > \Vmatrix{A, B; C, D} > \stopformula > > \stoptext > > > > > By the way, I think it is critical to set > > \setupmathematics[ampersand=normal] > > to use \matrix above but I can't find this setting in ma-cb-en.pdf > > It is great if this is added in ma-cb-en.pdf > > > > > > > ___ > > 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 > > ___ > ___ 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] feature request
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is defined in > /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). > But it seems \bmatrix, \vmatrix are not defined yet. > Is there any reason why they are not defined? > Similar commands or environments \begin{bmatrix}...\end{bmatrix}, > \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > LaTeX documents. > It is very useful if we can use \bmatrix and \vmatrix in ConTeXt > documents, so please add > \unexpanded\def\bmatrix#1% > {\left[\matrix{#1}\right]} > \unexpanded\def\vmatrix#1% > {\left|\matrix{#1}\right|} > in math-pln.mkiv or somewhere. Ignore my other message, this is even better: \definemathmatrix [pmatrix] [matrix:parentheses] [simplecommand=pmatrix] \definemathmatrix [bmatrix] [matrix:brackets] [simplecommand=bmatrix] \definemathmatrix [vmatrix] [matrix:bars] [simplecommand=vmatrix] \definemathmatrix [Vmatrix] [left={\left\lVert\mskip\thinmuskip}, right={\mskip\thinmuskip\right\rVert}, align=middle, simplecommand=Vmatrix] \starttext \startformula \startpmatrix \NC A \NC B \NR \NC C \NC D \NR \stoppmatrix \quad \startbmatrix \NC A \NC B \NR \NC C \NC D \NR \stopbmatrix \quad \startvmatrix \NC A \NC B \NR \NC C \NC D \NR \stopvmatrix \quad \startVmatrix \NC A \NC B \NR \NC C \NC D \NR \stopVmatrix \stopformula \startformula \pmatrix{A, B; C, D} \quad \bmatrix{A, B; C, D} \quad \vmatrix{A, B; C, D} \quad \Vmatrix{A, B; C, D} \stopformula \stoptext > > By the way, I think it is critical to set > \setupmathematics[ampersand=normal] > to use \matrix above but I can't find this setting in ma-cb-en.pdf > It is great if this is added in ma-cb-en.pdf > > > ___ > 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] feature request
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is defined in > /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). > But it seems \bmatrix, \vmatrix are not defined yet. > Is there any reason why they are not defined? > Similar commands or environments \begin{bmatrix}...\end{bmatrix}, > \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > LaTeX documents. > It is very useful if we can use \bmatrix and \vmatrix in ConTeXt > documents, so please add > \unexpanded\def\bmatrix#1% > {\left[\matrix{#1}\right]} > \unexpanded\def\vmatrix#1% > {\left|\matrix{#1}\right|} > in math-pln.mkiv or somewhere. \definemathmatrix [pmatrix] [left={\left(},right={\right)}] \definemathmatrix [bmatrix] [left={\left[},right={\right]}] \definemathmatrix [vmatrix] [left={\left\lvert},right={\right\rvert}] \definemathmatrix [Vmatrix] [left={\left\lVert},right={\right\rVert}] \starttext \startformula \startpmatrix \NC A \NC B \NR \NC C \NC D \NR \stoppmatrix \quad \startbmatrix \NC A \NC B \NR \NC C \NC D \NR \stopbmatrix \quad \startvmatrix \NC A \NC B \NR \NC C \NC D \NR \stopvmatrix \quad \startVmatrix \NC A \NC B \NR \NC C \NC D \NR \stopVmatrix \stopformula \stoptext > > By the way, I think it is critical to set > \setupmathematics[ampersand=normal] This should not be necessary in general. Just use \NC and \NR. > to use \matrix above but I can't find this setting in ma-cb-en.pdf > It is great if this is added in ma-cb-en.pdf > > > ___ > 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] Feature request: \digits command
On Wed, Jun 25 2008, Flavien Lambert wrote: > did not found a way to cut a number by group of three digits like the > numprint command, e.g. 100 becomes 1 000 000. With the digits > option 3, dots become thinmuskips. I would like to do something > similar but automatically for groups of three digits. Hi, Does this feature exist now in ConTeXt? TIA for any hints, -- Peter ___ 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] Feature request: display Lua version
On Thu, Feb 22, 2018 at 11:39 AM, Procházka Lukáš Ing.wrote: > Hello, > > namely due to planned embedding Lua 5.3 into ConTeXt, would it be possible > ConTeXt to show Lua version being used? _VERSION is always available: $echo 'print(_VERSION)' > /tmp/test-v.lua $ luatex --luaonly /tmp/test-v.lua Lua 5.3 -- luigi ___ 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] Feature request: display Lua version
On 2/22/2018 11:39 AM, Procházka Lukáš Ing. wrote: Hello, namely due to planned embedding Lua 5.3 into ConTeXt, would it be possible ConTeXt to show Lua version being used? Something like: d:\Lukas\ConTeXt\Test>context.exe --version mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file: d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2018.02.21 18:19 mtx-context | Lua version: 5.2.1 it is already reported and i see no reason to duplicate it mkiv lua stats > lua properties: engine: lua 5.3, ... - 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] Feature Request: xtables extensions
On Wed, 8 Mar 2017, Alan Braslau wrote: On Wed, 8 Mar 2017 16:29:52 +0100 Henri Menkewrote: Natural Tables are quite handy but their syntax is a little verbose. \bTABLE \bTR \bTD ... \eTD \eTR \eTABLE There exist nice extensions which make the format less verbose by mapping \startTABLE \NC ... \NR\NR \stopTABLE back to the original macros. The new method for tables, called xtables, is faster and seems to have less problems than Natural Tables. However, the syntax is even more verbose \startxtable \startxrow \startxcell ... \stopxcell \stopxrow \stopxtable Can we have similar abbreviations as for Natural Tables? Beauty is in the eyes of the beholder, but I have always found the syntax of the older table macros to be quite unreadable, somewhat a left-over from laTeX-like syntax. The xtables syntax is verbose, indeed, but much more readable and much better in line with other ConTeXt syntax. It depends. For numerical tables, the old syntax is easier to read. \startTABLE \NC Parameter \NC value 1 \NC value 2 \NC value 3 \NC \NR \NC 1.0 \NC 3.4 \NC 3.6 \NC 4.2 \NC \NR \NC 1.0 \NC 3.4 \NC 3.6 \NC 4.2 \NC \NR \NC 1.0 \NC 3.4 \NC 3.6 \NC 4.2 \NC \NR \stopTABLE For textual tables, or for generating tables programmatically using CLD, the start-stop syntax is more convenient. 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] Feature Request: xtables extensions
On Wed, 8 Mar 2017 16:29:52 +0100 Henri Menkewrote: > Natural Tables are quite handy but their syntax is a little verbose. > > \bTABLE > \bTR > \bTD ... \eTD > \eTR > \eTABLE > > There exist nice extensions which make the format less verbose by > mapping > > \startTABLE > \NC ... \NR\NR > \stopTABLE > > back to the original macros. > > The new method for tables, called xtables, is faster and seems to > have less problems than Natural Tables. However, the syntax is even > more verbose > > \startxtable > \startxrow > \startxcell ... \stopxcell > \stopxrow > \stopxtable > > Can we have similar abbreviations as for Natural Tables? Beauty is in the eyes of the beholder, but I have always found the syntax of the older table macros to be quite unreadable, somewhat a left-over from laTeX-like syntax. The xtables syntax is verbose, indeed, but much more readable and much better in line with other ConTeXt syntax. (Hans, my only complaint about xtables is that they apparently cannot be used nested in a title={} of \startplacefigure.) 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] Feature Request: xtables extensions
I refined the proposal a little further to not having to overload xtables but only use one remaining internal macro of xtables. I also sent this version to Hans to be considered going to the ConTeXt core. \unprotect %D xtable extensions \definextable[XTABLE] \unexpanded\def\startXTABLE {\bgroup \let\NC\tabl_xte_start_nc \let\NR\tabl_xte_start_nr \settrue\c_tabl_xte_first_nc \tabl_x_start_named{XTABLE}} \newconditional\c_tabl_xte_first_nc \unexpanded\def\tabl_xte_start_nr {\stopxcell\stopxrow \settrue\c_tabl_xte_first_nc} \unexpanded\def\tabl_xte_start_nc {\ifconditional\c_tabl_xte_first_nc \setfalse\c_tabl_xte_first_nc \expandafter\startxrow\expandafter\startxcell \else \expandafter\stopxcell\expandafter\startxcell \fi} %D The related structure commands are also available: \let\startXTABLEhead\startxtablehead \let\startXTABLEfoot\startxtablefoot \let\startXTABLEnext\startxtablenext \let\startXTABLEbody\startxtablebody \let\stopXTABLEhead\stopxtablehead \let\stopXTABLEfoot\stopxtablefoot \let\stopXTABLEnext\stopxtablenext \let\stopXTABLEbody\stopxtablebody \protect \starttext \startXTABLE[align={lohi,middle}] \startXTABLEhead \NC OSI-Schicht\NC[nx=6] Umsetzung \NR \stopXTABLEhead \startXTABLEbody \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN \NC[nx=2,ny=3] DoIP \NR \NC Darstellungsschicht\NR \NC Sitzungsschicht\NR \NC Transportschicht \NC[nx=3] TCP \NC[nx=3] UDP \NR \NC Vermittlungsschicht\NC[nx=3] IPv4 \NC[nx=3] IPv6 \NR \NC Sicherungsschicht \NC[nx=6] Ethernet \NR \stopXTABLEbody \startXTABLEfoot \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T \NC[nx=2] 1000BASE-T \NR \stopXTABLEfoot \stopXTABLE \stoptext On 03/08/2017 04:49 PM, Henri Menke wrote: > Alternatively to my first proposal but still overloading the original xtables > I came up with another solution which does not have the \NC\NR but only \NR > and does not read the cell content as an argument. > > \unprotect > > % Overload tabl_x_start_table > \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments: > [tag][settings] | [tag] | [settings] > {\bgroup >\let\NC\tabl_xte_start_nc >\let\NR\tabl_xte_start_nr >\settrue\c_tabl_xte_first_nc >\tabl_x_prepare{#settings}% >\edef\tabl_x_current_buffer{\tabl_x_default_buffer}% > > \buff_pickup{\tabl_x_current_buffer}{startxtable}{stopxtable}\relax\tabl_x_process\zerocount} > > % xtable extensions > \newconditional\c_tabl_xte_first_nc > > \unexpanded\def\tabl_xte_start_nr > {\stopxcell\stopxrow >\settrue\c_tabl_xte_first_nc} > > \unexpanded\def\tabl_xte_start_nc > {\ifconditional\c_tabl_xte_first_nc > \setfalse\c_tabl_xte_first_nc > \expandafter\startxrow\expandafter\startxcell >\else > \expandafter\stopxcell\expandafter\startxcell >\fi} > > \protect > > \starttext > > \startxtable[align={lohi,middle}] > \NC OSI-Schicht\NC[nx=6] Umsetzung \NR > \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN > \NC[nx=2,ny=3] DoIP \NR > \NC Darstellungsschicht\NR > \NC Sitzungsschicht\NR > \NC Transportschicht \NC[nx=3] TCP \NC[nx=3] UDP \NR > \NC Vermittlungsschicht\NC[nx=3] IPv4 \NC[nx=3] IPv6 \NR > \NC Sicherungsschicht \NC[nx=6] Ethernet \NR > \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T > \NC[nx=2] 1000BASE-T \NR > \stopxtable > > \stoptext > > On 03/08/2017 04:39 PM, Henri Menke wrote: >> I quickly came up with something myself. Unfortunately, it involves >> overloading of the original xtables. Perhaps there is a better way but it >> works. I am happy to hear your opinions! >> >> \unprotect >> >> % Overload tabl_x_start_table >> \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments: >> [tag][settings] | [tag] | [settings] >> {\bgroup >>\let\NC\tabl_xte_start_nc >>\let\NR\tabl_xte_start_nr >>\tabl_x_prepare{#settings}% >>\edef\tabl_x_current_buffer{\tabl_x_default_buffer}% >> >> \buff_pickup{\tabl_x_current_buffer}{startxtable}{stopxtable}\relax\tabl_x_process\zerocount} >> >> % xtable extensions >> \newconditional\c_tabl_xte_in_nc >> >> \unexpanded\def\tabl_xte_start_nr >> {\stopxrow >>\setfalse\c_tabl_xte_in_nc} >> >> \unexpanded\def\tabl_xte_start_nc >> {\futurelet\next\tabl_xte_start_nc_indeed} >> >> \def\tabl_xte_start_nc_indeed >> {\ifx\next\tabl_xte_start_nr \else >> \expandafter\tabl_xte_start_nc_finish >>\fi} >> >> \def\tabl_xte_start_nc_finish#1\NC >> {\ifconditional\c_tabl_xte_in_nc \else >> \settrue\c_tabl_xte_in_nc >> \startxrow[]% >>\fi >>\startxcell#1\stopxcell\NC} >> >> \protect >> >> \starttext >> >> \startxtable[align={lohi,middle}] >> \NC OSI-Schicht\NC[nx=6] Umsetzung \NC\NR >> \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I
Re: [NTG-context] Feature Request: xtables extensions
Alternatively to my first proposal but still overloading the original xtables I came up with another solution which does not have the \NC\NR but only \NR and does not read the cell content as an argument. \unprotect % Overload tabl_x_start_table \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments: [tag][settings] | [tag] | [settings] {\bgroup \let\NC\tabl_xte_start_nc \let\NR\tabl_xte_start_nr \settrue\c_tabl_xte_first_nc \tabl_x_prepare{#settings}% \edef\tabl_x_current_buffer{\tabl_x_default_buffer}% \buff_pickup{\tabl_x_current_buffer}{startxtable}{stopxtable}\relax\tabl_x_process\zerocount} % xtable extensions \newconditional\c_tabl_xte_first_nc \unexpanded\def\tabl_xte_start_nr {\stopxcell\stopxrow \settrue\c_tabl_xte_first_nc} \unexpanded\def\tabl_xte_start_nc {\ifconditional\c_tabl_xte_first_nc \setfalse\c_tabl_xte_first_nc \expandafter\startxrow\expandafter\startxcell \else \expandafter\stopxcell\expandafter\startxcell \fi} \protect \starttext \startxtable[align={lohi,middle}] \NC OSI-Schicht\NC[nx=6] Umsetzung \NR \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN \NC[nx=2,ny=3] DoIP \NR \NC Darstellungsschicht\NR \NC Sitzungsschicht\NR \NC Transportschicht \NC[nx=3] TCP \NC[nx=3] UDP \NR \NC Vermittlungsschicht\NC[nx=3] IPv4 \NC[nx=3] IPv6 \NR \NC Sicherungsschicht \NC[nx=6] Ethernet \NR \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T \NC[nx=2] 1000BASE-T \NR \stopxtable \stoptext On 03/08/2017 04:39 PM, Henri Menke wrote: > I quickly came up with something myself. Unfortunately, it involves > overloading of the original xtables. Perhaps there is a better way but it > works. I am happy to hear your opinions! > > \unprotect > > % Overload tabl_x_start_table > \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments: > [tag][settings] | [tag] | [settings] > {\bgroup >\let\NC\tabl_xte_start_nc >\let\NR\tabl_xte_start_nr >\tabl_x_prepare{#settings}% >\edef\tabl_x_current_buffer{\tabl_x_default_buffer}% > > \buff_pickup{\tabl_x_current_buffer}{startxtable}{stopxtable}\relax\tabl_x_process\zerocount} > > % xtable extensions > \newconditional\c_tabl_xte_in_nc > > \unexpanded\def\tabl_xte_start_nr > {\stopxrow >\setfalse\c_tabl_xte_in_nc} > > \unexpanded\def\tabl_xte_start_nc > {\futurelet\next\tabl_xte_start_nc_indeed} > > \def\tabl_xte_start_nc_indeed > {\ifx\next\tabl_xte_start_nr \else > \expandafter\tabl_xte_start_nc_finish >\fi} > > \def\tabl_xte_start_nc_finish#1\NC > {\ifconditional\c_tabl_xte_in_nc \else > \settrue\c_tabl_xte_in_nc > \startxrow[]% >\fi >\startxcell#1\stopxcell\NC} > > \protect > > \starttext > > \startxtable[align={lohi,middle}] > \NC OSI-Schicht\NC[nx=6] Umsetzung \NC\NR > \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN > \NC[nx=2,ny=3] DoIP \NC\NR > \NC Darstellungsschicht\NC\NR > \NC Sitzungsschicht\NC\NR > \NC Transportschicht \NC[nx=3] TCP \NC[nx=3] UDP \NC\NR > \NC Vermittlungsschicht\NC[nx=3] IPv4 \NC[nx=3] IPv6 \NC\NR > \NC Sicherungsschicht \NC[nx=6] Ethernet \NC\NR > \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T > \NC[nx=2] 1000BASE-T \NC\NR > \stopxtable > > \stoptext > > On 03/08/2017 04:29 PM, Henri Menke wrote: >> Dear devs, >> >> Natural Tables are quite handy but their syntax is a little verbose. >> >> \bTABLE >> \bTR >> \bTD ... \eTD >> \eTR >> \eTABLE >> >> There exist nice extensions which make the format less verbose by mapping >> >> \startTABLE >> \NC ... \NR\NR >> \stopTABLE >> >> back to the original macros. >> >> The new method for tables, called xtables, is faster and seems to have less >> problems than Natural Tables. However, the syntax is even more verbose >> >> \startxtable >> \startxrow >> \startxcell ... \stopxcell >> \stopxrow >> \stopxtable >> >> Can we have similar abbreviations as for Natural Tables? I am thinking of >> something like >> >> \startXTABLE >> \NC ... \NR\NR >> \stopXTABLE >> >> I tried myself rewriting tabl-nte.mkiv for xtables but it is not >> straightforward. >> >> What do you think of this proposal? >> >> Kind regards, >> Henri >> > ___ 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] Feature Request: xtables extensions
I quickly came up with something myself. Unfortunately, it involves overloading of the original xtables. Perhaps there is a better way but it works. I am happy to hear your opinions! \unprotect % Overload tabl_x_start_table \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments: [tag][settings] | [tag] | [settings] {\bgroup \let\NC\tabl_xte_start_nc \let\NR\tabl_xte_start_nr \tabl_x_prepare{#settings}% \edef\tabl_x_current_buffer{\tabl_x_default_buffer}% \buff_pickup{\tabl_x_current_buffer}{startxtable}{stopxtable}\relax\tabl_x_process\zerocount} % xtable extensions \newconditional\c_tabl_xte_in_nc \unexpanded\def\tabl_xte_start_nr {\stopxrow \setfalse\c_tabl_xte_in_nc} \unexpanded\def\tabl_xte_start_nc {\futurelet\next\tabl_xte_start_nc_indeed} \def\tabl_xte_start_nc_indeed {\ifx\next\tabl_xte_start_nr \else \expandafter\tabl_xte_start_nc_finish \fi} \def\tabl_xte_start_nc_finish#1\NC {\ifconditional\c_tabl_xte_in_nc \else \settrue\c_tabl_xte_in_nc \startxrow[]% \fi \startxcell#1\stopxcell\NC} \protect \starttext \startxtable[align={lohi,middle}] \NC OSI-Schicht\NC[nx=6] Umsetzung \NC\NR \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN \NC[nx=2,ny=3] DoIP \NC\NR \NC Darstellungsschicht\NC\NR \NC Sitzungsschicht\NC\NR \NC Transportschicht \NC[nx=3] TCP \NC[nx=3] UDP \NC\NR \NC Vermittlungsschicht\NC[nx=3] IPv4 \NC[nx=3] IPv6 \NC\NR \NC Sicherungsschicht \NC[nx=6] Ethernet \NC\NR \NC Bitübertragungsschicht \NC[nx=2] 100BASE-TX \NC[nx=2] 100BASE-T \NC[nx=2] 1000BASE-T \NC\NR \stopxtable \stoptext On 03/08/2017 04:29 PM, Henri Menke wrote: > Dear devs, > > Natural Tables are quite handy but their syntax is a little verbose. > > \bTABLE > \bTR > \bTD ... \eTD > \eTR > \eTABLE > > There exist nice extensions which make the format less verbose by mapping > > \startTABLE > \NC ... \NR\NR > \stopTABLE > > back to the original macros. > > The new method for tables, called xtables, is faster and seems to have less > problems than Natural Tables. However, the syntax is even more verbose > > \startxtable > \startxrow > \startxcell ... \stopxcell > \stopxrow > \stopxtable > > Can we have similar abbreviations as for Natural Tables? I am thinking of > something like > > \startXTABLE > \NC ... \NR\NR > \stopXTABLE > > I tried myself rewriting tabl-nte.mkiv for xtables but it is not > straightforward. > > What do you think of this proposal? > > Kind regards, > Henri > ___ 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] Feature request for export: Interactive Notes
Hi Pablo, On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote: Hmm, what do you mean exactly? If footnotes in ePub (or XHTML) have no links, how is the user supposed to handle them? I must be missing something, because I think footnotes are hardly accesible in XHTML without links. I think we're both saying the same thing in different ways: I'm calling it a missing/needed feature (unless I'm missing something already there); you're calling it a bug. Either way, it's something emphatically needed for this workflow to be efficient. Best wishes Idris PS. You can see the outcome of the workflow here: http://www.walayah.org/blog/shaykh-aḥmad-ibn-zayniddin-al-aḥsaʾi-part-1-life-travels-character-and-charisma If you examine the page source, you'll see an xhtml div container; that comes from context. The footnote links I added manually. -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote: [Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes etc. in a mode so that it gets invoked only in the export. Will explore this for the article.] How about the system mode: \doifmode{*export}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own question. Ok, thanks Pablo; will explore this as well, especially after I start writing the journal article. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
Hi Pablo, On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote: Hmm, what do you mean exactly? If footnotes in ePub (or XHTML) have no links, how is the user supposed to handle them? I must be missing something, because I think footnotes are hardly accesible in XHTML without links. I think we're both saying the same thing in different ways: I'm calling it a missing/needed feature (unless I'm missing something already there); you're calling it a bug. Either way, it's something emphatically needed for this workflow to be efficient. Best wishes Idris PS. You can see the outcome of the workflow here: http://www.walayah.org/blog/shaykh-aḥmad-ibn-zayniddin-al-aḥsaʾi-part-1-life-travels-character-and-charisma If you examine the page source, you'll see an xhtml div container; that comes from context. The footnote links I added manually. -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
On 04/25/2015 02:19 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: [...] Indeed, I plan to present the results of this experiment (porting an entire academic article to xhtml and WP) in a future article for one of the TeX journals... I’m really interested in reading it. Also because I’m trying to use ConTeXt to generate high-quality PDF documents from XHTML files generated by pandoc ;-). Ah, I'll be interested in seeing that workflow as well ;-) Hi Idris, I’m working on an article on this topic. But without bibligraphies, I have never used myself in ConTeXt or in pandoc :-(. Now we can of course already export xhtml footnotes from ConTeXt but there will be no interactive links. In the current project, there are 77 footnotes; I had to add the links manually to get the output to do what we wanted. I’m afraid that missing links for footnotes is a bug, Hmm, what do you mean exactly? If footnotes in ePub (or XHTML) have no links, how is the user supposed to handle them? I must be missing something, because I think footnotes are hardly accesible in XHTML without links. This is why I said that it makes much more sense to export the footnotes as endnotes. At the end of, e.g., a blog post you'll have a section for footnotes/endnotes. In the context source I had to make a derivative version and use something like \startsubsubject[title=Endnotes] \placefootnotes \stopsubsubject [Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes etc. in a mode so that it gets invoked only in the export. Will explore this for the article.] How about the system mode: \doifmode{*export}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own question. Best, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote: [Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes etc. in a mode so that it gets invoked only in the export. Will explore this for the article.] How about the system mode: \doifmode{*export}{\placefootnotes}? I discovered this (http://wiki.contextgarden.net/Modes#System_modes) after the reply from Hans to my own question. Ok, thanks Pablo; will explore this as well, especially after I start writing the journal article. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
On 04/25/2015 02:36 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, I've spent a considerable amount of time over the past month trying to master the art of xhtml output. We are close to being able to use ConTeXt as a replacement for markdown in, e.g., WordPress. Hi Idris, Markdown or pandoc? Markdown is the markup format, pandoc is the tool. Replacing pandoc with ConTeXt to generate XHTML or ePub files has a downside. As far as I know, ConTeXt is much slower for this task. With a sample from pandoc (http://pandoc.org/epub.html#a-real-book), it takes between 5 and 3 seconds on my computer (depending whether pandoc is loaded in memory or not). With pandoc you have also more formats to write to. Indeed, I plan topresent the results of this experiment (porting an entire academic article to xhtml and WP) in a future article for one of the TeX journals... I’m really interested in reading it. Also because I’m trying to use ConTeXt to generate high-quality PDF documents from XHTML files generated by pandoc ;-). Now we can of course already export xhtml footnotes from ConTeXt but there will be no interactive links. In the current project, there are 77 footnotes; I had to add the links manually to get the output to do what we wanted. I’m afraid that missing links for footnotes is a bug, [Also note that it makes much more sense to export the footnotes as endnotes, particularly for long blog posts.] I think that footnotes are related to pages. You can only have proper footnotes in a page. Just in case it might help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
Hi Pablo, On Sat, 25 Apr 2015 03:05:07 -0600, Pablo Rodriguez oi...@gmx.es wrote: On 04/25/2015 02:36 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, I've spent a considerable amount of time over the past month trying to master the art of xhtml output. We are close to being able to use ConTeXt as a replacement for markdown in, e.g., WordPress. Hi Idris, Markdown or pandoc? Markdown is the markup format, pandoc is the tool. In this case we're talking about markdown qua source. In the WordPress case, pandoc of course is not needed: WP can either use md directly or (as I prefer) an editor such as MarkdownPad~2 will export the html for you, which you can then paste to WP. Replacing pandoc with ConTeXt to generate XHTML or ePub files has a downside. As far as I know, ConTeXt is much slower for this task. Absolutely, by far. But see below. With a sample from pandoc (http://pandoc.org/epub.html#a-real-book), it takes between 5 and 3 seconds on my computer (depending whether pandoc is loaded in memory or not). Sure, and as you know I've done an entire small book using pandoc (docx-md; then md-epub; md-context-pdf) With pandoc you have also more formats to write to. Yes, but the goal here is much narrower: to use ConTeXt as source. Perhaps if pandoc supported ConTeXt input I might have gone that route, but I don't see that happening anytime soon... For simple tasks the markdown/pandoc route is excellent. But as the typesetting needs become more advanced (e.g., bibliographies), markdown as source makes less and less sense. And pandoc export to epub has limitations, as you and I have discussed before. Yes, the ConTeXt route is slower, and the learning curve has been considerably longer than I anticipated. But the resulting workflow is *much* more flexible for serious academic typesetting and export tasks. Indeed, I plan topresent the results of this experiment (porting an entire academic article to xhtml and WP) in a future article for one of the TeX journals... I’m really interested in reading it. Also because I’m trying to use ConTeXt to generate high-quality PDF documents from XHTML files generated by pandoc ;-). Ah, I'll be interested in seeing that workflow as well ;-) Now we can of course already export xhtml footnotes from ConTeXt but there will be no interactive links. In the current project, there are 77 footnotes; I had to add the links manually to get the output to do what we wanted. I’m afraid that missing links for footnotes is a bug, Hmm, what do you mean exactly? [Also note that it makes much more sense to export the footnotes as endnotes, particularly for long blog posts.] I think that footnotes are related to pages. You can only have proper footnotes in a page. This is why I said that it makes much more sense to export the footnotes as endnotes. At the end of, e.g., a blog post you'll have a section for footnotes/endnotes. In the context source I had to make a derivative version and use something like \startsubsubject[title=Endnotes] \placefootnotes \stopsubsubject [Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes etc. in a mode so that it gets invoked only in the export. Will explore this for the article.] Some crude regular expressions helped me to edit ConTeXt's *div.xhtml output; with scripting one should be able to do it all automatically. But my scripting skill set is limited-to-nonexistent so the part of the task that couldn't fit easily into a regex sub I had to do manually. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request for export: Interactive Notes
+ attachment On Fri, 24 Apr 2015 18:36:12 -0600, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear gang, I've spent a considerable amount of time over the past month trying to master the art of xhtml output. We are close to being able to use ConTeXt as a replacement for markdown in, e.g., WordPress. Indeed, I plan to present the results of this experiment (porting an entire academic article to xhtml and WP) in a future article for one of the TeX journals... There is at least one crucial feature that's still needed. Perhaps it is already supported: If so, it would be much appreciated if someone kindly explained how to do it. In a web post (or epub), one wants to be able to interact back and forth with notes. Here is how markdown (extra) does it: Input That's some text with a footnote.[^1] [^1]: And that's the footnote. That's the second paragraph of the note. More main text Output pThat's some text with a footnote.sup id=fnref:1a href=#fn:1 rel=footnote1/a/sup/p pMore main text/p div class=footnotes hr / ol li id=fn:1 pAnd that's the footnote./p pThat's the second paragraph of the note.nbsp;a href=#fnref:1 rev=footnote#8617;/a/p /li /ol /div = The resulting html file is attached. '#8617;' corresponds to U+21A9 (↩). See also https://michelf.ca/projects/php-markdown/extra/#footnotes Now we can of course already export xhtml footnotes from ConTeXt but there will be no interactive links. In the current project, there are 77 footnotes; I had to add the links manually to get the output to do what we wanted. [Also note that it makes much more sense to export the footnotes as endnotes, particularly for long blog posts.] Is there already a way to get done automatically? In any case: This feature is a must-do in my humble opinion. Aside from a few other export bugs, this is one of the few features still needed so that ConTeXt can completely replace markdown for (advanced) web posts. Thanks is advance and Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523Title: footnote That's some text with a footnote.1 More main text And that's the footnote. That's the second paragraph of the note. ___ 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 ___
Re: [NTG-context] Feature Request: ToC page number alternative
Am 26.02.2014 um 20:31 schrieb Thangalin thanga...@gmail.com: Hi, The predefined alternative list setups (e.g., a, b, c...) provide various ways to format the ToC with the page number to the right of the list entry title. An alternative with the page number to the left of the list entry title would be useful. \unprotect \define[3]\SectionToCEntry{% \hbox \strc_lists_get_reference_attribute\v!all{% \par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par% } } \protect \setuplist[section][ alternative=command, command=\SectionToCEntry, ] When you want a interactive list entry replace “alternative=command” with “alternative=interactive”. \define[3]\SectionToCEntry {\leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=interactive, command=\SectionToCEntry] 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 8/21/2013 2:25 AM, Thangalin wrote: Hi, What would it take to extend \definecolor so that: \definecolor[ColourA][ColourB][t=0.5, a=1] defines a new colour (ColourB) based on an existing colour (ColourA)? I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but it seems like \definecolor would also be a natural fit. hm, afaik no one ever needed that (normally one defines colors once on top of the document and there are seldom many of them) anyhow, as general inheritance is pretty fuzzy i.e. cloning a spot color and changing some rgb component or cloning a cmyk color and setting rgb components it will not be a feature of definecolor I've added \defineprocesscolor that cna be used as follows: \starttext \defineprocesscolor[red][r=.5] \blackrule[color=red,width=\hsize,height=1cm] \defineprocesscolor[redish][red][a=1,t=.5] \blackrule[color=redish,width=\hsize,height=1cm] \stoptext But ... as there is some checking of the preferred color space (in context each defined color has a preferred color space and there is also a current colorspace that gets applied) you need to be aware of this: \starttext \defineprocesscolor[red][r=.5] \blackrule[color=red,width=\hsize,height=1cm] \defineprocesscolor[redish][red][a=1,t=.5] \blackrule[color=redish,width=\hsize,height=1cm] \defineprocesscolor[yellowish][red] \blackrule[color=yellowish,width=\hsize,height=1cm] \defineprocesscolor[yellowish][red][a=1,t=.5,y=.5] \blackrule[color=yellowish,width=\hsize,height=1cm] \defineprocesscolor[cyan][c=.5] \defineprocesscolor[yellowish][cyan][y=.5] \blackrule[color=yellowish,width=\hsize,height=1cm] \stoptext Now .. as you requested it, you're also the one who's going to wikify it. I'll upload a beta later. Hans ps. Transparency operates independently of colors but I never figured out a decent way to let that cooperate with existing colors that have transparency specs without breaking compatibility so it might never happen (in fact we have: current color space, current color, current transparency). - 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 - ___ 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 ___
Re: [NTG-context] Feature Request: showframe debugging
On 8/21/2013 6:49 AM, Thangalin wrote: Hi, \showframe [ labels=on, measurements=on, color=red, ] Would produce an image similar to the attached, but with the black lines drawn in the specified colour. Using labels=on would show the names of the items that can be changed with \setuplayout. Using measurements=on would show the values for each of the items. I don't know if there is any value separating the measurements from the labels. You can use: \starttext \showlayout % \showlayout[cc,cm,mm,bp] \stoptext the problem with visualizing is that values can be zero so visualizing becomes messy 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 - ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 2013–08–21 Hans Hagen wrote: On 8/21/2013 2:25 AM, Thangalin wrote: Hi, What would it take to extend \definecolor so that: \definecolor[ColourA][ColourB][t=0.5, a=1] defines a new colour (ColourB) based on an existing colour (ColourA)? I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but it seems like \definecolor would also be a natural fit. hm, afaik no one ever needed that (normally one defines colors once on top of the document and there are seldom many of them) anyhow, as general inheritance is pretty fuzzy i.e. cloning a spot color and changing some rgb component or cloning a cmyk color and setting rgb components it will not be a feature of definecolor I've added \defineprocesscolor that cna be used as follows: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor \defineglobalcolor \definenamedcolor \definespotcolor \definemultitonecolor \defineprocesscolor This is getting a little confusing, in my opinion. If the only difference between \definespotcolor and \defineprocesscolor is the colour space check, can't that be dealt with using a key-value setting? Probably a little late to discuss this, but I also don't see why \definespotcolor got its own command. A simpler approach: If two arguments to \definecolor are provided you define a colour, if three arguments are provided you define a tint of a colour. Marco signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 8/21/2013 1:11 PM, Marco Patzer wrote: On 2013–08–21 Hans Hagen wrote: On 8/21/2013 2:25 AM, Thangalin wrote: Hi, What would it take to extend \definecolor so that: \definecolor[ColourA][ColourB][t=0.5, a=1] defines a new colour (ColourB) based on an existing colour (ColourA)? I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but it seems like \definecolor would also be a natural fit. hm, afaik no one ever needed that (normally one defines colors once on top of the document and there are seldom many of them) anyhow, as general inheritance is pretty fuzzy i.e. cloning a spot color and changing some rgb component or cloning a cmyk color and setting rgb components it will not be a feature of definecolor I've added \defineprocesscolor that cna be used as follows: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor the one i use \defineglobalcolor the one no-one uses \definenamedcolor just a sort of synonym one might forget about (compatibility) \definespotcolor \definemultitonecolor special color spaces \defineprocesscolor the one users might use This is getting a little confusing, in my opinion. If the only difference between \definespotcolor and \defineprocesscolor is the colour space check, can't that be dealt with using a key-value setting? some are made for speed (when one changes colors a lot in local / grouped cases) Probably a little late to discuss this, but I also don't see why \definespotcolor got its own command. A simpler approach: If two arguments to \definecolor are provided you define a colour, if three arguments are provided you define a tint of a colour. well, more checking etc .. also some historic reasons as spot colors are rather special in the sense that they have to built on others .. seldom used anyway i guess - 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 - ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On Wed, 21 Aug 2013, Marco Patzer wrote: On 2013–08–21 Hans Hagen wrote: On 8/21/2013 2:25 AM, Thangalin wrote: Hi, What would it take to extend \definecolor so that: \definecolor[ColourA][ColourB][t=0.5, a=1] defines a new colour (ColourB) based on an existing colour (ColourA)? I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but it seems like \definecolor would also be a natural fit. hm, afaik no one ever needed that (normally one defines colors once on top of the document and there are seldom many of them) anyhow, as general inheritance is pretty fuzzy i.e. cloning a spot color and changing some rgb component or cloning a cmyk color and setting rgb components it will not be a feature of definecolor I've added \defineprocesscolor that cna be used as follows: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor \defineglobalcolor \definenamedcolor \definespotcolor \definemultitonecolor \defineprocesscolor This is getting a little confusing, in my opinion. If the only difference between \definespotcolor and \defineprocesscolor is the colour space check, can't that be dealt with using a key-value setting? Probably a little late to discuss this, but I also don't see why \definespotcolor got its own command. A simpler approach: If two arguments to \definecolor are provided you define a colour, if three arguments are provided you define a tint of a colour. Its time for a `simplecolor` module and a `\definesimplecolor` command :) 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: showframe debugging
On Tue, 20 Aug 2013, Thangalin wrote: Hi, \showframe [ labels=on, measurements=on, color=red, ] Would produce an image similar to the attached, but with the black lines drawn in the specified colour. Using labels=on would show the names of the items that can be changed with \setuplayout. Using measurements=on would show the values for each of the items. I don't know if there is any value separating the measurements from the labels. There was also the layout module[1] by Patrick that visualizes the layout, but it has not been tuned to work for MkIV. [1]: http://modules.contextgarden.net/t-layout 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: showframe debugging
On 2013–08–20 Thangalin wrote: \showframe [ labels=on, measurements=on, color=red, ] Would produce an image similar to the attached, but with the black lines drawn in the specified colour. Using labels=on would show the names of the items that can be changed with \setuplayout. Using measurements=on would show the values for each of the items. I don't know if there is any value separating the measurements from the labels. Some years ago I visualised the layout elements for a cheat sheet. The code can be found here: https://gist.github.com/mpfusion/4635387 It could be extended to visualise the layout dimensions as well. But that complicates the code, since you don't know where the labels end up and you need to check for overlapping labels. Marco signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 8/21/2013 4:23 PM, Aditya Mahajan wrote: Its time for a `simplecolor` module and a `\definesimplecolor` command :) Well, I suppose most users use just \definecolor as spot colors are something one only will use in special cases, in which the color setup only uses spot colors then. Also, inheritance has never been requested before so that's why I made a separate command, if only to avoid side effects. 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 - ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 2013-08-21, at 11:18 AM, Hans Hagen pra...@wxs.nl wrote: On 8/21/2013 4:23 PM, Aditya Mahajan wrote: Its time for a `simplecolor` module and a `\definesimplecolor` command :) Well, I suppose most users use just \definecolor as spot colors are something one only will use in special cases, in which the color setup only uses spot colors then. Also, inheritance has never been requested before so that's why I made a separate command, if only to avoid side effects. I understand, and I was joking. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
For context, here is the question on TeX.SE: http://tex.stackexchange.com/questions/129297/define-colour-transparency-in-relation-to-existing-colour I agree with Marco: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor \defineglobalcolor \definenamedcolor \definespotcolor \definemultitonecolor \defineprocesscolor That is a little confusing. I can understand a speed requirement, but surely that can be taken into consideration beneath the definition? \definecolor[A][r=1, g=0, b=0] \definecolor[B][A][a=1, t=0.5] That seems fairly reasonable. Also, why not embed colour spaces within the command? \definecolor[A][colorspace=spot] \definecolor[A][colorspace=multitone] \definecolor[A][colorspace=pantone] One command to define a colour, rather than several commands for specific variations of defining colours. Kind regards. ___ 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 ___
Re: [NTG-context] Feature Request: define colour in relation to existing colour
On 8/21/2013 8:27 PM, Thangalin wrote: For context, here is the question on TeX.SE: http://tex..stackexchange.com/questions/129297/define-colour-transparency-in-relation-to-existing-colour http://tex.stackexchange.com/questions/129297/define-colour-transparency-in-relation-to-existing-colour I agree with Marco: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor \defineglobalcolor \definenamedcolor \definespotcolor \definemultitonecolor \defineprocesscolor As said before: \defineglobalcolor : probably no one (besided me) will use that \definenamedcolor : an historic synonym so we have less commands. As spot and multitone colors are rather special, they have their own commands. In fact, you can stick to \definespotcolor \definemultitonecolor \defineprocesscolor if you like and forget about the rest. MkIV: Much color related code sits at the Lua end and for some color spaces a bit extra info needs to be passed. Also, spot and multitone colors are always global. Combining all in one command is of course doable but deu to the fact that we end up with extra analysis at the tex end it would make the code more complex then I'd like with hardly any gain (and it would also make the command less efficient for local use). The average user will probably only use \definecolor and that one already has to take a lot into account, for instance mixed colors \definecolor[whatever][.5(red,green)] and some special tikz cases, which, in a combined command would mean that a second argument can be a parent color (needs to be resolved at the tex end before defining) or a mix specification or ... MkII: the definition has been made efficient by assuming a limited set of known keys. That is a little confusing. I can understand a speed requirement, but surely that can be taken into consideration beneath the definition? \definecolor[A][r=1, g=0, b=0] \definecolor[B][A][a=1, t=0.5] That seems fairly reasonable. Also, why not embed colour spaces within the command? \definecolor[A][colorspace=spot] \definecolor[A][colorspace=multitone] \definecolor[A][colorspace=pantone] One command to define a colour, rather than several commands for specific variations of defining colours. Putting too much in one command makes it harder to extend and more difficult to implement. Maybe \definecolor [colorspace] [A] but again, it would be tricky to get that compatible. Maybe at some point \definecolor can become equal to the just introduced \defineprocesscolor ... but not now 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 - ___ 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 ___
Re: [NTG-context] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value
On 07.08.2013, at 22:13, Hans Hagen pra...@wxs.nl wrote: On 8/7/2013 7:40 PM, Michael Scholtz wrote: Hi, the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). With the following setup the short names of the publication entries are used for cite references: \setuppublications[ criterium=text, sorttype=cite, % – short? refcommand=short, numbering=short, ... ] The short names are set using the `s` attribute: \startpublication[ s={RFC2616}, ... ] ... \stoppublication A cite with this setup would look like [RFC2616]. In a long bibliography list it is useful if the entries are sorted in alphabetical order by these short names to allow a faster lookup of publications. Currently I'm using the filter module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. I added 'short' as sorttype .. untested as no example. Great, thanks! Here an example for testing: \setuppublications[ alternative=apa-de, criterium=text, sorttype=short, refcommand=short, numbering=short, autohang=yes, setupinteraction=start, ] \setuppublicationlist[ samplesize={AA}, author=\invertedauthor, artauthor=\invertedauthor, ] %=== entries === \startpublication[ k=jd42, t=book, a={Doe}, y=2042, n=1, s={JD42}, ] \author[]{John}[]{}{Doe} \pubyear{2042} \title{Greetings form the future} \stoppublication \startpublication[ k=bh2008, t=book, a={Bringhurst}, y=2008, n=1, s={ELEM}, ] \author[]{Robert}[]{}{Bringhurst} \pubyear{2008} \title{The Elements of Typographic Style} \edition{3.2} \city{Point Roberts WA, Vancouver} \stoppublication \startpublication[ k=taco1999, t=article, a=Hoekwater, y=1999, s=TH99, n=1 ] \artauthor[]{Taco}[T.]{}{Hoekwater} \arttitle{\CONTEXT\ Publication Module, The user documententation} \journal{MAPS} \pubyear{To appear} \note{This article} \pages{66--76} \stoppublication \startpublication [ k=fielding2000, t=phdthesis, a={Fielding}, y=2000, n=1, s={FIE2000}, ] \author[]{Roy Thomas}[R. T.]{}{Fielding} \title{Architectural Styles and the Design of Network-based Software Architectures} \pubname{University of California, Irvine} \isbn{0-599-87118-0} \stoppublication %=== /entries === \starttext Foo \cite[fielding2000]. Bar \cite[taco1999]. Baz \cite[bh2008]. Bla \cite[jd42]. \completepublications \stoptext Michael ___ 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 ___
Re: [NTG-context] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value
On 8/8/2013 9:29 AM, Michael Scholtz wrote: Here an example for testing: uploading a beta .. we now have: sorttype=cite|short|reference 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 - ___ 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 ___
Re: [NTG-context] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value
On 8/7/2013 7:40 PM, Michael Scholtz wrote: Hi, the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). With the following setup the short names of the publication entries are used for cite references: \setuppublications[ criterium=text, sorttype=cite, % – short? refcommand=short, numbering=short, ... ] The short names are set using the `s` attribute: \startpublication[ s={RFC2616}, ... ] ... \stoppublication A cite with this setup would look like [RFC2616]. In a long bibliography list it is useful if the entries are sorted in alphabetical order by these short names to allow a faster lookup of publications. Currently I'm using the filter module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. I added 'short' as sorttype .. untested as no example. 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 - ___ 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 ___
Re: [NTG-context] feature request for \getspr{}
On Fri, Jun 08 2012, Hans Hagen wrote: \setupspreadsheet [test] [period={{\bf\middlered .}}, comma={{\bf\middlegreen ,}}, split=yes] Thanks, that's fine! Just a minor fix in line 183: if split == yes then -- Peter ___ 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 ___
Re: [NTG-context] feature request for \getspr{}
On 8-6-2012 09:38, Peter Münster wrote: Hi, It would be nice, if \getspr{} of the m-spreadsheet module could print a comma instead of a dot as decimal-point. For now, I use this workaround: --8---cut here---start-8--- function spreadsheets.get(name,r,c,str) if name == then name = current if name == then name = default end end if not str or str == then context(data[name][c][r] or 0) else local result = execute(name,r,c,str) if result then if type(result) == number then data[name][c][r] = result end if userdata and userdata.spreadsheet_use_comma then result = tostring(result) result = result:gsub(%., ,) end context(result) end end end --8---cut here---end---8--- I've added moduledata.spreadsheets.settings.numberseparator but you have to test it after the next upload. (Typpically oen of those modules that I'd forgotten about.) 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 - ___ 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 ___
Re: [NTG-context] feature request for \getspr{}
On Fri, Jun 08 2012, Hans Hagen wrote: I've added moduledata.spreadsheets.settings.numberseparator but you have to test it after the next upload. Tested. Thanks! Just a minor comment: \setupspreadsheet[numberseparator=,] would be nicer than \ctxlua{moduledata.spreadsheets.settings.numberseparator = ,} -- Peter ___ 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 ___
Re: [NTG-context] feature request for \getspr{}
On 8-6-2012 12:21, Peter Münster wrote: On Fri, Jun 08 2012, Hans Hagen wrote: I've added moduledata.spreadsheets.settings.numberseparator but you have to test it after the next upload. Tested. Thanks! Just a minor comment: \setupspreadsheet[numberseparator=,] would be nicer than \ctxlua{moduledata.spreadsheets.settings.numberseparator = ,} next beta \setupspreadsheet [test] [period={{\bf\middlered .}}, comma={{\bf\middlegreen ,}}, split=yes] \startspreadsheettable[test] \startrow \startcell 123456.78 \stopcell \startcell 1234567.89 \stopcell \startcell A[1] + B[1] \stopcell \stoprow \stopspreadsheettable - 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 - ___ 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 ___
Re: [NTG-context] Feature request: criterium=component
On Fri, 25 Nov 2011 03:34:07 -0700, Hans Hagen pra...@wxs.nl wrote: Will be in the next beta. And *you* are going to wikify it! Ok, done :-) http://wiki.contextgarden.net/Table_of_Contents#Tables_of_contents_.28and_other_lists.29_via_project_structures And thanks for implementing this! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] feature request
On 15-11-2011 06:43, Aditya Mahajan wrote: Here is a slightly cleanup version that handles multiline comments better https://github.com/adityam/context-comments/blob/master/t-comments.mkvi if find(s,stop) then insideComment = false return cleaned_line .. currentfilter(strip_to_stop(s)) else as find returns a position, you can do things like this: local stop = find(s,stop) if stop then ... return cleaned_line .. sub(s,stop+#stop,#s) (ok, you need to know the real unescaped length of stop) But this will only work if % has its usual catcode. I don't know how to get around that limitation. for multiline we can plug into the texthandler instead, but it's not worth the trouble and the line based one permits selective enable/disable 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 - ___ 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 ___
Re: [NTG-context] feature request
On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: == \starttext Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. \stoptext == As a feature, I suppose all that's needed -- for the paranoid, maybe you're writing a letter to your boss with hidden curses ;-) -- is the option to suppress the showing of the text on the console/log. Although it's in the source anyway ... For ¿ and ¡ probably some simple catcode trickery will \let you define them as you like. So I'm curious: How can we define ¿ = \message{ ¡ = } % this one is of course trivial, but for completeness... Since you brought this up, I've actually started using \message more (and no, not for cursing my boss!) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 message.tex Description: TeX document ___ 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 ___
Re: [NTG-context] feature request
Am 15.11.2011 um 23:03 schrieb Idris Samawi Hamid ادريس سماوي حامد: On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: When you use \gobbleoneargument you can omit the output in the log. == \starttext Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. \stoptext == You see that there are now two spaces between your sentences, compare the following two sentences: \starttext text \message{hidden} text text\message{hidden} text \stoptext To avoid this I added \removeunwantedspaces to my \hide command. 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 ___
Re: [NTG-context] feature request
On Tue, 15 Nov 2011, Idris Samawi Hamid ادريس سماوي حامد wrote: On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: Untested, but I am pretty sure \message{\iffalse} will fail. Basically, everything inside \message (or the \hide macro by Wolfgang) needs to be processed by TeX, so strictly speaking it is not equivalent to a comment. See the TeX FAQ http://www.tex.ac.uk/cgi-bin/texfaq2html?label=conditional for more details. The most robust solution is to use buffers, but that will not work if the buffer is part of a macro argument. The luatex solution (which is again not perfect) that I posted removes everything inside the comment before it is seeen by TeX. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] feature request
Dear Aditya, Wolfgang, On Tue, 15 Nov 2011 15:11:55 -0700, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: When you use \gobbleoneargument you can omit the output in the log. : To avoid this I added \removeunwantedspaces to my \hide command. On Tue, 15 Nov 2011 15:28:24 -0700, Aditya Mahajan adit...@umich.edu wrote: Untested, but I am pretty sure \message{\iffalse} will fail. Basically, everything inside \message (or the \hide macro by Wolfgang) needs to be processed by TeX, so strictly speaking it is not equivalent to a comment. See the TeX FAQ http://www.tex.ac.uk/cgi-bin/texfaq2html?label=conditional for more details. The most robust solution is to use buffers, but that will not work if the buffer is part of a macro argument. The luatex solution (which is again not perfect) that I posted removes everything inside the comment before it is seeen by TeX. Thank you both for your insightful answers. I appreciate it! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] feature request
On 14-11-2011 08:57, Steffen Wolfrum wrote: Am 13.11.2011 um 22:33 schrieb Andreas Schneider: On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8 This is %some comment an example. -8 ... will end up as: This is an example. maybe paragraph was the wrong word (even though in your example between comment and an there is a pilcrow too, which is commonly used to denote individual paragraphs). that's what I meant: a true in-line comment ... without a line-break, parapgraph-break, pilcrow for ending the comment: This is ¿some comment¡ an example. and next one would want: This is ¿some comment¡ an example. and \startchapter[title={This is ¿some comment¡ an example.}] and ... so it's asking for a mess. Just use a command as Wolfgang mentioned. 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 - ___ 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 ___
Re: [NTG-context] feature request
On Fri, 11 Nov 2011, Steffen Wolfrum wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I assume it is not trivial due to catcode issues, to say the least. But nevertheless, as it is getting close to christmas, I just wanted to mention this idea here. As long as there is no line break in the comment, the following lua based solution works (inspired by m-translate) \startluacode local comments = {} thirddata = thirddata or {} thirddata.comments = comments function comments.translate(s) return string.gsub(s, ¿.-¡,) end local textlineactions = resolvers.openers.helpers.textlineactions utilities.sequencers.appendaction(textlineactions,after,thirddata.comments.translate) function comments.enable() utilities.sequencers.enableaction(textlineactions,thirddata.comments.translate) end function comments.disable() utilities.sequencers.disableaction(textlineactions,thirddata.comments.translate) end comments.disable() \stopluacode \def\enablecomments {\ctxlua{thirddata.comments.enable()}} \def\disablecomments{\ctxlua{thirddata.comments.disable()}} \appendtoks \enablecomments \to \everystarttext \starttext \section{An ¿in \iffalse comment¡ works} Multiple ¿in \iffalse comment¡ with something ¿in \iffalse comment¡ in betweeen \stoptext 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] feature request
Am 14.11.2011 um 09:07 schrieb Hans Hagen: On 14-11-2011 08:57, Steffen Wolfrum wrote: Am 13.11.2011 um 22:33 schrieb Andreas Schneider: On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8 This is %some comment an example. -8 ... will end up as: This is an example. maybe paragraph was the wrong word (even though in your example between comment and an there is a pilcrow too, which is commonly used to denote individual paragraphs). that's what I meant: a true in-line comment ... without a line-break, parapgraph-break, pilcrow for ending the comment: This is ¿some comment¡ an example. and next one would want: This is ¿some comment¡ an example. and \startchapter[title={This is ¿some comment¡ an example.}] of course! how did you know that :o) and ... so it's asking for a mess. Just use a command as Wolfgang mentioned. yes, that what I thought right away too. for the sake of completeness, I just wanted to answer Idris question and wait what he thinks. Thanks to all, Steffen ___ 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 ___
Re: [NTG-context] feature request
On 14-11-2011 09:47, Aditya Mahajan wrote: On Fri, 11 Nov 2011, Steffen Wolfrum wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I assume it is not trivial due to catcode issues, to say the least. But nevertheless, as it is getting close to christmas, I just wanted to mention this idea here. As long as there is no line break in the comment, the following lua based solution works (inspired by m-translate) \startluacode local comments = {} thirddata = thirddata or {} thirddata.comments = comments function comments.translate(s) return string.gsub(s, ¿.-¡,) end local textlineactions = resolvers.openers.helpers.textlineactions utilities.sequencers.appendaction(textlineactions,after,thirddata.comments.translate) function comments.enable() utilities.sequencers.enableaction(textlineactions,thirddata.comments.translate) end function comments.disable() utilities.sequencers.disableaction(textlineactions,thirddata.comments.translate) end comments.disable() \stopluacode \def\enablecomments {\ctxlua{thirddata.comments.enable()}} \def\disablecomments{\ctxlua{thirddata.comments.disable()}} \appendtoks \enablecomments \to \everystarttext \starttext \section{An ¿in \iffalse comment¡ works} Multiple ¿in \iffalse comment¡ with something ¿in \iffalse comment¡ in betweeen \stoptext or ... \startluacode thirddata = thirddata or { } local comments = { filters = { } } thirddata.comments = comments local textlineactions = resolvers.openers.helpers.textlineactions local sequencers = utilities.sequencers local constants = interfaces.constants local gsub, find, format = string.gsub, string.find, string.format function comments.install(name,settings) local settings = utilities.parsers.settings_to_hash(settings) local start = string.escapedpattern(settings[constants.start] or ) local stop = string.escapedpattern(settings[constants.stop] or ) if start ~= and stop ~= then local pattern = start .. .- .. stop comments.filters[name] = function(s) if s == then return elseif find(s,start) then return (gsub(s,pattern,)) else return s end end sequencers.appendaction(textlineactions,after,format(thirddata.comments.filters.%s,name)) comments.disable(name) end end function comments.enable(name) sequencers.enableaction(textlineactions,format(thirddata.comments.filters.%s,name)) end function comments.disable(name) sequencers.disableaction(textlineactions,format(thirddata.comments.filters.%s,name)) end \stopluacode \unprotect \unexpanded\def\installcomments{\dodoubleargument\doinstallcomments} \def\doinstallcomments[#1][#2]% {\ctxlua{thirddata.comments.install(\!!bs#1\!!es,\!!bs\detokenize{#2}\!!es)}} \unexpanded\def\enablecomments[#1]% {\ctxlua{thirddata.comments.enable (\!!bs#1\!!es)}} \unexpanded\def\disablecomments[#1]% {\ctxlua{thirddata.comments.disable(\!!bs#1\!!es)}} \protect \installcomments[test] [start=¿,stop=¡] \installcomments[test2][start=¡,stop=¿] \enablecomments[test] \enablecomments[test2] \starttext \section{An ¿in \iffalse comment¡ works} Multiple ¿in \iffalse comment¡ with something ¿in \iffalse comment¡ in betweeen oeps ¿oeps¡ oeps ¡oeps¿ oeps \stoptext - 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 - ___ 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 ___
Re: [NTG-context] feature request
On Mon, 14 Nov 2011 02:22:17 -0700, Steffen Wolfrum cont...@st.estfiles.de wrote: I just wanted to answer Idris question and wait what he thinks. Your request is a bit different from what I had in mind ... OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla It'll show up in the log file, but who cares? :-) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shiʿi Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] feature request
On Mon, 14 Nov 2011, Hans Hagen wrote: On 14-11-2011 09:47, Aditya Mahajan wrote: On Fri, 11 Nov 2011, Steffen Wolfrum wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I assume it is not trivial due to catcode issues, to say the least. But nevertheless, as it is getting close to christmas, I just wanted to mention this idea here. As long as there is no line break in the comment, the following lua based solution works (inspired by m-translate) or ... Why not go all the way with full multiline comments then? See attached. Aditya\startluacode thirddata = thirddata or { } local comments = { filters = { } } thirddata.comments = comments local textlineactions = resolvers.openers.helpers.textlineactions local sequencers = utilities.sequencers local constants = interfaces.constants local gsub, find, format = string.gsub, string.find, string.format function comments.install(name,settings) local settings = utilities.parsers.settings_to_hash(settings) local start = string.escapedpattern(settings[constants.start] or ) local stop = string.escapedpattern(settings[constants.stop] or ) local any = .- if start ~= and stop ~= then local strip_inline = function(s) return gsub(s, start .. any .. stop, , 1) end local strip_start = function(s) return gsub(s, start .. any, , 1) end local strip_stop = function(s) return gsub(s, ^ .. any .. stop, , 1) end local insideComment = false comments.filters[name] = function(s) local filter = comments.filters[name] if s == then return s elseif insideComment then if find(s,stop) then insideComment = false return filter(strip_stop(s)) else return end elseif find(s,start) then if find(s, stop) then return filter(strip_inline(s)) else insideComment = true return strip_start(s) end else return s end end sequencers.appendaction(textlineactions,after,format(thirddata.comments.filters.%s,name)) comments.disable(name) end end function comments.enable(name) sequencers.enableaction(textlineactions,format(thirddata.comments.filters.%s,name)) end function comments.disable(name) sequencers.disableaction(textlineactions,format(thirddata.comments.filters.%s,name)) end \stopluacode \unprotect \unexpanded\def\installcomments{\dodoubleargument\doinstallcomments} \def\doinstallcomments[#1][#2]% {\ctxlua{thirddata.comments.install(\!!bs#1\!!es,\!!bs\detokenize{#2}\!!es)}} \unexpanded\def\enablecomments[#1]% {\ctxlua{thirddata.comments.enable (\!!bs#1\!!es)}} \unexpanded\def\disablecomments[#1]% {\ctxlua{thirddata.comments.disable(\!!bs#1\!!es)}} \protect \installcomments[test] [start=/*,stop=*/] \starttext \enablecomments[test] \section{Test of /*inline*/ comments} /* Test for multiline comments * to see if they work */ Another test for /* inline comments */ with multiple /* commented lines that span /* false nested comments as well */ to see if it works \stoptext ___ 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 ___
Re: [NTG-context] feature request
On Mon, 14 Nov 2011, Aditya Mahajan wrote: On Mon, 14 Nov 2011, Hans Hagen wrote: On 14-11-2011 09:47, Aditya Mahajan wrote: On Fri, 11 Nov 2011, Steffen Wolfrum wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I assume it is not trivial due to catcode issues, to say the least. But nevertheless, as it is getting close to christmas, I just wanted to mention this idea here. As long as there is no line break in the comment, the following lua based solution works (inspired by m-translate) or ... Why not go all the way with full multiline comments then? See attached. Here is a slightly cleanup version that handles multiline comments better https://github.com/adityam/context-comments/blob/master/t-comments.mkvi But this will only work if % has its usual catcode. I don't know how to get around that limitation. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] feature request
Hi Idris, Am 11.11.2011 um 19:47 schrieb Idris Samawi Hamid ادريس سماوي حامد: On Fri, 11 Nov 2011 08:34:28 -0700, Steffen Wolfrum cont...@st.estfiles.de wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I think the mechanism for fancy in-line comments is already there, developed one-or-two years ago as we were working on some critical-edition-related stuff ... I saw the other answers: Could you elaborate more about exactly what you're looking for, just in case their suggestions don't quite hit the spot? I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. This means, it is only meant for writing/reading comments in the source. And its presence must not affect the typeset file, eg. the resulting PDF, in any respect, of course! Is the mechanism you mention best suited for that purpose? Steffen ___ 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 ___
Re: [NTG-context] feature request
On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8 This is %some comment an example. -8 ... will end up as: This is an example. -- Best Regards, Andreas Schneider ___ 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 ___
Re: [NTG-context] feature request
Am 13.11.2011 um 22:33 schrieb Andreas Schneider: On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8 This is %some comment an example. -8 ... will end up as: This is an example. maybe paragraph was the wrong word (even though in your example between comment and an there is a pilcrow too, which is commonly used to denote individual paragraphs). that's what I meant: a true in-line comment ... without a line-break, parapgraph-break, pilcrow for ending the comment: This is ¿some comment¡ an example. Steffen ___ 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 ___
Re: [NTG-context] feature request
On 11.11.2011, at 16:34, Steffen Wolfrum wrote: Hi Hans, quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. Isn't there already \comment{…}? \starttext test \comment{comment} test \stoptext Andreas ___ 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 ___
Re: [NTG-context] feature request
Am 11.11.2011 um 16:53 schrieb Andreas Harder: On 11.11.2011, at 16:34, Steffen Wolfrum wrote: Hi Hans, quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. Isn't there already \comment{…}? \starttext test \comment{comment} test \stoptext The \comment command can be used to add PDF comments to your document, IIRC it’s documented in the widgets manual. 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 ___
Re: [NTG-context] feature request
Am 11.11.2011 um 16:34 schrieb Steffen Wolfrum: Hi Hans, quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I assume it is not trivial due to catcode issues, to say the least. But nevertheless, as it is getting close to christmas, I just wanted to mention this idea here. \usemodule[annotation] \defineannotation[hide][alternative=none] \starttext Something like \hide{This is my comment!} this. \stoptext A simple definition of the hide which doesn’t require the annotation module is: \define[1]\hide{\removeunwantedspaces} 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 ___
Re: [NTG-context] feature request
On Fri, 11 Nov 2011 08:34:28 -0700, Steffen Wolfrum cont...@st.estfiles.de wrote: quite often I wish we could have a kind of in line comment: Something like ¿this is my comment¡ this. I think the mechanism for fancy in-line comments is already there, developed one-or-two years ago as we were working on some critical-edition-related stuff ... I saw the other answers: Could you elaborate more about exactly what you're looking for, just in case their suggestions don't quite hit the spot? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shiʿi Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On Tue, 22 Mar 2011, Aditya Mahajan wrote: On Tue, 22 Mar 2011, Hans Hagen wrote: so i changed it a bit in the next beta .. i also made middle the default location Thank you. I will document all this in the next TUGBoat article on Context for users. http://wiki.contextgarden.net/PaperSetup 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
On 21-3-2011 5:08, Wolfgang Schuster wrote: Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. well, it works if one specifies [A5][samesize] but it looks like folks want even more automatism ... so i changed it a bit in the next beta .. i also made middle the default location 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 - ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On Tue, 22 Mar 2011, Hans Hagen wrote: On 21-3-2011 5:08, Wolfgang Schuster wrote: Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. well, it works if one specifies [A5][samesize] Yes, but [A5][A5] is simpler than [A5][samesize] :) but it looks like folks want even more automatism ... and easier explanation. The trouble with [A5][A5] is that you need to explain the difference between papersize and printpapersize before you can explain how to change the papersize. Most users don't care about this difference, so the additional syntax gets confusing. so i changed it a bit in the next beta .. i also made middle the default location Thank you. I will document all this in the next TUGBoat article on Context for users. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
2011/3/22 Aditya Mahajan adit...@umich.edu well, it works if one specifies [A5][samesize] Yes, but [A5][A5] is simpler than [A5][samesize] :) With the former if the size changes to A6, you only have to change one thing. So in light of maintenance it is better. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
Hi Aditya,Testing your minimal example:\setuppapersize[A5]\showframe\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextit seems that I do get an A5 papersize (ConTeXt version2011.02.25 22:03, andLuaTeX, Version beta-0.65.0-2010121316). I attach the PDF file for your information (since I don't know how to get pdfinfo…).Best regards: OK test-A5.pdf Description: Adobe PDF document On 19 mars 2011, at 18:59, Aditya Mahajan wrote:[…]I don't know if something changed, but this has stoopped working.\setuppapersize[A5]\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextWith MkII I get$pdfinfo page-test.pdfTitle: page-testSubject:Keywords:Author:Creator: ConTeXt - 2011.02.25 22:03Producer: pdfTeX-1.40.11CreationDate: Sat Mar 19 13:50:49 2011ModDate: ConTeXt - 2011.02.25 22:03Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 33436 bytesOptimized: noPDF version: 1.5With MkIV:$pdfinfo page-test.pdf Title: page-testCreator: ConTeXt - 2011.02.25 22:03Producer: LuaTeX-0.65.0CreationDate: Sat Mar 19 13:53:29 2011ModDate: Sat Mar 19 13:53:29 2011Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 16057 bytesOptimized: noPDF version: 1.6Notice that the page size is still A4! Any idea why this is happening?(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4).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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : http://foundry.supelec.fr/projects/contextrev/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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
... and that's what happens if I don't read the whole thread :D sorry. @Kavian: the attached PDF is A4 (does your PDF-reader not show the paper dimensions in some kind of proprieties dialog?! Adobe Reader sure does) As for the issue: same behavior here. I, too, find it confusing when I dont get the desired size by using only one argument. +1 for change. -Ursprüngliche Nachricht- Von: Aditya Mahajan [mailto:adit...@umich.edu] Gesendet: Montag, 21. März 2011 00:43 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Feature request: setuppapersize On Sun, 20 Mar 2011, C. wrote: Did you try \setuppapersize[A5][A5] ? According to http://wiki.contextgarden.net/Reference/en/setuppapersize second argument (the print paper size) is A4 by default. About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. 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 ___
Re: [NTG-context] Feature request: setuppapersize
On Mon, 21 Mar 2011, Wolfgang Schuster wrote: Am 21.03.2011 um 00:43 schrieb Aditya Mahajan: About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). I doubt if it has ever worked because after i looked at the source for the defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work. So, my testing was not thorough in the first place :( Hans, can you look into this again? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
Did you try \setuppapersize[A5][A5] ? According to http://wiki.contextgarden.net/Reference/en/setuppapersize second argument (the print paper size) is A4 by default. -Ursprüngliche Nachricht- Von: Aditya Mahajan [mailto:adit...@umich.edu] Gesendet: Samstag, 19. März 2011 18:59 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Feature request: setuppapersize On Mon, 10 Jan 2011, Aditya Mahajan wrote: On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Indeed. This will also work fine. I don't know if something changed, but this has stoopped working. \setuppapersize[A5] \starttext \dorecurse{10}{\input knuth \endgraf} \stoptext With MkII I get $pdfinfo page-test.pdf Title: page-test Subject: Keywords: Author: Creator:ConTeXt - 2011.02.25 22:03 Producer: pdfTeX-1.40.11 CreationDate: Sat Mar 19 13:50:49 2011 ModDate:ConTeXt - 2011.02.25 22:03 Tagged: no Pages: 5 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 33436 bytes Optimized: no PDF version:1.5 With MkIV: $pdfinfo page-test.pdf Title: page-test Creator:ConTeXt - 2011.02.25 22:03 Producer: LuaTeX-0.65.0 CreationDate: Sat Mar 19 13:53:29 2011 ModDate:Sat Mar 19 13:53:29 2011 Tagged: no Pages: 5 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 16057 bytes Optimized: no PDF version:1.6 Notice that the page size is still A4! Any idea why this is happening? (I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
On Sun, 20 Mar 2011, C. wrote: Did you try \setuppapersize[A5][A5] ? According to http://wiki.contextgarden.net/Reference/en/setuppapersize second argument (the print paper size) is A4 by default. About two months back I had requested that the second argument be made optional. Hans had implemented that request, but it does not always work (I don't know if this is a regression over the original implemenetation, or it never worked correctly). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
On Mon, 10 Jan 2011, Aditya Mahajan wrote: On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Indeed. This will also work fine. I don't know if something changed, but this has stoopped working. \setuppapersize[A5] \starttext \dorecurse{10}{\input knuth \endgraf} \stoptext With MkII I get $pdfinfo page-test.pdf Title: page-test Subject: Keywords: Author: Creator:ConTeXt - 2011.02.25 22:03 Producer: pdfTeX-1.40.11 CreationDate: Sat Mar 19 13:50:49 2011 ModDate:ConTeXt - 2011.02.25 22:03 Tagged: no Pages: 5 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 33436 bytes Optimized: no PDF version:1.5 With MkIV: $pdfinfo page-test.pdf Title: page-test Creator:ConTeXt - 2011.02.25 22:03 Producer: LuaTeX-0.65.0 CreationDate: Sat Mar 19 13:53:29 2011 ModDate:Sat Mar 19 13:53:29 2011 Tagged: no Pages: 5 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 16057 bytes Optimized: no PDF version:1.6 Notice that the page size is still A4! Any idea why this is happening? (I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: Title Case/Start Case
Am 31.01.2011 um 02:11 schrieb Reviczky, Adam: Hi, May I ask for supporting Title Case or Start Case in core ConTeXt? Eg: The first letter of each word is capitalized, the rest are lower case. It would be nice to have something like these: \TitleCase{What to capitalize in title case} resulting in What to Capitalize in Title Case \StartCase{What to capitalize in start case} resulting in What To Capitalize In Start Case \setuphead[title][style=\Words] \starttext \title{What to capitalize in start case} \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 ___
Re: [NTG-context] Feature request: Title Case/Start Case
\setuphead[title][style=\Words] \starttext \title{What to capitalize in start case} \stoptext Thanks, yes, I've seen that, but I was just wondering if this can be done in a paragraph, outside a section element. Adam ___ 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 ___
Re: [NTG-context] Feature request: Title Case/Start Case
Am 31.01.2011 um 10:21 schrieb Reviczky, Adam: \setuphead[title][style=\Words] \starttext \title{What to capitalize in start case} \stoptext Thanks, yes, I've seen that, but I was just wondering if this can be done in a paragraph, outside a section element. \definestartstop[TitleCase][style=\Words] \starttext \Words{What to capitalize in start case}\par \TitleCase{What to capitalize in start case}\par \startTitleCase What to capitalize in start case\stopTitleCase \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 ___
Re: [NTG-context] Feature request: Title Case/Start Case
\definestartstop[TitleCase][style=\Words] \starttext \Words{What to capitalize in start case}\par \TitleCase{What to capitalize in start case}\par \startTitleCase What to capitalize in start case\stopTitleCase \stoptext Excellent, thank you Wolfgang! Adam ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On 22-1-2011 5:34, Aditya Mahajan wrote: On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Can this also be added to page-lay.mkii. Will make it much easier to document the feature. ok - 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 - ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Can this also be added to page-lay.mkii. Will make it much easier to document the feature. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
On 9-1-2011 12:45, Aditya Mahajan wrote: Hans, Since we have some leverage with backward compatibility in MkIV, can we make \setuppapersize (slightly) more intuitive. Normally, one would expect \setuppapersize[A5] to be equivalent to \setuppapersize[A5][A5] but currently it is equivalent to \setuppapersize[A5][A4] This is a bit confusing, and means that we always have to specify the printpaper size; even if it is equal to paper size. Can we modify the definition of \dodefinepapersize to change this behavior? \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]% %AM: Added these two lines \setvalue{\??pp:1:#1}{#1}% \setvalue{\??pp:2:#1}{#1}}% {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% (*) see below \else \getparameters[\??pp][#1]% \setuppapersize % hm. this will freeze ! \fi} Perhaps, in line (*), we should also check if #3 is something, otherwise set ??p:2:#1 to #2: \doifsomethingelse{#3} {\setvalue\??pp:2:#1}{#3}} {\setvalue\??pp:2:#1}{#2}} What do you think? more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv - 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 - ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
Hans Hagen pra...@wxs.nl writes: What do you think? \setuppapersize [A4][samesized] Not really an improvement over \setuppapersize[A4][A4] ... -- Peter Münster Contact information: http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On 10-1-2011 3:04, Peter Münster wrote: Hans Hagenpra...@wxs.nl writes: What do you think? \setuppapersize [A4][samesized] Not really an improvement over \setuppapersize[A4][A4] ... why not? - 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 - ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
Hans Hagen pra...@wxs.nl writes: On 10-1-2011 3:04, Peter Münster wrote: Hans Hagenpra...@wxs.nl writes: What do you think? \setuppapersize [A4][samesized] Not really an improvement over \setuppapersize[A4][A4] ... why not? Just my personal opinion: more keystrokes to type and more options to remember. I prefer Aditya's original idea. -- Peter Münster Contact information: http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On 10-1-2011 4:20, Peter Münster wrote: Hans Hagenpra...@wxs.nl writes: On 10-1-2011 3:04, Peter Münster wrote: Hans Hagenpra...@wxs.nl writes: What do you think? \setuppapersize [A4][samesized] Not really an improvement over \setuppapersize[A4][A4] ... why not? Just my personal opinion: more keystrokes to type and more options to remember. i guess you didn't try it as suggested ... when set up this way the second argument defaults to samesize unless set otherwise 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 - ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
Hans Hagen pra...@wxs.nl writes: \setuppapersize [A4][samesized] Not really an improvement over \setuppapersize[A4][A4] ... i guess you didn't try it as suggested ... when set up this way the second argument defaults to samesize unless set otherwise Right! I thought the \setuppapersize[][samesized] was for the user-document... But in page-lay.mkiv it makes much more sense! Excuse me, Peter -- Peter Münster Contact information: http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] Feature request: setuppapersize
On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Indeed. This will also work fine. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: 4SIDE
2008/11/16 Willi Egger [EMAIL PROTECTED]: one could make this definition. If I understand it correctly though, then the 4SIDE would mean 4 pages on one sheet op paper, single sided 1 - 2 3 - 4 This is easily accomplished with \setuparranging[XY] and \setuppaper [nx=2,ny=2] I guess it should be more of 1-2-3-4 as 3SIDE (you wrote that for me, remember?) is 1-2-3 But even that should be possible with XY... Greetlings, Hraban ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: 4SIDE
Hi, one could make this definition. If I understand it correctly though, then the 4SIDE would mean 4 pages on one sheet op paper, single sided 1 - 2 3 - 4 This is easily accomplished with \setuparranging[XY] and \setuppaper [nx=2,ny=2] Willi On Nov 14, 2008, at 9:34 AM, Hans Hagen wrote: Marcin Borkowski wrote: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? sure, but it's up to you and the imposition wizzard Willi to make the right definition Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: 4SIDE
Marcin Borkowski wrote: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? sure, but it's up to you and the imposition wizzard Willi to make the right definition Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: indent parameter for delimitedtexts
Aditya Mahajan wrote: On Thu, 13 Nov 2008, Wolfgang Schuster wrote: Hi Hans, is it possible to add a indent key to delimitedtexts, I use in one own my documents the following setup \setupdelimitedtext [blockquote] [spacebefore=line, before={\setupindenting[next]}] but it makes more sense to have a built-in option to control the indenting of longer quotes. I second this. Being lazy, I have been sprinkling \noindentation in my texts. Actually, it will be nice to have this for start-stop narrower also. remind me once we have split core-mis in mkii/mkiv Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: 4SIDE
Am 14.11.2008 um 01:44 schrieb Wolfgang Schuster: Am 14.11.2008 um 01:09 schrieb Marcin Borkowski: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? I reused my old code to write a new flexible XSIDE style, you could use it 2SIDE, 2SIDE, 4SIDE ... http://wiki.contextgarden.net/User:Wolfgang_Schuster#Arranging_pages You could also use the predefined 'xy' arranging. http://wiki.contextgarden.net/Imposition 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: linespacing in (foot)notes
On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: linespacing in (foot)notes
Am 14.11.2008 um 17:07 schrieb Aditya Mahajan: On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html I already tried the before key but it comes to early and \restoreglobalbodyfont cancels the setting. I tried also \setupbodyfontenvironment but I don't want this because I could have also normal running text in the same size as the footnote but the linedistance need to be bigger. \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. I don't care if the key is commands, setups, inbetween ... as long as it possible to change the linedistance I'm happy but something need to be done and I mean now and not in a few months/years, we live long enough with this restriction. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: indent parameter for delimitedtexts
Am 14.11.2008 um 00:28 schrieb Aditya Mahajan: On Thu, 13 Nov 2008, Wolfgang Schuster wrote: Hi Hans, is it possible to add a indent key to delimitedtexts, I use in one own my documents the following setup \setupdelimitedtext [blockquote] [spacebefore=line, before={\setupindenting[next]}] but it makes more sense to have a built-in option to control the indenting of longer quotes. I second this. Being lazy, I have been sprinkling \noindentation in my texts. Actually, it will be nice to have this for start-stop narrower also. Only if we get also a \definenarrower, the default narrower could then be defined as a predefined environment like \startframedtext. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: 4SIDE
Am 14.11.2008 um 01:09 schrieb Marcin Borkowski: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? I reused my old code to write a new flexible XSIDE style, you could use it 2SIDE, 2SIDE, 4SIDE ... http://wiki.contextgarden.net/User:Wolfgang_Schuster#Arranging_pages 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: \startitemize[text]
On Fri, Oct 17, 2008 at 7:01 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Hi Wolfgang, On Fri, 17 Oct 2008, Wolfgang Schuster wrote: On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Hi Hans, I have always found the space at the beginning of each item in \startitemize[text] to be too large. Currently, this is hard coded to be \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of core-itm.tex with the comment new per 2006/10/20). I always end of copying the definition of complexdoitemgroupitem to my private modules and changing the emwidth in the definition to 0.5\emwidth. Can you please keep this key to be configurable with a key (textinbetween)? BTW, any particular reason not to simply say \removeunwantedspaces\space\ignorespaces instead of \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax \stopitemgroup uses just the first variant. Thanks, Aditya Hi Aditya, what do you about the following solution, the space between each item is configurable with the space key, the fourth parameter \dostartitemgroup gobbles we get from \startitemize if we use two parameters. Thank you for looking into this old request. This does exactly what I want. I just have one comment regarding the default. Maybe, for consistency, the space key should behave as in \setupinterlinespace space=none|small|medium|big|dimension \processaction [\getitemparameter\currentitemlevel\c!space] [ \v!none=\let\textitemdistance\zeropoint, \s!unknown=\assignvalue\commalistelement\textitemdistance{.5\interwordspace\!!plus.5\emwidth}{\interwordspace\!!plus\emwidth}{\emwidth\!!plus\interwordstretch\!!minus\interwordshrink}]% \removeunwantedspaces\hskip\textitemdistance\relax 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: \startitemize[text]
Aditya Mahajan wrote: Hans, can this be included in the core? later, i'd rather not touch code now while i'm in the middle some major mkiv core code rework which will take a couple of weeks so, fro the moment, just collect extension code Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature Request: \startitemize[text]
Hi Wolfgang, On Fri, 17 Oct 2008, Wolfgang Schuster wrote: On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Hi Hans, I have always found the space at the beginning of each item in \startitemize[text] to be too large. Currently, this is hard coded to be \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of core-itm.tex with the comment new per 2006/10/20). I always end of copying the definition of complexdoitemgroupitem to my private modules and changing the emwidth in the definition to 0.5\emwidth. Can you please keep this key to be configurable with a key (textinbetween)? BTW, any particular reason not to simply say \removeunwantedspaces\space\ignorespaces instead of \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax \stopitemgroup uses just the first variant. Thanks, Aditya Hi Aditya, what do you about the following solution, the space between each item is configurable with the space key, the fourth parameter \dostartitemgroup gobbles we get from \startitemize if we use two parameters. Thank you for looking into this old request. This does exactly what I want. I just have one comment regarding the default. Maybe, for consistency, the space key should behave as in \setupinterlinespace space=none|small|medium|big|dimension Other than this, it is perfect. Thanks a lot. Hans, can this be included in the core? Thanks, Aditya \unprotect \def\complexdoitemgroupitem[#1]% {\ifconditional\textlistitem % begin of item \else \par \fi %\ignorespaces \ifconditional\concatnextitem % new, concat \doitembreak\nobreak% new, concat \fi % new, concat \doadvanceitem \ifcase\itemcolumndepth \ifnum\noflistelements0\relax % wrong, but why was this here in the first place, probably some % mistaken change when cleaning up: \doitembreak\nobreak \fi\fi \ifconditional\firstlistitem \setfalse\firstlistitem \begingroup \ifcase\currentitemlevel \or % 1 \ifcase\itemcolumndepth \ifconditional\introlistitem\doitembreak\nobreak\fi \itembeforecommand % \getitemparameter\currentitemlevel\c!before \ifconditional\introlistitem\doitembreak\nobreak\fi \fi \else % 2 en hoger \ifconditional\paragraphlistitem \else \let\previtemlevel\currentitemlevel \decrement\previtemlevel \ifcase\autoitemgroupspacing\relax % nieuw \itembeforecommand \or \doifelsenothing{\itembeforecommand} {\itembeforecommand} {\getitemparameter\previtemlevel\c!inbetween}% \else \getitemparameter\previtemlevel\c!inbetween % == itemlevel-1 \fi \fi \fi \else \ifconditional\textlistitem % was bugged: \inlinelistitem \removeunwantedspaces % \removeunwantedspaces\hskip\interwordspace\!!plus\emwidth\relax % new per 2006/10/20 % \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax % new per 2006/10/20 % begin wolf \doifsomethingelse{\getitemparameter\currentitemlevel\c!space} {\hskip\getitemparameter\currentitemlevel\c!space\relax} {\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax}% % end wolf \else \iteminbetweencommand \fi \fi \ifconditional\concatnextitem % new, concat \vskip-\lastskip% new, concat \vskip-\lineheight % new, concat \nobreak% new, concat \fi % new, concat %\ignorespaces \dolistitem \relax \ifconditional\packlistitem \setupwhitespace[\v!none]% \fi \getitemparameter\currentitemlevel\c!inner \marsymbol \let\marsymbol\relax \doifsomething{#1} {\doifnot\itemreference\unknownitemreference {\bgroup \protectconversion \rawreference\s!lst{#1}\itemreference \egroup}}% \strut % added 11-08-99 \setfalse\concatnextitem % new, concat \nobreak % else problems with intext items \hskip\itemsignal% new, concat \getitemparameter\currentitemlevel\c!command} % \defaultitemcommand \def\startitemgroup {\doquadrupleempty\dostartitemgroup} \def\dostartitemgroup[#1][#2][#3][]% {\bgroup \ifnum\currentitemlevel=\zerocount \def\currentitemgroup{#1}% no nested mixing of itemgroups \fi \ifthirdargument \dodostartitemgroup[#2][#3]% \else \doifassignmentelse{#2} {\dodostartitemgroup[][#2]} {\dodostartitemgroup[#2][]}% \fi} \setupitemgroups [\c!space=] \protect \showframe \starttext before \startitemize[text][space=\interwordspace] \item text \item text \item text \stopitemize after \stoptext Wolfgang ___ If your question is of interest to others as well, please add an