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
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]
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
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,
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
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
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
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
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
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
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.
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
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
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
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?
% ~
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
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
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
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
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
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
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
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
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?
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
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
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
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
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)
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
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))}}
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}
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)}}
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
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
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
\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
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
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
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
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
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.
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:
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
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:
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
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
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
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
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
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
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
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
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
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.
55 matches
Mail list logo