Re: [NTG-context] calculating with dimension unit
Am 22.04.2013 um 01:13 schrieb Jan Heinen jahei...@gmx.de: In a book I produced with ConTeXt last year, I did a lot of calculation to be able to change the layout dynamicaly. With the actual version of ConTeXt I can't compile the book. I have tried a lot of things today ... without success. I hope my minimal-example helps you to understand, what I want to do - and what I am doing wrong: \starttext \setupexternalfigures[location={local,global,default}] \defineexpandable\ColumnA{30mm} \defineexpandable\ColumnB{40mm} \defineexpandable\ColumnABi{\dimexpr(\ColumnA + \ColumnB)} \defineexpandable\ColumnABii {\ctxlua{context(\ColumnA + \ColumnB)}} \newdimen\ColumnABiii \ColumnABiii = \dimexpr(\ColumnA + \ColumnB) \definemeasure[ColumnA][30mm] \definemeasure[ColumnB][40mm] \definemeasure[ColumnBi][\the\dimexpr(\measure{ColumnA}+\measure{ColumnB})] A \ColumnA% ok B \ColumnB% ok % I sadly get only errors when I delete the comments: %ColumnABi: \ColumnABi A \measure{ColumnA} B \measure{ColumnB} C \measure{ColumnBi} 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] ConText on webspace
Hi Janis, ConText can run on a server, and therefore on a web-server. Your problem would be getting 1und1 allowing for you to install the binaries. I would suggest you mail 1und1 and ask them if you can do that. You might need to switch your contract inorder to do that. Hope this helps Keith. Am 19.04.2013 um 21:17 schrieb Jan Heinen jahei...@gmx.de: Is it possible to instal and runl ConText on webspace? Which requirements and limitations are needed? define webspace I have webspace hosted at the german provider (1und1) where my homepage is running. It contains php, perl, python, mysqld. I have access via - ssh - ftp It's NOT a managed server - there are lot's of other customers on the same server. Is this enough for your answer or which else information do you need? Regards Janis ___ 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 ___ ___ 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] setuppagenumber--start at page xy
Thank you, Huseyin. Yes, that works; but the question remains: Has \setuppagenumber[number=NUMBER] become obsolete? After all, it's all over contextgarden, both in example documents and in the Commands/ list. Cheers, Jörg H. Özoguz writes: Minimal example: \setuppagenumber[number=3] \starttext \input tufte \stoptext I'm using today's context version. Thanks, Jörg You could use \setcounter[userpage][2] \starttext \input tufte \stoptext Huseyin ___ 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] setuppagenumber--start at page xy
Am 22.04.2013 um 09:44 schrieb Jörg Hagmann joerg.hagm...@unibas.ch: Thank you, Huseyin. Yes, that works; but the question remains: Has \setuppagenumber[number=NUMBER] become obsolete? After all, it's all over contextgarden, both in example documents and in the Commands/ list. Yes, the number option for \setuppagenumber is gone and you have to use \setupcounter. Even though this breaks backward compatibility it’s now constant with \setupheadnumber which is used to change the start value for sections. 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] calculating with dimension unit
On 4/22/2013 8:48 AM, Wolfgang Schuster wrote: Am 22.04.2013 um 01:13 schrieb Jan Heinen jahei...@gmx.de: In a book I produced with ConTeXt last year, I did a lot of calculation to be able to change the layout dynamicaly. With the actual version of ConTeXt I can't compile the book. I have tried a lot of things today ... without success. I hope my minimal-example helps you to understand, what I want to do - and what I am doing wrong: \starttext \setupexternalfigures[location={local,global,default}] \defineexpandable\ColumnA{30mm} \defineexpandable\ColumnB{40mm} \defineexpandable\ColumnABi{\dimexpr(\ColumnA + \ColumnB)} \defineexpandable\ColumnABii {\ctxlua{context(\ColumnA + \ColumnB)}} \newdimen\ColumnABiii \ColumnABiii = \dimexpr(\ColumnA + \ColumnB) \definemeasure[ColumnA][30mm] \definemeasure[ColumnB][40mm] \definemeasure[ColumnBi][\the\dimexpr(\measure{ColumnA}+\measure{ColumnB})] FYI: \the\dimexpr... will look ahead till there's something nonexpandable, and contrary to what one expects \dimexpr(...) will not stop at the ) so, although with measures it normally goes okay, personally I always use \relax as terminator; the \relax will be eaten up so there is no interference but it guarantees to stop scanning. (I've been wondering if we should make measured \the\dimexpr..\relax internally which can save dimexpr at the user end.) A \ColumnA% ok B \ColumnB% ok % I sadly get only errors when I delete the comments: %ColumnABi: \ColumnABi A \measure{ColumnA} B \measure{ColumnB} C \measure{ColumnBi} 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 ___ -- - 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] calculating with dimension unit
On 4/22/2013 1:13 AM, Jan Heinen wrote: %\externalfigure[cow][width=\ColumnABiii] Already for quite a while some commands that take a dimension as well as a keyword need a verbose dimension (so \the\ColumnABiii in your case) because it's handled at the lua end (where at this moment we cannot deal with it 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] setuppagenumber--start at page xy
Wolfgang Schuster writes: Yes, the number option for \setuppagenumber is gone and you have to use \setupcounter. Even though this breaks backward compatibility it’s now constant with \setupheadnumber which is used to change the start value for sections. Thank you, Wolfgang. I added this information to 2 sites in the garden. Cheers, Jörg ___ 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] calculating with dimension unit
Am 22.04.2013 um 10:14 schrieb Hans Hagen pra...@wxs.nl: On 4/22/2013 8:48 AM, Wolfgang Schuster wrote: Am 22.04.2013 um 01:13 schrieb Jan Heinen jahei...@gmx.de: In a book I produced with ConTeXt last year, I did a lot of calculation to be able to change the layout dynamicaly. With the actual version of ConTeXt I can't compile the book. I have tried a lot of things today ... without success. I hope my minimal-example helps you to understand, what I want to do - and what I am doing wrong: \starttext \setupexternalfigures[location={local,global,default}] \defineexpandable\ColumnA{30mm} \defineexpandable\ColumnB{40mm} \defineexpandable\ColumnABi{\dimexpr(\ColumnA + \ColumnB)} \defineexpandable\ColumnABii {\ctxlua{context(\ColumnA + \ColumnB)}} \newdimen\ColumnABiii \ColumnABiii = \dimexpr(\ColumnA + \ColumnB) \definemeasure[ColumnA][30mm] \definemeasure[ColumnB][40mm] \definemeasure[ColumnBi][\the\dimexpr(\measure{ColumnA}+\measure{ColumnB})] FYI: \the\dimexpr... will look ahead till there's something nonexpandable, and contrary to what one expects \dimexpr(...) will not stop at the ) so, although with measures it normally goes okay, personally I always use \relax as terminator; the \relax will be eaten up so there is no interference but it guarantees to stop scanning. AFAIR the etex already mentions it. (I've been wondering if we should make measured \the\dimexpr..\relax internally which can save dimexpr at the user end.) +1 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] calculating with dimension unit
Hello, thanks for the helpfull tipps. Only one wasn't working: \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} ColumnABii: \ColumnABii The result is: ColumnABii: 30mm+ 40mm And it should be ColumnABii: 70mm And in the other cases I get back: 199.16928pt instead of 70mm but this seems to be the same. I think this calculating with dimension is not very well documented in the context-wiki. Thus I would like to write a small article about Calculating with dimension units in the wiki.contextgarden.net to help others a bit. Or is there already an article somewhere? Regards Jannis ___ 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] calculating with dimension unit
I think this calculating with dimension is not very well documented in the context-wiki. Thus I would like to write a small article about Calculating with dimension units in the wiki.contextgarden.net to help others a bit. Or is there already an article somewhere? Such an article will be very useful. Currently the information is scattered in plain tex manuals, etex manual, context manuals, and context source code documentation. Having it in one place will make it more easily accessible. ___ 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] calculating with dimension unit
On 2013-04-22, at 6:43 AM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: (I've been wondering if we should make measured \the\dimexpr..\relax internally which can save dimexpr at the user end.) +1 +1 from me as well. Having to use \dimexpr...\relax in definemeasure ISS bit awkward. 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] Missing number error, related to setupcolumnsetlines
On /Fri Apr 19 21:36:41 CEST 2013 /Hans Hagen wrote: On 4/18/2013 11:13 PM, Lars Huttar wrote: / \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes] // // \setupcolumnsetlines[abbcolumn][1][1][60] // \setupcolumnsetlines[abbcolumn][1][2][60] / the 60 exceeds the number of lines Hans, thanks for responding. I don't understand the above statement. What number of lines does 60 exceed? Is there a hard-coded limit? (We didn't seem to have a problem with this code before we migrated from XeTeX / mkii to LuaTeX / mkiv, but I couldn't guarantee what else is different.) Is there a workaround for us now? I could leave out the \setupcolumnsetlines commands for the moment, and hope we don't overflow the page. Actually I'm not sure what will happen if we leave the number of lines at the default (which is apparently zero?). Regards, Lars / \starttext // \startcolumnset[abbcolumn] // foo // \stopcolumnset // \stoptext / i'll add a check (i will redo columnsets at some point in a more mkiv-ish way) Hans ___ 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] calculating with dimension unit
On Mon, Apr 22, 2013 at 1:31 PM, Jan Heinen jahei...@gmx.de wrote: Hello, thanks for the helpfull tipps. Only one wasn't working: \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} ColumnABii: \ColumnABii The result is: ColumnABii: 30mm+ 40mm And it should be ColumnABii: 70mm ColumnABii: \the\dimexpr \ColumnABii\relax And in the other cases I get back: 199.16928pt instead of 70mm but this seems to be the same. TeX internally uses scaled points (1pt = 2^16 scaled point) and prints values in american point (1pt = 1/72.27 inch 1inch =2.54cm) -- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Accessing documentation repository
Hello, I would like to access ConTeXt documentation repository to download and study how ConTeXt is used to produce the manuals, but it looks like the repositories are down. I tried the following: - Official(?) repository svn://ctx.pragma-ade.nl/manuals - Manual translations http://foundry.supelec.fr/gf/project/contextman/scmsvn/ Can someone point me to the new location for the documentation repository? Regards, Thomas Corbière ___ 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] Accessing documentation repository
On 04/22/2013 05:47 PM, cont...@thomas-corbiere.name wrote: - Manual translations http://foundry.supelec.fr/gf/project/contextman/scmsvn/ That one has only been moved to a new url: https://foundry.supelec.fr/projects/contextman/scmsvn/ Best wishes, Taco ___ 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] Missing number error, related to setupcolumnsetlines
On 4/22/2013 4:24 PM, Lars Huttar wrote: On /Fri Apr 19 21:36:41 CEST 2013 /Hans Hagen wrote: On 4/18/2013 11:13 PM, Lars Huttar wrote: / \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes] // // \setupcolumnsetlines[abbcolumn][1][1][60] // \setupcolumnsetlines[abbcolumn][1][2][60] / the 60 exceeds the number of lines Hans, thanks for responding. I don't understand the above statement. What number of lines does 60 exceed? Is there a hard-coded limit? (We didn't seem to have a problem with this code before we migrated from XeTeX / mkii to LuaTeX / mkiv, but I couldn't guarantee what else is different.) Column sets allocates a box for each line but does that dynamically (i.e. at the start of a columnset) but the min/max settings in the above command don't check for that so if you have a 55 line layout you get an overflow. Is there a workaround for us now? I've added a check. I could leave out the \setupcolumnsetlines commands for the moment, and hope we don't overflow the page. Actually I'm not sure what will happen if we leave the number of lines at the default (which is apparently zero?). no, more like 55 or so (depends on the layout settings) Regards, Lars / \starttext // \startcolumnset[abbcolumn] // foo // \stopcolumnset // \stoptext / i'll add a check (i will redo columnsets at some point in a more mkiv-ish way) Hans ___ 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 ___ -- - 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 ___
[NTG-context] ``fallback in Typescript
Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim ___ 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] ``fallback in Typescript
Hi Tim, ···date: 2013-04-22, Monday···from: Tim Li··· Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim use the source, Luke: http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/font-col.mkvi#l94 As the manual says: It really makes sense to take a look at the font and type definition files (font-*.tex and type-*.tex). There are fallbacks defined, as well as generic definitions. Studying styles and manual source code may also teach you a few tricks. I assure you the effort is well worth it. Best regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpNoHGPwBiCP.pgp Description: PGP 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] ``fallback in Typescript
On 4/22/2013 8:11 PM, Philipp Gesang wrote: Hi Tim, ···date: 2013-04-22, Monday···from: Tim Li··· Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim use the source, Luke: http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/font-col.mkvi#l94 http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/type-fbk.mkiv As the manual says: It really makes sense to take a look at the font and type definition files (font-*.tex and type-*.tex). There are fallbacks defined, as well as generic definitions. Studying styles and manual source code may also teach you a few tricks. I assure you the effort is well worth it. Best regards Philipp ___ 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 ___ -- - 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] calculating with dimension unit
Thank you all!! My book from last year (15.000 lines text + context-code and 1.500 lines macro-code now was compiled without no further problems! I only had to change all \define\variable ... to \defineexpandable\variable ... I think, now I understand a little bit more about ConTeXt and try again to give a little bit back to the community. I have started a new article on the context-wiki: http://wiki.contextgarden.net/Calculating_with_dimension_units Hopefully the more sophisticated ConTeXter help a little bit to improve the article. Please have a look what is wrong and what I have forgotten (or don't know). Regards Janis ___ 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] calculating with dimension unit
Am 22.04.2013 um 23:28 schrieb Jan Heinen jahei...@gmx.de: Thank you all!! My book from last year (15.000 lines text + context-code and 1.500 lines macro-code now was compiled without no further problems! I only had to change all \define\variable ... to \defineexpandable\variable ... I think, now I understand a little bit more about ConTeXt and try again to give a little bit back to the community. I have started a new article on the context-wiki: http://wiki.contextgarden.net/Calculating_with_dimension_units Hopefully the more sophisticated ConTeXter help a little bit to improve the article. Please have a look what is wrong and what I have forgotten (or don't know). The Lua version can be removed because the line \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} is only a complicated form to write \defineexpandable\ColumnABii {30mm + 40mm} What does happen is that context replaces \ColumnA with 30mm and \ColumnB with 40mm but nothing is calculate because the argument is a simple text string. 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] Cumulating numbered lists
Another try: Can someone explain why \setupitemgroup[itemize][broad,joinedup,packed,autointro] \setupitemize[itemalign=flushright] \startitemize[n,repeat] \item level a \startitemize[n,repeat] \item level b \startitemize[A][prefix=no] \item level c \stopitemize \stopitemize \stopitemize yields: 1. level a 1.1 level b 1.1.A. level c rather than 1. level a 1.1 level b A. level c ? Alan On Fri, Apr 19, 2013 at 7:42 AM, Alan Bowen bowenala...@gmail.com wrote: In the simplified example, \setupitemgroup[itemize][broad] \setupitemize[itemalign=flushright] \startitemize[n,repeat] \item level a \item level a \startitemize[n,repeat] \item level b \item level b \startitemize[A][prefix=no] \item level c \item level c \stopitemize \stopitemize \stopitemize “prefix=no” does not work. I am also puzzled that “repeat” must be entered at the higher levels if it effectively means “repeat higher-level number at lower levels, to produce e.g. 1.a.4” (quoting the wiki). Alan On Thu, Apr 18, 2013 at 2:43 PM, Alan Bowen bowenala...@gmail.com wrote: Hi, Wolfgang— Thanks for this—I will be more careful in keeping the two apart. In this instance, however, when I make the change, the problem persists. I am using ConTeXt ver: 2013.04.17 18:36 MKIV beta fmt: 2013.4.17 int: english/english Alan On Thu, Apr 18, 2013 at 2:07 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 18.04.2013 um 19:57 schrieb Alan Bowen bowenala...@gmail.com: I need a list structure that can be numbered in different ways as the occasion warrants. In this case, I need: 1. text 2. text 2.1. text 2.2. text Text Text A. text B. text The problem seem to be in turning off the cumulation of numbers in the last entries (fourth level). \defineitemgroup[MyList] \setupitemgroup[MyList][1][broad,joinedup,packed,autointro] [itemalign=flushright,left={},right={},stopper={.},margin=3pc] \setupitemgroup[MyList][2][broad,joinedup,packed,autointro] [itemalign=flushright,left={},right={},stopper={.}] \setupitemgroup[MyList][3][broad,joinedup,packed,autointro] [itemalign=flushright,left={},right={},stopper={.}] \setupitemgroup[MyList][4][broad,joinedup,packed,autointro] [itemalign=flushright,left={},right={},stopper={.}] \starttext \startMyList[n,repeat] \item First level text \item First level text \startMyList[n,repeat] \item Second level text \item Second level text \startMyList[symbol={}] \item Third level text \item Third level text \startMyList[A]%= %\startMyList[A,prefix=no] %= \item Fourth level text \item Fourth level text \stopitemize \stopitemize \stopitemize \stopitemize \stoptext With \startMyList[A], I get 2.2.2.A. Fourth level text 2.2.2.B. Fourth level text With \startMyList[A,prefix=no], I get You can’t put keywords and assignments in the same argument. You need two arguments where one holds the keywords and the other the assignments: \startMyList[A][prefix=no] 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 ___ ___ 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] ``fallback in Typescript
Thanks. I am reading these codes. Tim Date: Mon, 22 Apr 2013 20:31:25 +0200 From: pra...@wxs.nl To: ntg-context@ntg.nl Subject: Re: [NTG-context] ``fallback in Typescript On 4/22/2013 8:11 PM, Philipp Gesang wrote: Hi Tim, ・・・date: 2013-04-22, Monday・・・from: Tim Li・・・ Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim use the source, Luke: http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/font-col.mkvi#l94 http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/type-fbk.mkiv As the manual says: It really makes sense to take a look at the font and type definition files (font-*.tex and type-*.tex). There are fallbacks defined, as well as generic definitions. Studying styles and manual source code may also teach you a few tricks. I assure you the effort is well worth it. Best regards Philipp ___ 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 ___ -- - 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 ___ ___ 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 ___