Re: [NTG-context] Problem with WinEdt

2017-09-19 Thread Norbert Melzer
On 19.09.2017 10:41, Ursula Hermann wrote:
> Error Launching Console Application ConTeXt ...
>
> Command Line:   context.exe --synctex=-1 "short.tex"
>
> Startup Folder: D:\My Documents
>
>  
>
> Das System kann die angegebene Datei nicht finden.
>
>  
>
> Whats wrong here? ConTeXt standalone is installed.
>
> Uschi
>

Make sure that you have configured the location of `context.exe`
properly in your editor or configure your PATH environment variable to
point to the location of `context.exe`.

Depending on which way your editor uses to determine the location of the
executable.

If you run it through the command line, of course only adjusting `PATH`
will help.

Mit freundlichen Grüßen (best regards)
  Norbert


signature.asc
Description: OpenPGP digital 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Consistent random number generation

2016-04-06 Thread Norbert Melzer
In programming usually a (non-crypto-safe) RNG returns the same sequence
everytime it is started with the same seed. Therefore, you often seed with
the current time if you do not want to have reproducable sequences and use
a specific seed when you want reproducable results across certain runs.

There are meany causes to want to have this deterministic “randomnes”:

* As mentioned in this thread: reproducable results across different
systems, OSs and architectures
* Certain kinds of games do transfer/save a base seed instead of the
randomly generated level to save bandwith/diskspace

There are more examples, but in the end, they all rely on reproducing the
sequence over multiple architectures to recreate something exactly the same
way it was before.



Alan BRASLAU  schrieb am Mi., 6. Apr. 2016 um
03:01 Uhr:

> On Tue, 5 Apr 2016 17:43:53 -0400
> Aditya Mahajan  wrote:
>
> > Is it possible to generate consistent random numbers across multiple
> > operating systems.
>
> Then they are not random!
>
> Why not save your chosen "random" paths to files?
>
> Alan
>
> ___
> 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] The `\somewhere`-macro

2015-08-27 Thread Norbert Melzer
Repost...

Norbert Melzer  schrieb am Sa., 08.08.2015, 18:06:

> The wiki states on page
> http://wiki.contextgarden.net/Latex_Packages#varioref that the macro
> `\somewhere` can be used to get same behaviour as varioref gives in LaTeX:
>
> > varioref
> > Context provides similar functionality using \somewhere
>
> Some more searching around made me find
> http://wiki.contextgarden.net/Command/somewhere
>
> There I can see, that I have to provide 2 text-arguments in curly braces
> and the references name in squarebrackets.
>
> So I did exactly that in an experiment.
>
> \somewhere{Foo}{Bar}[foo:bar]
>
> This does create a clickable “Foo” when the reference exists somewhere in
> the document, independent off the fact that this reference is on the same
> page or anywhere else.
>
> When the reference does not exists, “foo:bar” is typeset.
>
> I am using:
>
> ```plain
> $ context --version
>
> mtx-context | ConTeXt Process Management 0.61
> mtx-context |
> mtx-context | main context file:
> /usr/local/texlive/2015/texmf-dist/tex/context/base/context.mkiv
> mtx-context | current version: 2015.05.18 12:26
> ```
>
> Example:
>
> ```tex
> \setupinteraction[state=start]
>
> \starttext
> \startsection[title={Foo-Bar},reference={foo:bar}]
>   Blubberblubb, \somewhere{Foo}{Bar}[foo:bar].
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \input knuth
>
>   \somewhere{Foo}{Bar}[foo:bar].
> \stopsection
>
> \startsection[title={Bar},reference={bar:foo}]
>   \somewhere{Foo}{Bar}[foo:bar].
> \stopsection
> \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
___

[NTG-context] The `\somewhere`-macro

2015-08-08 Thread Norbert Melzer
The wiki states on page
http://wiki.contextgarden.net/Latex_Packages#varioref that the macro
`\somewhere` can be used to get same behaviour as varioref gives in LaTeX:

> varioref
> Context provides similar functionality using \somewhere

Some more searching around made me find
http://wiki.contextgarden.net/Command/somewhere

There I can see, that I have to provide 2 text-arguments in curly braces
and the references name in squarebrackets.

So I did exactly that in an experiment.

\somewhere{Foo}{Bar}[foo:bar]

This does create a clickable “Foo” when the reference exists somewhere in
the document, independent off the fact that this reference is on the same
page or anywhere else.

When the reference does not exists, “foo:bar” is typeset.

I am using:

```plain
$ context --version

mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | main context file:
/usr/local/texlive/2015/texmf-dist/tex/context/base/context.mkiv
mtx-context | current version: 2015.05.18 12:26
```

Example:

```tex
\setupinteraction[state=start]

