Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Mojca Miklavec
On Wed, Mar 23, 2011 at 20:08, Ulrike Fischer wrote: At second I want actually to add more than one tree ;-) My main problem is that there quite a lot of configuration files which look like good candidates (I found texmf.cnf, texmfcnf.lua, context.cnt, contextcnf.lua.) and that I don't know

[NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi all, I have a document in which I must draw several triangles for which two summits, say z0, z1, and the length of the two other sides are known, so that the third summit, say z2, is completly determined. In order to draw one triangle the following works fine: \setupcolors[state=start]

[NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
I would like to use the date of the document in the generated PDF. (It is not interesting when the PDF is generated, but when the source was last changed.) How would I do this? -- Cecil Westerhof ___ If your question

Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Hans Hagen
On 24-3-2011 7:57, Mojca Miklavec wrote: On Wed, Mar 23, 2011 at 20:08, Ulrike Fischer wrote: At second I want actually to add more than one tree ;-) My main problem is that there quite a lot of configuration files which look like good candidates (I found texmf.cnf, texmfcnf.lua, context.cnt,

Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Ulrike Fischer
Am Thu, 24 Mar 2011 07:57:36 +0100 schrieb Mojca Miklavec: At second I want actually to add more than one tree ;-) My main problem is that there quite a lot of configuration files which look like good candidates (I found texmf.cnf, texmfcnf.lua, context.cnt, contextcnf.lua.) and that I

Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Mojca Miklavec
On Thu, Mar 24, 2011 at 10:39, Ulrike Fischer wrote: It seems to work if I move texmfcnf.lua to texmf-local (even unchanged it had an immediate effect: nothing worked anymore, until I run a mtxrun --generate ;-).) Now I have to find out, where to store the files so that both context and

[NTG-context] search path for require(...)

2011-03-24 Thread Ulrike Fischer
I'm trying to store the virtual lua chess fonts I'm currently creating so that latex and context can use them. 1. At first I stored the vf-chess-XX.lua in tex/luatex. This works for latex but not for context. tex/generic works for both. 2. My fonts loads a lua-file which should be shared by

[NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Cecil Westerhof
When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that by \item the first paragraph also has no indentation? -- Cecil Westerhof

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is there a solution with mkii? May I ask one more question? In the macro you wrote

Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Ulrike Fischer
Am Thu, 24 Mar 2011 10:45:55 +0100 schrieb Mojca Miklavec: On Thu, Mar 24, 2011 at 10:39, Ulrike Fischer wrote: It seems to work if I move texmfcnf.lua to texmf-local (even unchanged it had an immediate effect: nothing worked anymore, until I run a mtxrun --generate ;-).) Now I have to

Re: [NTG-context] search path for require(...)

2011-03-24 Thread Philipp Gesang
On 2011-03-24 10:50:58, Ulrike Fischer wrote: I'm trying to store the virtual lua chess fonts I'm currently creating so that latex and context can use them. 1. At first I stored the vf-chess-XX.lua in tex/luatex. This works for latex but not for context. tex/generic works for both. 2.

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Philipp Gesang
On 2011-03-24 10:26:00, Cecil Westerhof wrote: I would like to use the date of the document in the generated PDF. (It is not interesting when the PDF is generated, but when the source was last changed.) How would I do this? Hi Cecil, this solution checks only the main file, you’d have to

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Stefan Müller
On 24.03.2011 10:57, Otared Kavian wrote: Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is there a solution with mkii? Then just drop

Re: [NTG-context] search path for require(...)

2011-03-24 Thread Ulrike Fischer
Am Thu, 24 Mar 2011 11:14:00 +0100 schrieb Philipp Gesang: I'm trying to store the virtual lua chess fonts I'm currently creating so that latex and context can use them. 1. At first I stored the vf-chess-XX.lua in tex/luatex. This works for latex but not for context. tex/generic works for

[NTG-context] MLA Workscited example no longer works

