[NTG-context] goto

2015-10-18 Thread Meer, Hans van der
I would like to be able to go directly to a local document by an interaction 
statement. The \goto command seems to be meant for this.
However, the descriptions in the command reference and the Wiki do not explain 
all of its parameters:
In \goto{1}{2}[3] parameters 1 and 2 are marked CONTEXT and 3 is marked 
REFERENCE. I could find parameter {1} typeset in the text and [3] as the 
reference in for example a \placefigure.

What is {2} supposed to do? \goto{}Something}[] does not places Something to 
find.

I tried to effect the jump to a document on my system with
\goto{local-doc}[/Volumes/Users/myhome/Documents/myfigure.jpg]
but this does not works as I hoped.

How to?

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] suppress header-footers

2015-09-14 Thread Meer, Hans van der
With \noheaderandfooterlines one can suppress the header and footer lines on 
the current page.

When using \setuplayout[location=doublesided] a blank page is generated if 
necessary. However this generated page does contain header/footer, 
notwhithstanding the use of \noheaderandfooterlines. Is it possible to avoid 
this?

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] table of contents

2015-09-28 Thread Meer, Hans van der
I would like to restrict the tableofcontents to chapters only, leaving the 
sections etc. out.
 \completecontent does not seem the right command here.

I am sure it is simple, but I don't see it. How to accomplish?

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] formatting section and figure numbers

2015-09-25 Thread Meer, Hans van der
I do number my chapters with roman numerals with:
  \setuphead[chapter][conversion=Romannumerals]
I would expect then that sections are numbered roman.arabic for example IX.1
This is not the case. While the chapter is numbered IX the sections are 
numbered 9.1 instead of IX.1.
The numbering of floats with \placefigure luckily does the caption numbering 
right, i.e. there I see IX.1 as its number.

Using
  \setuphead[section][conversion=Romannumerals]
fails because then IX.I is produced, clearly not what is desired although the 
caption numbering is not influenced.

Using
  \setuphead[section][number=no]
does not help either, because then the captions loose their chapter number.

What to do?

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] how to stop pagenumbering

2015-12-27 Thread Meer, Hans van der
More information on this. Statements:


\usemodule[hvdm-dvd]
\starttext
\xmlprocessbuffer{dvd}{xmlbuffer}{}
\stoptext
\endinput

in the hvdm-dvd module \setuppagenumber[state=stop] is put inside

\startxmlsetups setup-name
\setuppapersize[A5][A5]
\setuppagenumber[state=stop]
   "typesetting operations following"
\stopxmlsetups
In this case pagenumber not suppressed.

However with the following order of statements the pagenumber does get 
suppressed.

\starttext
  \setuppagenumber[state=stop]
  \xmlprocessbuffer{dvd}{xmlbuffer}{}
\stoptext

In both cases the call to  \setuppagenumber comes before typesetting the page.
Why is the  \setuppagenumber inside the xmlsetup ignored?

Hans van der Meer




On 27 Dec 2015, at 14:21, Meer, Hans van der 
<h.vanderm...@uva.nl<mailto:h.vanderm...@uva.nl>> wrote:

The command  "\setuppagenumber[state=stop]"  used to stop numbering the pages, 
now it doesn't.
Has this been changed and did I miss that change?

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<mailto: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] how to stop pagenumbering

2015-12-27 Thread Meer, Hans van der

On 27 Dec 2015, at 21:57, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
27. Dezember 2015 um 21:47
One more observation on the strangeness of \setuppagenumber.

Putting \setuppagenumber[number=4] before the call to \xmlprocessbuffer and 
putting \setuppagenumber[state=stop,number=8] inside the \startxmlsetups does 
make the pagenumber having the value 8. This proves two things:

(1) the \setuppagenumber in the \startxmlsetups is processed before the 
pagenumber is fixed and typeset

(2) the [state=stop] in the \startxmlsetups is wrongfully ignored, whereas at 
the same time [number=8] does get honored.

Imho this demonstrates there is an error in the processing of \setuppagenumber 
when located inside the \startxmlsetups. An error that does not occur when 
called at the \starttext document-level before the \xmlprocessbuffer.
Could it be a matter of locality?

You have to provide a *working* minimal example.

Not so simple, alas.
But I will be greatly helped if you can ascertain that

\startxmlsetups
code within
\stopxmlsetups

is code executed locally as if between \begingroup .. \endgroup.
That would explain the behaviour.
The remedy then could be a more global execution of \setuppagenumber.
I already tried in vain \global\settuppagenumber

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] how to stop pagenumbering

2015-12-27 Thread Meer, Hans van der
One more observation on the strangeness of \setuppagenumber.

Putting \setuppagenumber[number=4] before the call to \xmlprocessbuffer and 
putting \setuppagenumber[state=stop,number=8] inside the \startxmlsetups does 
make the pagenumber having the value 8. This proves two things:

(1) the \setuppagenumber in the \startxmlsetups is processed before the 
pagenumber is fixed and typeset

(2) the [state=stop] in the \startxmlsetups is wrongfully ignored, whereas at 
the same time [number=8] does get honored.

Imho this demonstrates there is an error in the processing of \setuppagenumber 
when located inside the \startxmlsetups. An error that does not occur when 
called at the \starttext document-level before the \xmlprocessbuffer.
Could it be a matter of locality?


On 27 Dec 2015, at 17:20, Meer, Hans van der 
<h.vanderm...@uva.nl<mailto:h.vanderm...@uva.nl>> wrote:

More information on this. Statements:


\usemodule[hvdm-dvd]
\starttext
\xmlprocessbuffer{dvd}{xmlbuffer}{}
\stoptext
\endinput

in the hvdm-dvd module \setuppagenumber[state=stop] is put inside

\startxmlsetups setup-name
\setuppapersize[A5][A5]
\setuppagenumber[state=stop]
   "typesetting operations following"
\stopxmlsetups
In this case pagenumber not suppressed.

However with the following order of statements the pagenumber does get 
suppressed.

\starttext
  \setuppagenumber[state=stop]
  \xmlprocessbuffer{dvd}{xmlbuffer}{}
\stoptext

In both cases the call to  \setuppagenumber comes before typesetting the page.
Why is the  \setuppagenumber inside the xmlsetup ignored?

Hans van der Meer




On 27 Dec 2015, at 14:21, Meer, Hans van der 
<h.vanderm...@uva.nl<mailto:h.vanderm...@uva.nl>> wrote:

The command  "\setuppagenumber[state=stop]"  used to stop numbering the pages, 
now it doesn't.
Has this been changed and did I miss that change?

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<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl<http://www.pragma-ade.nl/> / 
http://tex.aanhet.net<http://tex.aanhet.net/>
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net<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<mailto: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] how to stop pagenumbering

2015-12-27 Thread Meer, Hans van der
The command  "\setuppagenumber[state=stop]"  used to stop numbering the pages, 
now it doesn't. 
Has this been changed and did I miss that change?

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] file not found

2016-01-12 Thread Meer, Hans van der
The code below did work ok some version of ConTeXt ago, now an error and I 
cannot think of the cause.

There is an unknown file ./t. Is it origin something with the jobname 
mysteriously being t? Or is it perhaps that modules now have names preceded by 
t- ? I am completely baffled.
Help would be very much appreciated because I have not much time left to finish 
the text.

Macro for calling a context run:

% Call context for figures #1 = mode, #2 = fontchoice, #3 = colorchoice, #4 = 
file without .tex extension.
\def\callcontext[#1][#2][#3]#4{%
\writestatus{HVDM}{CALLING DIRECTLUA file=#4 mode=#1 fontchoice=#2}%
\directlua{os.execute("cd \FigSrc;context --once --mode=#1 --font=#2 
--colors=#3 --purge #4;rm #4.tuc;cd -;mv \FigSrc/#4.pdf \FigDir")}%
}

HVDM> CALLING DIRECTLUA file=taalengels mode=screen,info 
fontchoice=lucidaot,sans,12pt\tt

resolvers   | trees | analyzing '/Users/hansm/Documents/TeX/texmf'
mtx-context | warning: no (local) file './t', proceeding
mtx-context | run 1: luatex 
--fmt="/Users/hansm/Applications/TeX/context-28/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="t" 
--lua="/Users/hansm/Applications/TeX/context-28/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line 
--c:colors="darkslategray,darkslategray,mistyrose,darklavenderblush,peachpuff" 
--c:currentrun=1 --c:font="lucidaot,sans,12pt" --c:fulljobname="./t" 
--c:input="./t" --c:kindofrun=3 --c:maxnofruns=1 --c:mode="screen,info" 
--c:once --c:purge "cont-yes.mkiv"
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
 \write18 enabled.

resolvers   > trees > analyzing '/Users/hansm/Documents/TeX/texmf'

system  > callbacks > not registering frozen 'find_format_file'
open source > 1 > 1 > 
/Users/hansm/Applications/TeX/context-28/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.10.09 21:28 MKIV beta  fmt: 2015.10.11  int: english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/Users/hansm/Applications/TeX/context-28/tex/texmf-context/tex/context/base/cont-new.mkiv
close source> 2 > 2 > 
/Users/hansm/Applications/TeX/context-28/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > files > jobname 't', input './t', result 't'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active

tex error   > tex error on line 8 in file 
/Users/hansm/Applications/TeX/context-28/tex/texmf-context/tex/context/base/cont-yes.mkiv:
 ! I can't find file `./t'.


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] suddenly run error

2016-01-12 Thread Meer, Hans van der

On 12 Jan 2016, at 20:11, luigi scarso 
> wrote:

hard to say without an example.
\loggingall can help, but it can generate a huge amount of data.
Using  \loggingall near the error is better, but of course it means that you 
know more or less where it happens.


I have an idea where to start and stop logging.

Is just \loggingall sufficient to start the log?
How do I stop that logging?

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] \doiftext vs. \doifemtpy

2016-01-14 Thread Meer, Hans van der
Watch out. There is a pitfall here (yes, I have fallen in this trap).
Try \type{\doifempty{\empty}{yes}} = <\doifempty{\empty}{yes}>\crlf
and you will see that it is NOT empty despite the suggestive use of the \empty 
macro!

Hans van der Meer


On 14 Jan 2016, at 08:41, Marco Patzer 
> wrote:

On Wed, 13 Jan 2016 23:18:03 +0100
Pablo Rodriguez > wrote:

which is the difference between \doiftext and \doifempty?

First of all, the logic is reversed, \doiftext prints the second
argument if the first one contains text, \doifempty does print the
second argument if the first one *does not* contain anything. You can
get around this by using the \…else versions.

Then, the major difference is that \doifempty checks if the argument
is empty and nothing else. \doiftext checks if it contains a box of
non-zero width.

\starttext
 text: \doiftextelse{foo}{is text}{no text}\par
 text: \doifemptyelse{foo}{is empty}{not empty}\par
 empty: \doiftextelse{}{is text}{no text}\par
 empty: \doifemptyelse{}{is empty}{not empty}\par
 space: \doiftextelse{\space}{is text}{no text}\par
 space: \doifemptyelse{\space}{is empty}{not empty}\par
 zero width: \doiftextelse{\framed[width=0cm]{frame}}{is text}{no text}\par
 zero width: \doifemptyelse{\framed[width=0cm]{frame}}{is empty}{not empty}\par
 image: \doiftextelse{\externalfigure[cow]}{is text}{no text}\par
 image: \doifemptyelse{\externalfigure[cow]}{is empty}{not empty}\par
\stoptext

Marco


___
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] what bib module?

2016-01-14 Thread Meer, Hans van der
Calling:
\usemodule[bib]

I get the log message:
resolvers   > modules > 'bibtex' is not found
resolvers   > modules > 'oldbibtex' is loaded

My code is somewhat old, I must confess. What should I use now?

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] simplefonts question

2016-01-14 Thread Meer, Hans van der
How to set the calligraphic font in the simplefonts module?
With the instructions in the Wiki:

\usemodule[simplefonts]
\definefontfamily[fallbackfont][serif][lucidaot]
\definefontfamily[fallbackfont][sans][lucidaot]
\definefontfamily[fallbackfont][mono][lucidaot]
\definefontfamily[fallbackfont][math][lucidaot]
\setupbodyfont[fallbackfont]
\setcalligraphicfont[fallbackfont]

and got the following errors: (1) unknow font and (2) unknown definition.

open source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
close source> 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'fallbackfont-12pt-rm-tf-0--0'

hvdm-fig.tex: ! Undefined control sequence

l.11 \setcalligraphicfont
   [fallbackfont]


Why is ConTeXt able to use my Lucida font with simply \setupbodyfont[lucidaot] 
but does simplefont not?
Why is \setcalligraphicfont undefined?

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] oldstyle

2016-01-18 Thread Meer, Hans van der
I have the Lucida Bright otf fontset. What fontname to use in simplefonts
  \definefontfamily [mainface] [os] [Lucida Bright ??]
in order to get {\os 123} in oldstyle?

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] pagereferences

2016-01-17 Thread Meer, Hans van der
Thanks Wolfgang. I am experimenting with your code and there has arisen a 
problem. The book I am typesetting has some pages before the text on page-1 
starts (cover and so on). Therefore the code
\def\mypageref[#1]{\setpagestate[hvdm][#1]\color[red]{page=\pagenumber\ and 
pageref=\pagestaterealpage{hvdm}{#1}}}
produces "page=29 and pageref=31". Not as intended. Do I change the macro 
\pagestaterealpage into what macro? I tried \pagestatepage, but that wasn't the 
right idea.

Now what further to change?

Hans van der Meer




On 17 Jan 2016, at 19:37, Wolfgang Schuster 
> wrote:

\definepagestate[hans]

\starttext

One\setpagestate[hans][one]

\page[+2]

Two\setpagestate[hans][two]

Three\setpagestate[hans][three]

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{one}
The references are on the same page.
\else
The references are on different pages.
\fi

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{three}
The references are on the same page.
\else
The references are on different pages.
\fi

\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] pagereferences

2016-01-17 Thread Meer, Hans van der
Thanks Wolfgang. I am afraid, however, your answer inspires me to a subsequent 
question.

In order to customize  the reference myself my idea is something along the line 
of:
  \def\myatpage[#1]{ \scratchcounter=\at[#1]\relax\ifnum=\pagenumber etcetera.
But this gives an error, as dus \expanded{\at[#1]}, as does 
\expandafter\scratchcounter=
The error is Missing number, treated as zero..

Do you have a hint how to proceed?

Hans van der Meer




On 17 Jan 2016, at 17:42, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
17. Januar 2016 um 16:58
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] 
I get as reference "at a previous page" (perhaps not exactly, the typesetting 
is done in dutch).
The english text is “on a preceding page”.
This an unwanted result, that previous page is 7 pages before.
The test is still true before “on *a* preceding page” is not the same as “on 
*the* preceding page”.
How can I restrict this to either "on this page" or to the exact number of the 
page in question?
You can print the number with \at[].

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] pagereferences

2016-01-17 Thread Meer, Hans van der
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] 
I get as reference "at a previous page" (perhaps not exactly, the typesetting 
is done in dutch).

This an unwanted result, that previous page is 7 pages before.

How can I restrict this to either "on this page" or to the exact number of the 
page in question?

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] ddirectory search

2016-01-14 Thread Meer, Hans van der
With for example \setupexternalfigures ConTeXt will search figure files in the 
directories specified on this command.
Is there a corresponding \setup-macro for searching files one wants to input?

So that after \setup[direcory={..,..,..}] an "\input xyz" command (or 
anything alike) will find xyz.tex.

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] box'es do not spread out

2016-02-05 Thread Meer, Hans van der
I am struggling with the following problem:

Collect a number of boxes with:
\global\setbox\placexcontent=\hbox{%
\box\placexcontent % collection of previous boxes
\box\placexbox % next box affixed to previous onse
\hskip\placexdistanceskip % spearation, replacing by \hfill does not solve 
problem
}%
Thus the incoming \placexbox'es are strung together separated by a skip.
Later they are typeset centered as a whole with:
\hbox to\textwidth{% % will be wider than the sum of the original box collection
\hss
\box\placexcontent % or \unhbox, doesn't look different
\unskip % unskip removes the last (extra) \hskip
\hss % should succumb to \hskip 0pt plus1fill
}%

The problem is the following:
(1) \placexdistanceskip=10pt boxes are separated neatly
(2) \placexdistanceskip=0pt plus1fill BOXES DO NOT SPREAD OUT AS I EXPECTED 
THEM TO DO
The flexible component does sadly not carry over to the final box, apparently.

Clearly my misunderstanding of working with boxes.
Can this be solved easily?

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] interactive reference

2016-02-03 Thread Meer, Hans van der
Please, will the moderator of this group consider to remove from the list the 
sender of the reply below?
It is really offensive and the TeX-community unworthy.

Hans van der Meer




On 04 Feb 2016, at 00:42, Henman <dhen...@gmail.com<mailto:dhen...@gmail.com>> 
wrote:

Go eat your dead great-grandmother's cunt.




On 02/03/2016 10:10 AM, Meer, Hans van der wrote:
In the ConTeXt reference manual in section 12.5 Cross references I find the 
following explanation:



I would like to set (interactive) references as the black triangles pointing 
forward and backward, as displayed here. Although I tried along the lines in 
the first example, as mentioned at the end of the text, I could not manage to 
get these triangles.

How to?

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] Reprocessing part of input

2016-02-02 Thread Meer, Hans van der
How to do the following eludes me.

Inside macro -processing read into a buffer the following part of the input
\startmyinput ...\stopmyinput


Analogous to input containing
\startbuffer[mystoragebuffer]
\startmyinput
 ...
\stopmyinput
\stopbuffer

but now not executed at once, but stored in and executable from a buffer with 
\getbuffer[mystoragebuffer].

But of course there might be a better way to execute the same code more than 
once within one run of TeX.

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] interactive reference

2016-02-03 Thread Meer, Hans van der
In the ConTeXt reference manual in section 12.5 Cross references I find the 
following explanation:

[cid:DD84C63C-7615-45C8-8BC0-DA1B83459B42@dynamic.ziggo.nl]

I would like to set (interactive) references as the black triangles pointing 
forward and backward, as displayed here. Although I tried along the lines in 
the first example, as mentioned at the end of the text, I could not manage to 
get these triangles.

How to?

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] size in setuptype

2016-02-24 Thread Meer, Hans van der


On 24 Feb 2016, at 13:37, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
24. Februar 2016 um 13:25
Why does \setuptyping has a parameter bodyfont= and is \setuptype missing it?
I am asking because in typesetting with
  \setuptype[style=small]\type{something}
I get another font and size than with
  \setuptyping[bodyfont=small]\starttyping ... \stoptyping
whereas in both the same is wanted in order to keep continuity in size and 
style.
The bodyfont key for typing is usefull when you need a narrower font font for 
long listings.

I can understand that, but it is not the problem to be solved here. That 
problem is the fact that I cannot typeset with both \type{...} and \starttyping 
... \stoptyping and get the same appearance in type, spacing and size of the 
symbols.
That is apparently not only usefull for narrower text in long lists, but has a 
usefullness in other cases too.
Why should I have to use other mechanisms in order to get similar appearance 
than just through a symmetry between \setuptype and setuptyping?



\definetypeface[narrowtt][tt][mono][modern-condensed][default]

\starttext

\starttyping
\starttypescript [modern-designsize]
\definetypeface [\typescriptone] [\s!rm] [\s!serif] 
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!ss] [\s!sans]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!tt] [\s!mono]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!mm] [\s!math]  [modern]
  [\s!default]
\quittypescriptscanning
\stoptypescript
\stoptyping

\starttyping[bodyfont=narrowtt]
\starttypescript [modern-designsize]
\definetypeface [\typescriptone] [\s!rm] [\s!serif] 
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!ss] [\s!sans]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!tt] [\s!mono]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
\definetypeface [\typescriptone] [\s!mm] [\s!math]  [modern]
  [\s!default]
\quittypescriptscanning
\stoptypescript
\stoptyping

\stoptext

Wolfgang

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] size in setuptype

2016-02-24 Thread Meer, Hans van der
Why does \setuptyping has a parameter bodyfont= and is \setuptype missing it?
I am asking because in typesetting with
  \setuptype[style=small]\type{something}
I get another font and size than with
  \setuptyping[bodyfont=small]\starttyping ... \stoptyping
whereas in both the same is wanted in order to keep continuity in size and 
style.

\setuptype[bodyfont=small] definitely gave something different, i.e. no change.

\setuptype[bodyfont=small]: can this be incorporated in the next ConTeXt-beta 
producing the same effect as \setuptyping[bodyfont=small]?
It would be very nice.

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] doifnextcharelse

2016-01-24 Thread Meer, Hans van der
Yes this works. But alas, the ultimate goal is to test against several 
characters and that seems impossible to do with standard ConTeXt api-macros.Let 
alone when these characters are . or . or ) etc.

Hans van der Meer

met vriendelijke groet
Hans van der Meer




> On 24 Jan 2016, at 15:13, Pablo Rodriguez  wrote:
> 
> On 01/24/2016 02:30 PM, dr. Hans van der Meer wrote:
>> I would like to differentiate on the following character being one of  X or 
>> not X.
>> But cannot get it right in \doifnextcharelse.
>> 
>> For example 
>> \def\mynextchar{\doifnextcharelse{X}{\def\Next{Y}}{\def\Next{Z}}\Next} 
>> delivers: ZX ZQ
>> then input: \mynextchar X \mynextchar Q
>> I hoped for YX ZQ, but it looks as if X tested false against X.
>> 
>> How to?
> 
> Hans,
> 
> the basic \def\mynextchar{\doifnextcharelse{x}{y}{z}} works.
> 
> With your sample:
> 
>\def\mynextchar{
>\doifnextcharelse{X}
>{\def\Next{Y}\Next}
>{\def\Next{Z}\Next}}
> 
> I hope it helps,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk


___
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] citations

2016-01-20 Thread Meer, Hans van der
In this version:
  ConTeXt  ver: 2015.12.22 10:50 MKIV beta  fmt: 2015.12.27  int: 
english/english
I was able to typeset my bibtex citations with \cite.
But in the version of ConTeXt-beta I downloaded recently \cite results in blank.
There might have been a mention about this recently, but that is all I can 
remember.

What should I change? I am using \module[oldbibtex] at the moment.

My usage is through the macros I add for convenience, it might be them causing 
the problem

Hans van der Meer


% Custom setup 