\starttext
\startsection[title={Foo-Bar},reference={foo:bar}]
  Blubberblubb, \somewhere{Foo}{Bar}[foo:bar].

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \input knuth

  \somewhere{Foo}{Bar}[foo:bar].
\stopsection

\startsection[title={Bar},reference={bar:foo}]
  \somewhere{Foo}{Bar}[foo:bar].
\stopsection
\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] Evaluating a Lua expression at the end

2015-04-13 Thread Norbert Melzer
Sorry, wrong recipient...
Am 13.04.2015 14:05 schrieb "Norbert Melzer" :

> If it is possible I'd like to wait for the idris book and get that one. If
> that's not possible I'm interested in http://www.manning.com/blackheath/
> Am 13.04.2015 13:54 schrieb "Kumar Appaiah" :
>
>> Hi.
>>
>> I am trying to set up a system where I can use Lua to find a total
>> that I can display at the end. For example, if I set a question paper,
>> after each question, I do a \directlua{total = total + 4}, assuming
>> this question has 4 points. At the top of my document, I now want to
>> say "Total points:" and display the value of total.
>>
>> Now, naturally, using \directlua gives me 0, since total is 0 at the
>> beginning. But \latelua didn't seem to be what I am looking for. Could
>> someone please guide me in the right direction?
>>
>> Thanks.
>>
>> Kumar
>>
>> ___
>> 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] Evaluating a Lua expression at the end

2015-04-13 Thread Norbert Melzer
If it is possible I'd like to wait for the idris book and get that one. If
that's not possible I'm interested in http://www.manning.com/blackheath/
Am 13.04.2015 13:54 schrieb "Kumar Appaiah" :

> Hi.
>
> I am trying to set up a system where I can use Lua to find a total
> that I can display at the end. For example, if I set a question paper,
> after each question, I do a \directlua{total = total + 4}, assuming
> this question has 4 points. At the top of my document, I now want to
> say "Total points:" and display the value of total.
>
> Now, naturally, using \directlua gives me 0, since total is 0 at the
> beginning. But \latelua didn't seem to be what I am looking for. Could
> someone please guide me in the right direction?
>
> Thanks.
>
> Kumar
>
> ___
> 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] Is there a way to completely remove all auxiliary and resulting files?

2015-03-24 Thread Norbert Melzer
Is there a way to completely delete all files, that were created during a
context run?

Similar to the `-c`/`-C` options in `latexmk`?

I could create a script using bat/sh but I would prefer to not have to
maintain 2 cleanscripts for the different environments that are used to
create the 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] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
2015-03-21 14:33 GMT+01:00 Mikael P. Sundqvist :
>
>\startitemize[columns]
>   \item a
>   \item b
>   \item c
>   \item d
>   \item e
>   \item f
> \stopitemize
> \stoptext
>

This one works. Thank you!

 Is there a way to have other column count than 2?
___
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] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
The MWE at the end of this mail typesets something like this:

* a  * e
* b  * f
* c
* d

But I'd expect something like this:

* a  * d
* b  * e
* c  * f

How can I get expected output?

