Re: [NTG-context] Are nested sections possible?

2016-05-19 Thread docent.einstein

Zdravim Lukasi,
 
Nejsem si jisty, zda se nemylim, ale pokud jsi z Brna, pak bych Te rad 
pozdravil.
 
Radek Pysny
 
__

Od: Procházka Lukáš Ing. 
Komu: "mailing list for ConTeXt users" 
Datum: 14.03.2016 09:05
Předmět: Re: [NTG-context] Are nested sections possible?


Hello,

one more thing:

It would be nice to allow mixing:

- \section like commands (or \startsection ... \stopsection)
- AND \startsectionlevel ... \stopsectionlevel.

The main problem is that one may NEED to mix:

- (ancient) source files which use \section (deprecated) style
- with more versatile \start-\stopsectionlevel style in newer source files.

See the test attached - only the case 3 works universally with the 
\start-\stopstructurelevel;
any mixing of sectioning styles doesn't yield a desired result.

Best regards,

Lukas


On Sat, 12 Mar 2016 01:53:18 +0100, Alan BRASLAU  wrote:

> On Fri, 11 Mar 2016 09:36:01 +0100
> Pablo Rodriguez  wrote:
>
>> Sorry, Mica, but which is the gain in nesting sections (whether
>> possible or not) over using subsections and subsubsections?
>>
>> I can hardly imagine the sense in the point you’re making. (Sorry, it
>> must be my fault.)
>
> Think about including source in another source, for example.
>
> Say one has an article that becomes a book, or gets included in a book,
> or the book gets parts. In the course of writing, one might decide to
> add an additional level of structure and not want to change all of the
> \start...\stop structure definitions.
>
> In fact, using fixed section, subsection, subsubsection is a bit
> antiquated, isn't it?
>
> 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 
> 
___


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz 

Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

--

___
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] command reference not searchable

2016-05-19 Thread Akira Kakuto

It will be convenient for TeX Live users if i-context.pdf is copied like
$TEXMF/doc/context/documents/general/commands/i-context.pdf

Then one can read it by
texdoc i-context.pdf

Best,
Akira

___
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] command reference not searchable

2016-05-19 Thread Wolfgang Schuster

Jean-Pierre Delange 
19. Mai 2016 um 21:59
Hi fellows ConTeXt users,

I think the issue comes from Mac OS X PDF reader installation. On 
Windows, one can pass the following command:
context --extra=setups --overview cont-en.xml which print a PDF file 
(ConTeXt Extra) very searchable.
cont-en.xml is the old reference file (which still exists because it is 
used in manuals), the updated list is in i-context.xml and all sub files 
(i-xxx.xml).


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] command reference not searchable

2016-05-19 Thread Mohammad Hossein Bateni
It is searchable on my El Capitan laptop here.  I used the file in the
directory and did not run context to generate it if that's what you did.

On Thu, May 19, 2016 at 3:59 PM, Jean-Pierre Delange 
wrote:

> Hi fellows ConTeXt users,
>
> I think the issue comes from Mac OS X PDF reader installation. On Windows,
> one can pass the following command:
> context --extra=setups --overview cont-en.xml which print a PDF file
> (ConTeXt Extra) very searchable. I didn't try to go further with others xml
> files which source are here :
>
> http://source.contextgarden.net/scripts/context/stubs/unix/mtxrun?search=from
> JP
>
> - Mail original -
> De: "Hans van der Meer" 
> À: "NTG ConTeXt" 
> Envoyé: Jeudi 19 Mai 2016 17:00:06
> Objet: [NTG-context] command reference not searchable
>
> The command reference in file i-context.pdf is highly useful, but that
> document is not searchable, neither with Preview nor Adobe Reader. Files
> luatex.pdf, xml-mkiv.pdf for example are searchable. It would be nice if
> the command reference can be searched too, because for now looking up a
> command needs a lot of page skipping. Can this be done? I would very much
> appreciate it.
>
> 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
>
> ___
>
___
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] transparent colors

2016-05-19 Thread Meer, Hans van der
With \definecolor[colorname][r=,g=,b=] one defines a color of name "colorname" 
for use in ConTeXt and in Metapost.
A transparentcolor comes with \definecolor[transparentcolorname][r=,g=,b=,a=,t=]