\def\bibentry#1{% start each reference on the next line
\breaktemp\def\breaktemp{\hfill\break}%
\noexpand\bibentrypar\cite[data][#1]\strut}

% Usage: \footnotecite[citation,citation,.. ][optional text]
%\footnotecite[citation,citation,..,][optional text on new line]
%\footnotecite[citation,,citation,..][optional text] white within
\def\footnotecite{\dodoubleargument\dofootnotecite}

% footnotes or endnotes
\def\mycitenote{\endnote}

% Standard form of citations.
\def\breaktemp{}
\def\Adofootnotecite[#1][#2]{%
\def\bibentrypar{\def\bibentrypar{\par}}%
\def\breaktemp{}%
\unskip\mycitenote{\processcommalist[#1]\bibentry
\doifnotempty{#2}{\space#2\strut\par}}}

% Disabling citations altogether.
\def\Cdofootnotecite[#1][#2]{\ignorespaces}%

% Citations switched on.
\def\enablecitations{%
\writestatus{HVDM-ONDERWIJS}{citations enabled}%
\let\dofootnotecite\Adofootnotecite}

% Citations switched off.
\def\disablecitations{%
\writestatus{HVDM-ONDERWIJS}{citations disabled}%
\let\dofootnotecite\Cdofootnotecite}

% By default citations are off.
\let\dofootnotecite\Cdofootnotecite


___
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] doifnextcharelse

2016-01-24 Thread Meer, Hans van der
Is it impossible to test on a blank with something alike  \doifnextcharelse ?

The implementation in the source skips blanks, but what if that is one doesn't 
want? For example to distinguish between "\abc \def" and \abc\def"?

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] new error in Context-Metapost

2016-02-17 Thread Meer, Hans van der
Some code that worked ok but hasn't been used for some time, now gives an 
error: missing $.
It is working fine in ConTeXt, but putting it inside an MPpage goes wrong.

Here a minimal example, the output of the ConTeXt run and the error on the 
MPpage run.
Has something changed I missed?

Hans van der Meer


The error occurs in this code, my suspect is the cases macro.
\starttext
\startsetups[dif-1]
$\displaystyle
\Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr}
\buildrel S_1 \over \rightarrow \quad
\Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\cr (B,0)(0,B)&\cr}
$
\stopsetups
\startMPpage
label("\setup[dif-1]",origin);
\stopMPpage
\stoptext

tex error   > tex error on line 9 in file 
/Users/hansm/Documents/TeX/Test-tex/cases/cases.tex: ! Missing $ inserted


$

\endgroup
\math_fenced_fenced_stop ...leparameter \endgroup
  \advance \c_math_fenced_ne...
\14>:dif-1 ...ses {(A,2)(2,A)&\cr (6,E)(E,6)&\cr }
  \buildrel S_1 \over \right...
l.9 ...edfont[LMRoman-Regular*default]\setup [dif-1]




\relax
...
l.12 \stopMPpage

The ConTeXt run itself is ok, see below

\starttext
\startsetups[dif-1]
$\displaystyle
\Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr}
\buildrel S_1 \over \rightarrow \quad
\Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\cr (B,0)(0,B)&\cr}
$
\stopsetups
\setup[dif-1]
\stoptext





cases.pdf
Description: cases.pdf
___
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] new error in Context-Metapost

2016-02-17 Thread Meer, Hans van der
Thanks for the quick answer.
This error looks tricky indeed. I haven't the faintest illusion I could have 
found out by myself...

Hans van der Meer




On 17 Feb 2016, at 13:34, Hans Hagen > 
wrote:
That was a tricky one to nail down ... it related to the fact that have \{ and 
\} have a different meaning when we flush metapost text (makes me wonder if 
that is still needed)

this helps

\installmathfencepair
 \letteropenbrace \Lbrace
 \letterclosebrace \Rbrace

___
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] Deprecated $…$ for inline math?

2016-02-18 Thread Meer, Hans van der

On 18 Feb 2016, at 10:16, Hans Hagen > 
wrote:

also, DEK used a keyboard with some special characters (probably dating from 
those assembler like computer languages) which is why the plain tex format has:

Could it have been a keyboard especially for the APL language? Just a wild 
guess, but I remember that language using a lot of such symbols.

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] MPinstance

2016-04-07 Thread Meer, Hans van der

Alan Braslau wrote:

For example, I work with a "3D" instance of MP:

\defineMPinstance
 [three]
 [format=metafun,
  extensions=yes,
  initializations=yes,
  method=double]

\startMPdefinitions{three}
 input three ;
\stopMPdefinitions

Where three.mp contains my 3D projection macros.

Use is then

\startMPcode{three}
...
\stopMPcode


Does this mean that \startMPdefinitions is identical (in effect) with 
\startMPextensions? Its use here seems to suggest.
Or if otherwise, what is the difference in usage?

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] \startuseMPgraphic

2016-04-11 Thread Meer, Hans van der

On 11 Apr 2016, at 16:17, Alan BRASLAU 
> wrote:

Remember that ConTeXt colors can be accessed in MP as
\MPcolor{orange}

Alan

However with the snippet below I see the default black with MPcolor and the 
wanted red with \MPvar. Thus?

Hans van der Meer

\starttext
  \startuseMPgraphic{example1}{color}
pickup pencircle scaled 1mm;
draw unitsquare scaled 1cm
 withcolor \MPcolor{color};
  \stopuseMPgraphic
  \startuseMPgraphic{example2}{color}
pickup pencircle scaled 1mm;
draw unitsquare scaled 1cm
 withcolor \MPvar{color};
  \stopuseMPgraphic
  \useMPgraphic{example1}{color=red}
  \useMPgraphic{example2}{color=red}
\stoptext




mpcolor.pdf
Description: mpcolor.pdf
___
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] \startuseMPgraphic

2016-04-11 Thread Meer, Hans van der
Thanks Wolfgang.
It appears my memory did some "wishful thinking" in wanting 
\startuseMPgraphic{name}{key=value}. Although that would have been nice.
Hans van der Meer

On 11 Apr 2016, at 14:42, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
11. April 2016 um 10:35
I seem to remember the following variations in \startuseMPgraphic.

(1) \startuseMPgraphic{name}{comma separated list of variables}
(2) \startuseMPgraphic{name}{comma separated list of key=value pairs}
In the second case one is able to set a default value to that variable, 
possibly to be overridden with \useMPgraphic{name}{key=value}.
I very much would like to specify default values on the \startuseMPgraphic 
definition of the graphic.

However, I cannot get option (2) working. Do I have a bad memory (possible of 
course ;-), Has it to be done otherwise?

\startuseMPgraphic{hans}{color}
  pickup pencircle scaled 1mm;
  draw unitsquare scaled 1cm withcolor \MPvar{color};
\stopuseMPgraphic

\setupMPvariables[hans][color=red]

\starttext

\useMPgraphic{hans}

\useMPgraphic{hans}{color=blue}

\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] framedtext

2016-04-11 Thread Meer, Hans van der

On 11 Apr 2016, at 18:13, Alan BRASLAU 
> wrote:

Would it not be better to use ConTeXt alignment, rather than the TeX
primitives \hfil and \hfill?

\startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft]
left
\stopframedtext

Could be of course. But the question is: from where the counterintuitive 
behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)

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] \startuseMPgraphic

2016-04-11 Thread Meer, Hans van der
I seem to remember the following variations in \startuseMPgraphic.

(1) \startuseMPgraphic{name}{comma separated list of variables}
(2) \startuseMPgraphic{name}{comma separated list of key=value pairs}
In the second case one is able to set a default value to that variable, 
possibly to be overridden with \useMPgraphic{name}{key=value}.
I very much would like to specify default values on the \startuseMPgraphic 
definition of the graphic.

However, I cannot get option (2) working. Do I have a bad memory (possible of 
course ;-), Has it to be done otherwise?
In the example below the graphic myname1 is ok, but myname2 gives the following 
error:
metapost> error:
>> orange
! Improper type.

   ;
<*> ...raw unitsquare scaled 1cm withcolor orange;

minimal example:

\starttext
\startuseMPgraphic{myname1}{color}
  pickup pencircle scaled 1mm;
  draw unitsquare scaled 1cm withcolor \MPvar{color};
\stopuseMPgraphic

\startuseMPgraphic{myname2}{color=red}
  pickup pencircle scaled 1mm;
  draw unitsquare scaled 1cm withcolor \MPvar{color};
\stopuseMPgraphic

\useMPgraphic{myname1}{color=blue}
\useMPgraphic{myname2}{color=orange}

\stoptext

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] framedtext

2016-04-11 Thread Meer, Hans van der
I am getting an unexpected results with framedtexts.Why is the second 
"centered" not centered?

\starttext
\startframedtext[left][frame=on,offset=0pt,width=broad]
left\hfill
\stopframedtext
\startframedtext[middle][frame=on,offset=0pt,width=broad]
\hfil centered\hfil
\stopframedtext
\startframedtext[middle][frame=on,offset=0pt,width=broad]
\hfill centered\hfill
\stopframedtext
\startframedtext[right][frame=on,offset=0pt,width=broad]
\hfill right
\stopframedtext
\startframedtext[none][frame=on,offset=0pt,width=broad]
none
\stopframedtext
\stoptext

This is LuaTeX, Version beta-0.90.0 (TeX Live 2016)
ConTeXt  ver: 2016.04.01 13:01 MKIV beta  fmt: 2016.4.5  int: english/english

Hans van der Meer





framedtext-middle.pdf
Description: framedtext-middle.pdf
___
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] framedtext

2016-04-11 Thread Meer, Hans van der
Wolfgang, Hans,
Thanks for your explanations.
Hans van der Meer

On 11 Apr 2016, at 19:10, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
11. April 2016 um 18:49


Could be of course. But the question is: from where the counterintuitive 
behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)
It’s easy to explain on the following example.

 begin example
\starttext

\hfil Text\hfil

\hfill Text\hfill

\stoptext
 end example

At the end of a paragraph TeX removes the last skip and inserts the 
\parskipfill [1] value which is by default "0pt plus 1fil".

For the first text line this results in the expected output but not for the 
second line because the inserted “fil” is smaller than the needed “fill”. You 
can check this when you change the \parskipfill stretchability from fil to fill:

 begin example
\starttext

\hfill Text\hfill

\start \parfillskip = 0pt plus 1 fill
\hfill Text\hfill \par
\stop

\stoptext
 end example

[1] https://www.tug.org/utilities/plain/cseq.html#parfillskip-rp

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl<mailto: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
___

met vriendelijke groet
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] \startuseMPgraphic

2016-04-11 Thread Meer, Hans van der
But why should typing \MPcolor{\MPvar{color}}be necessary or useful when 
\MPvar(color) obviously is sufficient?
Or is there a special reason for the nested macros?

> On 11 Apr 2016, at 19:16, Aditya Mahajan <adit...@umich.edu> wrote:
> 
> On Mon, 11 Apr 2016, Meer, Hans van der wrote:
> 
>> 
>> On 11 Apr 2016, at 16:17, Alan BRASLAU 
>> <alan.bras...@cea.fr<mailto:alan.bras...@cea.fr>> wrote:
>> 
>> Remember that ConTeXt colors can be accessed in MP as
>> \MPcolor{orange}
>> 
>> Alan
>> 
>> However with the snippet below I see the default black with MPcolor and the 
>> wanted red with \MPvar. Thus?
>> 
>> Hans van der Meer
>> 
>> \starttext
>> \startuseMPgraphic{example1}{color}
>>   pickup pencircle scaled 1mm;
>>   draw unitsquare scaled 1cm
>>withcolor \MPcolor{color};
> 
> This is looking for a color named 'color'. You need \MPcolor{\MPvar{color}}.
> 
> 
>> \stopuseMPgraphic
>> \startuseMPgraphic{example2}{color}
>>   pickup pencircle scaled 1mm;
>>   draw unitsquare scaled 1cm
>>withcolor \MPvar{color};
>> \stopuseMPgraphic
>> \useMPgraphic{example1}{color=red}
>> \useMPgraphic{example2}{color=red}
>> \stoptext
> 
> Aditya

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] framedtext

2016-04-11 Thread Meer, Hans van der

> On 11 Apr 2016, at 12:28, Mari Voipio <mari.voi...@iki.fi> wrote:
>
> On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der <h.vanderm...@uva.nl> 
> wrote:
>
>> \startframedtext[middle][frame=on,offset=0pt,width=broad]
>> \hfil centered\hfil
>> \stopframedtext
>> \startframedtext[middle][frame=on,offset=0pt,width=broad]
>> \hfill centered\hfill
>> \stopframedtext
>
> One has \hfil with one l and the other has \hfill with two l:s. \hfil
> with one l seems to produce centering, while \hfill with two l:s makes
> the text end up on the right.
>
> Don't know if this is a feature or a bug, but this is the reason to
> why those lines differ.

Indeed, but that is just what puzzles me and why I posted my question.
\hfill is stronger than \hfil and thus it seems all the more strange that the 
left and right \hfill do not produce the same centering as the \hfil's do.

Hans van der Meer





framedtext-middle.pdf
Description: framedtext-middle.pdf
___
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] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
Previously I could do the following

\starttext
\startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment
\startMPpage
% metafont code
\stopMPpage
\stoptext
\endinput

