Re: [NTG-context] typesetting information from git

2018-02-23 Thread Schmitz Thomas A.
> On 23. Feb 2018, at 22:00, Hans Hagen wrote: > > maybe you mean > > \startluacode > > context.setupdocument { >gitversion = string.strip( >os.resultof("git --no-pager log --pretty='%h of %aD' -1 " .. > environment.jobfilefullname) or "") > } > > \stopluacode >

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
On 2/23/2018 9:38 PM, Schmitz Thomas A. wrote: Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
On 2/23/2018 9:38 PM, Schmitz Thomas A. wrote: Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like

[NTG-context] typesetting information from git

2018-02-23 Thread Schmitz Thomas A.
Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like "git revision b085c92a of Wed, 14 Feb 2018 12:49:35

Re: [NTG-context] Problem with Lua: context.component()

2018-02-23 Thread Hans Hagen
On 2/23/2018 3:26 PM, Procházka Lukáš Ing. wrote: Hello, suppose having: t1.mkiv \starttext   a   \startluacode     context.setvalue("b", "bbb")     context.setvalue("c", 2)     context.component("t2.mkiv")   \stopluacode \stoptext and t2.mkiv \startcomponent *   \b\c

[NTG-context] Problem with Lua: context.component()

2018-02-23 Thread Procházka Lukáš Ing .
Hello, suppose having: t1.mkiv \starttext a \startluacode context.setvalue("b", "bbb") context.setvalue("c", 2) context.component("t2.mkiv") \stopluacode \stoptext and t2.mkiv \startcomponent * \b\c \stopcomponent I get no result when trying to

Re: [NTG-context] Problem with a macro

2018-02-23 Thread Wolfgang Schuster
Fabrice Couvreur 22. Februar 2018 um 22:15 Hi, How to make the numbers of the integral are on the right with the macro of Hans ? The position of the limits are fixed for the \autointegral command. Wolfgang

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Wolfgang Schuster
Henning Hraban Ramm 23. Februar 2018 um 14:38 I tried to add the example to the garden, but at least there it doesn’t work: http://wiki.contextgarden.net/Columns As soon as I use \setupcolors, I get only a single column or the example doesn’t compile at all. Strange.

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Henning Hraban Ramm
I tried to add the example to the garden, but at least there it doesn’t work: http://wiki.contextgarden.net/Columns As soon as I use \setupcolors, I get only a single column or the example doesn’t compile at all. Strange. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Gerard
Thanks Thomas, I use Texworks with Context (pdftex)... With the code below, I get the text in blue and separator in red. See the command \setupcolors[textcolor=red] and \color[blue] before \startcolumns. Gérard --- exemple basique- \enableregime[utf-8] \mainlanguage[fr]

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Schmitz Thomas A.
> On 23. Feb 2018, at 12:04, Gerard wrote: > > Why does not work "rulecolor" in my example below ? it keeps the color of > textcolor... > > The other options of setcolumns (background...) work well but I fail on that > one. Have I understood everything? > If you look into

[NTG-context] rulecolor in columns

2018-02-23 Thread Gerard
Hi, Why does not work "rulecolor" in my example below ? it keeps the color of textcolor... The other options of setcolumns (background...) work well but I fail on that one.Have I understood everything? I am able to use ConTexT enough. Take a look at my little newspaper