Problem: how to define a transparent color with 
\definetransparentcolor[#1][#2][#3]{...}. 
To be called for example as 
\definetransparentcolor[transparentcolorname][colorname][0.5] for color 
"colorname" with transparency 0.5.

I tried to do this by intercepting from \definecolor the vales "r=,g=,b=" in a 
macro \colornamergb to be called as \csname..\endcsname for the varying 
colorname and feeding that to a definecolor-variant. However, the parsing of  
r=,g=,b= then goes wrong (\futurelet balking).

Question: is there a direct way to derive a transparent colorvariant from a 
parent one without transparency? The usefulness of this comes from the fact 
that for things like \definecolor[lighthoneydew][r=.894117,g=.95,b=.894117] the 
numbers need not be feed more than once.

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] command reference not searchable

2016-05-19 Thread Jean-Pierre Delange
Hi fellows ConTeXt users,

I think the issue comes from Mac OS X PDF reader installation. On Windows, one 
can pass the following command:
context --extra=setups --overview cont-en.xml which print a PDF file (ConTeXt 
Extra) very searchable. I didn't try to go further with others xml files which 
source are here :
http://source.contextgarden.net/scripts/context/stubs/unix/mtxrun?search=from
JP

- Mail original -
De: "Hans van der Meer" 
À: "NTG ConTeXt" 
Envoyé: Jeudi 19 Mai 2016 17:00:06
Objet: [NTG-context] command reference not searchable

The command reference in file i-context.pdf is highly useful, but that document 
is not searchable, neither with Preview nor Adobe Reader. Files luatex.pdf, 
xml-mkiv.pdf for example are searchable. It would be nice if the command 
reference can be searched too, because for now looking up a command needs a lot 
of page skipping. Can this be done? I would very much appreciate it.

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
___

Re: [NTG-context] command reference not searchable

2016-05-19 Thread Meer, Hans van der
Very weird. I haven't the faintest idea why this pdf is not searchable and 
similar ones in the same folder do. 
Checked the permissions but they are the same.
However, I have another document that cannot be searched, the context reference 
manual from 2013 and there seems to be a difference between these two and the 
others.
Those I cannot search have in their properties as PDF producer "Mac OSX 
(version) Quartz PDFContext" (older pdf versions 1.3 and 1.4), the others have 
Luatex as producer (pdf version 1.7).
Therefore, I strongly suspect that the Quartz producer is the culprit, weird as 
it may be.
Is it possible to produce the command reference with Luatex as producer 
excluding the Mac Quartz producer?
It is the only difference I am aware of that matches the behaviour.

> On 19 May 2016, at 19:08, Alan BRASLAU  wrote:
> 
> I can search this document using any and all pdf tools to which I have
> access on my system.
> 
> Alan
> 
> On Thu, 19 May 2016 16:49:31 +
> "Meer, Hans van der"  wrote:
> 
>> Checked again also on a MacBook, definitely not searchable here.
>> I am running El Capitan, and the command reference version is the one
>> from May 17, 2016, found in one of the latest contextbeta
>> distributions.
>> 
>>> On 19 May 2016, at 18:02, Hans Åberg  wrote:
>>> 
>>> 
 On 19 May 2016, at 17:00, Meer, Hans van der 
 wrote:
 
 The command reference in file i-context.pdf is highly useful, but
 that document is not searchable, neither with Preview nor Adobe
 Reader.   
>>> 
>>> Searches work for me in Preview.
> 

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] command reference not searchable

2016-05-19 Thread Hans Åberg

> On 19 May 2016, at 18:49, Meer, Hans van der  wrote:
> 
> Checked again also on a MacBook, definitely not searchable here.
> I am running El Capitan, and the command reference version is the one from 
> May 17, 2016, found in one of the latest contextbeta distributions.

You probably need to detail what you try to do. I just plugged into some things 
into the Preview search bar and got hits.


___
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] command reference not searchable

2016-05-19 Thread Alan BRASLAU
I can search this document using any and all pdf tools to which I have
access on my system.

Alan

