Re: [NTG-context] Using key as numbering in \placepublications

2017-01-18 Thread Antoine Cailliau
Hi,

My question seems to raise no interest, or at least answer :)

To illustrate my problem. My publication list display "[1]", "[2]", etc.
See: http://imgur.com/wVGqNPq

But my text display [Kup03a] for example
See: http://imgur.com/TEsiynq

How can I adjust the publication list to display [Kup03a] instead of [2] ?
The numbering option does not offer "key" apparently.

Thanks in advance,

Antoine

On 16 November 2016 at 11:04, Antoine Cailliau 
wrote:

> Hi,
>
> I'm writing my thesis using ConTeXt but I'm not satisfied with the way the
> publication list is displayed.
> I'd like to display the key, in brackets, in front of every publication in
> the list (i.e. replace the [2] numbering in front of it by [Sha07] for
> example). The numbering option only offers yes, no, short and bib. I'd like
> a "key" option.
>
> How can I achieve that? Any clue, example and/or suggestion is welcome,
>
> Thanks in advance,
>
> Antoine
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
Hi Hans,

Thanks for your attention which fixed most of the difficulties with vertical 
distances around math formulas.
However, after typesetting a long document, I noticed that there are still some 
incorrect behaviours. The following minimal example, extracted from that long 
document, shows what is wrong: please have a look at the second formula in the 
attached PDF. (The output with the older version from TeXLIve 2016 is correct).

%% begin vertical-space-bug.tex
\starttext

\input knuth.tex
\startformula
a \leq a_{n+1} \leq a_{n} \leq b_{n+1} \leq b_{n} \leq b, \qquad\mbox{et}\qquad 
0 \leq b_{n} - a_{n} \leq 2^{-n}(b_{0} - a_{0}).
\stopformula
\input ward.tex
\startformula
g(x_{*}) = \lim_{n\to\infty} g(a_{n}) \leq 0 \leq \lim_{n\to\infty} g(b_{n}) = 
g(x_{*}),
\stopformula
\input knuth.tex

\stoptext
%% end vertical-space-bug.tex



vertical-space-bug-2017-01-17.pdf
Description: Adobe PDF document