This is called by context --run --once etc. producing the figure and in this 
case modifying the font to a smaller size. Note, the context call occurs on the 
fly inside a \directlua{{os.execute(..)}. You may find this complicated, but it 
works for me and I would rather like not having to change may things all over 
the place.

Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and 
that I should use defineMPinstance and setupMPinstance instead.
Thus I tried

\defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red]
\startsetups mp:smallfont
\switchtobodyfont[small]
\stopsetups
\startMPpage  and also \startMPpage[mp:local]
% metafont code
\stopMPpage
\stoptext
\endinput

But nothing happens. How do I get the effect earlier obtained with 
startMPenvironment without having to rely an a deprecated macro?

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] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der


On 04 Apr 2016, at 00:12, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 4/3/2016 4:07 PM, Meer, Hans van der wrote:
Previously I could do the following

\starttext
\startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment
\startMPpage
% metafont code
\stopMPpage
\stoptext
\endinput

This is called by context --run --once etc. producing the figure and in this 
case modifying the font to a smaller size. Note, the context call occurs on the 
fly inside a \directlua{{os.execute(..)}. You may find this complicated, but it 
works for me and I would rather like not having to change may things all over 
the place.

Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and 
that I should use defineMPinstance and setupMPinstance instead.
Thus I tried

\defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red]
\startsetups mp:smallfont
\switchtobodyfont[small]
\stopsetups
\startMPpage  and also \startMPpage[mp:local]
% metafont code
\stopMPpage
\stoptext
\endinput

But nothing happens. How do I get the effect earlier obtained with 
startMPenvironment without having to rely an a deprecated macro?

the bodyfont environment was needed because we had to communicate to the 
external mp run what the intended settings were
in mkiv the run is internal so the mp text generator adapts to the current 
settings and there is no need to pass anything


Indeed, I can see the effect of mp functioning inside mkiv. But there is still 
something I do not understand.

I get small italic text doing this:

\startMPenvironment[+]
\switchtobodyfont[small]
\it
\stopMPenvironment

But italic only doing:

%\startMPenvironment[+]
\switchtobodyfont[small]
\it
%\stopMPenvironment

How is that possible?

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] xml input

2016-04-13 Thread Meer, Hans van der
I would like to process several input sources as one xml tree. Like this:







with the sources having the structure

...
...


and the code for  containing:
read from all sources given on -notes
afterwards process all content at once

Thus the content of the various source should be read into one tree to be 
processed, but I cannot get this done.
How to amalgam this separate sources into one?

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] xml input

2016-04-13 Thread Meer, Hans van der
Just a thought.

\xmlprocessbuffer and \xmlprocessfile{id}... register the tree they read under 
id. Is there a way to merge several id's to one tree?

Hans van der Meer

On 13 Apr 2016, at 16:21, Meer, Hans van der 
<h.vanderm...@uva.nl<mailto:h.vanderm...@uva.nl>> wrote:

I would like to process several input sources as one xml tree. Like this:







with the sources having the structure

...
...


and the code for  containing:
read from all sources given on -notes
afterwards process all content at once

Thus the content of the various source should be read into one tree to be 
processed, but I cannot get this done.
How to amalgam this separate sources into one?

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] typebuffer different from typefile

2016-04-24 Thread Meer, Hans van der
The point is not that I am without options for a practical solution here. 
My point is that the difference between \typebuffer and \typefile breaks the 
strict and so much appreciated congruence between like macro calls.
Therefore my post must rather be seen as a plea to the maintainer(s) of these 
to consider a change in the given direction.

Hans van der Meer

> On 24 Apr 2016, at 17:04, Pablo Rodriguez  wrote:
> 
> On 04/24/2016 10:31 AM, dr. Hans van der Meer wrote:
>> Why is there a difference in syntax between typing buffers and typing files?
>> For files enclosure in {} for buffers in [], for files optional
>> parameters, for buffers not.
>> Is it possible to make the syntax of these two the same, because their
>> usage parallels each other?
> 
> Hi Hans,
> 
> I wonder whether any of these two options may help you:
> 
>\setuptyping[buffer][style=\ttx]
>\startbuffer[test]
>content of buffer
>\stopbuffer
>\starttext
>\typebuffer[test][style=\ss\red]
>\typefile[style=\ttx\blue]{test.txt}
>\stoptext
> 
> Again, just in case it might help,
> 
> Pablo





___
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] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
Thanks,

Your reply popped up here exactly the moment I saw the light! Must be something
Messed up the order things:

Was:
\scale[\scalesetting]{%
\expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

And of course had to be:
\expanded{\scale[\scalesetting]{%
\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

On 25 Apr 2016, at 13:22, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 4/25/2016 1:11 PM, Meer, Hans van der wrote:
With images one can scale them on placement, for example 
\externalfigure[][scale=250,height=..] etc.
Is such a scaling or separate height,width setting also possible with the 
placement of useMPgraphic?
Or needs all scaling of thesebe done within the metapost/metafun code?

\scale[...]{}


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] xml input

2016-04-22 Thread Meer, Hans van der

On 21 Apr 2016, at 10:41, Hans Hagen > 
wrote:


your

\xmlsetsetup{#1}{*}{-}

makex takenotes into a nothing ... (comment that line if needed to see effects 
in your code)


I got that line from your first demo program in "Dealing with XML in ConTeXt 
Mkiv":

\startxmlsetups xml:demo:base
(1)   \xmlsetsetup{#1}{*}{-}
(2)   \xmlsetsetup{#1}{document|section|p}{xml:demo:*}
\stopxmlsetups

The comment on page 7 with that demo:
(1) \xmlsetup{demo}{*}{-} sets the default for each element (the *) to 'just 
ignore it' (the -). A + would...
(2) followed by  "this means that at this point we only handle" and I 
understood from this that because of the 'section' in statement (2) the 
 node will get processed. Congruent with this example I wrote in my 
example:

\startxmlsetups notes:setups
   \xmlinclude{#1}{include}{file}
   \xmlsetsetup{#1}{*}{-}
   \xmlsetsetup{#1}{takenotes}{notes:*}
\stopxmlsetups

expecting this to mean that  will be activated by it. Is that a 
misunderstanding?

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] xml expression error

2016-04-29 Thread Meer, Hans van der

On 28 Apr 2016, at 22:13, Pablo Rodriguez > 
wrote:

On 04/28/2016 05:06 PM, dr. Hans van der Meer wrote:
Why is there anexpression error here? I would expect that the expression
number(-1101) evaluates to a negative number taking part in the
comparsion. It looks as if the minus sign is not seen as an unary minus,
while -1101 should have be evaluated by Lua's tonumber(-1101).

relevant code snippet is:
\xmlfilter{#1}{lpath[number(@date) <= number(-1101)]/command(...)

I wouldn’t get it, even with a minimal sample, but xml-mkiv.pdf includes
the shortcut for this function.

Here is a minimal example showing that even a number as -1 is not correctly 
handled by the lpath[selection]-code.
I really am convinced that not handling negative numbers should qualify as a 
mistake.

Hans van der Meer


% failure of negative number comparison.
\startxmlsetups demo:numberfail
\xmlsetsetup{#1}{root|node}{demo:numberfail:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:numberfail}
\startxmlsetups demo:numberfail:root
@atta >= 1:\crlf
\xmlfilter{#1}{/[number(@atta) >= 1]/command(demo:numberfail:node)}
\blank
@atta >= -1:\crlf
\xmlfilter{#1}{/[number(@atta) >= -1]/command(demo:numberfail:node)}
\xmlfilter{#1}{/[number(@atta) >= number(-1)]/command(demo:numberfail:node)}
\stopxmlsetups
\startxmlsetups demo:numberfail:node
node: attribute atta = \xmlatt{#1}{atta}\crlf
\stopxmlsetups
\startbuffer[numberfail]




\stopbuffer
\starttext
\xmlprocessbuffer{demo}{numberfail}{}
the error from \type{\xmlfilter{#1}{/[number(@atta) >= 
-1]/command(demo:numberfail:node)}}:
\starttyping
xml > lpath > error in expression: number(@atta) >= -1 => 
expr.number((ll.at and ll.at['atta'])) >= 
expr.child(ll,'-')1
\stoptyping

the error from \type{\xmlfilter{#1}{/[number(@atta) >= 
number(-1)]/command(demo:numberfail:node)}}:
\starttyping
xml > lpath > error in expression: number(@atta) >= number(-1) => 
expr.number((ll.at and ll.at['atta'])) >= 
expr.number(expr.child(ll,'-')1)
\stoptyping
\stoptext




xml-number.pdf
Description: xml-number.pdf
___
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] evaluation of != and ~=

2016-04-29 Thread Meer, Hans van der
This one took the better part of an afternoon from me, but I finally found the 
(unexpected) culprit.
In the xml documentation on page 31 it is said:
 The given expression between [] is converted to a LUA expression so you can 
use the use operators: == ~= <= >= < > not and or ()
In addition, = equals == and != is the same as ~=.

This is not true as the following demonstrates. The use of != is as expected 
but the ~= leads to an error and this should not be:

xml> lpath > error in expression: number(@atta) ~= 1 => 
expr.number((ll.at and ll.at['atta'])) ~== 1


Hans van der Meer


% failure of test on inequality.
\startxmlsetups demo:comparefail
\xmlsetsetup{#1}{root|node}{demo:comparefail:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:comparefail}
\startxmlsetups demo:comparefail:root
compare \type{!=}\crlf
\xmlfilter{#1}{/[number(@atta) != 1]/command(demo:comparefail:node)}
compare \type{~=}\crlf
\xmlfilter{#1}{/[number(@atta) ~= 1]/command(demo:comparefail:node)}
\stopxmlsetups
\startxmlsetups demo:comparefail:node
node: attribute atta = \xmlatt{#1}{atta}\crlf
\stopxmlsetups
\startbuffer[comparefail]




\stopbuffer
\starttext
\xmlprocessbuffer{demo}{comparefail}{}
Note the absence of output in the second \tex{xmlfilter}.
\stoptext



xml-compare.pdf
Description: xml-compare.pdf
___
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] Updating ConTeXt standalone problem on Mac OS X

2016-04-26 Thread Meer, Hans van der
I am running the same OSX El Capitan (from a non-administrator account) and I 
have no problems installing the ConTeXt-beta with the following script executed 
inside a fresk and empty directory:

#!/bin/bash
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
chmod a+x first-setup.sh
mkdir tex
cd tex
ln -s ~/Documents/TeX/texmf texmf-local
cd ..
sh ./first-setup.sh --context=beta >first-setup.log
#sh ./first-setup.sh --context=current >first-setup.log
#sh ./first-setup.sh --context=date >first-setup.log
exit


On 26 Apr 2016, at 11:34, Mojca Miklavec 
> wrote:

On 26 April 2016 at 11:21, Jaroslav Hajtmar wrote:
Hello ConTeXist
I have a problem with updating ConTeXt on my Mac OS X (El Captain). When you
run the update script to me an error message appears, which surprises me,
since I logged on as the system administrator. Can anyone advise me on what
could be the problem.

Running rsync as an administrator has an ugly consequence that you end
up copying the UID and GUID as-is, so you might end up with files
owned by very strange or perhaps even non-existing users.

Maybe you could play with
   --chown=USER:GROUP
when calling rsync from first-setup.sh to start with.

Who currently owns bin and bin/luatex?

It is not impossible that something changed yesterday though (I was
messing with the server), but the installation works for me. What
happens if you run the installation as a regular user (to a fresh
directory)?

We should look into it, but I need some proper diagnosis first.

Mojca
___

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] xml input

2016-04-23 Thread Meer, Hans van der
For those still interested in the inclusion of nodes into the root of the 
xml-tree.
With the help of a hint by Hans Hagen, the following is the best I am able to 
produce.
The code below includes the contents of the file twice as can be seen in the 
pdf.

\startbuffer[test]





\stopbuffer

\startxmlsetups notes:setups
\xmlinclude{#1}{include}{file}
\xmlsetsetup{#1}{takenotes}{notes:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{notes:setups}

\startxmlsetups notes:takenotes
\xmlshow{\xmldocument}
\stopxmlsetups

\starttext
\xmlprocessbuffer{demo}{test}{}
\stoptext


Hans van der Meer






mini.pdf
Description: mini.pdf
___
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] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
With images one can scale them on placement, for example 
\externalfigure[][scale=250,height=..] etc.
Is such a scaling or separate height,width setting also possible with the 
placement of useMPgraphic?
Or needs all scaling of thesebe done within the metapost/metafun code?

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] typesetting content of attribute

2016-04-30 Thread Meer, Hans van der
The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has


The problem is that this produces the macrotext \bf and does not execute the 
\bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and called with 
\csname..\endcsname, but this is but a simple example and would not work for 
'\it\bf', etc.

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] typesetting content of attribute

2016-04-30 Thread Meer, Hans van der

On 30 Apr 2016, at 19:08, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 4/30/2016 3:28 PM, Meer, Hans van der wrote:
The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has


The problem is that this produces the macrotext\bf and does not execute
the \bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and called with
\csname..\endcsname, but this is but a simple example and would not work
for '\it\bf', etc.

\starttexcode \stoptexcode


Either I am doing something the wrong way, or it isn't that simple. See the 
example and its output.

Hans van der Meer


% failure to typeset attribute.
\startxmlsetups demo:texatt
\xmlsetsetup{#1}{root|node}{demo:texatt:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:texatt}
\startxmlsetups demo:texatt:root
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups demo:texatt:node
node: attribute textstyle = \xmlchainatt{#1}{textstyle}\crlf
now use \tex{it}:
{\starttexcode
\xmlchainatt{#1}{textstyle}"should be italic"
\stoptexcode
}\crlf
\stopxmlsetups
\startbuffer[texatt]



\stopbuffer
\starttext
\xmlprocessbuffer{demo}{texatt}{}
\stoptext





xml-tex-attribute.pdf
Description: xml-tex-attribute.pdf
___
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] xml expression error

2016-04-28 Thread Meer, Hans van der

> On 28 Apr 2016, at 22:13, Pablo Rodriguez  wrote:
> 
> On 04/28/2016 05:06 PM, dr. Hans van der Meer wrote:
>> Why is there anexpression error here? I would expect that the expression
>> number(-1101) evaluates to a negative number taking part in the
>> comparsion. It looks as if the minus sign is not seen as an unary minus,
>> while -1101 should have be evaluated by Lua's tonumber(-1101).
>> 
>> relevant code snippet is:
>> \xmlfilter{#1}{lpath[number(@date) <= number(-1101)]/command(...)
> 
> Sorry, Hans, I guess my question will be stupid, but why don’t use
> "tonumber(-1101)"?

It is convenient to use positive numbers for dates after the year 0: AD = Anno 
Domine,
and negative numbers for years before: BC = Before Christ.
Comparing dates is easy in both eras.

> 
> I wouldn’t get it, even with a minimal sample, but xml-mkiv.pdf includes
> the shortcut for this function.
> 
> Just in case it might even help ;-),

Has to wait until tomorrow, because it is already late in the evening.

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] useMPgraphic scaling

2016-04-26 Thread Meer, Hans van der

On 25 Apr 2016, at 16:34, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 4/25/2016 3:46 PM, Meer, Hans van der wrote:
Thanks,

Your reply popped up here exactly the moment I saw the light! Must be
something
Messed up the order things:

Was:
\scale[\scalesetting]{%
   \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

And of course had to be:
\expanded{\scale[\scalesetting]{%
   \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

is the \expanded really needed?

Sure, is needed. Checked it again.
I define \scalesetting as
\edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}}
But I am not sure why this needs the expansion..

The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does not need 
the \expanded.

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] 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
___

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

2016-05-20 Thread Meer, Hans van der
Remembered that Hans Hagen recently told me (and Jean-Pierre reminded me of 
this) that the document can be generated with:
   context --extra=setups --overview i-context.xml
I did this and the resultant document now has in the document properties:
  PDF Producer: LuaTeX-0.95.0
  PDF Version : 1.7 (Acrobat 8.x)
This document is searchable indeed, both in Adobe Acrobat Reader DC and in 
Apple's Preview.
Conclusion: the problem must be --at least on my perfectly normal straight 
out-of-the-box MacOSX-- located in the producer "Mac OSX (version) Quartz 
PDFContext". Why? About that I am in the dark.

> On 19 May 2016, at 23:09, Wolfgang Schuster  
> wrote:
> 
>> 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).

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] 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
___

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 <haber...@telia.com> wrote:
> 
> 
>> On 19 May 2016, at 17:00, Meer, Hans van der <h.vanderm...@uva.nl> 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] \page[header]

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 16:32, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 5/22/2016 2:32 PM, Meer, Hans van der wrote:
>> According to the description of \page in the contextgarden:
>> "header - set header off temporarily"
>> 
>> But although this gives two pages numbered 1 and 2:
>> \starttext
>> \input knuth
>> \page
>> \input knuth
>> \stoptext
>> 
>> This one does not honour the new page but typesets everything on page 1:
>> \starttext
>> \input knuth
>> \page[header]
>> \input knuth
>> \stoptext
>> 
>> Is that as intended?
> 
> yes, it just changes a state, but you can use \page[header,yes]

It is not clear as yet.
\starttext
\input knuth
\page[header,yes]
\input knuth
\page[header,yes]
\input knuth
\stoptext
Here I get three pages, the first two without the last with header. That I 
understand.

\starttext
\input knuth
\page[header]
\page
\input knuth
\stoptext
Both pages keep their header.

\starttext
\input knuth
\page
\page[header]
\input knuth
\stoptext
Both pages keep their header.

Should I conclude that the state change occurs if and onlyif when in the same 
macrocall a real pagebreak is realize?
Because otherwise I do not observe a state change.

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] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 18:08, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Meer, Hans van der 22. Mai 2016 um 10:33
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
>> have the size as if the bodyfont had been setup with 
>> \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
> You can define your own typeface where you change the scaling.
> 
> \definetypeface [hans] [rm] [serif] [cambria] [default]
> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
> \definetypeface [hans] [mm] [math]  [cambria] [default]
> 
> \setupbodyfont[hans]
> 
> \starttext
> a{\tt a} e{\tt e} A{\tt A}
> \stoptext
> 
> Wolfgang

Am I right that to change nothing more than the size of \tt it is sufficient to 
just redefine that one only:

\setupbodyfont[afont]
\definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
\setupbodyfont[hans]

and leaving everything else as is?

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] \page[header]

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 17:44, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Meer, Hans van der 22. Mai 2016 um 17:40
>> 
>> It is not clear as yet.
>> \starttext
>> \input knuth
>> \page[header,yes]
>> \input knuth
>> \page[header,yes]
>> \input knuth
>> \stoptext
>> Here I get three pages, the first two without the last with header. That I 
>> understand.
>> 
>> \starttext
>> \input knuth
>> \page[header]
>> \page
>> \input knuth
>> \stoptext
>> Both pages keep their header.
>> 
>> \starttext
>> \input knuth
>> \page
>> \page[header]
>> \input knuth
>> \stoptext
>> Both pages keep their header.
>> 
>> Should I conclude that the state change occurs if and onlyif when in the 
>> same macrocall a real pagebreak is realize?
>> Because otherwise I do not observe a state change.
> Change the order of the keywords (yes before header).
> 
> The header and footer keywords can be used when you want to hide header and 
> footer texts
> on empty left pages before a chapter etc. in a doublesided document.

That is clear to me. But my question was: why do neither \page\page[header] nor 
\page[header]\page make any difference unless in these cases \page[haeder] is 
effectively a noop.

> 
> \setuppagenumbering[alternative=doublesided]
> \setuphead[chapter][page={yes,header,right}]
> \starttext
> \chapter{First chapter}
> \chapter{Second chapter}
> \stoptext
> 
> Wolfgang


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] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 20:01, Meer, Hans van der <h.vanderm...@uva.nl> wrote:
> 
> 
>> On 22 May 2016, at 18:08, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
>> wrote:
>> 
>>> Meer, Hans van der 22. Mai 2016 um 10:33
>>> As usual I do a setup for the font with for example: 
>>> \setupbodyfont[cambria].
>>> For most style variants this is fine, but for \tt I find the size too big.
>>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) 
>>> should have the size as if the bodyfont had been setup with 
>>> \setupbodyfont[cambria,small].
>>> 
>>> How to effectuate this?
>> You can define your own typeface where you change the scaling.
>> 
>> \definetypeface [hans] [rm] [serif] [cambria] [default]
>> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
>> \definetypeface [hans] [mm] [math]  [cambria] [default]
>> 
>> \setupbodyfont[hans]
>> 
>> \starttext
>> a{\tt a} e{\tt e} A{\tt A}
>> \stoptext
>> 
>> Wolfgang
> 
> Am I right that to change nothing more than the size of \tt it is sufficient 
> to just redefine that one only:
> 
> \setupbodyfont[afont]
> \definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
> \setupbodyfont[hans]
> 
> and leaving everything else as is?
> 
> Hans van der Meer
> 
> 

No I already guess I am wrong here: in order to keep cambria for rm etc I 
should add also:
\definetypeface [hans][rm][serif][\fontclass][default]
etc.
Right?

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] flushleft and startplacefigure

2016-05-22 Thread Meer, Hans van der
\startplacefigure inherits a lot of location settings but among these flushleft 
and flushright are missing.
Thus the \setupfloat in the example cannot be omitted. Wouldn't it be a logical 
step to make possible also:
\startplacefigure[location=flushleft] 
dito for flushright?

\starttext
% example to extend figure into the left margin (Hans Hagen, 2014-07-25)
\setupfloat[figure][location=flushleft]
\startplacefigure
   \framed[width=1.1\textwidth]{location=flushleft}
\stopplacefigure
\stoptext

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] new features

2016-05-22 Thread Meer, Hans van der

On 22 May 2016, at 15:11, Hans Hagen > 
wrote:

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)

because one property of modes is that one doesn't have to define them, you'd be 
quite unhappy if you would have to define all possible modes that could be 
introduced in styles

The idea was not to have the user define the mode, but let ConTeXt 
automatically do the defining when it encounters a specific mode the first 
time. The work is done by ConTeXt then (would make me even more happy ;-)

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] name current font

2016-05-22 Thread Meer, Hans van der
How do I get the name of the currently set font?
macro \currentfont does not exist.

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] \page[header]

2016-05-22 Thread Meer, Hans van der
According to the description of \page in the contextgarden:
"header - set header off temporarily"

But although this gives two pages numbered 1 and 2:
\starttext
\input knuth
\page
\input knuth
\stoptext

This one does not honour the new page but typesets everything on page 1:
\starttext
\input knuth
\page[header]
\input knuth
\stoptext

As that as intended?

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] name current font

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 17:32, Aditya Mahajan <adit...@umich.edu> wrote:
> 
> On Sun, 22 May 2016, Meer, Hans van der wrote:
> 
>> How do I get the name of the currently set font?
>> macro \currentfont does not exist.
> 
> \fontclass?
> 
> Also see: http://tex.stackexchange.com/a/287123/323
> 
> Aditya

Thanks. I had guessed at \currentfont and not thought of \fontclass.

After \setupbodyfont{...} with \fontname{}, \fontfamily{}, \truefontname{}, 
\fontsize{} existing, how do I pass the fontparameter in there?

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] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 12:07, L.S.-Soc <axteff...@gmail.com> wrote:
> 
> Did you try\setupbodyfontenvironment?
> 
> http://wiki.contextgarden.net/Command/setupbodyfontenvironment

Didn't help, because I cannot deduce from this how to systematically change the 
series of fontsizes for one style (tt) only.

> 
> I hope that helps.
> 
> Greetings, Seba
> 
> Am 22.05.2016 um 10:33 schrieb Meer, Hans van der:
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
>> have the size as if the bodyfont had been setup with 
>> \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
>> 
>> Hans van der Meer
>> 