On Thu, 19 May 2016 16:49:31 +
"Meer, Hans van der"  wrote:

> Checked again also on a MacBook, definitely not searchable here.
> I am running El Capitan, and the command reference version is the one
> from May 17, 2016, found in one of the latest contextbeta
> distributions.
> 
> > On 19 May 2016, at 18:02, Hans Åberg  wrote:
> > 
> >   
> >> On 19 May 2016, at 17:00, Meer, Hans van der 
> >> wrote:
> >> 
> >> The command reference in file i-context.pdf is highly useful, but
> >> that document is not searchable, neither with Preview nor Adobe
> >> Reader.   
> > 
> > Searches work for me in Preview.

___
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] command reference not searchable

2016-05-19 Thread Thomas A. Schmitz

On 05/19/2016 06:49 PM, Meer, Hans van der wrote:

Checked again also on a MacBook, definitely not searchable here.


Searchable on linux in okular (kde).

Thomas
___
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] command reference not searchable

2016-05-19 Thread Meer, Hans van der
Checked again also on a MacBook, definitely not searchable here.
I am running El Capitan, and the command reference version is the one from May 
17, 2016, found in one of the latest contextbeta distributions.

> On 19 May 2016, at 18:02, Hans Åberg  wrote:
> 
> 
>> On 19 May 2016, at 17:00, Meer, Hans van der  wrote:
>> 
>> The command reference in file i-context.pdf is highly useful, but that 
>> document is not searchable, neither with Preview nor Adobe Reader. 
> 
> Searches work for me in Preview.
> 


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] Setting up TeXworks

2016-05-19 Thread Jean-Pierre Delange
Hi Thomas,

1. There is no great issue to install ConTeXt Standalone in /usr/local/context; 
it's only a simple advice that I gave to put context in such a directory as 
/home/Document (e.g. : on Linux Ubuntu) in order to make things clear for 
beginners; and you can install it in /opt/context if you want it. I have 
installed CTX in /home/MyComputer/context
, because the whole documentation and files I want to use are near. Under 
Windows, ConTeXt is installed in C:\users\MyComputer\Documents\context. 
As you know, ConTeXt Standalone is a bundle which is self-sufficient (it 
doesn't need any extra-package, except some more fonts). I don't have tried yet 
to work with ConTeXt and Perl/Python, because my goal is to understand ConTeXt 
step by step in order to write a documentation in French (and I am starting 
from the beginning), starting by the easiest way to code a document and ending 
by some project structures.

2. commands like 'context --generate' and 'context --make' , typed after this 
previous one: '. setuptex', allow to build all the trees that you need 
thereafter, including databases. After that, you have to set your environment 
variables (in PATH). If you don't do that, you'll see your Linux system 
complain with such enigmatic formulas as 'ConTeXt is not installed', or 'mtxrun 
is not installed. You can installed it with apt-get install mtxrun', etc. 

JP


-Mail Original -
> De: "Thomas Fehige" 
> À: ntg-context@ntg.nl

>experienced in the Linux world either. My French is honed on cooking 
>recipes rather than computing and coding, but I was able to follow your 
>page allright.
>
>1. I don't have my standalone ConTeXt tree anywhere under /home/... but 
>in /usr/local/context/..., as suggested on the wiki. Would that make a 
>difference?
>
>2. What do "--generate" and "--make" do? I remember having run them at 
>one occasion or other, but to no avail as to the TeXworks problem. 
>Shouldn't they be run by the installation script anyway?
>
>I had managed the fonts database stuff, thanks to the wiki and some 
>trial and error. It was time I learned about environment variables in 
>Linux and Xfce anyway.

>Cheers -- Thomas

Am 17.05.2016 um 15:22 schrieb Jean-Pierre Delange:
> And don't forget to do this before coding :
> 1) cd /home/[...]/context/tex/. setuptex
> This command answers this : "Setting "/home/JohnDoe/context/tex" as ConTeXt 
> root."
> 2) Then : cd .../context/tex/texmf-win64 (or linux64) with a x64 computer
> 3) Then type :
> context --generate
> and type : context --make
>
> 4) Finally, if you add fonts (in /usr/share/fonts, or $HOME/.fonts), don't 
> forget to reload the font database (in the same depositery as 3)); the 
> command is as follow :
> mtxrun --script fonts --reload
> In order to see which fonts are installed on your system:
> mtxrun --script fonts --list --all
> To search a font (like didot) :
> mtxrun --script fonts --list --pattern=*didot* --all
>
> All these commands are the same on windows/linux/OS X
>
> More information in French here :
> https://fr.wikibooks.org/wiki/ConTeXt
>
> Hope that ich sende nicht Eulen nach Athens !
> JP
>
> - Mail original -
> De: "Thomas Fehige" 
> À: ntg-context@ntg.nl
> Envoyé: Mardi 17 Mai 2016 14:39:27
> Objet: Re: [NTG-context] Setting up TeXworks
>
> Whew, I've got it running, finally.
>
> For some reason, TeXworks needs to tell mtxrun explicitly where its
> texmf-tree is located. Meaning, an additional argument is required in
> TeXworks's starter setup, which now looks like this:
>
> name: ConTeXt MkIV
> command: mtxrun
> arguments:
>   --tree=/usr/local/context/tex<-- this is the one!
>   --autogenerate
>   --script
>   context
>   $fullname
>
> In the "Paths to TeX and friends" list I have
>
>   /usr/local/context/texmf-linux-64
>   /usr/local/context/bin
>
> as the top two entries.
>
> I don't know what exactly is going on here, so I don't feel confident to
> add this to the wiki, but maybe someone else does and will.
>
> Thanks for listening -- Thomas
___
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] command reference not searchable

