[NTG-context] Influencing the vertical spacing of the table of contents?
I'm using mkii. I've got a table of contents that just places one item on the next page, which is ugly. I'd like to tweak the spacing between lines, but which parameter do I have to adjust? It wasn't clear to me from the docs. Thanks, G ___ 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] How to get parameters in lua
On 9/20/2014 2:45 PM, Christoph Reller wrote: Two general questions arise (if your permit): 1. Where are the key-value pairs stored? In your first solution you handle the key setting by explicitly calling lua on every \setupname call. It seems that all key-value pairs (that are set with \installcommandhandler-generated \setupname) are stored on the TeX side and not on the lua side. Is this correct? yes and getting the macro meaning at the lua end is not efficient as it is tokenized 2. Calling \ctxlua from lua. I was tempted to add another level of indirection to your second (the synchronize) solution. I.e: in the lua code (in a separate lua file to avoid the do ... end introduced by \startluacode \stopluacode) I have: n = v = function getkey(name,value) n = name v = value end function myfun(parameters,content) context([[\ctxlua{getkey(gkey,\elemparameter{gkey})}]]) context( name=) context(n) context(, value=) context(v) end The above does not work because the value obtained lags behind, i.e. initially v will be , on the second call v will have the value of the first \setupelem[gkey=gval], and so on. I guess this lag is due to the way TeX and lua communicate to each other? indeed, all printed to tex is injected into the input after the lua call ends A small question: What do you mean by there is no grouping in lua? \bgroup ... some assignment at the tex end ... followed by setting it in lua \bgroup ... forgotten at the tex end ... still set at the lua end Thank you anyway for your valuable input. Regards, Christoph ___ 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] \definedescription question
I have this definition: \definedescription[Member][headstyle=bold, location=hanging,width=fit] What do I need to do if my description item has multiple paragraphs? A \par ends the description, so I need a definition of some sort of followup item without the heading. How do I do that? I'm using mkii. G___ 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] s-mod produces system error: invalid parameter ...
Hi, Probably this is a minor thing. When processing the following module template: %D \module[ %D file=p-Mymod, %D title=The Mymod Module, %D author=The Author, %D date=\currentdate, %D ] %M \usemodule[Mymod] %D Hello \writestatus{loading}{ConTeXt User Module / Mymod} \unprotect \protect \endinput with: context --ctx=s-mod p-Mymod.mkiv then the console output contains: system error: invalid parent type for parametercommand, type defined too (best check it) The output module documentation is, however, produced correctly. I assume that this is harmless, but it would be nice if the log file contained no error message if the processing was successful. Thank you for any feedback, Christoph Reller ___ 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] \definedescription question
Hi Gerben, Just use \startMember \stopMember as in the following: \starttext \startMember{Knuth and Ward} \input knuth \input ward \stopMember \Member{Knuth} \input knuth \input ward \stoptext Best regards: OK On 21 Sep 2014, at 13:55, Gerben Wierda gerben.wie...@rna.nl wrote: I have this definition: \definedescription[Member][headstyle=bold, location=hanging,width=fit] What do I need to do if my description item has multiple paragraphs? A \par ends the description, so I need a definition of some sort of followup item without the heading. How do I do that? I'm using mkii. G ___ 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] \definedescription question
Thanks. That almost gives me the result I need. What is missing is that the extra paragraphs of the Member are not indented. G On 21 Sep 2014, at 16:07, Otared Kavian ota...@gmail.com wrote: Hi Gerben, Just use \startMember \stopMember as in the following: \starttext \startMember{Knuth and Ward} \input knuth \input ward \stopMember \Member{Knuth} \input knuth \input ward \stoptext Best regards: OK On 21 Sep 2014, at 13:55, Gerben Wierda gerben.wie...@rna.nl wrote: I have this definition: \definedescription[Member][headstyle=bold, location=hanging,width=fit] What do I need to do if my description item has multiple paragraphs? A \par ends the description, so I need a definition of some sort of followup item without the heading. How do I do that? I'm using mkii. G ___ 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 ___ ___ 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] s-mod produces system error: invalid parameter ...
Am 21.09.2014 um 15:29 schrieb Christoph Reller christoph.rel...@gmail.com: Hi, Probably this is a minor thing. When processing the following module template: %D \module[ %D file=p-Mymod, %D title=The Mymod Module, %D author=The Author, %D date=\currentdate, %D ] %M \usemodule[Mymod] %D Hello \writestatus{loading}{ConTeXt User Module / Mymod} \unprotect \protect \endinput with: context --ctx=s-mod p-Mymod.mkiv then the console output contains: system error: invalid parent type for parametercommand, type defined too (best check it) The output module documentation is, however, produced correctly. I assume that this is harmless, but it would be nice if the log file contained no error message if the processing was successful. The error message is produced by the following line in x-set-11.mkiv: \definetype[parametercommand][type] The problem is the parent setting for the \parametercommand command which doesn’t exist because the \type command isn’t created with \definetype[type]. 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] \definedescription question
Am 21.09.2014 um 18:29 schrieb Gerben Wierda gerben.wie...@rna.nl: Thanks. That almost gives me the result I need. What is missing is that the extra paragraphs of the Member are not indented. Make a minimal example! 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] \definedescription question
Better still. I found the solution: \definedescription[Member][headstyle=bold, location=hanging,width=fit] \definemeasure[CAindent][12pt] \setupindenting[yes,\measure{CAindent}] \starttext \input knuth \par \input knuth \par \startMember{Foo Foo Foo} \indenting[yes] \input knuth \par \input knuth \stopMember \stoptext \indenting[yes] after \startMember does the trick. G On 21 Sep 2014, at 19:57, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.09.2014 um 18:29 schrieb Gerben Wierda gerben.wie...@rna.nl: Thanks. That almost gives me the result I need. What is missing is that the extra paragraphs of the Member are not indented. Make a minimal example! 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 ___
[NTG-context] How do I get indenting in multi-paragraph \endnotes?
I have a couple of \endnotes that are multi-paragraph, but the second and rest paragraphs are not indented, while my text is. I tried adding \indenting[yes] to them explicitly, but that is apparently not enough. How can I set this up? I'm using mkii. Thanks, G ___ 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] \definedescription question
Am 21.09.2014 um 20:32 schrieb Gerben Wierda gerben.wie...@rna.nl: Better still. I found the solution: \definedescription[Member][headstyle=bold, location=hanging,width=fit] \definemeasure[CAindent][12pt] \setupindenting[yes,\measure{CAindent}] \starttext \input knuth \par \input knuth \par \startMember{Foo Foo Foo} \indenting[yes] \input knuth \par \input knuth \stopMember \stoptext \indenting[yes] after \startMember does the trick. You can enable the paragraph indent for your descriptions with the indenting key. \definedescription [Member] [headstyle=bold, location=hanging, indenting={yes,medium}, width=fit] 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] How do I get indenting in multi-paragraph \endnotes?
Am 21.09.2014 um 21:09 schrieb Gerben Wierda gerben.wie...@rna.nl: I have a couple of \endnotes that are multi-paragraph, but the second and rest paragraphs are not indented, while my text is. I tried adding \indenting[yes] to them explicitly, but that is apparently not enough. How can I set this up? I'm using mkii. \setupnotedefinition[endnote][indenting=yes] % indenting={yes,medium} 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 ___
[NTG-context] math \prime with subscripts
Hi is there a way for \prime not get smaller when used with sub/superscripts? Or realigned somehow? Without font changes would be nice. \starttext \startformula \frac13T\prime_{rs}T\prime_{st}T\prime_{tr} \stopformula \startformula \frac13T_{rs}\prime T_{st}\prime T_{tr}\prime \stopformula \stoptext Thanks YT ___ 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 ___