met vriendelijke groet
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] Bugs with minimals 2015.05.24 12:42

2016-05-24 Thread Meer, Hans van der

> On 02 Jun 2015, at 14:51, Hans Hagen  wrote:
> 
> If you install extra fonts and files, you should put them in
> 
> tex/texmf-fonts
> tex/texmf-project
> 
> as these are left untouched. That has always been the recommendation. The 
> other trees will be synchronized in an update and that also includes deleting 
> obsolete files.

I guess the same applies to /tex/texmf-local?

And how is that with tex/texmf-modules? I am asking because there is also a 
modules directory:
context/tex/texmf-context/tex/context/modules 
It would be nice if I safely can put my modules there instead of burying them 
somewhere else in the trees.

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] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der

Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.

\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red 
Master\egroup}}
\def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red 
Master\egroup}}
\starttext
\startsection[title=\MarkMasterA First title]
\input hawking
\MarkMasterA
\input hawking
\stopsection
\startsection[title=\MarkMasterB First title]
\input hawking
\MarkMasterB
\input hawking
\blank
contextversion=\contextversion
\stopsection
\stoptext

In the first section the absolute value of 9 pt appears not to be honoured but 
it looks as if there is a reduction relative to the surrounding font.
In the second section the size does not change and looks even bigger than the 
first one above.

I am baffled and do not understand why not all fontsizes are the same absolute 
9pt as requested?

Hans van der Meer






marginfontsize.pdf
Description: marginfontsize.pdf
___
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] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der

> On 24 May 2016, at 15:57, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Meer, Hans van der  24. Mai 2016 um 15:04
>> 
>> Can someone explain to me the changes in fontsize in the following example?
>> Enclosing the fontswitches in a group did not change the behaviour.
>> 
>> \setupbodyfont[dejavu,12pt]
>> \def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red 
>> Master\egroup}}
>> \def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red 
>> Master\egroup}}
>> \starttext
>> \startsection[title=\MarkMasterA First title]
>> \input hawking
>> \MarkMasterA
>> \input hawking
>> \stopsection
>> \startsection[title=\MarkMasterB First title]
>> \input hawking
>> \MarkMasterB
>> \input hawking
>> \blank
>> contextversion=\contextversion
>> \stopsection
>> \stoptext
>> 
>> In the first section the absolute value of 9 pt appears not to be honoured 
>> but it looks as if there is a reduction relative to the surrounding font.
>> In the second section the size does not change and looks even bigger than 
>> the first one above.
>> 
>> I am baffled and do not understand why not all fontsizes are the same 
>> absolute 9pt as requested?
> When you flush the margin text in the heading its style (e.g. \tfa) is added 
> to your font size for the margin text.
> 
> To get rid of the size change from \section in your example you can add the 
> "reset" keyword to \switchtobodyfont.

Thanks, I really didn't know that, it could not spot it in my copy of "Fonts in 
Context".

But although reset works for \switchtobodyfont, it is not working in 
\usebodyfont[reset,9pt] in the second section. There it keeps the size derived 
from the section title. Both commands however, are reported to inherit from 
\setupbodyfont (where the reset is named). Should that be 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] fontsize changes not understood

2016-05-24 Thread Meer, Hans van der

On 24 May 2016, at 17:00, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
24. Mai 2016 um 16:28

Thanks, I really didn't know that, it could not spot it in my copy of "Fonts in 
Context".

But although reset works for \switchtobodyfont, it is not working in 
\usebodyfont[reset,9pt] in the second section.
Why do you think \usebodyfont can be used to change the font size in your 
document, is this mentioned in a manual?
There it keeps the size derived from the section title. Both commands however, 
are reported to inherit from \setupbodyfont (where the reset is named). Should 
that be correct?
IIRC \usebodyfont can be used to preload a typeface at the begin of a document 
which make switching to it later in the document with \switchtobodyfont or 
\setupbodyfont faster but this also means settings like the font size have no 
effect. The reference manual shows "inherits from XXX" in such a case because 
a) it is true that the command inherits its values from another command b) it’s 
faster to document (can be changed but one has to check which arguments are 
valid).


Never too old to learn something I didn't fully understood before. Thanks.

met vriendelijke groet
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] new features

2016-05-22 Thread Meer, Hans van der

> On 26 Jun 2014, at 12:08, Hans Hagen  wrote:
> 
> Another addition is that
> 
> \definemode[something][keep]
> 
> define an undefined mode; the keep makes sure that the already set value is 
> kept (another option is 'yes').
> 
> Using defined modes (that is, set with: \enablemode, \disablemode or 
> \definemode) can be tested about twice as fast as undefined modes which can 
> make a small difference 


I do not understand this fully: 
- if the mode is undefined, how can "define an undefined mode" for a mode that 
has already been given a value with either \enablemode or \disablemode keep a 
value? Must not \enablemode, \disablemode do some sort of 'defining' in order 
to facilitate testing? Does "define" here implements some other mechanism than 
the 'defining' done by \enablemod, \disablemode?

Is this what happens:
- if \enablemode or \disablemode has been used before to set a value for the 
mode, than \definemode[themode][keep] stashes some special definition of that 
mode and does not change c.q. transfers its value;
- \definemode[themode][yes] and \definemode[themode][no] always set that value 
for the mode in case, regardless of what has been done by a preceding 
\enablemode or \disablemode.

Is that the correct interpretation? Just to make sure I understand.

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)

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] bibliography tool

2016-05-22 Thread Meer, Hans van der

> On 30 Jun 2014, at 17:33, Wolfgang Schuster  
> wrote:
> 
> 
> Am 30.06.2014 um 17:29 schrieb Gour :
> 
>> Hans Hagen  writes:
>> 
>>> beware: the mkii derived bibliograpic support for mkiv is replaced so
>>> that page is kind of obsolete (the new manual is in the distribution)
>> 
>> You mean this one http://wiki.contextgarden.net/Bibliography_mkiv is
>> also obsolete?
>> 
>> Where is the new manual and is the manual going to be published in paper
>> form?
> 


> There should be a pdf named mkiv-publications.pdf in your context directory.
> 

This no longer seems to be true. I cannot find such a document in directory
   /tex/texmf-context/doc/context/documents/general/manuals
nor have I found the sources in the corresponding directory.
I presume this is "Bibliographies the ConTeXt Way" by Hans Hagen and Alan 
Braslau I got from somewhere (and alas forgot wherefrom).

It would be nice to have it there, because if time permits I intend to play 
with the new bib-macros in order to familiarize with them.

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] smaller size for particular style

2016-05-22 Thread Meer, Hans van der
As usual I do a setup for the font with for example: \setupbodyfont[cambria].
For most style variants this is fine, but for \tt I find the size too big.
Thus I would like to keep the sizes as setup by the \setupbodyfont for 
everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
have the size as if the bodyfont had been setup with 
\setupbodyfont[cambria,small].

How to effectuate this?

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] Support for Optional Content Groups

2016-05-22 Thread Meer, Hans van der

> On 03 Jul 2014, at 19:54, Hans Hagen  wrote:
> 
> I tried this in acrobat:
> 
> \defineviewerlayer[visibleandprint]  [printable=yes,state=start]
> \defineviewerlayer[visibleandnotprint]   [printable=no, state=start]
> \defineviewerlayer[notvisibleandprint]   [printable=yes,state=stop]
> \defineviewerlayer[notvisibleandnotprint][printable=no, state=stop]
> 
> \setupinteraction[state=start]
> 
> \starttext
> 
> \startviewerlayer[visibleandprint]   visible and print \stopviewerlayer 
> \blank
> \startviewerlayer[visibleandnotprint]visible and not print 
> \stopviewerlayer \blank
> \startviewerlayer[notvisibleandprint]not visible and print 
> \stopviewerlayer \blank
> \startviewerlayer[notvisibleandnotprint] not visible and not print 
> \stopviewerlayer \blank
> 
> \stoptext
> 
> and found out that we need an extra piece of info for acrobat to be happy. 
> I'll upload a beta with that addition.
> 
> I wonder if other viewers handle layers well.

I tried this today and report the results, curious to see how on my Apple 
Macintosh the following readers cope with this:

- Adobe Acrobat Reader DC version 15.016.20041 (most recent): does as is 
intended
- Apple Preview: shows all four, definitely a bad score for Apple here. 

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 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 <alan.bras...@cea.fr> 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" <h.vanderm...@uva.nl> 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 <haber...@telia.com> wrote:
>>> 
>>> 
>>>> On 19 May 2016, at 17:00, Meer, Hans van der <h.vanderm...@uva.nl>
>>>> 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] Reviewing old messages

2016-05-16 Thread Meer, Hans van der


On 16 May 2016, at 16:41, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
16. Mai 2016 um 16:31
Thanks.

I redid the examples with the autostrut parameter set to respectively yes and 
no. In the former case I see all have an hbox and in the latter case all have a 
vbox. So it seems not the align, but the strut being the one determining the 
box variant.
No, the align settings determines the box type. The \strut at the begin forces 
horizontal mode which results in both \hbox’es in the same line.

Ok. But when using "strut=no,autostrut=no" I see for all values of align the 
abc/xyz below each other and none having abcxyz. Doesn't that suggest that all 
boxes are vbox and that the strut merely forces horizontal mode? Otherwise I do 
not understand what happens.

Thus I did the experiment again, for all options with 
\framed[strut=no,autostrut=no,align=OPTION]{\ifvmode V\else H\f.
I  found a V at the front of the output in each and every case.


\starttext

\ifvmode Vertical \else Horizontal \fi mode

\strut
\ifvmode Vertical \else Horizontal \fi mode

\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] Reviewing old messages

2016-05-16 Thread Meer, Hans van der
Thanks.

I redid the examples with the autostrut parameter set to respectively yes and 
no. In the former case I see all have an hbox and in the latter case all have a 
vbox. So it seems not the align, but the strut being the one determining the 
box variant.

Hans van der Meer




On 16 May 2016, at 16:03, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
16. Mai 2016 um 15:50
Sifting through my TeX-mailbox, I came along this post of Wolfgang Schuster and 
decided to try all variations given to the align parameter on \framed.
Curious in which cases the \hbox and in which the \vbox is chosen, not 
unimportant of course.
I did this by typesetting \hbox{abc}\hbox{xyz} inside a framed. For \hbox want 
expects abcxyz as output and for \vbox abc and below it xyz. As can be seen in 
the first two examples.
To my surprise none of the \framed[align=..] options exhibits \vbox character!

Thus my question: has the behaviour of \framed[align=..] changed in the mean 
time? Three years is of course an eternity when seen in the perspective of the 
speed with which ConTeXt is evolving . Or is there another reason why the 
\vbox effect is not shown in any of the examples?
\framed adds a \strut at the begin and end of the content.

\starttext

\vbox{\hbox{First}\hbox{Second}}

\vbox{\strut\hbox{First}\hbox{Second}}

\framed[align=flushleft]{\hbox{First}\hbox{Second}}

\framed[align=flushleft,strut=no,autostrut=no]{\hbox{First}\hbox{Second}}

\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
___

[NTG-context] Reviewing old messages

2016-05-16 Thread Meer, Hans van der
Sifting through my TeX-mailbox, I came along this post of Wolfgang Schuster and 
decided to try all variations given to the align parameter on \framed.
Curious in which cases the \hbox and in which the \vbox is chosen, not 
unimportant of course.
I did this by typesetting \hbox{abc}\hbox{xyz} inside a framed. For \hbox want 
expects abcxyz as output and for \vbox abc and below it xyz. As can be seen in 
the first two examples.
To my surprise none of the \framed[align=..] options exhibits \vbox character!

Thus my question: has the behaviour of \framed[align=..] changed in the mean 
time? Three years is of course an eternity when seen in the perspective of the 
speed with which ConTeXt is evolving . Or is there another reason why the 
\vbox effect is not shown in any of the examples?
I am enclosing a minmal example and its output. Just curious.