2016-05-19 Thread Hans Åberg

> On 19 May 2016, at 17:00, Meer, Hans van der  wrote:
> 
> The command reference in file i-context.pdf is highly useful, but that 
> document is not searchable, neither with Preview nor Adobe Reader. 

Searches work for me in Preview.


___
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] writebetweenlist bug?

2016-05-19 Thread massifr
Hello list,
I'm experimenting with the table of contents and I found a strange behaviour of 
writebetweenlist.
Try this:

\setuphead[chapter][number=no]

\starttext

\placecontent

\chapter{chapter 1}
\chapter{chapter 2}
\writebetweenlist[chapter]{\blank Why am I not between chapter 2 and chapter 3?}
\chapter{chapter 3}
\chapter{chapter 4}

\stoptext

I exptected the text of \writebetweenlist to fall between chapters 2 and 3, but 
it falls between chapters 1 and 2.
Is that right or is it a bug?

Best greetings,
Massi
___
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] Setting up TeXworks

2016-05-19 Thread Thomas Fehige
Thanks Jean-Pierre, and no, you're not carrying owls to Athens, in 
whatever language. ;) I'm very new to ConTeXt and not all that 
experienced in the Linux world either. My French is honed on cooking 
recipes rather than computing and coding, but I was able to follow your 
page allright.


1. I don't have my standalone ConTeXt tree anywhere under /home/... but 
in /usr/local/context/..., as suggested on the wiki. Would that make a 
difference?


2. What do "--generate" and "--make" do? I remember having run them at 
one occasion or other, but to no avail as to the TeXworks problem. 
Shouldn't they be run by the installation script anyway?


I had managed the fonts database stuff, thanks to the wiki and some 
trial and error. It was time I learned about environment variables in 
Linux and Xfce anyway.


Cheers -- Thomas

Am 17.05.2016 um 15:22 schrieb Jean-Pierre Delange:

And don't forget to do this before coding :
1) cd /home/[...]/context/tex/. setuptex
This command answers this : "Setting "/home/JohnDoe/context/tex" as ConTeXt 
root."
2) Then : cd .../context/tex/texmf-win64 (or linux64) with a x64 computer
3) Then type :
context --generate
and type : context --make

4) Finally, if you add fonts (in /usr/share/fonts, or $HOME/.fonts), don't 
forget to reload the font database (in the same depositery as 3)); the command 
is as follow :
mtxrun --script fonts --reload
In order to see which fonts are installed on your system:
mtxrun --script fonts --list --all
To search a font (like didot) :
mtxrun --script fonts --list --pattern=*didot* --all

All these commands are the same on windows/linux/OS X