2011-03-24 Thread John Haltiwanger
This worked fine when compiling my thesis last year. -- test-workscited.tex % for bibliographic entries % following hanging indent code (also in workscited) taken from % http://www.ntg.nl/pipermail/ntg-context/2004/005280.html % [NTG-context] Re: Again: hanging for a lot of paragraphs? % ~

Re: [NTG-context] search path for require(...)

2011-03-24 Thread Philipp Gesang
On 2011-03-24 11:34:21, Ulrike Fischer wrote: Am Thu, 24 Mar 2011 11:14:00 +0100 schrieb Philipp Gesang: I'm trying to store the virtual lua chess fonts I'm currently creating so that latex and context can use them. 1. At first I stored the vf-chess-XX.lua in tex/luatex. This works

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de On 2011-03-24 10:26:00, Cecil Westerhof wrote: I would like to use the date of the document in the generated PDF. (It is not interesting when the PDF is generated, but when the source was last changed.) How would I do this? this

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Marco
On 2011-03-24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: This should also work: \starttext \startluacode function modification_date (file) local f = file local attr = lfs.attributes (f) assert (type(attr) == table) if attr.mode ~= directory then return

Re: [NTG-context] search path for require(...)

2011-03-24 Thread Ulrike Fischer
Am Thu, 24 Mar 2011 11:50:47 +0100 schrieb Philipp Gesang: (You’re going to have to declare the table “chessfss” globally for this to work.) The chessfss.lua has a return Table at the end which declares the table chessfss. To quote from

Re: [NTG-context] How to add a local texmf tree to context minimals?