Hans van der Meer


On 18 Apr 2013, at 15:46, Wolfgang Schuster 
> wrote:


Am 18.04.2013 um 15:39 schrieb "Meer, H. van der" 
>:

Why does the [align=middle] makess such a difference?

\framed can use a \hbox or a \vbox to place the content, by default it uses a 
\hbox
but when you set the correct value for the align key it uses a \vbox.

Wolfgang

% testting hbox-vbox behaviour for framed.
\starttext
input:\verbatim{\hbox{\hbox{abc}\hbox{xyz}}}\crlf
\hbox{\hbox{abc}\hbox{xyz}}\blank
input:\verbatim{\vbox{\hbox{abc}\hbox{xyz}}}\crlf
\vbox{\hbox{abc}\hbox{xyz}}\blank
\setupframed[width=0.7\textwidth]
\leftaligned{these are in the command reference}\blank
input:\verbatim{\framed[align=OPTION]{\hbox{abc}\hbox{xyz}}}\blank
inner:\crlf
\framed[align=inner]{\hbox{abc}\hbox{xyz}}\blank
outer:\crlf
\framed[align=outer]{\hbox{abc}\hbox{xyz}}\blank
left:\crlf
\framed[align=left]{\hbox{abc}\hbox{xyz}}\blank
right:\crlf
\framed[align=right]{\hbox{abc}\hbox{xyz}}\blank
flushleft:\crlf
\framed[align=flushleft]{\hbox{abc}\hbox{xyz}}\blank
flushright:\crlf
\framed[align=flushright]{\hbox{abc}\hbox{xyz}}\blank
middle:\crlf
\framed[align=middle]{\hbox{abc}\hbox{xyz}}\blank
center:\crlf
\framed[align=center]{\hbox{abc}\hbox{xyz}}\blank
normal:\crlf
\framed[align=normal]{\hbox{abc}\hbox{xyz}}\blank
no:\crlf
\framed[align=no]{\hbox{abc}\hbox{xyz}}\blank
yes:\crlf
\framed[align=yes]{\hbox{abc}\hbox{xyz}}\blank
broad:\crlf
\framed[align=broad]{\hbox{abc}\hbox{xyz}}\blank
last:\crlf
\framed[align=last]{\hbox{abc}\hbox{xyz}}\blank
r2l:\crlf
\framed[align=r2l]{\hbox{abc}\hbox{xyz}}\blank
l2r:\crlf
\framed[align=l2r]{\hbox{abc}\hbox{xyz}}\blank
\leftaligned{these are extra in the contextgarden}\blank
high:\crlf
\framed[align=high]{\hbox{abc}\hbox{xyz}}\blank
low:\crlf
\framed[align=low]{\hbox{abc}\hbox{xyz}}\blank
lohi:\crlf
\framed[align=lohi]{\hbox{abc}\hbox{xyz}}\blank
\stoptext




framedbox.pdf
Description: framedbox.pdf
___
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] definebodyfontenvironment

2016-05-14 Thread Meer, Hans van der
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is called 
or does ConTeXt remember and execute it once only?

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] definebodyfontenvironment

2016-05-14 Thread Meer, Hans van der
I think I did not state the problem clear enough.
The solution given here supposes that the fontsize is known beforehand.
However, what I am doing is calculating a font size based on the current one 
and than switch to that size.
It is part of a fontsize changing mechanism inside an xmlsetup. In short what I 
am doing is:

\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
% \definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobodyfont[\the\scratchdimen]
...
\endgroup

The commented out \definebodyfontenvironment kills a lot of the font messages 
but I fear that each the time the same work is done as without it. The only 
benefit being the suppression of the font messages in the log ;-)

It might be impossible to accomplish this efficiently -- that is execute the 
font calculations once only for the given size. But at least I would like to 
give it a try.

Hans van der Meer




On 14 May 2016, at 20:00, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
14. Mai 2016 um 17:55
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is called 
or does ConTeXt remember and execute it once only?
Just put it at the begin of the document.

\definebodyfontenvironment[18pt]

\starttext

\dorecurse{10}
  {\begingroup
   \switchtobodyfont[18pt]
   \endgroup}

\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] ConTeXt commands

2016-05-18 Thread Meer, Hans van der

> On 18 May 2016, at 14:39, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 5/18/2016 2:09 PM, Meer, Hans van der wrote:
>> What is the latest edition of "ConTeXt commands"? The one I have here is 
>> dated July 1,2015. It is missing some commands however: \setupnotes to name 
>> an example.
>> 
>> I find it a very handy document, but alas it is not standard in the 
>> contextbeta distribution as for example the LuaTeX manual in latest editiion 
>> is.
>> Otherwise, where is it to be found? It seems absent from the Contextgarden 
>> homepage.
> 
> search for i-context.pdf
> 

Found it, but wouldn't have looked for the pdf in the mkiv-sources directory. 
May I express the wish that it will be standard located in 
"tex/texmf-context/doc/context/documents/general/manuals" where the other ones 
are? Then I need one symbolic link only "to find them all" (for the Tolkien 
fans )

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

2016-05-18 Thread Meer, Hans van der
What is the latest edition of "ConTeXt commands"? The one I have here is dated 
July 1,2015. It is missing some commands however: \setupnotes to name an 
example.

I find it a very handy document, but alas it is not standard in the contextbeta 
distribution as for example the LuaTeX manual in latest editiion is. 
Otherwise, where is it to be found? It seems absent from the Contextgarden 
homepage.

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

2016-05-18 Thread Meer, Hans van der

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
___

Re: [NTG-context] Overlays as background in textbackground

2016-05-18 Thread Meer, Hans van der
This code from three years back ia a reply to a question of placing an overlay 
background. Because the cow is very black I am curious if the \externalfigure 
can have a paramter to change the alpha of the cow, making it more transparent. 
By the way, it is not out of curiosity only. If possible it would forego the 
need to make separate pictures of different transparency beforehand.

> On 15 Jul 2013, at 11:22, Hans Hagen  wrote:
> 
> \definetextbackground [mybackgroundOverlay] [mp=mpos:region:whatever]
> 
> \startuseMPgraphic{mpos:region:whatever}
>for i=1 upto nofmultipars :
>draw textext("\externalfigure[cow.pdf]") rotated 10 shifted center 
> multipars[i] ;
>endfor ;
> \stopuseMPgraphic
> 
> \starttext
> 
>  \startmybackgroundOverlay
>\dorecurse{10}{\input knuth \par}
>  \stopmybackgroundOverlay
> 
> \stoptext

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] xml expression error

2016-05-12 Thread Meer, Hans van der
I think I have the problem nailed down to the fact that in the comparison:
something >= -1234
the parser in question separates the minus in the negative number into a 
separate child node, apart from the digits; witness the errormessage in the log 
below.
Changing the number  -1234 in the arithmetic expression to number("-1234") 
(mind the quotes) does give a correctly evaluated expression.

Still, I am baffled by the fact that in arithmetic expressions positive and 
negative numbers are treated differently in the filtering operation.

Hans van der Meer


On 29 Apr 2016, at 15:04, Meer, Hans van der 
<h.vanderm...@uva.nl<mailto:h.vanderm...@uva.nl>> wrote:

Here is a minimal example showing that even a number as -1 is not correctly 
handled by the lpath[selection]-code.
I really am convinced that not handling negative numbers should qualify as a 
mistake.

Hans van der Meer