More information in French here :
https://fr.wikibooks.org/wiki/ConTeXt

Hope that ich sende nicht Eulen nach Athens !
JP

- Mail original -
De: "Thomas Fehige" 
À: ntg-context@ntg.nl
Envoyé: Mardi 17 Mai 2016 14:39:27
Objet: Re: [NTG-context] Setting up TeXworks

Whew, I've got it running, finally.

For some reason, TeXworks needs to tell mtxrun explicitly where its
texmf-tree is located. Meaning, an additional argument is required in
TeXworks's starter setup, which now looks like this:

name: ConTeXt MkIV
command: mtxrun
arguments:
  --tree=/usr/local/context/tex<-- this is the one!
  --autogenerate
  --script
  context
  $fullname

In the "Paths to TeX and friends" list I have

  /usr/local/context/texmf-linux-64
  /usr/local/context/bin

as the top two entries.

I don't know what exactly is going on here, so I don't feel confident to
add this to the wiki, but maybe someone else does and will.

Thanks for listening -- Thomas

___
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] command reference not searchable

2016-05-19 Thread Meer, Hans van der
The command reference in file i-context.pdf is highly useful, but that document 
is not searchable, neither with Preview nor Adobe Reader. Files luatex.pdf, 
xml-mkiv.pdf for example are searchable. It would be nice if the command 
reference can be searched too, because for now looking up a command needs a lot 
of page skipping. Can this be done? I would very much appreciate it.

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
___

[NTG-context] MacOsX OSFONTDIR environment variable

2016-05-19 Thread Meer, Hans van der

> On 25 Oct 2013, at 00:13, Hans Hagen  wrote
(in a discussion on the OSFONTDIR environment variable in MacOSX)

> anyway, in a next beta you can set this in texmf.cnf.lua:
> 
> return {
>content = {
>directives = {
>["fonts.usesystemfonts"] = false,
>},
>},
> }
> 
> Best do that in texmf-local as a next update will overwrite the main cnf 
> file. Entries in the he local file overload main ones.

I took the liberty to look again into this matter because the above advice does 
not what I should expect it does: ignoring the MacOSX font directories.
This is what I found in various experiments, OSFONTDIR not defined in the 
environment.

(1) I guess the name of the cnf file should be texmfcnf.lua not texmf.cnf.lua 
because a file with the latter name has no effect, the MACOSX font directories 
still appear in the log.
(2) That file in texmf.local does nothing because again the MacOSX font 
directories are still in the log, but there is a reference to a file of that 
name:
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
(3) Moving texmfcnf.lua to a directory /texmf.local/web2c/ is desastrous, the 
log tells me:
resolvers   | trees | analyzing '/Users/hansm/Documents/TeX/texmf'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

Questions therefore:
- is the name texmfcnf.lua indeed?
- what should be its location in texmf.local? 
  (texmf/web2c doesn't exist on my system because I restrict myself to the beta)
- is the content of texmfcnf.lua as given above complete?

Referring to a dummy font directory in OSFONTDIR still seems the most viable 
option. Is that correct?

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] Setting up TeXworks

2016-05-19 Thread Thomas Fehige

Am 17.05.2016 um 14:59 schrieb Hans Hagen:
Using --tree is quite ok for this. Maybe TeXworks sets some 
environment variable that interferes otherwise. Normally using the 
full path should also work, so


/usr/local/context/texmf-linux-64/mtxrun


Well, it isn't normal, apparently. I remember I tried that at some 
stage, but it didn't work. The problem was not finding mtxrun and 
starting it, but rather that mtxrun, once started, couldn't find some of 
its config files.


Cheers -- Thomas

___
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] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Thanks, Wolfgang!

\symbol[square] doesn't work for me, because the inside of the box has
to be white also when on gray background, i.e. I need a box filled
with white. I decided to do what I should've done in the first place
and brushed up enough of my MetaPost that I could create a box with
black outline and white fill (OK, I pinched most of it from the
MetaFun manual...). This seems to work:

\startuseMPgraphic{box3mm_filled}
pickup pencircle scaled .02cm ;
path p ; p := unitsquare scaled 3mm ;
fill p withcolor white ;
draw p withcolor black ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm_filled}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Thank you for your speedy replies!