```tex
\starttext
  \startcolumns[n=2]
\startitemize
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
  \stopcolumns
\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] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
OK, took me a while to figure out that this was not an empty response but
an attachement was available ;)

I did a quick test run and realized that it seems to do what I want, I'll
take a further look into it tommorrow, thank you!

2015-03-20 17:23 GMT+01:00 Hans Hagen :

> On 3/20/2015 12:05 PM, Norbert Melzer wrote:
>
>> Hi!
>>
>> I have trouble to define macros which are only visible inside a block
>> defined using `\definestartstop`:
>>
>> ```tex
>> \setuppapersize[A6]
>> \definestartstop[Foo][before={Foo}]
>> \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]
>> %\definestartstop[Baz][before={\bgroup\define[1]\Foo{Foo#1}}
>> ,after={\egroup}]
>>
>> \starttext
>>\startFoo
>>  Bar
>>\stopFoo
>>
>>\startBar
>>  \Foo Bar
>>\stopBar
>>
>> %  \startBaz
>> %\Foo{Bar}
>> %  \stopBaz
>> \stoptext
>> ```
>>
>> The code as above works and typesets "FooBar" on two separate lines. But
>> if I uncomment everything `Baz`-related, I end up with the following
>> error:
>>
>> ```plain
>> tex error   > error on line 4 in file C:/HIDDEN/mwe.tex: ! Illegal
>>   parameter number in definition of \m_syst_action_yes
>> 
>> 1
>>  ...{Baz}][{before={\bgroup \define [1]\Foo {Foo##1
>>}},after={\egroup }}]
>> \doifnextoptionalelse ...ef \m_syst_action_yes {#1
>>}\def
>> \m_syst_action_nop {...
>> l.4 ...bgroup\define[1]\Foo{Foo#1}},after={\egroup}]
>>   1 \setuppapersize[A6]
>>   2 \definestartstop[Foo][before={Foo}]
>>   3
>> \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]
>>   4 >>
>>   \definestartstop[Baz][before={\bgroup\define[1]\Foo{Foo#1}},
>> after={\egroup}]
>>   5
>>   6 \starttext
>>   7   \startFoo
>>   8 Bar
>>   9   \stopFoo
>> 10
>> 11   \startBar
>> 12 \Foo Bar
>> 13   \stopBar
>> 14
>> ```
>>
>> Can someone help me get this running?
>>
>>
>> 
>> ___
>> 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
>> 
>> ___
>>
>>
>
> --
>
> -
>   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
>
> ___
>
___
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] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
Hi!

I have trouble to define macros which are only visible inside a block
defined using `\definestartstop`:

```tex
\setuppapersize[A6]
\definestartstop[Foo][before={Foo}]
\definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]
%\definestartstop[Baz][before={\bgroup\define[1]\Foo{Foo#1}},after={\egroup}]

\starttext
  \startFoo
Bar
  \stopFoo

  \startBar
\Foo Bar
  \stopBar

%  \startBaz
%\Foo{Bar}
%  \stopBaz
\stoptext
```

The code as above works and typesets "FooBar" on two separate lines. But if
I uncomment everything `Baz`-related, I end up with the following error:

```plain
tex error   > error on line 4 in file C:/HIDDEN/mwe.tex: ! Illegal
 parameter number in definition of \m_syst_action_yes





1

 ...{Baz}][{before={\bgroup \define [1]\Foo {Foo##1

  }},after={\egroup }}]

\doifnextoptionalelse ...ef \m_syst_action_yes {#1

  }\def \m_syst_action_nop
{...
l.4 ...bgroup\define[1]\Foo{Foo#1}},after={\egroup}]





 1 \setuppapersize[A6]

 2 \definestartstop[Foo][before={Foo}]

 3
\definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]

 4 >>
 \definestartstop[Baz][before={\bgroup\define[1]\Foo{Foo#1}},after={\egroup}]

 5

 6 \starttext

 7   \startFoo

 8 Bar

 9   \stopFoo

10

11   \startBar

12 \Foo Bar

13   \stopBar

14

```

Can someone help me get this running?
___
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] [MetaFun] Decorating running text

2015-03-18 Thread Norbert Melzer
Hi there!

I have some text (a single word) which I want to decorate using MP.

In this special case, I want to put a little crown above the "g" in the
word "Shogun". Also the crown and text should get scaled accordingly to the
surrounding text.

```tex
\define\Shogun{\startMPcode draw textext("Shogun") \stopMPcode}

\starttext
  The word \Shogun\ shall be decorated with the crown shown in
fig~\in[fig:crown]:

  \placefigure[here][fig:crown]{The crown that shall decorate the \quote{g}
in \quotation{Shogun}}{
  \startMPcode
fill
(-20,-17.5)--(20,-17.5)--(30,12.5)--(10,-2.5)--(0,17.5)--(-10,-2.5)--(-30,12.5)--cycle
  withcolor yellow ;
  \stopMPcode }
\stoptext
```

I wanted to try to draw the text using MPs draw, but then the baselines
doesn't match as you can see in the example. Also I don't know how I could
ensure that the text and the crown would crow accordingly to the
surrounding text.
___
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] MetaPost, specifiy max width of a text?

2015-03-18 Thread Norbert Melzer
Hi there!

Is there a way to specify the with of a text so that the text gets wrapped?
Something simalar to the following TikZ-Example (wrapped in ConTeXt):

```tex
\usemodule[tikz]
\starttext
  \starttikzpicture
\draw (0, 0) node[text width=2.5cm,align=center] {Start new Game};
  \stoptikzpicture

  \startMPcode
draw "Start new Game" infont defaultfont scaled defaultscale;
  \stopMPcode
\stoptext
```

TIA
Norbert
___
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] component not included

2015-03-12 Thread Norbert Melzer
According toll my observations, you need to reference the needed parts
inside of the \start... and \stop..., so your product would become:


```
\startproduct pd-medizin
\project pj-medizin
\component test
\stopproduct
```

You also have to restructure the other files, so that \start... is the
first and \stop... the last command in the files.


HTH
Norbert
Am 12.03.2015 13:43 schrieb "Wolfgang Schuster" :

>
> > Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini <
> w...@musensturm.de>:
> >
> > Hallo,
> >
> > I am trying to start a new project with the following test files:
> >
> > --env-medizin.tex---
> > \startenvironment env-medizin
> > \mainlanguage[deo]
> > \enableregime[utf]
> > \setupbodyfont[sans,11pt]
> > \setuplanguage[deo][leftquote=\guilsingleright,
> >rightquote=\guilsingleleft,
> >leftquotation=\rightguillemot,
> >rightquotation=\leftguillemot]
> >
> > \setupwhitespace[medium]
> > \stopenvironment
> > --pj-medizin.tex---
> > \environment env-medizin
> > \startproject pj-medizin
> > \product pd-medizin
> > \stopproject
> > --pd-medizin.tex---
> > \project pj-medizin
> > \startproduct pd-medizin
> > \component test
> > \stopproduct
> > --test.tex---
> > \project pj-medizin
> > \product pd-medizin
> > \startcomponent test
> > test
> > \stopcomponent
> > -
> >
> > I compile the product. But I get nothing. test.tex is not included.
> > What I am doing wrong?
>
> Ignore the project file and load the environment file instead at the begin
> of your product and component files.
>
> 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] Link to mentions in listof and to listof in mentions?

2015-03-12 Thread Norbert Melzer
Has this been overheard in the noise of the last days or is there simply no
way (currently) to achieve my goal?
Am 10.03.2015 12:25 schrieb "Norbert Melzer" :

> Hi!
>
> Given the following ME, is there a way, that the use of `\AI` links to the
> corresponding entry in the `\listofabbrevs` and also that there is a comma
> separated list of pages which mention `\AI`, just as the acronym portion of
> LaTeXs glossaries does?
>
> ```tex
> \setupinteraction[state=start]
> \definesynonyms[abbrev][abbrevs][\longform]
> \abbrev{AI}{Artificial Intelligence}
> \starttext
> \AI
>
> \completelistofabbrevs
> \stoptext
> ```
>
> TIA
> Norbert
>
___
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] Sourcemirror at gitorious is closing down, where to find it then?

2015-03-12 Thread Norbert Melzer
Since gitorious got acquired by gitlab it will shut down its service end of
May 2015 (https://about.gitlab.com/2015/03/03/gitlab-acquires-gitorious/).

Where will ConTeXts source mirror be hosted then?

Will it get transfered over to gitlab? Github? Bitbucket? Sourceforge?
Somewhere else?
___
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] TikZ is colored despite having \setupcolors[state=stop]

2015-03-10 Thread Norbert Melzer
2015-03-10 12:24 GMT+01:00 Hans Hagen :

> On 3/10/2015 12:10 PM, Norbert Melzer wrote:
>
>> I've posted the same question on TE already:
>> http://tex.stackexchange.com/questions/232158/tikz-is-
>> colored-despite-having-setupcolorsstate-stop
>>
>> Text of the question:
>>
>> In the following MWE I get a red square, but I want it to be gray, as in
>> the also provided LaTeX-document:
>>
>> ```tex
>> % ConTeXt MWE
>> \setupcolors[state=stop]
>> \usemodule[tikz]
>>
>> \starttext
>> \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
>> \stoptext
>> ```
>>
>> ```
>> % LaTeX-document wich does what I want
>> \PassOptionsToPackage{gray}{xcolor}
>> \documentclass{article}
>> \usepackage{tikz}
>> \begin{document}
>> \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
>> \end{document}
>> ```
>>
>
> The state=stop will only affect tikz when it uses the context color
> handling.


How can I convince TikZ to use ConTeXts colorhandling?


> One of the relevant status variables is:
>
> \c_colo_enabled
>
> \ifcase\c_colo_enabled
>   yes
> \else
>   no
> \fi
>
> assuming that _ is a character
>

I don't understand what you exactly want to tell me with this. I assume you
don't mean to copy-paste that literally into my env-file, but what to do
exactly with that snippet?
___
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] Link to mentions in listof and to listof in mentions?

2015-03-10 Thread Norbert Melzer
Hi!

Given the following ME, is there a way, that the use of `\AI` links to the
corresponding entry in the `\listofabbrevs` and also that there is a comma
separated list of pages which mention `\AI`, just as the acronym portion of
LaTeXs glossaries does?

```tex
\setupinteraction[state=start]
\definesynonyms[abbrev][abbrevs][\longform]
\abbrev{AI}{Artificial Intelligence}
\starttext
\AI

\completelistofabbrevs
\stoptext
```

TIA
Norbert
___
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] TikZ is colored despite having \setupcolors[state=stop]

2015-03-10 Thread Norbert Melzer
I've posted the same question on TE already:
http://tex.stackexchange.com/questions/232158/tikz-is-colored-despite-having-setupcolorsstate-stop

Text of the question:

In the following MWE I get a red square, but I want it to be gray, as in
the also provided LaTeX-document:

```tex
% ConTeXt MWE
\setupcolors[state=stop]
\usemodule[tikz]

\starttext
\tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
\stoptext
```

```
% LaTeX-document wich does what I want
\PassOptionsToPackage{gray}{xcolor}
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
\end{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
___