[NTG-context] bib module cripples authors?
Hi, an other issue with bib: already at the stage of running bibtex three or more authors are shortened. See an easy example: \setupbibtex[database=mytry_x.bib] \starttext Test \completepublications \stoptext The referenced mytry_x.bib looks like this: @BOOK{daunerliebkonzenschmidt, author = {Peter Schlechtriem and Horst Konzen}, } @BOOK{schlechtriemschmidtkessel, author = {Peter Schlechtriem and Horst Konzen and Karsten Schmidt}, } And the resulting bbl lookes like this: \setuppublicationlist[samplesize={SKS},totalnumber=2] \startpublication[k=daunerliebkonzenschmidt,t=book, a={{Schlechtriem},{Konzen}},y=, n=1,s=SK] \author[]{Peter}[P.]{}{Schlechtriem} \author[]{Horst}[H.]{}{Konzen} \stoppublication \startpublication[k=schlechtriemschmidtkessel,t=book, a={{Schlechtriem},{}},y=, n=2,s=SKS] \author[]{Peter}[P.]{}{Schlechtriem} \author[]{Horst}[H.]{}{Konzen} \author[]{Karsten}[K.]{}{Schmidt} \stoppublication Why is a= now {{Schlechtriem},{}} and not {{Schlechtriem},{Konzen},{Schmidt}} ?? 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 ___
[NTG-context] Newlines in a table cel
I have a macro to display MVC (model-view-controller) info: \define[3]\MVC{ \starttabulate[|l|l|] \NC \Important[Model]: \NC #1 \NC\NR \NC \Important[View]: \NC #2 \NC\NR \NC \Important[Controller]: \NC #3 \NC\NR \stoptabulate \myblank } Sometimes the info is very long. Now it is displayed in one long line that scrolls off the screen. How can I change this. Ideally would be if I could give in the macro call where a new line should start, but just automatically formatted would be good enough. -- 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] Newlines in a table cel
On 4-7-2011 11:59, Cecil Westerhof wrote: I have a macro to display MVC (model-view-controller) info: \define[3]\MVC{ \starttabulate[|l|l|] \NC \Important[Model]: \NC #1 \NC\NR \NC \Important[View]: \NC #2 \NC\NR \NC \Important[Controller]: \NC #3 \NC\NR \stoptabulate \myblank } Sometimes the info is very long. Now it is displayed in one long line that scrolls off the screen. How can I change this. Ideally would be if I could give in the macro call where a new line should start, but just automatically formatted would be good enough. [|l|lp|] - 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] Fwd: Newlines in a table cel
Sorry Hans. I send it to you instead of to the list. And I forgot the files. Now corrected. -- Forwarded message -- From: Cecil Westerhof cldwester...@gmail.com Date: 2011/7/4 Subject: Re: [NTG-context] Newlines in a table cel To: Hans Hagen pra...@wxs.nl 2011/7/4 Hans Hagen pra...@wxs.nl On 4-7-2011 11:59, Cecil Westerhof wrote: I have a macro to display MVC (model-view-controller) info: \define[3]\MVC{ \starttabulate[|l|l|] \NC \Important[Model]: \NC #1 \NC\NR \NC \Important[View]: \NC #2 \NC\NR \NC \Important[Controller]: \NC #3 \NC\NR \stoptabulate \myblank } Sometimes the info is very long. Now it is displayed in one long line that scrolls off the screen. How can I change this. Ideally would be if I could give in the macro call where a new line should start, but just automatically formatted would be good enough. [|l|lp|] Thanks. Much better. I did not find this. Did I not look good enough? Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro? -- Cecil Westerhof -- Cecil Westerhof dummy.tex Description: TeX document dummy.pdf Description: Adobe PDF 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] Fwd: Newlines in a table cel
Am 04.07.2011 um 12:50 schrieb Cecil Westerhof: Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro? Tell ConTeXt where is should break the line with “\\”. \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController} 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] Fwd: Newlines in a table cel
2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro? Tell ConTeXt where is should break the line with “\\”. \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController} Thanks. In the dummy.tex it works. In my own document it does not. Looks like I changed something in my environment. Have to find out what. -- 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] Fwd: Newlines in a table cel
2011/7/4 Cecil Westerhof cldwester...@gmail.com 2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro? Tell ConTeXt where is should break the line with “\\”. \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController} Thanks. In the dummy.tex it works. In my own document it does not. Looks like I changed something in my environment. Have to find out what. It is not in my environment. The use of \completecontent wreck havoc on this. See the attachments. -- Cecil Westerhof dummy.tex Description: TeX document dummy.pdf Description: Adobe PDF 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 ___
[NTG-context] \date bug with french
Hi, The date printed with the \date command is not correct in french (but ok in english). See this example : \mainlanguage[fr] \starttext \date \stoptext It prints 44 juillet 2011 (today). Without \mainlanguage[fr], it’s prints July 4, 2011 (as expected). I have ConTeXt - 2011.06.29 09:57 and LuaTeX-0.70.1. I've never seen this bug before but I don't know if the problem is recent or not. -- Romain Diss romain.d...@yahoo.fr signature.asc Description: This is a digitally signed message part. ___ 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] \date bug with french
Am 04.07.2011 um 15:10 schrieb Romain Diss: Hi, The date printed with the \date command is not correct in french (but ok in english). See this example : \mainlanguage[fr] \starttext \date \stoptext It prints 44 juillet 2011 (today). Without \mainlanguage[fr], it’s prints July 4, 2011 (as expected). I have ConTeXt - 2011.06.29 09:57 and LuaTeX-0.70.1. I've never seen this bug before but I don't know if the problem is recent or not. It’s not a bug but a language dependent format of the string, you can change it with \setuplanguage[de][date={...}] where the date key takes the same arguments as the \date 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] Fwd: Newlines in a table cel
Am 04.07.2011 um 14:58 schrieb Cecil Westerhof: 2011/7/4 Cecil Westerhof cldwester...@gmail.com 2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro? Tell ConTeXt where is should break the line with “\\”. \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController} Thanks. In the dummy.tex it works. In my own document it does not. Looks like I changed something in my environment. Have to find out what. It is not in my environment. The use of \completecontent wreck havoc on this. See the attachments. This is *not* a minimal working example, neither it’s minimal nor it’s working. You can fix this by replacing the \\ with \crlf to add a linebreak in the entries: \define[3]\MVC {\starttabulate[|l|lp|] \NC Model: \NC #1 \NC\NR \NC View: \NC #2 \NC\NR \NC Controller: \NC #3 \NC\NR \stoptabulate} \starttext \MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController} \completecontent \MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController} \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] \date bug with french
On Mon, Jul 4, 2011 at 3:25 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 04.07.2011 um 15:10 schrieb Romain Diss: Hi, The date printed with the \date command is not correct in french (but ok in english). See this example : \mainlanguage[fr] \starttext \date \stoptext It prints 44 juillet 2011 (today). Without \mainlanguage[fr], it’s prints July 4, 2011 (as expected). I have ConTeXt - 2011.06.29 09:57 and LuaTeX-0.70.1. I've never seen this bug before but I don't know if the problem is recent or not. It’s not a bug but a language dependent format of the string, you can change it with \setuplanguage[de][date={...}] where the date key takes the same arguments as the \date command. ok, but there is no the 44th day in July as 44 juillet 2011 said -- 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 ___
Re: [NTG-context] \date bug with french
Am 04.07.2011 um 15:29 schrieb luigi scarso: ok, but there is no the 44th day in July as 44 juillet 2011 said It’s not 44th, it’s 4 + 4th :) core-con.lua: function commands.currentdate(str,currentlanguage) -- j and jj obsolete ... if ordinal and whatordinal then -- commands.ordinal(whatordinal,currentlanguage) context(%s,converters.ordinal(whatordinal,currentlanguage)) end end end 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] Fwd: Newlines in a table cel
2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com This is *not* a minimal working example, neither it’s minimal nor it’s working. What do you mean by this? I had a problem, thus sure it is not working. You can fix this by replacing the \\ with \crlf to add a linebreak in the entries: Works like a charm: thanks. Is it not strange that the behavior is different before and after a \content? -- 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] Fwd: Newlines in a table cel
Am 04.07.2011 um 15:53 schrieb Cecil Westerhof: 2011/7/4 Wolfgang Schuster schuster.wolfg...@googlemail.com This is *not* a minimal working example, neither it’s minimal nor it’s working. What do you mean by this? I had a problem, thus sure it is not working. 1. You example is not minimal because you have a lot of unnecessary commands in it. 2. Your example does not work because you use commands which aren’t defined in the file. You can fix this by replacing the \\ with \crlf to add a linebreak in the entries: Works like a charm: thanks. Is it not strange that the behavior is different before and after a \content? No because i had been wrong and \\ isn’t a valid command to end the line in tabulate, it’s used to write tabulate in a different form, e.g. look at \startlegend in the manual or at the following example: \starttext \definetabulate[test][|l|p|] \setuptabulate [test][inner=\setquicktabulate\test] \starttest \test 1 \\ 2 \\ \test 3 \\ 4 \\ \stoptest \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] [mkiv] \setupfootnotes[n=2] not working properly
you can check the beta (when synchronized) Great to hear that, will do! From todays update I still got current version: 2011.06.19 14:17. I'm looking forward to the next release. Thank you very much. ___ 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] context.labeltext(...)
Hi all, experimenting with context.labeltext... My question is how can I tweak the context.labeltext(text) command at the lua-side to make ConTeXt to typeset the labeltext starting with an uppercase letter? e.g. if text contains january to display January? KR Willi ___ 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.labeltext(...)
Am 04.07.2011 um 17:02 schrieb Willi Egger: Hi all, experimenting with context.labeltext... My question is how can I tweak the context.labeltext(text) command at the lua-side to make ConTeXt to typeset the labeltext starting with an uppercase letter? e.g. if text contains january to display January? You can access constants and variables with “interfaces.constants” and “interfaces.variables”: \starttext \startluacode context.labeltext(%s,interfaces.variables.january) \stopluacode \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] context.labeltext(...)
On Mon, Jul 4, 2011 at 5:02 PM, Willi Egger w.eg...@boede.nl wrote: Hi all, experimenting with context.labeltext... My question is how can I tweak the context.labeltext(text) command at the lua-side to make ConTeXt to typeset the labeltext starting with an uppercase letter? e.g. if text contains january to display January? And if text is foo you want Foo ? In char-ini.lua, among others, there is function characters.upper(str) local new, n = { }, 0 for u in utfvalues(str) do n = n + 1 new[n] = ucchars[u] end return concat(new) end The idea is to take the first character from characters.upper(str), and all but not first from str and then join them using concat. -- 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 ___
Re: [NTG-context] context.labeltext(...)
Hello Wolfgang, thanks for your reply. I see that I was not quite clear with my explanation. The situation is the following: in a function which runs over the months of the year at a certain moment I need to insert at the ConTeXt side the monthname. However the monthname returned by the following statement is all lowercase, which is ok for the translation of the labeltext. In the document however I need the labeltext in with a starting uppercase letter. The question is therefor how to achieve this uppercase first letter \startluacode function monthtable(month) local direct = true local nofdays = converters.nofdays(os.date(%Y),month,direct) direct = false local d = os.date(%B,os.time({year=os.date(%Y),month= month,day=1})) context.bTABLE({setups=table:month}) context.bTR({align=middle}) context.bTD() context.labeltext(d) -- context.labeltext(%s,interfaces.variables.january) context.eTD() context.eTR() for i = 1, 31 do context.bTR() context.bTD() if i nofdays +1 then context(i) else context() end context.eTD() context.eTR() end context.eTABLE() end \stopluacode \def\maandtabel#1{\ctxlua{monthtable(#1)}} \starttext \maandtabel{2) \stoptext Kind regards Willi On 4 Jul 2011, at 17:41, Wolfgang Schuster wrote: context.labeltext(%s,interfaces.variables.january) ___ 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.labeltext(...)
Hi Luigi, hm, did not know this one. Still I can not see that this is going to fit in my situation. I refer to may other mail I sent a minute ago. - The thing is, that the document I am building should be multilingual and therefore I need at the lua-end the lowercase text which should be made first-letter-uppercase at the moment it is typeset. Thanks Willi On 4 Jul 2011, at 17:54, luigi scarso wrote: On Mon, Jul 4, 2011 at 5:02 PM, Willi Egger w.eg...@boede.nl wrote: Hi all, experimenting with context.labeltext... My question is how can I tweak the context.labeltext(text) command at the lua-side to make ConTeXt to typeset the labeltext starting with an uppercase letter? e.g. if text contains january to display January? And if text is foo you want Foo ? In char-ini.lua, among others, there is function characters.upper(str) local new, n = { }, 0 for u in utfvalues(str) do n = n + 1 new[n] = ucchars[u] end return concat(new) end The idea is to take the first character from characters.upper(str), and all but not first from str and then join them using concat. -- 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 ___ ___ 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.labeltext(...)
Am 04.07.2011 um 18:00 schrieb Willi Egger: Hello Wolfgang, thanks for your reply. I see that I was not quite clear with my explanation. The situation is the following: in a function which runs over the months of the year at a certain moment I need to insert at the ConTeXt side the monthname. However the monthname returned by the following statement is all lowercase, which is ok for the translation of the labeltext. In the document however I need the labeltext in with a starting uppercase letter. The question is therefor how to achieve this uppercase first letter ??? The first letter in the month name you get from Lua is uppercase as you can see in the output from your example. To make the first letter uppercase at the TeX side you can use “context.Word(...)”. 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.labeltext(...)
Am 04.07.2011 um 18:05 schrieb Willi Egger: Hi Luigi, hm, did not know this one. Still I can not see that this is going to fit in my situation. I refer to may other mail I sent a minute ago. - The thing is, that the document I am building should be multilingual and therefore I need at the lua-end the lowercase text which should be made first-letter-uppercase at the moment it is typeset. context.labeltext(%s,interfaces.variables[string.lower(d)]) 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.labeltext(...)
On Mon, Jul 4, 2011 at 6:05 PM, Willi Egger w.eg...@boede.nl wrote: Hi Luigi, hm, did not know this one. Still I can not see that this is going to fit in my situation. I refer to may other mail I sent a minute ago. - The thing is, that the document I am building should be multilingual and therefore I need at the lua-end the lowercase text which should be made first-letter-uppercase at the moment it is typeset. In the first email you talked about a generic label. Uppercase /lower case are unicode sensitive; as Wolfgang already wrote string.lower(..) and string.upper(..) can help , but they depend on the current locale which can confuse things. So it's better to look at char-ini.lua . -- 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 ___
Re: [NTG-context] context.labeltext(...)
On Mon, Jul 04, 2011 at 06:20:37PM +0200, luigi scarso wrote: On Mon, Jul 4, 2011 at 6:05 PM, Willi Egger w.eg...@boede.nl wrote: Hi Luigi, hm, did not know this one. Still I can not see that this is going to fit in my situation. I refer to may other mail I sent a minute ago. - The thing is, that the document I am building should be multilingual and therefore I need at the lua-end the lowercase text which should be made first-letter-uppercase at the moment it is typeset. In the first email you talked about a generic label. Uppercase /lower case are unicode sensitive; as Wolfgang already wrote string.lower(..) and string.upper(..) can help , but they depend on unicode.utf8.lower()/upper() are a better choice for non-ASCII text. (I still believe the default string manipulation functions should be Unicode aware by default, and the 8-bit ones should be an alternative, not the other way around). Regards, Khaled -- Khaled Hosny Egyptian Arab ___ 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.labeltext(...)
Am 04.07.2011 um 18:53 schrieb Khaled Hosny: On Mon, Jul 04, 2011 at 06:20:37PM +0200, luigi scarso wrote: On Mon, Jul 4, 2011 at 6:05 PM, Willi Egger w.eg...@boede.nl wrote: Hi Luigi, hm, did not know this one. Still I can not see that this is going to fit in my situation. I refer to may other mail I sent a minute ago. - The thing is, that the document I am building should be multilingual and therefore I need at the lua-end the lowercase text which should be made first-letter-uppercase at the moment it is typeset. In the first email you talked about a generic label. Uppercase /lower case are unicode sensitive; as Wolfgang already wrote string.lower(..) and string.upper(..) can help , but they depend on unicode.utf8.lower()/upper() are a better choice for non-ASCII text. (I still believe the default string manipulation functions should be Unicode aware by default, and the 8-bit ones should be an alternative, not the other way around). ConTeXt provides also characters.upper()/lower(). 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] apos; not working anymore
Could it be that in xml-processing apos; and friends are dead? Where formerly these were treated correctly, now from apos; there results apos. I seem to remember that this was an earlier problem, solved in the meantime and now popping up again. Hans van der Meer ___ 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] apos; not working anymore
Am 04.07.2011 um 19:27 schrieb Hans van der Meer: Could it be that in xml-processing apos; and friends are dead? Where formerly these were treated correctly, now from apos; there results apos. I seem to remember that this was an earlier problem, solved in the meantime and now popping up again. Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} 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] apos; not working anymore
I just checked against an older version where the behaviour was as it should be. That version is: ConTeXt ver: 2011.03.28 01:03 MKIV fmt: 2011.3.28 int: english/english The erroneous behaviour is at least in the following version, I cannot check versions in between. ConTeXt ver: 2011.06.26 13:23 MKIV fmt: 2011.6.27 int: english/english By the way, these apos;, quot; etc. are standard defines in XML and as such were also present in ConTeXt. Hans van der Meer On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Am 04.07.2011 um 19:27 schrieb Hans van der Meer: Could it be that in xml-processing apos; and friends are dead? Where formerly these were treated correctly, now from apos; there results apos. I seem to remember that this was an earlier problem, solved in the meantime and now popping up again. Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} 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] How to override the print resolution
On Sat, Jul 2, 2011 at 21:31, Henning Hraban Ramm wrote: Am 2011-07-02 um 13:53 schrieb Cecil Westerhof: I do not know the size. This is depending on the resolution of the picture. What I want is that if I have two pictures with a resolution of 729x414 that they take up the same amount of space in the document. Now if the first picture has a printer resolution of 300x300 DPI and the second a printer resolution of 100x100 DPI, the second picture will be three times as wide and three times as high. Not very nice. Then you can only normalize your resolutions beforehand (or perhaps using the filter module) with some image processing tool, e.g. ImageMagick, GraphicsConverter, Photoshop... I never used that feature and I don't know the answer, but I agree with Cecil that one should be able to set a fixed resolution for all images with some command without having to modify images with external tools. pdfTeX supports that with image_resolution 300 in pdftex.cfg for example (but maybe only if resolution is not defined). Browsing the sources would suggest that \setupexternalfigures[resolution=300] could work, but it doesn't change anything. One also finds \setupsystem[resolution=...], but no effect either. Mojca ___ 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] apos; not working anymore
On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} This seems curious to me. I searched for xmlsetent (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Shouldn't it be there if is meant to be used? Or is it defined somewhere else? Hans van der Meer ___ 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] apos; not working anymore
On 2011-07-04 20:42:17, Hans van der Meer wrote: On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} This seems curious to me. I searched for xmlsetent (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Are you sure? Here with version 2011.06.29 09:57 I get [ 20:46:21 = laokoon@aides = ~/context/tex/texmf-context/tex/context/base] grep -n xmlsetent * lxml-ini.mkiv:343:\def\xmlsetentity#1#2{\ctxlua{xml.registerentity('#1',\!!bs\detokenize{#2}\!!es)}} lxml-ini.mkiv:346:% \xmlsetentity{tex}{\TEX{}} % {} needed Regards, Philipp Shouldn't it be there if is meant to be used? Or is it defined somewhere else? Hans van der Meer ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpqOGar4wdWj.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] apos; not working anymore
Am 04.07.2011 um 20:42 schrieb Hans van der Meer: On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} This seems curious to me. I searched for xmlsetent (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Shouldn't it be there if is meant to be used? Or is it defined somewhere else? lxml-ini.mkiv See also http://www.ntg.nl/pipermail/ntg-context/2011/059718.html 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 to override the print resolution
2011/7/4 Mojca Miklavec mojca.miklavec.li...@gmail.com: pdfTeX supports that with image_resolution 300 in pdftex.cfg for example (but maybe only if resolution is not defined). Yes. It's only used if the image specifies none or it has a crazy value. Best Martin ___ 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] apos; not working anymore
On 4 jul 2011, at 20:51, Wolfgang Schuster wrote: Am 04.07.2011 um 20:42 schrieb Hans van der Meer: On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} This seems curious to me. I searched for xmlsetent (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Shouldn't it be there if is meant to be used? Or is it defined somewhere else? lxml-ini.mkiv See also http://www.ntg.nl/pipermail/ntg-context/2011/059718.html Indeed, some quirk in the searchpath of my BBEdit editor, I found out. Got it now. But there stays the question why the stand ---: patterns of XML are not standard set in the ConTeXt source. I compared the two sources. The newer, not working version has: char-ent.lua, line 694: [apos] = ', -- U+00027 Is it possible this (I see char-ent.lua being added) has ruined the previous behaviour? Hans van der Meer ___ 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] export: graphic within table (error)
\def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi} fixed I just discovered that it was not fixed for my Windows-Minimals (ConTeXt ver: 2011.06.18 14:13 MKIV). Adding the above line makes it work. This is fixed with my Ubuntu-Minimals. I'm confused. Did I miss something in the update-process? -run first-setup.bat Even did run -mtxrun --generate -context --generate to be sure (although I admit that I have no clue what making formats means :D ) Example: \starttext \externalfigure[cow] \stoptext snip--- ! Undefined control sequence. system tex error on line 3 in file bla.mkiv: Undefined control sequence ... 1 \starttext 2 \externalfigure[cow] 3 \stoptext \dodoplaceexternalfigure ...][#4][#5]\dotagfigure \naturalvbox attr \imageat... \doexternalfigure ...value {\??ef \??ef #1}[#3]}}} \globallet \currentresourc... \dotripleemptytwospaced #1#2-#1[{#2}][][] to be read again \stoptext l.3 \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] Fifth ConTeXt meeting, September 2011, France
2010/10/3 Arthur Reutenauer arthur.reutena...@normalesup.org: I hereby announce the next ConTeXt meeting, that will take place on the island of Porquerolles off the coast of the French Riviera, from Monday, September 19th, 2011, to Saturday, September 24th. The conference venue has been pre-booked for these dates, so this is firm. Of course, there is yet nothing like a set program at this moment, so we're expecting your proposals (there will be a formal call for papers later). Watch this page: http://meeting.contextgarden.net/2011/ Only 76 days left. When will we have updates on the web page for - travel information - schedule - payment information - program Best Martin ___ 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] \date bug with french
Le lundi 04 juillet 2011, Wolfgang Schuster a écrit : Am 04.07.2011 um 15:29 schrieb luigi scarso: ok, but there is no the 44th day in July as 44 juillet 2011 said It’s not 44th, it’s 4 + 4th :) I tried some different dates and the number is indeed typed twice every time in french. I think this problem appears recently because it was not the case with ConTeXt - 2011.05.18 22:26 LuaTeX-0.70.1. I still think it’s a bug because it’s not expected to have the day number typed twice when one call \date (in lang-def.mkiv, the date format is declared as \c!date={\v!day+,\v!space,\v!month,\v!space,\v!year for french). core-con.lua: function commands.currentdate(str,currentlanguage) -- j and jj obsolete ... if ordinal and whatordinal then -- commands.ordinal(whatordinal,currentlanguage) context(%s,converters.ordinal(whatordinal,currentlanguage)) end end end I checked my core-con.lua file and there is not the context(%s, ...) command in the currentdate function. Am I missing something ? -- Romain Diss romain.d...@yahoo.fr signature.asc Description: This is a digitally signed message part. ___ 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] apos; not working anymore
Some further observations in comparing code: In the newer source one finds lxml-tab.lua: local function handle_any_entity(str) if a then if type(a) == function then ... a = a(str) or end a = lpegmatch(parsedentity,a) or a ... else versus in the old code: if a then ... a = lpegmatch(parsedentity,a) or a else I cannot easily see through this code, but is it possible that here the cause of not processing apos; and friends correctly can be found? Hans van der Meer On 4 jul 2011, at 21:14, Hans van der Meer wrote: On 4 jul 2011, at 20:51, Wolfgang Schuster wrote: Am 04.07.2011 um 20:42 schrieb Hans van der Meer: On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: Is the entity defined? To create one there are two commands available: - \xmlsetentitiy{…}{…} - \xmltexentitiy{…}{…} This seems curious to me. I searched for xmlsetent (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Shouldn't it be there if is meant to be used? Or is it defined somewhere else? lxml-ini.mkiv See also http://www.ntg.nl/pipermail/ntg-context/2011/059718.html Indeed, some quirk in the searchpath of my BBEdit editor, I found out. Got it now. But there stays the question why the stand ---: patterns of XML are not standard set in the ConTeXt source. I compared the two sources. The newer, not working version has: char-ent.lua, line 694: [apos] = ', -- U+00027 Is it possible this (I see char-ent.lua being added) has ruined the previous behaviour? Hans van der Meer ___ 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] Would Multiple Processes Cause: luatex: execution interrupted
I run context in a task queue with four worker processes. It is possible that context is invoked simultaneously to process distinct input files by tasks running in separate worker processes. I see periodic fatal errors, as follows: mtx-context | fatal error: no return code, message: luatex: execution interrupted However, the same input files can be processed by context directly without errors. Is it possible that context running in simultaneous but separate processes conflict? This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.2 int: english/english ___ 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] Would Multiple Processes Cause: luatex: execution interrupted
On 4 jul. 2011, at 23:24, Raymond LeClair raymond.lecl...@synterein.com wrote: I run context in a task queue with four worker processes. It is possible that context is invoked simultaneously to process distinct input files by tasks running in separate worker processes. I see periodic fatal errors, as follows: mtx-context | fatal error: no return code, message: luatex: execution interrupted That is a 'hard' luatex crash. Because context calls luatex in a subprocess, it can be problematic to find the actual cause, unfortunately. However, the same input files can be processed by context directly without errors. Is it possible that context running in simultaneous but separate processes conflict? Quite possibly (but that is very hard to verify and would be even harder to debug). Best practise is to give each process its own temporary directory, just in case. Best wishes, Taco This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.2 int: english/english ___ 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] Would Multiple Processes Cause: luatex: execution interrupted
Thanks for your reply! On Jul 4, 2011, at 5:35 PM, Taco Hoekwater wrote: Quite possibly (but that is very hard to verify and would be even harder to debug). Best practise is to give each process its own temporary directory, just in case. This is, in fact, guaranteed by design: each file resides in a directly which is named using a uuid. Is it possible that context or luatex are creating files in a common directory, say the cache directory, and access by one process locks the file for access by another? ___ 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 ___