Mari

On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster
 wrote:
> Mari Voipio
> 19. Mai 2016 um 12:45
> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
> 1. Lower your graphic because it has margins around the lines which
> positions it too high.
>
> \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
>
> 2. Use a box symbol which sits lower on the baseline.
>
> \starttext
>
> \dontleavehmode\symbol[square] 1
>
> \stoptext
>
>
> 3. Use metapost to create your own box.
>
> \startuseMPgraphic{box3mm}
> draw unitsquare scaled 3mm ;
> \stopuseMPgraphic
>
> \definesymbol[box3mm][{\useMPgraphic{box3mm}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \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
> ___
___
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] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster

Mari Voipio 
19. Mai 2016 um 12:45
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?
1. Lower your graphic because it has margins around the lines which 
positions it too high.


\definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext



2. Use a box symbol which sits lower on the baseline.

\starttext

\dontleavehmode\symbol[square] 1

\stoptext


3. Use metapost to create your own box.

\startuseMPgraphic{box3mm}
draw unitsquare scaled 3mm ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\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] Alignment/line break in a TABLE cell

2016-05-19 Thread luigi scarso
On Thu, May 19, 2016 at 12:45 PM, Mari Voipio  wrote:

> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>  wrote:
> >
> > \dontleavehmode\externalfigure[box3mm]
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
>
\bTD \ruledhbox{\externalfigure[box3mm] 1}  \eTD

the border around box3mm.pdf ?


-- 
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] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
 wrote:
>
> \dontleavehmode\externalfigure[box3mm]

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?


Thanks,

Mari


MWE:

\starttext
\bTABLE
\setupTABLE[style=\ss\tfx]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC calibrated with raw
 measurement data, refractive index (nD) and
temperature (T) \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 2 \eTD
\bTD Multichannel user interface (MI) that calculates
and displays
 the process liquid concentration based on the
refractive index and temperature,
 installed in a stainless steel enclosure \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD PR-7610 Table top standfor Multichannel user interface,
 contains a set of four screws. \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 4 \eTD
\bTD Wall mounting screws kit for mounting the
 Multichannel user interface on the wall \eTD
\eTR
%
\eTABLE


box3mm.pdf
Description: Adobe PDF document


mi_table_mwe.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] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster

Mari Voipio 
19. Mai 2016 um 11:37
Hi,

I have a little problem with a table. It works fine otherwise, but in
the first column the box and the number should be on the same line.
This goes right with 3a, but all the other ones place the box on the
first line and the number on the second. Widening column 1 doesn't
help. How do I force the number to stay on the same line with the box?

Put \dontleavehmode before \externalfigure, e.g.

\dontleavehmode\externalfigure[box3mm]

and in case the number is still moved to the next line because there 
isn’t enough space left you can put an unbrakbale space between the 
graphic and number, e.g.


\dontleavehmode\externalfigure[box3mm]~1

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] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Hi,

I have a little problem with a table. It works fine otherwise, but in
the first column the box and the number should be on the same line.
This goes right with 3a, but all the other ones place the box on the
first line and the number on the second. Widening column 1 doesn't
help. How do I force the number to stay on the same line with the box?


\starttext

\bTABLE
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 2 \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 4 \eTD
\bTD  \eTD
\eTR
\eTABLE


\stoptext


Mari

PS. I don't think it is relevant here, but my ConTeXt is relatively
new, 2016.04.17.


box3mm.pdf
Description: Adobe PDF document


mi_table.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] ConTeXt commands

2016-05-19 Thread Henman

*Wolfgang*,
you efforts are very helpful to all.   Much appreciated.

Henman

On 05/18/2016 06:46 AM, Meer, Hans van der wrote:


On 18 May 2016, at 15:41, Hans Hagen > wrote:


the setups have always been there but i never really kept them in 
sync with the latest additions but ... recently they have been 
upgraded to describe nearly all commands (also low level ones) .. *a 
pretty impressive effort by Wolfgang*... the intetface files have 
been split in smaller files and are under the interface subpath 
alongside base


He is to be praised!

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
___