> On 18 Jan 2017, at 19:15, Hans Hagen  wrote:
> 
> On 1/18/2017 6:23 PM, Nicola wrote:
>> On 18/01/2017 17:53, Otared Kavian wrote:
>>> Hi Nicola,
>>> 
>>> In fact, if you are in a hurry and don’t use subtle things
>>> introduced  since May 2016, you can use the stable version of ConTeXt
>>> from TeXLive
>>> 2016 (the bug noticed by Mikael, and you, is absent from that version
>>> of ConTeXt).
>> 
>> Thanks, that's what I am doing now. Strangely enough, it fixes the
>> layout for all the slides, *except* the one I have posted before. But
>> that one I can easily fix.
> 
> the current (yesterdays) beta should be ok .. (the midpar flushing of a 
> formula)
> 
> a while ago i reimplemented spacing around display math and as a side effect 
> there might be slightly different spacing (in which case probably the old 
> situation was wrong
> 
> it relates to the fact that tex (traditionally) has some assumptions and does 
> some spacing that interferes with the way we want to control spacing (e.g. it 
> always forces baselineskips while we don't always want them) and it was close 
> to impossible to identify such cases robustly
> 
> (think of preceding lines with different depths)
> 
> recent luatex has ways to disable that so i could finally come up with 
> cleaner spacing models for display math
> 
> so, apart from bugs the current model is the one that will stay (or course 
> more control can be added)
> 
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Hans Hagen

On 1/18/2017 6:23 PM, Nicola wrote:

On 18/01/2017 17:53, Otared Kavian wrote:

Hi Nicola,

In fact, if you are in a hurry and don’t use subtle things
introduced  since May 2016, you can use the stable version of ConTeXt
from TeXLive
2016 (the bug noticed by Mikael, and you, is absent from that version
of ConTeXt).


Thanks, that's what I am doing now. Strangely enough, it fixes the
layout for all the slides, *except* the one I have posted before. But
that one I can easily fix.


the current (yesterdays) beta should be ok .. (the midpar flushing of a 
formula)


a while ago i reimplemented spacing around display math and as a side 
effect there might be slightly different spacing (in which case probably 
the old situation was wrong


it relates to the fact that tex (traditionally) has some assumptions and 
does some spacing that interferes with the way we want to control 
spacing (e.g. it always forces baselineskips while we don't always want 
them) and it was close to impossible to identify such cases robustly


(think of preceding lines with different depths)

recent luatex has ways to disable that so i could finally come up with 
cleaner spacing models for display math


so, apart from bugs the current model is the one that will stay (or 
course more control can be added)


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

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola

On 18/01/2017 17:53, Otared Kavian wrote:

Hi Nicola,

In fact, if you are in a hurry and don’t use subtle things
introduced  since May 2016, you can use the stable version of ConTeXt from 
TeXLive
2016 (the bug noticed by Mikael, and you, is absent from that version of 
ConTeXt).


Thanks, that's what I am doing now. Strangely enough, it fixes the
layout for all the slides, *except* the one I have posted before. But
that one I can easily fix.

Nicola

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
Hi Nicola,

In fact, if you are in a hurry and don’t use subtle things introduced since May 
2016, you can use the stable version of ConTeXt from TeXLive 2016 (the bug 
noticed by Mikael, and you, is absent from that version of ConTeXt).

Best regards: OK

> On 18 Jan 2017, at 17:26, Nicola  wrote:
> 
> On 18/01/2017 16:53, Otared Kavian wrote:
>> Hi Nicola,
>> 
>> Indeed there is a recent bug, reported by Mikael Sundqvist a few days ago, 
>> and Hans is aware of this.
>> Hans said in the next release of ConTeXt beta the issue will be fixed.
> 
> Sorry, I hadn't noticed the other thread. I'll wait for the next beta then.
> 
> Thanks!
> Nicola
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to define a TeX logic function with a boolean returned from a Lua function and \edef fixed value

2017-01-18 Thread Hans Hagen

On 1/18/2017 4:29 PM, DesdeChaves wrote:


Dear sirs,

Is there a way to compare, in TeX environment,  a value returned from a
lua function with a TeX variable?

Please see this code:

\def\aleatorioValue{
\startlua
local nu = math.random(1,10);
if nu<5 return 1 else return 0 end
\stoplua
}

\edef\controlValue{1}
\edef\inferior{Number too small \\}
\edef\superior{Number too big \\}

\def\myfunction{\ifx\aleatorioValue\controlValue\inferior\else\superior\fi}


\starttext

\dorecurse{20}{\myfunction}

\stoptext


\def\aleatorioValue{%
\ctxlua{context(math.random(1,10) < 5 and 1 or 0)}%
}

\def\aleatorioValue{%
\cldcontext{math.random(1,10) < 5 and 1 or 0}%
}

\edef\controlValue{1}
\edef\inferior{Number too small \\}
\edef\superior{Number too big \\}

\def\myfunction{\ifnum\aleatorioValue=\controlValue\relax\inferior\else\superior\fi}



--

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

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola

On 18/01/2017 16:53, Otared Kavian wrote:

Hi Nicola,

Indeed there is a recent bug, reported by Mikael Sundqvist a few days ago, and 
Hans is aware of this.
Hans said in the next release of ConTeXt beta the issue will be fixed.


Sorry, I hadn't noticed the other thread. I'll wait for the next beta then.

Thanks!
Nicola


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
Hi Nicola,

Indeed there is a recent bug, reported by Mikael Sundqvist a few days ago, and 
Hans is aware of this. 
Hans said in the next release of ConTeXt beta the issue will be fixed.

Best regards: OK

> On 18 Jan 2017, at 16:00, Nicola  wrote:
> 
> Hello,
> has something been changed in the last few months in the vertical
> spacing of displayed formulas, frames or other environments?
> 
> I am re-typesetting some presentations using the latest beta and the
> content of slides (especially those containing formulas) now tends to
> flow to the next page, while before it used to fit in one page.
> 
> I paste below an example, if that helps. I am using a system font,
> so you may not be able to reproduce my problem without it.
> 
> Is there something I should change in my documents?
> 
> Nicola
> 
> %%
> \setuppapersize[S6][S6]
> 
> \setuplayout[
>  width=middle,
>  height=middle,
>  topspace=2mm,
>  header=0mm,
>  headerdistance=0mm,
>  location=singlesided,
>  backspace=5mm,
>  margin=0mm,
>  edgedistance=0mm,
>  margindistance=0mm
> ]
> 
> \setupalign[nothyphenated,flushleft]
> 
> % Ocean Sunset (color.adobe.com)
> \definecolor[colorone][r=0.251, g=0.349, b=0.322]
> \definecolor[colortwo][r=0.612, g=0.608, b=0.478]
> \definecolor[colorthree]  [r=1.0,   g=0.827, b=0.576]
> \definecolor[colorfour]   [r=1.0,   g=0.592, b=0.310]
> \definecolor[colorfive]   [r=0.960, g=0.310, b=0.161] %t=0.8 , a=multiply]
> \definecolor[nearlywhite] [s=0.996]
> 
> % Fonts
> \definefontfamily[slidesfont][serif][Avenir] [
>  tf=name:Avenir Light,
>  it=name:Avenir Light Oblique,
>  bf=name:Avenir Heavy,
>  bi=name:Avenir Heavy Oblique
> ]
> \definefontfamily[slidesfont][sans][Avenir] [
>  tf=name:Avenir Light,
>  it=name:Avenir Light Oblique,
>  bf=name:Avenir Heavy,
>  bi=name:Avenir Heavy Oblique
> ]
> \definefallbackfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] % 
> ∪, ∩, ∅
> \definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none]
> \definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % WHITE 
> DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE
> \definefontfamily[slidesfont][math][TeX Gyre Pagella Math]
> 
> \setupbodyfont[slidesfont]
> 
> % Foreground/background color
> \setupcolors[textcolor=colorone]
> \setupbackgrounds[page][background=color, backgroundcolor=nearlywhite]
> 
> % Header
> \startreusableMPgraphic{header:background}
>  fill OverlayBox
>leftenlarged BackSpace
>rightenlarged CutSpace
>topenlarged TopSpace
>withcolor OverlayColor ;
>  setbounds currentpicture to OverlayBox
>enlarged max(BackSpace,CutSpace) ;
> \stopreusableMPgraphic
> 
> \defineoverlay[header:background][\reuseMPgraphic{header:background}]
> 
> \define[2]\MySlide{\framed[
>  frame=off,
>  background=header:background,
>  backgroundcolor=colorfive,
>  width=\textwidth,
>  align=flushleft
> ]{#2}}
> 
> \definehead[slide][subject]
> \setuphead[slide][
>  style=\ssb,
>  command=\MySlide,
>  color=nearlywhite,
>  insidesection=\doifnot{\structureuservariable{align}}{top}\vfill,
>  aftersection=\doifnot{\structureuservariable{align}}{top}\vfill,
>  page=yes,
> ]
> 
> % Footer
> \setuppagenumbering[location=]
> \setupfooter[style=small, color=colortwo]
> \setupfootertexts[][\userpagenumber/\lastuserpage]
> 
> % Lists
> \startuseMPgraphic{itemize:main}
>  save p; path p;
>  p := fullcircle scaled 1.5ExHeight;
>  fill p withcolor \MPcolor{colorfive};
> \stopuseMPgraphic
> 
> \startuseMPgraphic{itemize:nested}
>  save p; path p;
>  p := ((0,-0.5)--(0,0.5)--(0.866,0)--cycle) scaled 1.5ExHeight;
>  fill p withcolor \MPcolor{colorfive};
> \stopuseMPgraphic
> 
> \definesymbol[itemize:main][\useMPgraphic{itemize:main}]
> \definesymbol[itemize:nested][\useMPgraphic{itemize:nested}]
> 
> \setupitemize[1][symbol=itemize:main]
> \setupitemize[2][symbol=itemize:nested, width=1.5ex]
> \setupitemize[2][nowhite]
> 
> \setupitemize[
>  headstyle=\ssa,
>  headcolor=colorfive,
>  afterhead={\blank[none]},
>  inbetween={\blank[big]},
>  leftmargin=1em,
>  rightmargin=1em,
> ]
> 
> % Tables
> \setuptables[rulethickness=0.06em]
> 
> \setupinteraction[state=start,  % make hyperlinks active, etc.
>  style=\tf,
>  color=colortwo,
>  title={What Do You Mean, “Null”?},
>  author={Nicola Vitacolonna},
>  keyword={null}]
> 
> % \usebtxdataset[main.bib]
> % \usebtxdefinitions[apa]
> \setupcombinations[distance=3cm,location=top]
> \defineframedcontent[tablebackground][frame=off,background=color,backgroundcolor=colorthree]
> \setuptables[rulethickness=0.06em,frame=tablebackground]
> 
> \setupalign[nothyphenated,flushleft]
> 
> \defineparagraphs[twocol][n=2]
> \setupparagraphs[twocol][1][width=.7\textwidth]
> 
> 
> \starttext
> \switchtobodyfont[17.3pt]
> 
> \startslide[title={Which Nulls?}][align=top]
>  All of the above may be abstracted into three categories:
> 
>  \startitemize[packed]
>\item
>Exists, but unknown 

[NTG-context] How to define a TeX logic function with a boolean returned from a Lua function and \edef fixed value

2017-01-18 Thread DesdeChaves
Dear sirs,

Is there a way to compare, in TeX environment,  a value returned from a lua
function with a TeX variable?

Please see this code:

\def\aleatorioValue{
\startlua
local nu = math.random(1,10);
if nu<5 return 1 else return 0 end
\stoplua
}

\edef\controlValue{1}
\edef\inferior{Number too small \\}
\edef\superior{Number too big \\}

\def\myfunction{\ifx\aleatorioValue\controlValue\inferior\else\superior\fi}


\starttext

\dorecurse{20}{\myfunction}

\stoptext

Thanks a lot. Have a nice day

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola

Hello,
has something been changed in the last few months in the vertical
spacing of displayed formulas, frames or other environments?

I am re-typesetting some presentations using the latest beta and the
content of slides (especially those containing formulas) now tends to
flow to the next page, while before it used to fit in one page.

I paste below an example, if that helps. I am using a system font,
so you may not be able to reproduce my problem without it.

Is there something I should change in my documents?

Nicola

%%
\setuppapersize[S6][S6]

\setuplayout[
  width=middle,
  height=middle,
  topspace=2mm,
  header=0mm,
  headerdistance=0mm,
  location=singlesided,
  backspace=5mm,
  margin=0mm,
  edgedistance=0mm,
  margindistance=0mm
]

\setupalign[nothyphenated,flushleft]

% Ocean Sunset (color.adobe.com)
\definecolor[colorone][r=0.251, g=0.349, b=0.322]
\definecolor[colortwo][r=0.612, g=0.608, b=0.478]
\definecolor[colorthree]  [r=1.0,   g=0.827, b=0.576]
\definecolor[colorfour]   [r=1.0,   g=0.592, b=0.310]
\definecolor[colorfive]   [r=0.960, g=0.310, b=0.161] %t=0.8 , a=multiply]
\definecolor[nearlywhite] [s=0.996]

% Fonts
\definefontfamily[slidesfont][serif][Avenir] [
  tf=name:Avenir Light,
  it=name:Avenir Light Oblique,
  bf=name:Avenir Heavy,
  bi=name:Avenir Heavy Oblique
]
\definefontfamily[slidesfont][sans][Avenir] [
  tf=name:Avenir Light,
  it=name:Avenir Light Oblique,
  bf=name:Avenir Heavy,
  bi=name:Avenir Heavy Oblique
]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] 
% ∪, ∩, ∅

\definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none]
\definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % 
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE

\definefontfamily[slidesfont][math][TeX Gyre Pagella Math]

\setupbodyfont[slidesfont]

% Foreground/background color
\setupcolors[textcolor=colorone]
\setupbackgrounds[page][background=color, backgroundcolor=nearlywhite]

% Header
\startreusableMPgraphic{header:background}
  fill OverlayBox
leftenlarged BackSpace
rightenlarged CutSpace
topenlarged TopSpace
withcolor OverlayColor ;
  setbounds currentpicture to OverlayBox
enlarged max(BackSpace,CutSpace) ;
\stopreusableMPgraphic

\defineoverlay[header:background][\reuseMPgraphic{header:background}]

\define[2]\MySlide{\framed[
  frame=off,
  background=header:background,
  backgroundcolor=colorfive,
  width=\textwidth,
  align=flushleft
]{#2}}

\definehead[slide][subject]
\setuphead[slide][
  style=\ssb,
  command=\MySlide,
  color=nearlywhite,
  insidesection=\doifnot{\structureuservariable{align}}{top}\vfill,
  aftersection=\doifnot{\structureuservariable{align}}{top}\vfill,
  page=yes,
]

% Footer
\setuppagenumbering[location=]
\setupfooter[style=small, color=colortwo]
\setupfootertexts[][\userpagenumber/\lastuserpage]

% Lists
\startuseMPgraphic{itemize:main}
  save p; path p;
  p := fullcircle scaled 1.5ExHeight;
  fill p withcolor \MPcolor{colorfive};
\stopuseMPgraphic

\startuseMPgraphic{itemize:nested}
  save p; path p;
  p := ((0,-0.5)--(0,0.5)--(0.866,0)--cycle) scaled 1.5ExHeight;
  fill p withcolor \MPcolor{colorfive};
\stopuseMPgraphic

\definesymbol[itemize:main][\useMPgraphic{itemize:main}]
\definesymbol[itemize:nested][\useMPgraphic{itemize:nested}]

\setupitemize[1][symbol=itemize:main]
\setupitemize[2][symbol=itemize:nested, width=1.5ex]
\setupitemize[2][nowhite]

\setupitemize[
  headstyle=\ssa,
  headcolor=colorfive,
  afterhead={\blank[none]},
  inbetween={\blank[big]},
  leftmargin=1em,
  rightmargin=1em,
]

% Tables
\setuptables[rulethickness=0.06em]

\setupinteraction[state=start,  % make hyperlinks active, etc.
  style=\tf,
  color=colortwo,
  title={What Do You Mean, “Null”?},
  author={Nicola Vitacolonna},
  keyword={null}]

% \usebtxdataset[main.bib]
% \usebtxdefinitions[apa]
\setupcombinations[distance=3cm,location=top]
\defineframedcontent[tablebackground][frame=off,background=color,backgroundcolor=colorthree]
\setuptables[rulethickness=0.06em,frame=tablebackground]

\setupalign[nothyphenated,flushleft]

\defineparagraphs[twocol][n=2]
\setupparagraphs[twocol][1][width=.7\textwidth]


\starttext
\switchtobodyfont[17.3pt]

\startslide[title={Which Nulls?}][align=top]
  All of the above may be abstracted into three categories:

  \startitemize[packed]
\item
Exists, but unknown ({\bf missing value})
\startformula
  \exists x\,\hbox{Yalta}(\hbox{Winston},x,\hbox{Churchill})
\stopformula
\item
Nonexistent, not applicable ({\bf inapplicable null})
\startformula
  \neg\exists x\,\hbox{Yalta}(\hbox{Winston},x,\hbox{Churchill}) \land
  \hbox{Yalta}_{-2}(\hbox{Winston},\hbox{Churchill})
\stopformula
\item
Not known to exist ({\bf no-information null})
\startformula
  \hbox{Yalta}_{-2}(\hbox{Winston},\hbox{Churchill})
\stopformula
  \stopitemize

  

Re: [NTG-context] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Hans Hagen

On 1/18/2017 1:58 PM, Christoph Reller wrote:

On Tue, 17 Jan 2017 20:31:20 +0100, Hans Hagen  wrote:


On 1/17/2017 8:13 PM, Henri Menke wrote:

Bump

On 01/09/2017 01:49 PM, Henri Menke wrote:

Dear list,

I cannot seem to find the documentation for the parameters which you can set in 
the first line of the document.  From an example I found that you can select 
the engine this way.

% engine=luajittex
\starttext
Hello World!
\stoptext

What other parameters can I set this way and what is the syntax to set multiple 
parameters?

Cheers,
Henri


engine
synctex
jiton
jithash
directives
trackers
experiments
epub
ctx|ctxfile
interface

plus for scite

language



From what I know there is also:

macros

E.g.

% macros=mkvi


indeed but that one is handled internally (in context)

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

Re: [NTG-context] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Christoph Reller
On Tue, 17 Jan 2017 20:31:20 +0100, Hans Hagen  wrote:
>
> On 1/17/2017 8:13 PM, Henri Menke wrote:
>> Bump
>>
>> On 01/09/2017 01:49 PM, Henri Menke wrote:
>>> Dear list,
>>>
>>> I cannot seem to find the documentation for the parameters which you can 
>>> set in the first line of the document.  From an example I found that you 
>>> can select the engine this way.
>>>
>>> % engine=luajittex
>>> \starttext
>>> Hello World!
>>> \stoptext
>>>
>>> What other parameters can I set this way and what is the syntax to set 
>>> multiple parameters?
>>>
>>> Cheers,
>>> Henri
>
> engine
> synctex
> jiton
> jithash
> directives
> trackers
> experiments
> epub
> ctx|ctxfile
> interface
>
> plus for scite
>
> language
>

From what I know there is also:

macros

E.g.

% macros=mkvi

Cheers,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] keep interaction with \insertpages and \filterpages

2017-01-18 Thread Hans Hagen

On 1/10/2017 9:41 AM, Pablo Rodriguez wrote:

On 01/09/2017 01:15 PM, Hans Hagen wrote:

On 1/9/2017 12:39 PM, Pablo Rodriguez wrote:

Dear list,

is there a way to keep interaction in the resulting PDF document when
adding the whole document with \insertpages, or only some pages with
\filterpages?


\setupexternalfigures[interaction=all]


Many thanks for the reply, Hans.

Is there a way to keep internal document links (such as in the table of
contents)? They are all gone in the imposition (I use the commands above
for imposition).


1.tex:

\setupinteraction[state=start]

\starttext

\placelist[chapter]

\chapter{one}
\chapter{two}

\stoptext


2.tex:

\setupinteraction[state=start]

\starttext

  % \startTEXpage 
\externalfigure[1.pdf][page=1,interaction=all]\stopTEXpage
  % \startTEXpage 
\externalfigure[1.pdf][page=2,interaction=all]\stopTEXpage
  % \startTEXpage 
\externalfigure[1.pdf][page=3,interaction=all]\stopTEXpage


\setuplayout[page]

\setupexternalfigure[interaction=all]

\filterpages[1.pdf][1,2,3]

\page

\setuplayout[reset]

\typefile{1.tex}

\stoptext


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

Re: [NTG-context] Italic correction behaviour is odd

2017-01-18 Thread Hans Hagen

On 1/11/2017 10:11 PM, Henri Menke wrote:

Dear list,

why are italic corrections in the MWE below not inserted according to the rules 
stated in the new font manual?  See comments in the code for details.  I can 
reproduce the issue with TL2016 and latest beta.



you can test with

local function okay(data,current,font,prevchar,previtalic,char,what)
if data then -- remove the not

in typo-itc.lua


Cheers, Henri

---

\definefontfeature
  [default]
  [default]
  [itlc=yes]

\setupitaliccorrection[text]

\enabletrackers[typesetters.italics]

\starttext
{\it beef} beer % seems to be fine

{\it beef} \hbox{beer} % why is correction inserted here?  It's a box

{\it beef}? % correction missing

{\it beef\/}? % adding `global' flag inserts correction here

{\it beef\normalitaliccorrection}? % works always with itlc=yes
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

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