2011-03-24 Thread Mojca Miklavec
On Thu, Mar 24, 2011 at 11:08, Ulrike Fischer ne...@nililand.de wrote: Am Thu, 24 Mar 2011 10:45:55 +0100 schrieb Mojca Miklavec: On Thu, Mar 24, 2011 at 10:39, Ulrike Fischer wrote: It seems to work if I move texmfcnf.lua to texmf-local (even unchanged it had an immediate effect: nothing

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan, Thanks for your explanations: everything works as expected and your solution is very instructive for me. Later this weekend I'll put it on the wiki. Have a nice day. Best regards: OK On 24 mars 2011, at 11:29, Stefan Müller wrote: On 24.03.2011 10:57, Otared Kavian wrote: Hi

Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Stefan Müller wrote: On 24.03.2011 10:57, Otared Kavian wrote: Hi Stefan, Thanks for the quick answer and solution! Your solution works perfectly in mkiv; however typesetting with mkii results in ! Undefined control sequence. l.3 \startMPdefinitions Is

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Cecil Westerhof wrote: When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that by \item the first paragraph also has no indentation? See

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Aditya Mahajan wrote: On Thu, 24 Mar 2011, Cecil Westerhof wrote: When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that by \item the first paragraph also has no indentation?

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Wolfgang Schuster
Am 24.03.2011 um 15:29 schrieb Aditya Mahajan: On Thu, 24 Mar 2011, Aditya Mahajan wrote: On Thu, 24 Mar 2011, Cecil Westerhof wrote: When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Cecil Westerhof
2011/3/24 Aditya Mahajan adit...@umich.edu On Thu, 24 Mar 2011, Cecil Westerhof wrote: When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that by \item the first paragraph also has no

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Cecil Westerhof wrote: 2011/3/24 Aditya Mahajan adit...@umich.edu On Thu, 24 Mar 2011, Cecil Westerhof wrote: When using \startitemize … \stopitemize there is no indent for the first paragraph when using \head, but there is when using \item. How can I make that by

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Marco net...@lavabit.com On 2011-03-24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: This should also work: \starttext \startluacode function modification_date (file) local f = file local attr = lfs.attributes (f) assert (type(attr) == table) if

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Cecil Westerhof wrote: 2011/3/24 Marco net...@lavabit.com On 2011-03-24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: This should also work: \starttext \startluacode function modification_date (file) local f = file local attr = lfs.attributes (f)

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Aditya Mahajan adit...@umich.edu \getdate would return os.date(%Y-%m-%d,attr.modification) and \getdate{long} would return os.date(%Y-%m-%d %H:%M,attr.modification) I have looked at lua, but do not see how to do it. (Something else to learn.) I would like to do something

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Wolfgang Schuster
Am 24.03.2011 um 17:29 schrieb Cecil Westerhof: \def\getdate% {\dosinglegroupempty\dogetdate} \def\dogetdate#1% {context{modification_date(\jobname.tex, #1)}} \def\getdate {\dosingleempty\dogetdate} \def\dogetdate[#1]% {\ctalua{context(modification_date(\jobname.tex, #1))}}

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 24.03.2011 um 17:29 schrieb Cecil Westerhof: \def\getdate% {\dosinglegroupempty\dogetdate} \def\dogetdate#1% {context{modification_date(\jobname.tex, #1)}} \def\getdate {\dosingleempty\dogetdate}

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Philipp Gesang
On 2011-03-24 18:15:31, Cecil Westerhof wrote: 2011/3/24 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 24.03.2011 um 17:29 schrieb Cecil Westerhof: \def\getdate% {\dosinglegroupempty\dogetdate} \def\dogetdate#1% {context{modification_date(\jobname.tex, #1)}}

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Marco
On 2011-03-24 Cecil Westerhof cldwester...@gmail.com wrote: \def\dogetdate[#1]% {\ctalua{context(modification_date(\jobname.tex, #1))}} ^^^ Try \ctxlua … Marco ___ If your question is of

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Cecil Westerhof
2011/3/24 Aditya Mahajan adit...@umich.edu paragraph when using \head, but there is when using \item. How can I make that by \item the first paragraph also has no indentation? See http://wiki.contextgarden.net/Indentation#Setting_up_indentation_inside_environments What you need is

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Wolfgang Schuster
Am 24.03.2011 um 18:26 schrieb Cecil Westerhof: \startitemize \item Alleen een test This is the paragraph which is not indented. \input knuth This starts the second paragraph which is now indented. There is nothing wrong here. To prevent indentation you can add \noindentation

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Florian Wobbe
\def\getdate {\dosingleempty\dogetdate} \def\dogetdate[#1]% {\ctalua{context(modification_date(\jobname.tex, #1))}} How would you automatically find out the filename which the macro is called from? For instance if the file with the macro is included in a master document. Florian

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de {\ctalua{context(modification_date(\jobname.tex, #1))}} ^ s/\\ctalua/\\ctxlua/ I have: \startluacode function modification_date(file, format) local f= file local attr = lfs.attributes(f) assert

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Cecil Westerhof
2011/3/24 Wolfgang Schuster schuster.wolfg...@googlemail.com \startitemize \item Alleen een test This is the paragraph which is not indented. \input knuth This starts the second paragraph which is now indented. There is nothing wrong here. To prevent indentation you can

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Florian Wobbe wrote: \def\getdate {\dosingleempty\dogetdate} \def\dogetdate[#1]% {\ctalua{context(modification_date(\jobname.tex, #1))}} How would you automatically find out the filename which the macro is called from? For instance if the file with the macro is

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Philipp Gesang
On 2011-03-24 18:42:12, Cecil Westerhof wrote: 2011/3/24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de {\ctalua{context(modification_date(\jobname.tex, #1))}} ^ s/\\ctalua/\\ctxlua/ I have: \startluacode function modification_date(file, format) local f

Re: [NTG-context] No indent with first paragraph with \item

2011-03-24 Thread Wolfgang Schuster
Am 24.03.2011 um 18:46 schrieb Cecil Westerhof: Then the first paragraph of knuth is not indented by head, but is indented by item. This I find not consistent. I would prefer item to work like head. \item ≠ \head If both would behave the same way there is no need to have two commands.

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Florian Wobbe
How would you automatically find out the filename which the macro is called from? For instance if the file with the macro is included in a master document. \inputfilename So, if you want the name of the file in which this macro is defined in, then something like this should work:

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Hans Hagen
On 24-3-2011 6:30, Marco wrote: On 2011-03-24 Cecil Westerhofcldwester...@gmail.com wrote: \def\dogetdate[#1]% {\ctalua{context(modification_date(\jobname.tex, #1))}} ^^^ Try \ctxlua … or \cldcontext{modification_date(\jobname.tex, #1)} but ... is it clever to

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de \getdate \getdate{short} \getdate[long] \getdate[nil] \getdate[false] In context optional args are specified in brackets. I had tried \getdate[long], but the quotes where wrong. It’s all documented on the wiki:

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Aditya Mahajan
On Thu, 24 Mar 2011, Florian Wobbe wrote: How would you automatically find out the filename which the macro is called from? For instance if the file with the macro is included in a master document. \inputfilename So, if you want the name of the file in which this macro is defined in, then

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Florian Wobbe
Thanks, nice! I suppose the filename is also directly reachable from inside \startluacode ... \stopluacode. How? \start-stop luacode expands its contents. So, the following should work (untested) \startluacode thisfilename = \thisfilename.tex \stopluacode No, that is not what I

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Cecil Westerhof
2011/3/24 Cecil Westerhof cldwester...@gmail.com \startluacode function modification_date(file, format) local f= file local attr = lfs.attributes(f) assert (type(attr) == table) if attr.mode ~= directory then if format == long then return

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Hans Hagen
On 25-3-2011 12:08, Cecil Westerhof wrote: I made the code a little better: \startluacode os.setlocale(nl_NL) blocked in mkiv to prevent unwanted side effects and that will stay function modification_date(file, format) local f= file local attr = lfs.attributes(f) why

[NTG-context] ConTeXt user manual: typo: componentonderdeel

2011-03-24 Thread Paul Menzel
Dear ConTeXt user manual editors, in table 2.1 on page 19 in the ConTeXt user manual [1] in chapter 2 »Documents« there seems to be a space missing and the Dutch word is appended to the command. \componentonderdeel name Thanks, Paul PS: Will an updated version be published

Re: [NTG-context] ConTeXt user manual: typo: componentonderdeel

2011-03-24 Thread Paul Menzel
Dear ConTeXt user manual editors, Am Freitag, den 25.03.2011, 00:31 +0100 schrieb Paul Menzel: in table 2.1 on page 19 in the ConTeXt user manual [1] in chapter 2 »Documents« there seems to be a space missing and the Dutch word is appended to the command. \componentonderdeel name

Re: [NTG-context] ConTeXt user manual: typo: componentonderdeel

2011-03-24 Thread Paul Menzel
Dear ConTeXt user manual editors, Am Freitag, den 25.03.2011, 01:03 +0100 schrieb Paul Menzel: Am Freitag, den 25.03.2011, 00:31 +0100 schrieb Paul Menzel: in table 2.1 on page 19 in the ConTeXt user manual [1] in chapter 2 »Documents« there seems to be a space missing and the Dutch word

[NTG-context] structure: products and subfolders

2011-03-24 Thread Paul Menzel
Dear ConTeXt folks, following [1] I do not get any PDF output running `context project.tex`. The product files are in a subfolder. I verified that first with [2] in a flat structure and then adding a subfolder where no output is created. Executing ConTeXt with the seperate product files as an

Re: [NTG-context] Use date of the tex file in the document

2011-03-24 Thread Philipp Gesang
On 2011-03-25 00:30:40, Hans Hagen wrote: On 25-3-2011 12:08, Cecil Westerhof wrote: I made the code a little better: \startluacode os.setlocale(nl_NL) blocked in mkiv to prevent unwanted side effects and that will stay Still, one can access context’s language substitution tables to

Re: [NTG-context] structure: products and subfolders

2011-03-24 Thread Wolfgang Schuster
Am 25.03.2011 um 01:31 schrieb Paul Menzel: Dear ConTeXt folks, following [1] I do not get any PDF output running `context project.tex`. The product files are in a subfolder. I verified that first with [2] in a flat structure and then adding a subfolder where no output is created.