Re: [NTG-context] t-letter: Colons : in \setupletter[postscript={…}] not escaped properly
Am 25.08.2012 um 21:33 schrieb Paul Menzel paulepan...@users.sourceforge.net: Dear ConTeXt folks, using ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.25 int: english/english and the example \usemodule[letter] \starttext \setupletter [fromname={John Simmons}, fromaddress={Parkstreet 12\\8257 Green Bay}] \setupletter [toname={Steve Wilson}, toaddress={Nightstreet 4a\\9183 Cotton Village}] \setupletter [postscript={PS: word : word : word}] \startletter [opening={Dear Mr Wilson,}, subject={Brand new templates for Word}, closing={Best regards}, signature={John Simmons}] \input knuth\par \stopletter \stoptext the »PS:« is cut off and also the part after the second colon. Fixed. BTW: As the postscript entry is a description you can set the “PS: ” string separate with \setuplettertext. \setuplettertext[postscript=PS: ] \setupletter [postscript={word 1 : word 2 : word 3}] 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] Numbering of figures and tables changed?
Dear list, In the book/thesis I am typesetting the many figures (Examples) and the few tables must be numbered per chapter, (Ex. 1.3, Ex. 4.17 etc) and they should appear like this in the List of Examples. Up to around 27 july this worked perfectly, automatically I should say, but with a newer version of mkiv (25 august) they come out numbered for the book as a whole and without chapter numbers. I have not changed the setups, and I can reproduce the correct result with an older version of mkiv (may) with a slightly adapted environment file. Unfortunately I do need some recent features of mkiv. The setups for the floats are: \definefloat[Example][examples] \setupfloat[Example][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[Example][location=top,number=yes,inbetween=\blank,bodyfont=10pt] \setuplabeltext[en][Example=Ex.~] \definefloat[table][tables] \setupfloat[table][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[table][location=top,number=yes,inbetween=\blank,bodyfont=10pt]\setuplabeltext[en][table=Table~] I tried [way=bychapter] as an argument for the captions but that did not change anything' What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? Thanks in advance. Best regards, Robert ___ 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] Numbering of figures and tables changed?
Am 26.08.2012 um 10:33 schrieb Robert Blackstone blackstone.rob...@gmail.com: Dear list, In the book/thesis I am typesetting the many figures (Examples) and the few tables must be numbered per chapter, (Ex. 1.3, Ex. 4.17 etc) and they should appear like this in the List of Examples. Up to around 27 july this worked perfectly, automatically I should say, but with a newer version of mkiv (25 august) they come out numbered for the book as a whole and without chapter numbers. I have not changed the setups, and I can reproduce the correct result with an older version of mkiv (may) with a slightly adapted environment file. Unfortunately I do need some recent features of mkiv. The setups for the floats are: \definefloat[Example][examples] \setupfloat[Example][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[Example][location=top,number=yes,inbetween=\blank,bodyfont=10pt] \setuplabeltext[en][Example=Ex.~] \definefloat[table][tables] \setupfloat[table][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[table][location=top,number=yes,inbetween=\blank,bodyfont=10pt]\setuplabeltext[en][table=Table~] I tried [way=bychapter] as an argument for the captions but that did not change anything' What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? Setting the way how you want to be numbered resets only the figure counter, to show the chapter number you have to enable prefixes. \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \dorecurse{5} {\dorecurse{4}{\input knuth\par} \placefigure{Caption}{\externalfigure[dummy]} \dorecurse{4}{\input knuth\par}}} \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] built-in units command (mkiv) fails
Am 22.08.2012 um 21:54 schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi there, Did / Do I miss something or is there a problem with the built-in \unit command? minimal example: start example \starttext 10 \unit{km/h} \stoptext stop example output: 10 kilometersolidushour ConTeXt: ver: 2012.08.16 22:20 MKIV fmt: 2012.8.22 phys-dim.mkiv %\ctxlua{ %languages.labels.define(setupprefixtext,prefixes)% %languages.labels.define(setupunittext,units)% %languages.labels.define(setupoperatortext,operators)% %languages.labels.define(setupsuffixtext,suffixes)% %} \ctxcommand{definelabels(prefix, prefixes )} \ctxcommand{definelabels(unit,units)} \ctxcommand{definelabels(operator,operators)} \ctxcommand{definelabels(suffix, suffixes )} 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] Numbering of figures and tables changed?
On 26 Aug 2012, at 11:29, Wolfgang Schuster wolfgang.schus...@gmail.com wrote Am 26.08.2012 um 10:33 schrieb Robert Blackstone blackstone.rob...@gmail.com: What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? Setting the way how you want to be numbered resets only the figure counter, to show the chapter number you have to enable prefixes. \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \dorecurse{5} {\dorecurse{4}{\input knuth\par} \placefigure{Caption}{\externalfigure[dummy]} \dorecurse{4}{\input knuth\par}}} \stoptext Wolfgang Thank you, Wolfgang. Your advice solves one problem but adds another: now the section numbers are included as well. How do I get rid of these? See example: \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \input knuth\par \dorecurse{2} {\section{Section #1} \input knuth\par \placefigure{Caption}{\externalfigure[dummy]} \input knuth\par}} \stoptext (I'm sorry for the error in the nested \dorecurse with the section titles but the problem will be clear.) Thanks in advance. Kind regards, Robert ___ 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] Numbering of figures and tables changed?
Am 26.08.2012 um 13:31 schrieb Robert Blackstone blackstone.rob...@gmail.com: On 26 Aug 2012, at 11:29, Wolfgang Schuster wolfgang.schus...@gmail.com wrote Am 26.08.2012 um 10:33 schrieb Robert Blackstone blackstone.rob...@gmail.com: What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? Setting the way how you want to be numbered resets only the figure counter, to show the chapter number you have to enable prefixes. \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \dorecurse{5} {\dorecurse{4}{\input knuth\par} \placefigure{Caption}{\externalfigure[dummy]} \dorecurse{4}{\input knuth\par}}} \stoptext Wolfgang Thank you, Wolfgang. Your advice solves one problem but adds another: now the section numbers are included as well. How do I get rid of these? See example: \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \input knuth\par \dorecurse{2} {\section{Section #1} \input knuth\par \placefigure{Caption}{\externalfigure[dummy]} \input knuth\par}} \stoptext Add “prefixsegments=chapter” to the \setuphead settings. 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 ___