% failure of negative number comparison.
\startxmlsetups demo:numberfail
\xmlsetsetup{#1}{root|node}{demo:numberfail:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:numberfail}
\startxmlsetups demo:numberfail:root
@atta >= 1:\crlf
\xmlfilter{#1}{/[number(@atta) >= 1]/command(demo:numberfail:node)}
\blank
@atta >= -1:\crlf
\xmlfilter{#1}{/[number(@atta) >= -1]/command(demo:numberfail:node)}
\xmlfilter{#1}{/[number(@atta) >= number(-1)]/command(demo:numberfail:node)}
\stopxmlsetups
\startxmlsetups demo:numberfail:node
node: attribute atta = \xmlatt{#1}{atta}\crlf
\stopxmlsetups
\startbuffer[numberfail]




\stopbuffer
\starttext
\xmlprocessbuffer{demo}{numberfail}{}
the error from \type{\xmlfilter{#1}{/[number(@atta) >= 
-1]/command(demo:numberfail:node)}}:
\starttyping
xml > lpath > error in expression: number(@atta) >= -1 => 
expr.number((ll.at<http://ll.at/> and ll.at<http://ll.at/>['atta'])) >= 
expr.child(ll,'-')1
\stoptyping

the error from \type{\xmlfilter{#1}{/[number(@atta) >= 
number(-1)]/command(demo:numberfail:node)}}:
\starttyping
xml > lpath > error in expression: number(@atta) >= number(-1) => 
expr.number((ll.at<http://ll.at/> and ll.at<http://ll.at/>['atta'])) >= 
expr.number(expr.child(ll,'-')1)
\stoptyping
\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] xml input

2016-04-14 Thread Meer, Hans van der
My fault, wholly my fault! 
Just didn't look precise enough in replying. 
Thought to answer Hans Hagen in private but was a little offguard.
No offense taken.

Hans van der Meer

> On 14 Apr 2016, at 22:56, Pablo Rodriguez  wrote:
> 
> Hans,
> 
> 
> My apologies for the comment, if the message was intended as private.
> 
> 
> Pablo
> 

___
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] convert old dvi files

2016-04-19 Thread Meer, Hans van der
I need to convert some old dvi files into pdf.
One of the routes seems dvi --(dvips) ->- ps --> pdf
But dvips (taken from the ConTeXt-beta distribution) complains "Couldn't find 
header file: tex.pro"

Where can I find it? It doesn't seem present in the above mentioned 
distribution.
Or is there a ConTeXt mtxrun-call or such, that can do it directly?

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] xml input

2016-04-14 Thread Meer, Hans van der

On 14 Apr 2016, at 10:45, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 4/13/2016 4:21 PM, Meer, Hans van der wrote:
I would like to process several input sources as one xml tree. Like this:







with the sources having the structure

...
...


and the code for  containing:
read from all sources given on -notes
afterwards process all content at once

Thus the content of the various source should be read into one tree to
be processed, but I cannot get this done.
How to amalgam this separate sources into one?

a clue: \xmlinclude

By the way: hoe laad ik de inhoud van een buffer net als van een file, is er 
een buffer equivalent van \xmlinclude?

Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want er volgt 
een crash met een lua-error.
Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de file in het 
attribuut laadt.

Ik heb wat in de code rondgeneusd.
Uit  lxml> tex > including file 'notes-example.xml'
in de log blijkt dat in function lxml.include(id,pattern,attribute,options)
moet zijn uitgevoerd

if trace_loading then
report_lxml("including file %a",filename)
end
noffiles, nofconverted = noffiles + 1, nofconverted + 1
return resolvers.loadtexfile(filename) or ""

Met resolvers tracking komt hier nog tussen:
lxml> tex > including file 'notes-example.xml'
resolvers   > methods > resolving, method 'finders', how 'uri', handler 
'file', argument 'notes-example.xml'
resolvers   > resolving > remembering file 'notes-example.xml' using hash 
'xml::notes-example.xml'
resolvers   > files > file finder: 'notes-example.xml' found
resolvers   > methods > resolving, method 'loaders', how 'uri', handler 
'file', argument 'notes-example.xml'
resolvers   > files > file loader: 'notes-example.xml' loaded
het lijkt erop dat de gezochte file wel geladen is en dat pas daarna ConTeXt 
het opgeeft met de error.

De log geeft me hier:

HVDM-NOTE-DEBUG > enter notes:include
HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
lxml> tex > including file 'notes-example.xml'

lua error   > lua error on line 14 in file 
/Users/hansm/Documents/TeX/texmf/publications/takenotes/take notes.tex:

...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: attempt to 
index field 'settings' (a nil value)
stack traceback:
...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in function 
'include'
...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in function 
<...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
(...tail calls...)


De navolgende code is toch niet fout?

De main input is


  



De file notes-example.xml bevat slechts
 subnodes  etc
omsluiten met ... doet niets anders.

Ik doe het volgende (met loading tracker enabled
\startxmlsetups notes:takenotes
  % Include files and buffers.
  \xmlfilter{#1}{/include/command(notes:include)}
\stopxmlsetups

\startxmlsetups notes:include
  % Include from file.
 \doifnot{\xmlatt{#1}{file}}{\empty}
{\writestatus{HVDM-NOTE-DEBUG}{..looking for file \xmlatt{#1}{file}}
 \xmlinclude{#1}{}{file}}
\stopxmlsetups

Zelfde crash in de volgende gevallen
\xmlinclude{#1}{}{file}
\xmlinclude{#1}{.}{file}
\xmlinclude{#1}{../include}{file}

met vriendelijke groet
Hans van der Meer
met vriendelijke groet
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] xml input

2016-04-21 Thread Meer, Hans van der
A week ago I posted here by accident part of a private conversation (in Dutch) 
with Hans Hagen. I already apologized for this.

On 15 Apr 2016, at 00:47, Mica Semrick 
> wrote:

I'm interested in this thread too... But I'm american, so English only. I 
appreciate your understanding!


>From reactions I understood that other people are interested in this subject 
>of \xmlinclude too, but at that moment I could not produce a coherent story.
After having produced some minimal (1) working, (2)  not working and (3) 
crashing examples, I dare hope that my contribution of these will be of some 
use. And perhaps they will spawn better suggestions and better understanding of 
what happens, because I must confess I am somewhat unsure with functional 
language behaviour, being raised with Assembler, Algol, Pascal, Fortran, and so 
on ;-)

Find below my examples. One can call each of them by commenting out the 
\starthiding.
The last one can be executed by removing the 's at the front of the 
offending statement.
Again, I hope this post will be of some use.

Hans van der Meer

contents of file minimal-example.xml:



Body of first note


Body of second note



Three exampel programs:

\enabletrackers[lxml.loading,lxml.setups]
\startbuffer[notes-xml]




\stopbuffer

\starthiding
% Test #1
\startxmlsetups notes:setups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{notes}{notes:*}
\stopxmlsetups
\xmlregisterdocumentsetup{notes}{notes:setups}
\startxmlsetups notes:notes
\xmlinclude{#1}{include}{file}
\xmlshow{#1}
===> number of  = \xmlcount{#1}{note}
\stopxmlsetups
\starttext
Ok with \type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}}\crlf
\xmlprocessbuffer{notes}{notes-xml}{notes:notes}
\blank
Not ok with \type{\xmlprocessbuffer{notes}{notes-xml}{}}\crlf
\xmlprocessbuffer{notes}{notes-xml}{}
\textrule{end of test \#1}
\stoptext
\stophiding

\starthiding
% Test #2
\startxmlsetups notes:setups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{takenotes}{notes:*}
\stopxmlsetups
\xmlregisterdocumentsetup{notes}{notes:setups}
\startxmlsetups notes:takenotes
\xmlinclude{#1}{include}{file}
\xmlshow{#1}
===> number of  = \xmlcount{#1}{note}
\stopxmlsetups
\startxmlsetups notes:setups
\xmlflush{#1}
\stopxmlsetups
\starttext
Nothing with \type{\xmlprocessbuffer{takenotes}{notes-xml}{}}\crlf
\xmlprocessbuffer{takenotes}{notes-xml}{}
\blank
Not ok with \type{\xmlprocessbuffer{notes}{notes-xml}{}}\crlf
\xmlprocessbuffer{notes}{notes-xml}{}
\blank
Not ok with \type{\xmlprocessbuffer{notes}{notes-xml}{notes:takenotes}}\crlf
\xmlprocessbuffer{notes}{notes-xml}{}
\textrule{end of test \#2}
\stoptext
\stophiding

%\starthiding
% Test #3
\startxmlsetups notes:setups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{notes}{notes:*}
\stopxmlsetups
\xmlregisterdocumentsetup{notes}{notes:setups}
\startxmlsetups notes:notes
\xmlfilter{#1}{takenotes/include/command(notes:include)}
\xmlshow{#1}
===> number of  = \xmlcount{#1}{note}
\stopxmlsetups
\startxmlsetups notes:include
\writestatus{DEBUG}{enter notes: include file 
\xmlattribute{#1}{../include}{file}}
\xmlinclude{#1}{../include}{file}
\stopxmlsetups
\starttext
\type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}} will crash
\xmlprocessbuffer{notes}{notes-xml}{notes:notes}
\crlf prints in the log:
\crlf \type{DEBUG > enter notes: include file minimal-example.xml}
\crlf \type{lxml  > tex > including file 'minimal-example.xml'}
\crlf \type{lua error ... attempt to index field 'settings' (a nil value) 
...tail calls}
\textrule{end of test \#3}
\stoptext
\stophiding


___
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] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Meer, Hans van der

> On 02 Jan 2015, at 11:42, Hans Hagen  wrote:
> 
> On 1/2/2015 12:56 AM, Malte Stien wrote:
>> Hi,
>> 
>> I am trying to typeset some strings in {\tt ...}, but they turn out to be 
>> pretty wide. So, I would like to compress those bits of text a little. Any 
>> hints on how I could do that locally, that is without adjusting the entire 
>> font.
> 
> \starttext
>\definecharacterkerning[tight][factor=-.5]
> 
>test {\tt \setcharacterkerning[tight]tight} test
> 
> \stoptext
> 
> (Btw, there is a narrow monospaced lm font)

I implemented it by redefining \tt: 
  \definecharacterkerning[tight][factor=-.075]
  \let\oldtt=\tt 
  \def\tt{\setcharacterkerning[tight]\oldtt}

However, I find this a bit of a kludge. But opinions may differ, of course.
Can this be done in a more general way? For example by setting some font 
feature?
 
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] next beta

2016-06-27 Thread Meer, Hans van der

> On 27 Jun 2016, at 10:38, Hans Hagen  wrote:
> 
> The next beta will support this (for mp lovers)
> 
> \definecolor[maincolor]   [r=.5]
> \startMPpage
>fill fullcircle scaled 10cm withcolor "maincolor" ;
>...

> \stopMPpage
> 
> So, in many cases you can use strings instead of \MPcolor{...}.

Thanks. A change making the code imho much more 'attractive' to the eye.

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] smallcaps

2016-06-29 Thread Meer, Hans van der
Thanks.

For those who are curious as to how I became confused about the 
uppercase-lowercase for smallcaps: look at session "803 Typography and Fonts" 
in Apple's WWDC2016 conference, just after 23 minutes and you will understand.

Hans van der Meer




On 29 Jun 2016, at 11:00, Wolfgang Schuster 
> wrote:

dr. Hans van der Meer

29. Juni 2016 um 10:05
I do not understand the behaviour of the \sc macro. I thought smallcaps would 
turn out to be smaller than capitals. But I see no difference between them 
except a subtle difference in letterspacing. Am I doing something wrong here?

Hans van der Meer

Minimal example and output:

\setuppapersize[A5][A5]
\starttext
\setupbodyfont[lmodern]
lmodern: uppercase  smallcaps\blank
\setupbodyfont[cambria]
cambria: uppercase  smallcaps\blank
\LuaTeX-version=0.\the\luatexversion\crlf
\ConTeXt-version=\contextversion\crlf
\stoptext
Smallcaps changes only the layout of lowercase letters but some fonts let you 
also change uppercase letters.

In the example below you can see how you can change uppercase and lowercase 
letter with the smcp and c2sc features.

\definefontfeature[f:smcp][smcp=yes]
\definefontfeature[f:c2sc][c2sc=yes]

\setupbodyfont[pagella]

\starttext

An easy and breezy Sunday morning.

{\feature[+][f:smcp]An easy and breezy Sunday morning.}

{\feature[+][f:c2sc]An easy and breezy Sunday morning.}

{\feature[+][f:c2sc,f:smcp]An easy and breezy Sunday morning.}

\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] \mainlanguage[pe]

2016-07-08 Thread Meer, Hans van der
When naming these macros I would recommend to not use abbreviations like \jday, 
\jdate but rather using more explicite names like for example \jalaliday. 
Otherwise confusion with \jdate as a date in the Julian calendar easily could 
result.

Hans van der Meer




> On 07 Jul 2016, at 23:28, Hans Hagen  wrote:
> 
> On 7/7/2016 2:40 PM, Mohammad Hossein Bateni wrote:
>> While you're at it, could you also add something like jday, jmonth, jmm,
>> jyear, etc. to use the Jalali calendar instead of the Gregorian?  I see
>> that the—commented—conversion code exists in core-con.lua.  I am willing
>> to provide test cases for the conversion.
> 
> sure.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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] typeset page in page

2016-10-10 Thread Meer, Hans van der
I would like to typeset a page in small format (for example A5) and immediately 
put the result on the current page (for example in A4 format). In this way I 
can demo the result of some operations like variations in footnote parameters 
in a running text, etc.
If this can be accomplished, how?

+--+
|   enclosing page A4  |
|  |
|  |
|   +-+|
|   |  embedded   ||
|   |  page A5||
|   |  format ||
|   | ||
|   | ||
|   | ||
|   | ||
|   +-+|
|  |
|  |
|  |
|  |
|  |
|  |
|  |
+--+


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] \showmathfontcharacters ?

2016-10-09 Thread Meer, Hans van der
Not more than 3 years ago the addition of \usemodule[math-10] solved the 
Undefined control sequence error for \showmathfontcharacters.
But at least in ConTeXt  ver: 2016.07.23 13:35 this problem cropped up again.
Where is \showmathfontcharacters defined nowadays?

Hans van der Meer


> On 01 May 2013, at 22:36, Wolfgang Schuster  
> wrote:
> 
> 
> Am 01.05.2013 um 19:15 schrieb "Meer, H. van der" :
> 
>> Why do I get an error on
>> 
>> \starttext
>> \showmathfontcharacters
>> \stoptext
>> 
>> When that macro is defined in s-mat-10.mkiv as
>> \unexpanded\def\showmathfontcharacters
>>   {\dodoubleempty\doshowmathfontcharacters}
>> 
>> 
>> ConTeXt  ver: 2013.04.16 12:08 MKIV beta  fmt: 2013.4.19  int: 
>> english/english
>> ! Undefined control sequence.
>> 9 >>  \showmathfontcharacters
> 
> Add \usemodule[math-10] to your document.
> 
> 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] Slides/material from the Context User Meeting

2016-10-09 Thread Meer, Hans van der
Is there a list of the recently new and updated ones? Because to download all 
of the files on the overview page might be a massive overkill for me. Alas, the 
entries in the list do not have a production date attached.

Hans van der Meer




On 09 Oct 2016, at 17:19, Mohammad Hossein Bateni 
> wrote:


On Thu, Oct 6, 2016 at 4:08 PM, Henning Hraban Ramm 
> wrote:
Am 2016-10-06 um 18:16 schrieb Mohammad Hossein Bateni 
>:

> If I recall correctly someone mentioned on the list that you typically 
> collect the slides during the meeting.  Would it be possible to share them if 
> you have done so this year?

An important part are the updated and added manuals, have a look at
http://www.pragma-ade.com/overview.htm

LuaTeX 1.0.0 is announced and distributed.

Minimals contain a new cowfont (with colorable backgrounds) and some (most? 
all?) of the manuals.

Oh, and the new interface files (texmf-context/tex/context/interface)!

I guess, I was following these gradually as they were happening but I was 
thinking maybe other material from the meeting could be shared.  That's why I 
mentioned the slides of the talks.

> In general, is there any material related to the meeting that unlucky 
> non-participants can access?  I mean, besides the group photo that's up on 
> the website :)

The bitbucket mirror has not been updated since September 24.  Is that normal 
or the result of some configuration mismatch?
___
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
___

  1   2   >