[NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really  
not much experience so far).


I updated to the latest version (0.63) before proceeding.

two observations:

1.
in a new document including assorted equations everything went fine until  
I tried something like


\startformula
x = \left 1 + 2 \right
\stopformula

which caused an error:

8<--
 ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
  {#2}\fastsetup  
{\??simplel...

\math_left ...ame \??mathleft \meaning \nexttoken
  \endcsname \expandafter  
\l...

l.472 x = \left (
1 + 2 \right )
8<--

2.
an old document (not modified these 2 years) does no longer compile due to  
apparently the same problem (not understanding `\left', `\right'.


question: my understanding is, that `context' supports "everything" out of  
the box (notably equations) and there is no need for explicit loading of  
additional packages? so `\left' etc. _should be defined (and it _used_ to  
work 2 years ago)? what am I missing?


thx, joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] A better \definesymbol sought

2017-01-22 Thread Rik Kabel

On 2017-01-20 23:54, Alan Braslau wrote:

On Fri, 20 Jan 2017 22:33:40 -0500
Rik Kabel <cont...@rik.users.panix.com> wrote:


Can anyone suggest a better way to compose such symbols than using
the raw TeX commands used here? Is there a more ConTeXt-ish way to do
this? Is it possible to get options to center the glyphs from which
the symbol is assembled (separate horizontal and vertical, with the
ability to offset them)?

Is there a ConTeXt way other than \definesymbol to create such
combined symbols?

MetaPost (with textext())?


Thank you for that, Alan. I hadn’t ever used MetaPost before, thinking 
it was too complex for my needs. Now I see it may be quite useful.


So, how can I make the inner glyph (‘?’ in the example below) 
transparent, so that the background shows through along with anything 
else that lives on a lower layer? I’ve seen a method for constructed 
shapes, but nothing that I can apply to text glyphs. Undraw doesn’t do it.


  \setupbackgrounds
   [page]
   [background=color,backgroundcolor=yellow]
 \definefont
   [DVSrB]
   [file:DejaVuSerif-Bold.ttf]
 \startuseMPgraphic{HeartTest}
   picture h;
   h := "♥" infont "\truefontname{DejaVuSerif-Bold.ttf}" scaled 20;
   picture q;
   q := textext("{\DVSrB ?}") scaled 10; % just a different way
   q := q shifted - (xpart center q, 12pt) ;
   draw h withcolor blue;
   undraw q;   % this doesn't do it
 \stopuseMPgraphic
 \starttext
   \useMPgraphic{HeartTest}
 \stoptext

--
Rik

___
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] A better \definesymbol sought

2017-01-20 Thread Alan Braslau
On Fri, 20 Jan 2017 22:33:40 -0500
Rik Kabel <cont...@rik.users.panix.com> wrote:

> Can anyone suggest a better way to compose such symbols than using
> the raw TeX commands used here? Is there a more ConTeXt-ish way to do
> this? Is it possible to get options to center the glyphs from which
> the symbol is assembled (separate horizontal and vertical, with the
> ability to offset them)?
> 
> Is there a ConTeXt way other than \definesymbol to create such
> combined symbols?

MetaPost (with textext())?
___
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] A better \definesymbol sought

2017-01-20 Thread Rik Kabel

ConTeXters,

I have been using \definesymbol for a while, and for most purposes it 
suffices. However, there is one thing that it does not do that perhaps 
it should.


What it does not do is offer the option to center one glyph over another 
(horizontally and/or vertically) when it should be centered. Rather, it 
leaves the work to a process of tuning the horizontal and vertical 
levers (kern and raise here) to get something that is close, but rarely 
perfect.


I also see some problems with the horizontal spacing around the new 
symbol, but that may be a function of the underlying glyphs here.


The following example shows what I mean

   \definefont
  [Inits]
  [dejavusans]
   \usesymbols[mvs]
   \define\SqSteel{%
  \tfc
  \symbol[martinvogel 2][SquareSteel]
   }
   \define\RedSansA{%
  \tfx
  \Inits{\red A}
   }
   \definesymbol
  [MyMark]
  [\SqSteel\kern-.87em{\raise.38ex\hbox{\RedSansA}}]
   \define\Test{Some text \symbol[MyMark] some more text.\par}

   \starttext
   \Test
   \setupbodyfont[8pt]
   \Test
   \setupbodyfont[18pt]
   \Test
   \scale[factor=40]{\Test}
   \stoptext

Can anyone suggest a better way to compose such symbols than using the 
raw TeX commands used here? Is there a more ConTeXt-ish way to do this?


Is it possible to get options to center the glyphs from which the symbol 
is assembled (separate horizontal and vertical, with the ability to 
offset them)?


Is there a ConTeXt way other than \definesymbol to create such combined 
symbols?


--
Rik

___
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 <nvitacolo...@gmail.com> 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[table

[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
  \s

Re: [NTG-context] integral symbol

2016-12-29 Thread Hans Hagen

On 12/29/2016 12:12 PM, Fabrice Couvreur wrote:

Hi Hans,
Thanks for your solution. I created a macro, is it "robust" ?
Fabrice

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]


\unexpanded

\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}

\starttext
 \integ{4}{1}{g(x)}
\stoptext


2016-12-28 18:40 GMT+01:00 Hans Hagen >:

On 12/28/2016 6:14 PM, Alan Braslau wrote:

Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a
\over
b} is *much* more readable in running source code than
\frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your
example
below. An alternative syntax (that could co-exist) would be
admitting
$\left\int ... \right.$, but I do not know what limitations
there might
be with both the (luatex) engine and with ConTeXt.


the tricky part there is that int has super and subscripts while
left / right are different animals ... i looked into this (in the
engine) and decided to delay implementing that (i might do it some
day but it's sort of tricky to keep compatibility)

also, ints are upright (extensible or stepwise sizes) or slanted
(stepwise sizes) so even if we support something there are some
limitations due to lack of font support (could be dealt with in due
time)

The problem with extensions, like always, in straying from
traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX
(and
LaTeX) thinking. I know that at some level we do not care, for
we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like
\sum, ...)
that present difficulties and then decide on good solutions.


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://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
___




--

-
  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] integral symbol

2016-12-29 Thread Fabrice Couvreur
Hi Hans,
Thanks for your solution. I created a macro, is it "robust" ?
Fabrice

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]
\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}

\starttext
 \integ{4}{1}{g(x)}
\stoptext


2016-12-28 18:40 GMT+01:00 Hans Hagen :

> On 12/28/2016 6:14 PM, Alan Braslau wrote:
>
>> Hi Hans, Hi list,
>>
>> This is similar to what we have discussed earlier on this list and
>> elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
>> b} is *much* more readable in running source code than \frac{a}{b} but
>> have resigned myself to use \frac{}{}, as this can be made better
>> behaved and gives a much better result.)
>>
>> Other traditional TeX constructs like \int^a_b have their charm (and
>> need to remain supported, just like is \over), but I support
>> introducing and encouraging the use of new constructs like your example
>> below. An alternative syntax (that could co-exist) would be admitting
>> $\left\int ... \right.$, but I do not know what limitations there might
>> be with both the (luatex) engine and with ConTeXt.
>>
>
> the tricky part there is that int has super and subscripts while left /
> right are different animals ... i looked into this (in the engine) and
> decided to delay implementing that (i might do it some day but it's sort of
> tricky to keep compatibility)
>
> also, ints are upright (extensible or stepwise sizes) or slanted (stepwise
> sizes) so even if we support something there are some limitations due to
> lack of font support (could be dealt with in due time)
>
> The problem with extensions, like always, in straying from traditional
>> TeX is interchangeability of code, or, more importantly, in the
>> learning curve obstacles that this introduces to traditional TeX (and
>> LaTeX) thinking. I know that at some level we do not care, for we often
>> make (good) design choices that improve the syntax of ConTeXt.
>>
>> Perhaps we can use this thread to discuss other cases (like \sum, ...)
>> that present difficulties and then decide on good solutions.
>>
>
> 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/list
> info/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] integral symbol

2016-12-28 Thread Hans Hagen

On 12/28/2016 6:14 PM, Alan Braslau wrote:

Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
b} is *much* more readable in running source code than \frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your example
below. An alternative syntax (that could co-exist) would be admitting
$\left\int ... \right.$, but I do not know what limitations there might
be with both the (luatex) engine and with ConTeXt.


the tricky part there is that int has super and subscripts while left / 
right are different animals ... i looked into this (in the engine) and 
decided to delay implementing that (i might do it some day but it's sort 
of tricky to keep compatibility)


also, ints are upright (extensible or stepwise sizes) or slanted 
(stepwise sizes) so even if we support something there are some 
limitations due to lack of font support (could be dealt with in due time)



The problem with extensions, like always, in straying from traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX (and
LaTeX) thinking. I know that at some level we do not care, for we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like \sum, ...)
that present difficulties and then decide on good solutions.


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

Re: [NTG-context] integral symbol

2016-12-28 Thread Alan Braslau
Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
b} is *much* more readable in running source code than \frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your example
below. An alternative syntax (that could co-exist) would be admitting
$\left\int ... \right.$, but I do not know what limitations there might
be with both the (luatex) engine and with ConTeXt.

The problem with extensions, like always, in straying from traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX (and
LaTeX) thinking. I know that at some level we do not care, for we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like \sum, ...)
that present difficulties and then decide on good solutions.

Just a suggestion.

Alan



On Wed, 28 Dec 2016 17:42:39 +0100
Hans Hagen  wrote:

> The problem with integrals is that they don't adapt because they are
> not wrapped as delimiters (like left/right stuff). If \int were a
> command taking an argument it would be easier. As in:
> 
> 
> \starttext
> 
> \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]
> 
> \startlines
> \ruledhbox{$\integral   f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
> \stoplines
> 
> \startformula
>  a =
>  \autointegral{t}{b}1 +
>  \autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
>  \autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
> \stopformula
> 
> \stoptext


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] integral symbol

2016-12-28 Thread Hans Hagen

On 12/28/2016 2:02 PM, Fabrice Couvreur wrote:

Hi Henri,
Thank you for your suggestion.


The problem with integrals is that they don't adapt because they are not 
wrapped as delimiters (like left/right stuff). If \int were a command 
taking an argument it would be easier. As in:



\starttext

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]

\startlines
\ruledhbox{$\integral   f\frac{1}{2}$}
\ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
\ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
\stoplines

\startformula
a =
\autointegral{t}{b}1 +
\autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
\autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
\stopformula

\stoptext




Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke <henrime...@gmail.com
<mailto:henrime...@gmail.com>>:

On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have 
it bigger ?
> thank you,
> Fabrice
>
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
>
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
>
> \setupbodyfont[mainface,11pt]
>
> \starttext
>
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

\math{\displaystyle\int_1^3 k(x)\diff x}

>
> L'aire hachurée se note :
>
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
>
> \stoptext
>
>
>

___
> 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
<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/
<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 <mailto:ntg-context@ntg.nl> /
http://www.ntg.nl/mailman/listinfo/ntg-context
<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/
<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
___




--

-
  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] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hi Henri,
Thank you for your suggestion.
Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke <henrime...@gmail.com>:

> On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> > Hello,
> > The integral symbol is little in inline math mode. Is it possible to
> have it bigger ?
> > thank you,
> > Fabrice
> >
> > \definetypeface [mainface] [rm]
> >[serif] [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [ss]
> >[sans]  [helvetica]   [default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [tt]
> >[mono]  [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [mm]
> >[math]  [palatino][default]   [encoding=texnansi]
> >
> > \setupbodyfont[mainface,11pt]
> >
> > \starttext
> >
> > L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.
>
> \math{\displaystyle\int_1^3 k(x)\diff x}
>
> >
> > L'aire hachurée se note :
> >
> > \startformula
> >   \int_1^3 k(x)\mathop{dx}.
> > \stopformula
> >
> > \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
> > 
> ___
> >
>
> 
> ___
> 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] integral symbol

2016-12-28 Thread Henri Menke
On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have it 
> bigger ?
> thank you,
> Fabrice
> 
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
> 
> \setupbodyfont[mainface,11pt]
>  
> \starttext
> 
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

\math{\displaystyle\int_1^3 k(x)\diff x}

> 
> L'aire hachurée se note :
> 
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
> 
> \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
> ___
> 

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

2016-12-28 Thread Fabrice Couvreur
Hello,
The integral symbol is little in inline math mode. Is it possible to have
it bigger ?
thank you,
Fabrice

\definetypeface [mainface] [rm]
   [serif] [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [ss]
   [sans]  [helvetica]   [default]   [encoding=texnansi]

\definetypeface [mainface] [tt]
   [mono]  [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [mm]
   [math]  [palatino][default]   [encoding=texnansi]

\setupbodyfont[mainface,11pt]

\starttext

L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

L'aire hachurée se note :

\startformula
  \int_1^3 k(x)\mathop{dx}.
\stopformula

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

Re: [NTG-context] "\" in text from "\comment"

2016-12-22 Thread Pablo Rodriguez
On 12/21/2016 10:51 PM, Hans Hagen wrote:
> On 12/21/2016 9:29 PM, Pablo Rodriguez wrote:
>> [...]
>> Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should
>> read "\ConTeXt\ is great".
>>
>> Am I missing something or is this a real bug?
> 
> \startxmlsetups xml:pre:code
>  solution one \begingroup
>  \expandUx
>  \comment[symbol=Key, location=inmargin,color=yellow]{\xmlflush{#1}}
>  \endgroup
>  \par
>  solution two
>  \comment[symbol=Key, location=inmargin,color=yellow]{\xmlpure{#1}}
>  \par
>  \xmlprettyprint{#1}{tex}
> \stopxmlsetups

Many thanks for your help, Hans.

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

Re: [NTG-context] "\" in text from "\comment"

2016-12-21 Thread Hans Hagen

On 12/21/2016 9:29 PM, Pablo Rodriguez wrote:

Dear Hans,

I’m afraid I might have hit a bug (with beta from 2016.12.21 18:51):

\startbuffer[demo]

pandoc
\ConTeXt\ is great

\stopbuffer

\startxmlsetups xml:initialize
 %~ \xmlsetsetup{#1}{doc|p|pre|code}{xml:*}
 \xmlsetsetup{#1}{doc|p|code}{xml:*}
 \xmlsetsetup{#1}{pre/code}{xml:pre:code}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:pre:code
\comment[symbol=Key, location=inmargin,
 color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex}
\stopxmlsetups

\setuppapersize[A6]
\setupinteraction[state=start]

\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext

Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should
read "\ConTeXt\ is great".

Am I missing something or is this a real bug?


\startxmlsetups xml:pre:code
solution one \begingroup
\expandUx
    \comment[symbol=Key, location=inmargin,color=yellow]{\xmlflush{#1}}
\endgroup
\par
solution two
\comment[symbol=Key, location=inmargin,color=yellow]{\xmlpure{#1}}
\par
\xmlprettyprint{#1}{tex}
\stopxmlsetups


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

[NTG-context] "\" in text from "\comment"

2016-12-21 Thread Pablo Rodriguez
Dear Hans,

I’m afraid I might have hit a bug (with beta from 2016.12.21 18:51):

\startbuffer[demo]

pandoc
\ConTeXt\ is great

\stopbuffer

\startxmlsetups xml:initialize
 %~ \xmlsetsetup{#1}{doc|p|pre|code}{xml:*}
 \xmlsetsetup{#1}{doc|p|code}{xml:*}
 \xmlsetsetup{#1}{pre/code}{xml:pre:code}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:pre:code
\comment[symbol=Key, location=inmargin,
 color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex}
\stopxmlsetups

\setuppapersize[A6]
\setupinteraction[state=start]

\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext

Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should
read "\ConTeXt\ is great".

Am I missing something or is this a real bug?

Many thanks for your help,

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

Re: [NTG-context] Undefined control sequence | $\shortmid$ | $\shortparallel$

2016-12-14 Thread Richard Mahoney | Indica et Buddhica
On Tue, 13 Dec 2016 17:32:09 -0800 (PST)
Aditya Mahajan <adit...@umich.edu> wrote:

> On Wed, 14 Dec 2016, Richard Mahoney | Indica et Buddhica wrote:
> 
> > Although I've enabled this module:
> >
> > \usemodule[fnt-25]
> >
> > both of the following:
> >
> > $\shortmid$ 
> >
> > $\shortparallel$
> >
> > result in:
> >
> > tex error ... ! Undefined control sequence
> >
> >
> > Does anyone know if these commands are available under in math
> > mode?  
> 
> AFAIK, these symbols are not defined. Do you know if unicode math
> fonts provide these symbols and if they are part of Unicode math
> symbol list?
> 
> Aditya

I'm not sure. That said, XeTeX can render them using Latin Modern Roman
and Math so they are available.

For what its worth they can be found in `Binary Relations II' of:

 LaTeX and AMS-LaTeX Symbols, Emre Sermutlu, March 17, 2008

 http://zelmanov.ptep-online.com/ctan/symbols.pdf


Best, Richard



--
  Richard Mahoney | INDICA ET BUDDHICA
 Littledene  Bay Road  Oxford  New Zealand
T: +64-3-312-1699 | www.indica-et-buddhica.org
___
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] Undefined control sequence | $\shortmid$ | $\shortparallel$

2016-12-13 Thread Aditya Mahajan

On Wed, 14 Dec 2016, Richard Mahoney | Indica et Buddhica wrote:


Although I've enabled this module:

\usemodule[fnt-25]

both of the following:

$\shortmid$ 


$\shortparallel$

result in:

tex error ... ! Undefined control sequence


Does anyone know if these commands are available under in math mode?


AFAIK, these symbols are not defined. Do you know if unicode math fonts 
provide these symbols and if they are part of Unicode math symbol list?


Aditya
___
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] bug with backslash in comment (xml)?

2016-12-08 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startbuffer[demo]

pandoc
\ConTeXt\ is great

\stopbuffer

\startxmlsetups xml:initialize
 %~ \xmlsetsetup{#1}{doc|p|pre|code}{xml:*}
 \xmlsetsetup{#1}{doc|p|code}{xml:*}
 \xmlsetsetup{#1}{pre/code}{xml:pre:code}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:pre:code
\comment[symbol=Key, location=inmargin,
 color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex}
\stopxmlsetups

\setuppapersize[A6]
\setupinteraction[state=start]

\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext

I’m afraid that I get "\Ux {5C}ConTeXt\Ux {5C} is great" instead of
"\ConTeXt\ is great".

I’m afraid I might have hit a bug. Or am I missing something?

Many thanks for your help,

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

Re: [NTG-context] Strange behaviour of itemize inside tabulate

2016-11-21 Thread Willi Egger
Thank you Herbert, this indeed solves the problem.

Willi
> On 20 Nov 2016, at 20:45, Herbert Voss <herbert.v...@fu-berlin.de> wrote:
> 
> Am 20.11.2016 um 20:25 schrieb Willi Egger:
> 
>> I have the following minimal example
>> 
>> % \setupitemgroup
>> %[itemize]
>> %[each]
>> %[autointro,packed]
>> %[symbol=2]
> 
> Use
> 
> \setupitemgroup
>   [itemize]
>   [each]
>   [packed]
>   [symbol=2]
> 
> 
> Herbert
> 
> 
>> 
>> \starttext
>> \starttabulate[|l|p|]
>>  \NC \bf Druk procedé  \NC \bf Opmerking \NC\NR
>>  \NC Offset  \NC \strut weinig problemen als onverpakt\crlf 
>> \NC\NR
>>  \NC Digitaal\NC beduidend lager i.v.m. warmte fixatie.
>>  
>>  \startitemize
>>  \startitem
>>  zo snel 
>> mogelijk weer verpakken na het printen.
>>  \stopitem
>>  \stopitemize\par
>>   \NC\NR
>> \stoptabulate
>> \stoptext
>> 
>> When not uncommenting the setupitemgroup the tabulate appears as expected. 
>> However with the setupitemgroup enabled the row containing the itemize is 
>> shifted up and overlays the first row…
>> 
>> Do I miss something?
>> 
>> Thank you for looking at this. Kind regards
>> 
>> Willi
>> ___
>> 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
> ___

___
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] Strange behaviour of itemize inside tabulate

2016-11-20 Thread Herbert Voss

Am 20.11.2016 um 20:25 schrieb Willi Egger:


I have the following minimal example

% \setupitemgroup
%   [itemize]
%   [each]
%   [autointro,packed]
%   [symbol=2]


Use

\setupitemgroup
[itemize]
[each]
[packed]
[symbol=2]


Herbert




\starttext
\starttabulate[|l|p|]
\NC \bf Druk procedé  \NC \bf Opmerking \NC\NR
\NC Offset  \NC \strut weinig problemen als onverpakt\crlf 
\NC\NR
\NC Digitaal\NC beduidend lager i.v.m. warmte fixatie.

\startitemize
\startitem
zo snel 
mogelijk weer verpakken na het printen.
\stopitem
\stopitemize\par
 \NC\NR
\stoptabulate
\stoptext

When not uncommenting the setupitemgroup the tabulate appears as expected. 
However with the setupitemgroup enabled the row containing the itemize is 
shifted up and overlays the first row…

Do I miss something?

Thank you for looking at this. Kind regards

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

[NTG-context] Strange behaviour of itemize inside tabulate

2016-11-20 Thread Willi Egger
Hello,

I have the following minimal example

% \setupitemgroup
%   [itemize]
%   [each]
%   [autointro,packed]
%   [symbol=2]

\starttext
\starttabulate[|l|p|]
\NC \bf Druk procedé  \NC \bf Opmerking \NC\NR
\NC Offset  \NC \strut weinig problemen als onverpakt\crlf 
\NC\NR
\NC Digitaal\NC beduidend lager i.v.m. warmte fixatie.

\startitemize
\startitem  
zo snel 
mogelijk weer verpakken na het printen.
\stopitem
\stopitemize\par
 \NC\NR
\stoptabulate
\stoptext

When not uncommenting the setupitemgroup the tabulate appears as expected. 
However with the setupitemgroup enabled the row containing the itemize is 
shifted up and overlays the first row… 

Do I miss something?

Thank you for looking at this. Kind regards

Willi
___
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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Hi Tobber,
First of all thank you for your help. Everything worked except for the
compilation where it's always texlive context and not standalone.

Running `ConTeXt' on `ntg62' with ``context --once --texutil  --nonstop
ntg62.tex''

resolvers   | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex
--fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--interaction="nonstopmode" --jobname="ntg62"
--lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg62.tex"
--c:input="./ntg62.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode
--c:once --c:texutil "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
 system commands enabled.

resolvers   > trees > analyzing 'home:texmf'
open source > 1 > 1 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.10.29  int:
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv

system  > files > jobname 'ntg62', input './ntg62', result 'ntg62'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/fab/ntg62.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file
'/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > /home/fab/ntg62.tex
close source> 1 > 3 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

mkiv lua stats  > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
mkiv lua stats  > resource resolver: loadtime 0.115 seconds, 1 scans with
scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths:
/home/fab/texmf
mkiv lua stats  > stored bytecode data: 387 modules (0.337 sec), 82 tables
(0.011 sec), 469 chunks (0.348 sec)
mkiv lua stats  > traced context: maxstack: 1175, freed: 0, unreachable:
1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
mkiv lua stats  > node memory usage: 11 glue, 2 penalty, 22 attribute, 38
glue_spec, 8 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 32 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds
loading
mkiv lua stats  > callbacks: 136 direct, 244 indirect, 380 total
mkiv lua stats  > randomizer: initialized with value 0.1895933152128
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: ntg62.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 4
instances, load time 0.209 seconds
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live
2016)mkiv lua stats  > control sequences: 43813 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 72 MB (ctx: 71
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.608 seconds, 1 processed pages, 1 shipped
pages, 1.645 pages/second

system  | total runtime: 0.849 seconds

TeX Output finished at Mon Oct 31 09:57:37

2016-10-30 14:38 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:

> Ok, your problem is more auctex than ConTeXt. So, try this:
>
> (1) Add to .emacs:
>
> ;; SERVER Download (MELPA):
> (when (>= emacs-major-version 24)
>   (require 'package)
>   (add-to-list
>'package-archives
>'("melpa" . "http://melpa.org/packages/;)
>t)
>   (package-initialize))
>
> to get connection to MELPA server.
>
> (2) Save .emacs and start Emacs again
> (3) Open OPTIONS—MANAGE EMACS PACKAGES
> (4) Install current auctex version
> (5) Restart Emacs
> (6) Get into context-mode (M-x context-mode)
> (7) Type M-x customize-variable RET ConTeXt-Mark-version RET
>
> +++
> If Emacs respon

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Tobias Berndt
Ok, your problem is more auctex than ConTeXt. So, try this:

(1) Add to .emacs:

;; SERVER Download (MELPA):
(when (>= emacs-major-version 24)
  (require 'package)
  (add-to-list
   'package-archives
   '("melpa" . "http://melpa.org/packages/;)
   t)
  (package-initialize))

to get connection to MELPA server. 

(2) Save .emacs and start Emacs again
(3) Open OPTIONS—MANAGE EMACS PACKAGES
(4) Install current auctex version
(5) Restart Emacs
(6) Get into context-mode (M-x context-mode)
(7) Type M-x customize-variable RET ConTeXt-Mark-version RET

+++
If Emacs responds: Wrong type argument: symbolp, „string“ (that’s the bug) open 
context.el (somewhere in .emacs.d/(m)elpa/auctex-11.89.X) and replace line 501 
(or nearby)

:type "string"

with

:type 'string

and recompile the file with `M-x byte-compile file RET RET’.
+++

(8) Switch from Mark II to Mark IV

Now, Emacs should generally provide support to ConTeXt Mark IV. To compile 
tex-files comfortable right out of Emacs via C-c C-c add:

(9) (setenv "PATH" "/home/fab/tex/texmf-linux-64/bin/:$PATH" t) to your .emacs 
and
(10) (setq ConTeXt-Mark-version "IV“) if you want
(11) Save file and restart Emacs
(12) Open a context file and try out


ALOHA, tobber







> Am 30.10.2016 um 13:30 schrieb Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
> 
> Hi Tobias,
> 
> (2) Possible completions are:
> ConTeXt-close-environment ConTeXt-close-xml-tag
> ConTeXt-environment ConTeXt-etexshow
> ConTeXt-find-matching-start ConTeXt-find-matching-stop
> ConTeXt-insert-item ConTeXt-mark-environment
> ConTeXt-mode ConTeXt-mode-command-menu
> ConTeXt-mode-menu ConTeXt-section
> ConTeXt-work-on-environment
> 
> I added in .emacs 
> 
> (custom-set-variables 
>  '(ConTeXt-Mark-version "IV"))
> 
> update auctex
>  
> How ? Auctex installed with ELPA
> 
> (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
> 
>  I do not understand this symbol „ and how to access
> 
> Thanks
> Fabrice
> 
> 
> 2016-10-30 12:15 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:
> @ Fabrice: If you’re working under a Linux, use „home“ instead of „Users“ 
> (I’m under macOS, therefore I left „Users“) and forget about the add-to-list 
> line. So:
> 
> (1) M-x context-mode
> (2) M-x ConTeXt-Mark-version (switch to mkIV)
> 
> If there is no such command: update auctex; if this gives an error (there 
> was/is a bug:) tell me and I’ll give you an instruction how to manipulate 
> your context.el
> 
> (3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“ t)
> (4) ;; (add-to-list 'load-path 
> "/home/fab/context/tex/texmf-linux-64/bin/context“)
> (5) Restart Emacs
> 
> C-c C-c should work, now.
> 
> 
> ALOHA, tobber
> 
> 
> 
> 
> 
> 
> > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur 
> > <fabrice1.couvr...@gmail.com>:
> >
> > Hi,
> > @Tobias
> >
> > If I add this to my .emacs I get
> >
> > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t)
> > (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context")
> >
> > Warning (initialization): An error occurred while loading 
> > `/home/fab/.emacs':
> >
> > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
> >
> >
> > @Michael
> >
> > fab@debian:~$ which context
> > /home/fab/bin/context
> > fab@debian:~$ source context/tex/setuptex
> > Setting "/home/fab/context/tex" as ConTeXt root.
> > fab@debian:~$ which context
> > /home/fab/context/tex/texmf-linux-64/bin/context
> > fab@debian:~$
> >
> > If I add this to my .emacs is always texlive 2016 is invoked when I compile
> >
> > (eval-after-load "tex"
> > '(add-to-list 'TeX-command-list
> > '("context"
> >  "(/home/fab/context)/setuptex&"
> >   TeX-run-TeX
> >   nil
> >   (context-mode)
> >   :help "Run ConTeXt") t))
> >
> >
> > Thanks,
> > Fabrice
> >
> >
> > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> > sorry that should be:
> >
> > (path to textree)/setuptex && context .
> >
> >
> >>
> >> cd (path to textree) && setuptex && context etc...
> >
> >
> > ___
> > If your question is of interest to others as wel

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Peter Münster
On Sun, Oct 30 2016, Fabrice Couvreur wrote:

> (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
>
>  I do not understand this symbol „ and how to access

You should replace „ with ".

-- 
   Peter
___
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] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
Hi Tobias,

(2) Possible completions are:
ConTeXt-close-environment ConTeXt-close-xml-tag
ConTeXt-environment ConTeXt-etexshow
ConTeXt-find-matching-start ConTeXt-find-matching-stop
ConTeXt-insert-item ConTeXt-mark-environment
ConTeXt-mode ConTeXt-mode-command-menu
ConTeXt-mode-menu ConTeXt-section
ConTeXt-work-on-environment

I added in .emacs

(custom-set-variables
 '(ConTeXt-Mark-version "IV"))

update auctex


How ? Auctex installed with ELPA

(setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)


 I do not understand this symbol „ and how to access

Thanks
Fabrice


2016-10-30 12:15 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:

> @ Fabrice: If you’re working under a Linux, use „home“ instead of „Users“
> (I’m under macOS, therefore I left „Users“) and forget about the
> add-to-list line. So:
>
> (1) M-x context-mode
> (2) M-x ConTeXt-Mark-version (switch to mkIV)
>
> If there is no such command: update auctex; if this gives an error (there
> was/is a bug:) tell me and I’ll give you an instruction how to manipulate
> your context.el
>
> (3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“
> t)
> (4) ;; (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context“)
> (5) Restart Emacs
>
> C-c C-c should work, now.
>
>
> ALOHA, tobber
>
>
>
>
>
>
> > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
> >
> > Hi,
> > @Tobias
> >
> > If I add this to my .emacs I get
> >
> > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t)
> > (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context")
> >
> > Warning (initialization): An error occurred while loading
> `/home/fab/.emacs':
> >
> > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
> >
> >
> > @Michael
> >
> > fab@debian:~$ which context
> > /home/fab/bin/context
> > fab@debian:~$ source context/tex/setuptex
> > Setting "/home/fab/context/tex" as ConTeXt root.
> > fab@debian:~$ which context
> > /home/fab/context/tex/texmf-linux-64/bin/context
> > fab@debian:~$
> >
> > If I add this to my .emacs is always texlive 2016 is invoked when I
> compile
> >
> > (eval-after-load "tex"
> > '(add-to-list 'TeX-command-list
> > '("context"
> >  "(/home/fab/context)/setuptex&"
> >   TeX-run-TeX
> >   nil
> >   (context-mode)
> >   :help "Run ConTeXt") t))
> >
> >
> > Thanks,
> > Fabrice
> >
> >
> > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> > sorry that should be:
> >
> > (path to textree)/setuptex && context .
> >
> >
> >>
> >> cd (path to textree) && setuptex && context etc...
> >
> >
> > 
> ___
> > 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
> > 
> ___
>
> 
> ___
> 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] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Michael Eidenbenz
It looks like auctex is still choosing the wrong command.

Please read this information:
https://www.gnu.org/software/auctex/manual/auctex/Selecting-a-Command.html

maybe this helps

(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("context_standalone"
 "source /home/fab/context/tex/setuptex && context"
  TeX-run-TeX
  nil
  (context-mode)
  :help "Run ConTeXt") t))

then choose the command "context_standalone" explicitly in the minibuffer

(and try without the local variables in your buffer)


> On 30 Oct 2016, at 10:10, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> ​Hi Michael,
> ​
> Thank you for your help but it does not work, maybe a problem with the Emacs 
> shell.
> 
> Running `ConTeXt' on `ntg32' with ``context --once --texutil  --nonstop 
> ntg32.tex''
> 
> resolvers   | trees | analyzing 'home:texmf'
> mtx-context | run 1: luatex 
> --fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
>  --interaction="nonstopmode" --jobname="ntg32" 
> --lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
>  --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg32.tex" 
> --c:input="./ntg32.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode 
> --c:once --c:texutil "cont-yes.mkiv"
> This is LuaTeX, Version 0.95.0 (TeX Live 2016) 
>  system commands enabled.
> 
> resolvers   > trees > analyzing 'home:texmf'
> open source > 1 > 1 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.10.29  int: 
> english/english
> 
> system  > 'cont-new.mkiv' loaded
> open source > 2 > 2 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> close source> 2 > 2 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
> 
> system  > files > jobname 'ntg32', input './ntg32', result 'ntg32'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > 2 > 3 > /home/fab/ntg32.tex
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> backend > xmp > using file 
> '/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpage 1
> close source> 2 > 3 > /home/fab/ntg32.tex
> close source> 1 > 3 > 
> /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> mkiv lua stats  > used config file: 
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: 
> /home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
> mkiv lua stats  > resource resolver: loadtime 0.104 seconds, 1 scans with 
> scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths: 
> /home/fab/texmf
> mkiv lua stats  > stored bytecode data: 387 modules (0.366 sec), 82 tables 
> (0.011 sec), 469 chunks (0.377 sec)
> mkiv lua stats  > traced context: maxstack: 1176, freed: 1, unreachable: 1175
> mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
> mkiv lua stats  > node memory usage: 15 glue, 2 penalty, 22 attribute, 38 
> glue_spec, 8 attribute_list, 2 temp
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
> (re)created, 32 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
> output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds 
> loading
> mkiv lua stats  > callbacks: 136 direct, 245 indirect, 381 total
> mkiv lua stats  > randomizer: resumed with value 0.17602822472156
> mkiv lua stats  > positions: 13 collected, 8 regulars, 5 regions, 0 
> unresolved regions
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: ntg32.pdf, compresslevel 3, 
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
> lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 4 instances, 
> load time 0.161 seconds 
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
> mkiv lua stats  > luatex banner: this is lua

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
​Hi Michael,
​
Thank you for your help but it does not work, maybe a problem with the Emacs
shell.

Running `ConTeXt' on `ntg32' with ``context --once --texutil  --nonstop
ntg32.tex''

resolvers   | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex
--fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--interaction="nonstopmode" --jobname="ntg32"
--lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg32.tex"
--c:input="./ntg32.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode
--c:once --c:texutil "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
 system commands enabled.

resolvers   > trees > analyzing 'home:texmf'
open source > 1 > 1 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.10.29  int:
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv

system  > files > jobname 'ntg32', input './ntg32', result 'ntg32'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/fab/ntg32.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file
'/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > /home/fab/ntg32.tex
close source> 1 > 3 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv

mkiv lua stats  > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
mkiv lua stats  > resource resolver: loadtime 0.104 seconds, 1 scans with
scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths:
/home/fab/texmf
mkiv lua stats  > stored bytecode data: 387 modules (0.366 sec), 82 tables
(0.011 sec), 469 chunks (0.377 sec)
mkiv lua stats  > traced context: maxstack: 1176, freed: 1, unreachable:
1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
mkiv lua stats  > node memory usage: 15 glue, 2 penalty, 22 attribute, 38
glue_spec, 8 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 32 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds
loading
mkiv lua stats  > callbacks: 136 direct, 245 indirect, 381 total
mkiv lua stats  > randomizer: resumed with value 0.17602822472156
mkiv lua stats  > positions: 13 collected, 8 regulars, 5 regions, 0
unresolved regions
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: ntg32.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 4
instances, load time 0.161 seconds
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live
2016)mkiv lua stats  > control sequences: 43813 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 78 MB (ctx: 77
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.587 seconds, 1 processed pages, 1 shipped
pages, 1.704 pages/second

system  | total runtime: 0.831 seconds

TeX Output finished at Sun Oct 30 10:09:20

​Fabrice​



2016-10-30 2:36 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:

> the command should be:
>
> (eval-after-load "tex"
> '(add-to-list 'TeX-command-list
> '("context"
>  "source /home/fab/context/tex/setuptex && context"
>   TeX-run-TeX
>   nil
>   (context-mode)
>   :help "Run ConTeXt") t))
>
>
>
>
>
> > On 29 Oct 2016, at 23:41, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> wrote:
> >
> > Hi,
> > @Tobias
> >
> > If I add this to my .emacs I get
> >
> > (s

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Wolfgang Schuster

Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch>
26. Oktober 2016 um 23:03
Dear Wolfgang,

thanks for your mail, that led me to the source in syst-aux where I 
found the TeX approach, my final solution.


\def\startCitation%
  { \startnarrower[left,right]
\symbol[leftquotation]
\removeunwantedspaces}


\unexpanded\def\startCitation
  {\startnarrower[left,right]
   \symbol[leftquotation]%
   \ignorespaces}


\def\stopCitation#1\par%
  { \removeunwantedspaces
\symbol[rightquotation]
#1
\stopnarrower}


\unexpanded\def\stopCitation#1\par
  {\removeunwantedspaces
   \symbol[rightquotation]%
   #1%
   \stopnarrower}

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

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
Dear Wolfgang, 

thanks for your mail, that led me to the source in syst-aux where I found the 
TeX approach, my final solution.

\def\startCitation%
  { \startnarrower[left,right]
\symbol[leftquotation]
\removeunwantedspaces}

\def\stopCitation#1\par%
  { \removeunwantedspaces
\symbol[rightquotation]
#1
\stopnarrower}
  
\starttext
  
\startCitation
  \input knuth
\stopCitation
\footnote{This is a Quote of Donald Knuth}

\input knuth

\stoptext

> On 26 Oct 2016, at 18:40, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch> 26. Oktober 2016 um 16:30
>> after some readings in the TeX book I came up with the following solution 
>> that works for me without having to change all my instances of 
>> startstopCitation in the text.
> This doesn’t work when you have more than one paragraph in the Citation 
> environment.
>> \definestartstop
>> [Citation]
>> [
>> before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},
>> after={\removeunwantedspaces\symbol[rightquotation]},
>> ]
>> 
>> \starttext
>> \startCitation
>> \input tufte
>> \stopCitation
>> \footnote{This is a Quote of Donald Knuth}
>> 
>> \input tufte
>> \stoptext
> Here is a alternative version but you need a empty line or \par after 
> \stopCitation.
> 
> \define\startCitation
>   {\startnarrower[left]
>\symbol[leftquotation]\ignorespaces}
> 
> \define\stopCitation
>   {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}%
>\AfterPar {\endgraf\stopnarrower}%
>\GetPar}
> 
> \starttext
> 
> \startCitation
>   \input knuth
> \stopCitation
> \footnote{This is a Quote of Donald Knuth}
> 
> \input knuth
> 
> \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://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] avoid newline after definestartstop

2016-10-26 Thread Wolfgang Schuster

Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch>
26. Oktober 2016 um 16:30
after some readings in the TeX book I came up with the following 
solution that works for me without having to change all my instances 
of startstopCitation in the text.
This doesn’t work when you have more than one paragraph in the Citation 
environment.

\definestartstop
[Citation]
[
before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},
after={\removeunwantedspaces\symbol[rightquotation]},
]

\starttext
\startCitation
\input tufte
\stopCitation
\footnote{This is a Quote of Donald Knuth}

\input tufte
\stoptext
Here is a alternative version but you need a empty line or \par after 
\stopCitation.


\define\startCitation
  {\startnarrower[left]
   \symbol[leftquotation]\ignorespaces}

\define\stopCitation
  {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}%
   \AfterPar {\endgraf\stopnarrower}%
   \GetPar}

\starttext

\startCitation
  \input knuth
\stopCitation
\footnote{This is a Quote of Donald Knuth}

\input knuth

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

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
after some readings in the TeX book I came up with the following solution that 
works for me without having to change all my instances of startstopCitation in 
the text.

\definestartstop
  [Citation]
  [
before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},
after={\removeunwantedspaces\symbol[rightquotation]},
  ]

\starttext
\startCitation
  \input tufte
\stopCitation
\footnote{This is a Quote of Donald Knuth}

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

Re: [NTG-context] Footnotes in footnotes

2016-10-16 Thread Saša Janiška
Jose Luis Arellano <jose.4rell...@gmail.com> writes:

> Dear list,
> I want to report a possible bug (I think), when one try to put a
> footnote into another footnote, here is MWE (from wiki):
>
> \starttext
> This\footnote{Or that\footnote{Or possibly even the other.}, if you
> prefer.} is a sentence with a footnote.
> \stoptext
>

While testing/evaluating different options/markups, the topic of using
“footnote within footnote” has appeared and I’ve tried to test it in the
ConTeXt, but, strangely-enoug, I can confirm that it does not work here
as reported by Jose.

Here is the console output:

$ context footnotetst.tex 

mtx-context | run 1: luatex 
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
 --jobname="footnotetst" 
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./footnotetst.tex" 
--c:input="./footnotetst.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian) 
 system commands enabled.
open source > 1 > 1 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.5.28  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'footnotetst', input './footnotetst', result 
'footnotetst'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/gour/prj/hugo/footnotetst.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
structure   > sectioning > section @ level 3 : 0.0.1 -> Footnote test
backend > xmp > using file 
'/usr/share/texmf/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > /home/gour/prj/hugo/footnotetst.tex
close source> 1 > 3 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

mkiv lua stats  > used config file: 
/usr/share/texmf/web2c/texmfcnf.lua;/usr/share/texlive/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: 
'/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442' | 
readable+writable: 
'/home/gour/.texlive2016/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442'
mkiv lua stats  > resource resolver: loadtime 0.059 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 387 modules (0.270 sec), 82 tables 
(0.009 sec), 469 chunks (0.279 sec)
mkiv lua stats  > traced context: maxstack: 1175, freed: 0, unreachable: 1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
mkiv lua stats  > node memory usage: 13 glue, 2 penalty, 41 attribute, 38 
glue_spec, 12 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 87 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 278 direct, 250 indirect, 528 total
mkiv lua stats  > randomizer: resumed with value 0.47685763401764
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > interactive elements: 0 references, 1 destinations
mkiv lua stats  > result saved in file: footnotetst.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 5 files: latinmodern-math.otf, 
lmroman10-regular.otf, lmroman12-regular.otf, lmroman6-regular.otf, 
lmroman8-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 11 instances, 4 
shared in backend, 0 common vectors, 4 common hashes, load time 0.239 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: usr
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live 
2016/debian)
mkiv lua stats  > control sequences: 43857 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 86 MB (ctx: 86 MB), 
hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.636 seconds, 1 processed pages, 1 shipped pages, 
1.572 pages/second

mtx-context | run 2: luatex 
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
 --jobname="footnotetst" 
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c8626

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Mikael P. Sundqvist
On Tue, Oct 11, 2016 at 11:37 AM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mikael P. Sundqvist
> 11. Oktober 2016 um 11:21
>
> Thank you, the notjoinedup works well, but I cannot see any difference
> using any of the keys unpacked or notpacked.
>
> Is there any chance to have the before, after and inbetween keys to
> set the space manually?
>
> The before should be usable when you add the "notjoinedup" but inbetween
> will never be supported
> for horizontal items because all entries are in a single paragraph.
>
>
> To increase the distance between the lines you can change the
> interlinespace, e.g.
>
> \starttext
>
> \startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \stoptext
>
>
> or add a invisible symbol with increased height/depth at the begin of each
> item, e.g.
>
> \define\HorizontalItem
>   {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}
>
> \starttext
>
> \startitemize[a,horizontal][command=\HorizontalItem]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \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://context.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Many thanks Wolfgang!

Now I know that the inbetween will never work, but that is not a
problem, since your inner= solution worked very well in my document!

The setup I ended up using (and that seems to work all over the ~160
pages document) is

\defineitemgroup[abc]
\setupitemgroup[abc][each][a,horizontal,three,intro,notjoinedup][
stopper=,
right=),
margin=,
before={\blank[medium,samepage]},
inner={\setupinterlinespace[line=3.5ex]},
]

Best regards, Mikael
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Wolfgang Schuster

Mikael P. Sundqvist <mailto:mic...@gmail.com>
11. Oktober 2016 um 11:21

Thank you, the notjoinedup works well, but I cannot see any difference
using any of the keys unpacked or notpacked.

Is there any chance to have the before, after and inbetween keys to
set the space manually?
The before should be usable when you add the "notjoinedup" but inbetween 
will never be supported

for horizontal items because all entries are in a single paragraph.


To increase the distance between the lines you can change the 
interlinespace, e.g.


\starttext

\startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\stoptext


or add a invisible symbol with increased height/depth at the begin of 
each item, e.g.


\define\HorizontalItem
  {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}

\starttext

\startitemize[a,horizontal][command=\HorizontalItem]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MKIV caption separator, revisited

2016-10-10 Thread Meer, Hans van der
Thanks I did not know the correct designations for the various parts of the 
captionlabel: the prefixconnector and the numberstopper. It is clear now.
Hans van der Meer




On 10 Oct 2016, at 10:40, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Wolfgang Schuster<mailto:schuster.wolfg...@gmail.com>
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) and the 
float number (=figure number), the symbol at the end of the float number is 
called numberstopper. In your example you don’t have a section which can act as 
prefix number no did you change which prefixes should be shown (by default only 
chapters are used as prefix).

The suffix key you use (together with suffixconnector and suffixstopper) is 
used to show the number for subfigures, e.g. figure 3.a.
Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

\stoptext

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
___

___
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] Unable to use Martin Vogels Symbols

2016-10-10 Thread Mojca Miklavec
On 7 October 2016 at 22:53, Jonas Baggett wrote:
> Hello,
>
> I am using debian testing and I am trying to use Martin Vogels Symbols with
> no success so far. I have compiled a file containing the following :
> \usesymbols[mvs]
> \setupsymbolset [martinvogel 2]
> \starttext
> Telephone : \symbol[Telephone]
> \stoptext
>
> But it failed to show the telephone symbole in the pdf, unless compiled with
> texexec instead of context. I have the following lines in the log file (in
> attachement) :
> fonts   > defining > forced type 'ttf' of 'marvosym' not found
> fonts   > defining > font with asked name 'marvosym' is not found
> using lookup 'file'
> fonts   > defining > unknown font 'marvosym', loading aborted
> fonts   > defining > unable to define 'marvosym.ttf' as
> 'currentsymbolfont--0'
>
> marvosym.ttf is located here :
> /usr/share/fonts/truetype/ttf-marvosym/marvosym.ttf. Then I tried to reload
> manually the fonts like this :
> $ export OSFONTDIR="/usr/share/fonts"
> $ mtxrun --script fonts --reload
> $ context --generate
>
> Normally marvosym.ttf should be found but it isn't the case as showed by the
> following command :
> $ mtxrun --script fonts --list --all --pattern=marvosym*
> marvosym   marvosym   marvosym.afm
> marvosymwithtexsupport marvosym   marvosym.afm
> marvosymwithtexsupportnormal   marvosym   marvosym.afm

I would suspect that OSFONTDIR or something else in the process
doesn't work correctly.

ConTeXt will only be able to typeset the document if it can find the font.

All the Debian developer can do is add the font to the equivalent of

/usr/local/texlive/2016/texmf-dist/fonts/truetype/public/marvosym/marvosym.ttf
(not sure where exactly that is), but it might be that their policy is
not to duplicate fonts, who knows.

So independent of whether or not this gets resolved in Debian, you
should figure out why the font isn't found by ConTeXt. It might also
be that ConTeXt only finds the Type1 fonts and then stops searching
any further.

Mojca
___
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] MKIV caption separator, revisited

2016-10-10 Thread Wolfgang Schuster

Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) 
and the float number (=figure number), the symbol at the end of the 
float number is called numberstopper. In your example you don’t have a 
section which can act as prefix number no did you change which 
prefixes should be shown (by default only chapters are used as prefix).


The suffix key you use (together with suffixconnector and 
suffixstopper) is used to show the number for subfigures, e.g. figure 3.a.

Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

\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] MKIV caption separator, revisited

2016-10-10 Thread Wolfgang Schuster

Meer, Hans van der <mailto:h.vanderm...@uva.nl>
10. Oktober 2016 um 09:41
Here is the example. \setupcaptions has no effect, however 
\setupfloatcaption does (assuming of course I didn't make a silly 
mistake ;-). Thus it is no problem to get the effect desired, but 
possibly \setupcaptions should be deprecated, or perhaps reimplemented 
to calling \setupfloatcaption. I could have missed the change, but I 
guess a lot of other people might have missed it too. In that case we 
could spare them the trouble of finding out what happened.
prefixconnector is the separator between the section number (=prefix) 
and the float number (=figure number), the symbol at the end of the 
float number is called numberstopper. In your example you don’t have a 
section which can act as prefix number no did you change which prefixes 
should be shown (by default only chapters are used as prefix).


The suffix key you use (together with suffixconnector and suffixstopper) 
is used to show the number for subfigures, e.g. figure 3.a.


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] Unable to use Martin Vogels Symbols

2016-10-09 Thread Jonas Baggett

Hello Henning,

Thanks for the feed-back! I first thinked it could be a bug that only 
occurs when ConTeXt has to find the martin vogel symbol font for the 
first time and update its cache, which would explain why the bug doesn't 
occur with the live ConTeXt compiler since the font is already in the 
cache. Did you try to remove the cache in order to force ConTeXt to 
regenerate its cache and see if it can still find the font ?


Anyways, I have sent a bug report to the debian maintainers and we will see.

Best regards,
Jonas


Le 09.10.16 à 21:43, Henning Hraban Ramm a écrit :

It works also with latest beta on OSX, so it’s at least not an open ConTeXt bug.


___
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] Unable to use Martin Vogels Symbols

2016-10-09 Thread Henning Hraban Ramm
Am 2016-10-09 um 11:36 schrieb Jonas Baggett <jon...@tranquille.ch>:

> Le 07.10.16 à 22:53, Jonas Baggett a écrit :
> 
>> Hello,
>> 
>> I am using debian testing and I am trying to use Martin Vogels Symbols with 
>> no success so far. I have compiled a file containing the following :
>> \usesymbols[mvs]
>> \setupsymbolset [martinvogel 2]
>> \starttext
>> Telephone : \symbol[Telephone]
>> \stoptext 
> The preceding code works with http://live.contextgarden.net/, so I am not 
> sure if it is a Debian bug or a ConTeXt bug. Maybe I should send a bug report 
> to the Debian maintainers and they will forward it upstream if it is a 
> ConTeXt bug.

It works also with latest beta on OSX, so it’s at least not an open ConTeXt bug.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
GPG Key ID 1C9B22FD

___
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] Unable to use Martin Vogels Symbols

2016-10-09 Thread Jonas Baggett

Le 07.10.16 à 22:53, Jonas Baggett a écrit :


Hello,

I am using debian testing and I am trying to use Martin Vogels Symbols 
with no success so far. I have compiled a file containing the following :

\usesymbols[mvs]
\setupsymbolset [martinvogel 2]
\starttext
Telephone : \symbol[Telephone]
\stoptext 
The preceding code works with http://live.contextgarden.net/, so I am 
not sure if it is a Debian bug or a ConTeXt bug. Maybe I should send a 
bug report to the Debian maintainers and they will forward it upstream 
if it is a ConTeXt bug.


Have a nice sunday,
Jonas
___
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] Resume module with moderncv interface

2016-10-06 Thread Jonas Baggett
re > stop used structure


system  > files > start used files

used file   >1: filename=cont-yes.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
used file   >2: filename=publ-imp-default.lua filetype=lua foundname=/usr/share/texmf/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
used file   >3: filename=cont-new.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
used file   >4: filename=lang-us.lua filetype=lua foundname=/usr/share/texmf/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
used file   >5: filename=/home/jonas/Documents/context/CV/CV.tex foundname=/home/jonas/Documents/context/CV/CV.tex usedmethod=direct
used file   >6: filename=s-cor-03.mkvi filetype=tex foundname=/usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi usedmethod=database
used file   >7: filename=s-cor-00.mkvi filetype=tex foundname=/usr/share/texmf/tex/context/third/letter/base/s-cor-00.mkvi usedmethod=database
used file   >8: filename=s-cor-00.lua filetype=tex format=tex foundname=/usr/share/texmf/tex/context/third/letter/base/s-cor-00.lua usedmethod=database
used file   >9: filename=resume-imp-default.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/third/letter/style/resume-imp-default.mkiv usedmethod=database
used file   >   10: filename=resume-imp-casual.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/third/letter/style/resume-imp-casual.mkiv usedmethod=database
used file   >   11: filename=lm.lfg filetype=tex foundname=/usr/share/texmf/tex/context/fonts/mkiv/lm.lfg usedmethod=database
used file   >   12: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file   >   13: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/share/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file   >   14: filename=lpdf-pdx.xml filetype=tex foundname=/usr/share/texmf/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
used file   >   15: filename=lmroman10-regular filetype=otf format=otf foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
used file   >   16: filename=lmroman12-italic filetype=otf format=otf foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman12-italic.otf usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./CV.tex"
used option > input="./CV.tex"
used option > kindofrun="1"
used option > maxnofruns="9"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./CV.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: /usr/share/texmf/web2c/texmfcnf.lua;/usr/share/texlive/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: '/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442' | readable+writable: '/home/jonas/.texlive2016/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442'
mkiv lua stats  > resource resolver: loadtime 0.018 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 16 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 387 modules (0.189 sec), 82 tables (0.009 sec), 469 chunks (0.198 sec)
mkiv lua stats  > traced context: maxstack: 1175, freed: 0, unreachable: 1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 10 lists of 446
mkiv lua stats  > node memory usage: 12 glue, 3 penalty, 28 attribute, 38 glue_spec, 10 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 92 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 684 direct, 2092 indirect, 2776 total
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-cor-00 *-cor-03)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: CV.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-regular.otf, lmroman12-italic.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 6 instances, load time 0.190 sec

Re: [NTG-context] Quadruple integrals

2016-09-29 Thread Hans Åberg

> On 29 Sep 2016, at 20:18, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>>> Hans Åberg 29. September 2016 um 15:04
>>> The example below compiles with latest ConTeXt, suggesting that the Unicode 
>>> quadruple symbol ⨌ has not been registered as a math symbol, as the command 
>>> it is set to is ignored.
> You have to extend the entry for ⨌ (0x 2A0C) in char-def.lua to create the 
> \nt command.

Though TeX does not have the \nt command, perhaps it should be there, now 
that Unicode has ⨌. But right now, one cannot assign ⨌ any command.




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

2016-09-29 Thread Wolfgang Schuster

Hans Åberg <mailto:haber...@telia.com>
29. September 2016 um 15:04
The example below compiles with latest ConTeXt, suggesting that the 
Unicode quadruple symbol ⨌ has not been registered as a math symbol, 
as the command it is set to is ignored.
You have to extend the entry for ⨌ (0x 2A0C) in char-def.lua to create 
the \nt command.


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] Quadruple integrals

2016-09-29 Thread Hans Åberg
The example below compiles with latest ConTeXt, suggesting that the Unicode 
quadruple symbol ⨌ has not been registered as a math symbol, as the command it 
is set to is ignored.


\setupbodyfont[xits,10pt]

\setupmathematics[integral=nolimits, lcgreek=normal, default=normal]

\appendtoks
  \catcode`∫=\activecatcode
  \letcharcode `∫ \int
  \catcode`∬=\activecatcode
  \letcharcode `∬ \iint
  \catcode`∭=\activecatcode
  \letcharcode `∭ \iiint
  \catcode`⨌=\activecatcode
  \letcharcode `⨌ \undefined
\to \everymathematics


\starttext

\startformula
  ⨌_퐴 푓(푥)\, d푥 = ∫_퐵 ∭_퐶 푓(푡, 풙)\, d푡 d풙
\stopformula

\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] Bug in \not\in?

2016-09-18 Thread Henri Menke
On 09/18/2016 08:44 PM, Mohammad Hossein Bateni wrote:
> Hi,
> 
> When using \not\in in math, the two symbols do not overlap as they should.  
> Am I missing something?
> 
> 
> \starttext
> $v\not\in S$.
> \stoptext

Use \notin.  This will also give you the correct Unicode symbol.
> 
> 
> I am using 2016.09.12 18:27 beta on Linux with LuaTeX Version 0.98.3 (TeX 
> Live 2017/dev).
> 
> Thanks,
> ~MHB
> 
> 
> ___
> 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] Input methods

2016-09-16 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:


> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}.

This works on MacOS 10.12 in any application that uses the standard text 
services. One has an XML .plist file as listed below. Then in such an 
application, one turns on "Text Replacements". (The video shows TeXShop.)

Using the .plist file below, \mbfitx is translated into 풙. The replacement text 
can be anything.



http://www.apple.com/DTDs/PropertyList-1.0.dtd;>



phrase
풙
shortcut
\mbfitx


phrase
풚
shortcut
\mbfity


phrase
풛
shortcut
\mbfitz







___
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:

> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}. The source table 
> mentioned in the video can be found on the STIX page [2].
> 
> [1] http://zeeba.tv/reconciling-unicode-math-with-latex2e-mathematics/
> [2] http://www.ams.org/STIX/

The video speaks about a file stix-tbl.txt containing those translation 
commands, but on [2], the stix-tbl.* table files, not ending with .txt, do not 
contain those.


___
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>>> Hans Åberg 15. September 2016 um 19:44
>>> 
>>> I use Xcode on MacOS (former OS X), which has very good Unicode support 
>>> (including RTL scripts). There is a Unicode symbols table, but it is slow. 
>>> One can also design one's own keyboard map, but that is very time consuming.

> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}. … 

In fact, I used the PDF copying method on a LaTeX unicode-math file. But the 
package expands ASCII to math italic, which I pointed out to the author last 
year, but got no reply.

So ConTeXt seems to be more up to date and in line with Unicode.


___
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>>> Hans Åberg 15. September 2016 um 19:44
>>> 
>>> I use Xcode on MacOS (former OS X), which has very good Unicode support 
>>> (including RTL scripts). There is a Unicode symbols table, but it is slow. 
>>> One can also design one's own keyboard map, but that is very time consuming.

> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}. The source table 
> mentioned in the video can be found on the STIX page [2].

One can have text translations on MacOS, for example, "…" is translated into 
“…”, and as an experiment, I have set |-> translated into ↦. (Xcode does not 
translate, though.) But the GUI is cumbersome and there may be risk for errors, 
for example in a computer language where -> should be exactly that instead of 
→. Also, the characters have the advantage that they off-load human memory. :-)


___
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Wolfgang Schuster

Hans Åberg <mailto:haber...@telia.com>
15. September 2016 um 19:44

I use Xcode on MacOS (former OS X), which has very good Unicode 
support (including RTL scripts). There is a Unicode symbols table, but 
it is slow. One can also design one's own keyboard map, but that is 
very time consuming.
Another input method is shown in the following video [1] where each 
symbol get its own command, e.g. \mbfitx is equal to {\bi x}. The source 
table mentioned in the video can be found on the STIX page [2].


[1] http://zeeba.tv/reconciling-unicode-math-with-latex2e-mathematics/
[2] http://www.ams.org/STIX/

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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Åberg

> On 15 Sep 2016, at 18:50, Hans Hagen <pra...@wxs.nl> wrote:
> 
> (the scite setup that ships with context provides alphabet / symbol strips)

I use Xcode on MacOS (former OS X), which has very good Unicode support 
(including RTL scripts). There is a Unicode symbols table, but it is slow. One 
can also design one's own keyboard map, but that is very time consuming.


___
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Hagen

On 9/15/2016 6:33 PM, Hans Åberg wrote:



On 10 Sep 2016, at 17:13, Aditya Mahajan <adit...@umich.edu> wrote:

On Sat, 10 Sep 2016, Hans Åberg wrote:


On 10 Sep 2016, at 16:06, Hans Hagen <pra...@wxs.nl> wrote:
On 9/10/2016 12:57 PM, Hans Åberg wrote:



The STIX fonts, and XITS then, support Unicode math semantic styles. So perhaps 
the TeX commands should expand to these:

what tex commands ... we're talking characters and they don't expand


If one writes ASCII ${\bf x} {\bi x}$, it would expand to the expected Unicode 
$퐱 풙$.


That is already the case.


FYI, I found a neat trick:

If one does not know the Unicode character, because the translation is correct, 
one can typeset using legacy TeX commands, and copy from the output PDF. It can 
then be used in the input file, if one so likes.


or maybe your editor has some selection menu

(the scite setup that ships with context provides alphabet / symbol strips)


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

Re: [NTG-context] Using hyphen in math mode

2016-08-16 Thread Hans Hagen

On 8/16/2016 6:56 PM, Brian R. Landy wrote:

Hi, I was wondering if there is a way to access the hyphen symbol
(0x002D) while in math mode?  I want to avoid the standard remapping to
Unicode minus 0x2212.  It would also be workable if I could select the
math font without switching to math mode.

The problem with an approach like \math{\text{-}} is that it switches
the font back to the text font and does not use the math font.  I.e, I'm
trying to get the true hyphen symbol set in whatever font is currently
defined for math mode.


$ {\mathchar"2D} $

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

[NTG-context] Using hyphen in math mode

2016-08-16 Thread Brian R. Landy
Hi, I was wondering if there is a way to access the hyphen symbol 
(0x002D) while in math mode?  I want to avoid the standard remapping to 
Unicode minus 0x2212.  It would also be workable if I could select the 
math font without switching to math mode.


The problem with an approach like \math{\text{-}} is that it switches 
the font back to the text font and does not use the math font.  I.e, I'm 
trying to get the true hyphen symbol set in whatever font is currently 
defined for math mode.


Best regards,
Brian
___
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] Problems with old style figures and particular font

2016-08-12 Thread Martin Oppegaard
ile   >1: ./context-test1.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: 
selfautodir:/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: 
'/usr/local/share/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d'
 | readable+writable: 
'/home/martin/.texlive2014/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d'
mkiv lua stats  > resource resolver: loadtime 0.092 seconds, 1 scans with 
scantime 0.000 seconds, 0 shared scans, 7 found files, scanned paths: 
/home/martin/texmf
mkiv lua stats  > stored bytecode data: 350 modules (0.280 sec), 69 tables 
(0.000 sec), 419 chunks (0.280 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 443 lists of 442
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 39 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 144 direct, 195 indirect, 339 total
mkiv lua stats  > randomizer: resumed with value 0.38142795133471
mkiv lua stats  > result saved in file: context-test1.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 1 files: fbb-regular.otf
mkiv lua stats  > fonts load time: 0.032 seconds for 4 fonts, 3 shared in 
backend, 1 common vectors, 2 common hashes
mkiv lua stats  > used platform: linux, type: unix, binary subtree: local
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 
2014-openbsd_ports) (rev 4971)
mkiv lua stats  > control sequences: 38119 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 45 MB (ctx: 45 MB), 
hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.421 seconds, 1 processed pages, 1 shipped pages, 
2.375 pages/second

Best regards,
Martin Oppegaard
___
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] Dotted box in a form

2016-08-10 Thread Wolfgang Schuster

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
10. August 2016 um 09:04
Hello,

I need to create a double "sign-here" form, with the space for the 
signature underlined with dots.


The code bellow works fine and does exactly what I need.
The potential question is whether there is a simpler way to achieve 
this, even without MP code, e.g. with only \leaders or what.



\installbottomframerenderer{dot}
{
  \startMPcode
picture p; p := dashpattern(on 0.1mm off 0.9mm);
draw (0,0) -- (OverlayWidth,0) dashed p withpen pencircle scaled 
0.1mm;

  \stopMPcode
}

\def\T{\framed[height=15mm,width=.4\textwidth,frame=off,bottomframe=dot]{}} 



\starttext
  Some text

  \noindent
  \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC\T\NC\T\NC\NR
\NC Pepa \NC Depa \NC\NR
  \stoptabulate
\stoptext


\definefiller
  [DotFill]
  [alternative=symbol,
   symbol=.,
   width=.5em,
   style=\txx]

\define\DotFill
  {\simplealignedbox{.4\textwidth}{flushleft}{\filler[DotFill]}}

%\showframe[text][text]

\starttext

\starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC \DotFill \NC \DotFill \NC\NR
\NC Pepa \NC Depa \NC\NR
\stoptabulate

\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] Changing decimals points to Persian ones via font features

2016-08-08 Thread Hans Hagen

On 8/8/2016 5:24 PM, Mohammad Hossein Bateni wrote:

Thanks, Hans!

I see; this does work except for the trouble of annotating with \digits
macro.  Would it be possible if I wrote a processor in Lua to do the work?

nodes.tasks.appendaction ("processors", "before", "fix_persian_mathperiod")

Can I find out if a node is inside math?  If I look at the corresponding
font, how can I find out if this is a math font or not?


it's doable but then you also have to fight exceptions and that is no fun



I take it that in math fonts, kerning does not work, either?  In my
case, the Persian decimal separator usually has a part below the
baseline that extends to the left, and because all (Persian) digits are
above the baseline, I get an ugly space in the middle.  If kerning is
not possible at all, I can try to change the dimensions of Persian
decimal separator symbol because the kern is always necessary.  Is it
possible to change the dimensions of the symbol or is that also fixed
and unchangeable?


probably best is to collect all that info, also for different math 
fonts, and then cook up some virtual font support for it (across fonts), 
if only because digits is one aspect if bidi math and there is more needed



Thanks a lot!
—MHB



On Mon, Aug 8, 2016 at 10:44 AM, Hans Hagen <pra...@wxs.nl
<mailto:pra...@wxs.nl>> wrote:

On 8/2/2016 9:54 PM, Mohammad Hossein Bateni wrote:

Could the problem be because math fonts use mode=base instead of
mode=node?  Or is it because in math fonts, the digits and/or
full-stop
have different codes?


math fonts are defined and then don't change i.e. they are quite
static and all juggling with individual symbols of sequences is done
using predictable methods

—MHB

On Mon, Aug 1, 2016 at 9:46 AM, Mohammad Hossein Bateni
<bat...@gmail.com <mailto:bat...@gmail.com>
<mailto:bat...@gmail.com <mailto:bat...@gmail.com>>> wrote:

Dear list,

I want to add a customized font feature to the math font, to
automatically change the decimal point (unicode 0x2E) to the
Arabic/Farsi version (unicode 0x66B).  This will go well
with the
mapping from Latin digits to Farsi digits (done in a sample with
mathdigits fallback).

For instance, I want to code in $123.45$ and get a result like
۱۲۳٫۴۵.  However, I do not want to simply map 0x2E to 0x66B,
because
then "full stop" outside a number will also change.  In
particular,
I'd like to have the mapping only when full-stop is preceded and
succeeded by a digit.  This will, among other things, leave the
end-of-equation periods unchanged.

Here is how I tried to achieve it.


\startluacode
digits = { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
0x38, 0x39 }
-- 0x66B instead of 0x2F gives an error!
replacements = { [0x002E] = { 0x2F } }
fonts.handlers.otf.addfeature {
  name = "mpf",
  type = "chainsubstitution",
  lookups = { {
type = "multiple",
data = replacements,
  } },
  data = {
rules = {
  {
current = { { 0x002E } },
after   = { digits },
before  = { digits },
lookups = { 1 },
  }
}
  }
}
\stopluacode

\definefontfeature[mathperiod][mpf=yes]

\resetfontfallback [mathdigits]


%\definefontfallback[mathdigits][dejavusansmono][digitsextendedarabicindic][check=yes,force=yes,offset=digitsnormal]

\definefontsynonym


[MathRoman][name:modern][features={math\mathsizesuffix,mathperiod},goodies=lm-math,fallbacks=mathdigits]

\starttext
$123.45.$

123.45.

\addff{mathperiod}
123.45.
\stoptext


Though this font feature works outside math, it does not seem to
have any effect within the math font.  Why is that?  Can we
add font
feature to the math font?  Are the character codes different?

Notice that I could not get it to work, so I commented out the
fallback for Persian digits, to make things simpler.  To get the
proof of concept, I am trying to change period to forward
slash (see
below).

Is the syntax I use for having two features in
\defontfontsynonym
correct?  Actually, I did try with only mathperiod and it
does not
work, either.

When I change 0x2F (slash) to 0x066B in "

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Mohammad Hossein Bateni
Thanks, Hans!

I see; this does work except for the trouble of annotating with \digits
macro.  Would it be possible if I wrote a processor in Lua to do the work?

nodes.tasks.appendaction ("processors", "before", "fix_persian_mathperiod")

Can I find out if a node is inside math?  If I look at the corresponding
font, how can I find out if this is a math font or not?


I take it that in math fonts, kerning does not work, either?  In my case,
the Persian decimal separator usually has a part below the baseline that
extends to the left, and because all (Persian) digits are above the
baseline, I get an ugly space in the middle.  If kerning is not possible at
all, I can try to change the dimensions of Persian decimal separator symbol
because the kern is always necessary.  Is it possible to change the
dimensions of the symbol or is that also fixed and unchangeable?

Thanks a lot!
—MHB



On Mon, Aug 8, 2016 at 10:44 AM, Hans Hagen <pra...@wxs.nl> wrote:

> On 8/2/2016 9:54 PM, Mohammad Hossein Bateni wrote:
>
>> Could the problem be because math fonts use mode=base instead of
>> mode=node?  Or is it because in math fonts, the digits and/or full-stop
>> have different codes?
>>
>
> math fonts are defined and then don't change i.e. they are quite static
> and all juggling with individual symbols of sequences is done using
> predictable methods
>
> —MHB
>>
>> On Mon, Aug 1, 2016 at 9:46 AM, Mohammad Hossein Bateni
>> <bat...@gmail.com <mailto:bat...@gmail.com>> wrote:
>>
>> Dear list,
>>
>> I want to add a customized font feature to the math font, to
>> automatically change the decimal point (unicode 0x2E) to the
>> Arabic/Farsi version (unicode 0x66B).  This will go well with the
>> mapping from Latin digits to Farsi digits (done in a sample with
>> mathdigits fallback).
>>
>> For instance, I want to code in $123.45$ and get a result like
>> ۱۲۳٫۴۵.  However, I do not want to simply map 0x2E to 0x66B, because
>> then "full stop" outside a number will also change.  In particular,
>> I'd like to have the mapping only when full-stop is preceded and
>> succeeded by a digit.  This will, among other things, leave the
>> end-of-equation periods unchanged.
>>
>> Here is how I tried to achieve it.
>>
>>
>> \startluacode
>> digits = { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39
>> }
>> -- 0x66B instead of 0x2F gives an error!
>> replacements = { [0x002E] = { 0x2F } }
>> fonts.handlers.otf.addfeature {
>>   name = "mpf",
>>   type = "chainsubstitution",
>>   lookups = { {
>> type = "multiple",
>> data = replacements,
>>   } },
>>   data = {
>> rules = {
>>   {
>> current = { { 0x002E } },
>> after   = { digits },
>> before  = { digits },
>> lookups = { 1 },
>>   }
>> }
>>   }
>> }
>> \stopluacode
>>
>> \definefontfeature[mathperiod][mpf=yes]
>>
>> \resetfontfallback [mathdigits]
>> %\definefontfallback[mathdigits][dejavusansmono][digitsexten
>> dedarabicindic][check=yes,force=yes,offset=digitsnormal]
>>
>> \definefontsynonym
>> [MathRoman][name:modern][features={math\mathsizesuffix,mathp
>> eriod},goodies=lm-math,fallbacks=mathdigits]
>>
>> \starttext
>> $123.45.$
>>
>> 123.45.
>>
>> \addff{mathperiod}
>> 123.45.
>> \stoptext
>>
>>
>> Though this font feature works outside math, it does not seem to
>> have any effect within the math font.  Why is that?  Can we add font
>> feature to the math font?  Are the character codes different?
>>
>> Notice that I could not get it to work, so I commented out the
>> fallback for Persian digits, to make things simpler.  To get the
>> proof of concept, I am trying to change period to forward slash (see
>> below).
>>
>> Is the syntax I use for having two features in \defontfontsynonym
>> correct?  Actually, I did try with only mathperiod and it does not
>> work, either.
>>
>> When I change 0x2F (slash) to 0x066B in "replacements", I get an
>> error as follows.
>>
>>
>> fonts   > otf chain > feature 'mpf', type
>> 'gsub_contextchain', chain lookup 'mpf': rule 1 matches at char
>> U+0002E (period) for (1,1,

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Hans Hagen

On 8/1/2016 3:46 PM, Mohammad Hossein Bateni wrote:

Dear list,

I want to add a customized font feature to the math font, to
automatically change the decimal point (unicode 0x2E) to the
Arabic/Farsi version (unicode 0x66B).  This will go well with the
mapping from Latin digits to Farsi digits (done in a sample with
mathdigits fallback).

For instance, I want to code in $123.45$ and get a result like ۱۲۳٫۴۵.
However, I do not want to simply map 0x2E to 0x66B, because then "full
stop" outside a number will also change.  In particular, I'd like to
have the mapping only when full-stop is preceded and succeeded by a
digit.  This will, among other things, leave the end-of-equation periods
unchanged.

Here is how I tried to achieve it.


\startluacode
digits = { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39 }
-- 0x66B instead of 0x2F gives an error!
replacements = { [0x002E] = { 0x2F } }
fonts.handlers.otf.addfeature {
  name = "mpf",
  type = "chainsubstitution",
  lookups = { {
type = "multiple",
data = replacements,
  } },
  data = {
rules = {
  {
current = { { 0x002E } },
after   = { digits },
before  = { digits },
lookups = { 1 },
  }
}
  }
}
\stopluacode

\definefontfeature[mathperiod][mpf=yes]

\resetfontfallback [mathdigits]
%\definefontfallback[mathdigits][dejavusansmono][digitsextendedarabicindic][check=yes,force=yes,offset=digitsnormal]

\definefontsynonym
[MathRoman][name:modern][features={math\mathsizesuffix,mathperiod},goodies=lm-math,fallbacks=mathdigits]

\starttext
$123.45.$

123.45.

\addff{mathperiod}
123.45.
\stoptext


Though this font feature works outside math, it does not seem to have
any effect within the math font.  Why is that?  Can we add font feature
to the math font?  Are the character codes different?

Notice that I could not get it to work, so I commented out the fallback
for Persian digits, to make things simpler.  To get the proof of
concept, I am trying to change period to forward slash (see below).

Is the syntax I use for having two features in \defontfontsynonym
correct?  Actually, I did try with only mathperiod and it does not work,
either.

When I change 0x2F (slash) to 0x066B in "replacements", I get an error
as follows.


fonts   > otf chain > feature 'mpf', type 'gsub_contextchain',
chain lookup 'mpf': rule 1 matches at char U+0002E (period) for (1,1,1)
chars, lookuptype 'gsub_multiple'

error: ...ext/tex/texmf-context/tex/context/base/mkiv/font-ots.lua:1232:
attempt to index field '?' (a nil value)

tex error   > tex error on line 1 in file
/Users/bateni/farsitex/context/bostan/examples/mathfa/1.tex: ?

\page ->\par
 \dosingleempty \page_breaks_process
\strc_pagenumbers_flush_final_page ...\else \page

[\p_strc_pagenumbers_page ...
\dostoptext ...\strc_pagenumbers_flush_final_page
  \page \the
\everystoptext ...
l.1 \dostoptext

\clf_stoptext ->\luafunction \16>>clf_stoptext

l.46 \stoptext


there are no features in math as in text if only because in math each 
symbol is a separate entity (so 1.2 is three things) .. you can try:



\def\digitsperiodsymbol{!}

$ ... \digits{123.456} ... $

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

Re: [NTG-context] Something got wrong here

2016-07-28 Thread Henri Menke
t; !! No bodyfont has been defined and no defaults have been
> 
> fonts   > !! loaded (maybe due to a missing \starttext).
> 
>  
> 
> close source> 2 > 3 > D:/My Documents/Probe.tex
> 
> close source> 1 > 3 > 
> C:/TeXlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
> 
> (\end occurred inside a group at level 1)
> 
>  
> 
> ### semi simple group (level 1) entered at line 9 (\begingroup)
> 
> ### bottom level
> 
>  
> 
> mkiv lua stats  > used config file: 
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
> 
> mkiv lua stats  > used cache path: readable: 
> 'C:/TeXlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
>  | readable+writable: 
> 'C:/Users/Ursula/.texlive2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
> 
> mkiv lua stats  > synctex tracing: synctex has been enabled (extra log file 
> generated)
> 
> mkiv lua stats  > resource resolver: loadtime 0.110 seconds, 0 scans with 
> scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: 
> 
> mkiv lua stats  > stored bytecode data: 387 modules (0.322 sec), 82 tables 
> (0.011 sec), 469 chunks (0.333 sec)
> 
> mkiv lua stats  > traced context: maxstack: 1175, freed: 0, unreachable: 1175
> 
> mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
> 
> mkiv lua stats  > node memory usage: 14 glue, 3 penalty, 38 attribute, 38 
> glue_spec, 11 attribute_list, 2 temp
> 
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
> (re)created, 108 calls
> 
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
> output)
> 
> mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
> 
> mkiv lua stats  > callbacks: 347 direct, 254 indirect, 601 total
> 
> mkiv lua stats  > randomizer: resumed with value 0.90060121463668
> 
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> 
> mkiv lua stats  > interactive elements: 0 references, 1 destinations
> 
> mkiv lua stats  > result saved in file: Probe.pdf, compresslevel 3, 
> objectcompresslevel 3
> 
> mkiv lua stats  > loaded fonts: 5 files: latinmodern-math.otf, 
> lmmono10-regular.otf, lmroman10-regular.otf, lmroman12-regular.otf, 
> lmroman8-regular.otf
> 
> mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 11 instances, 
> 4 shared in backend, 0 common vectors, 4 common hashes, load time 0.338 
> seconds
> 
> mkiv lua stats  > used platform: mswin, type: windows, binary subtree: bin
> 
> mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live 
> 2016/w32tex)
> 
> mkiv lua stats  > control sequences: 43869 of 65536 + 10
> 
> mkiv lua stats  > lua properties: engine: lua, used memory: 56 MB (ctx: 54 
> MB), hash type: lua, hash chars: min(32,40), symbol mask: utf (τεχ)
> 
> mkiv lua stats  > runtime: 0.864 seconds, 2 processed pages, 2 shipped pages, 
> 2.315 pages/second
> 
>  
> 
> SyncTeX written on Probe.synctex.
> 
> system  | total runtime: 1.313 seconds
> 
>  
> 
> _
> 
>  
> 
> ConTeXt Compilation Report (Pages: 2)
> 
>  
> 
> Errors: 0   Warnings: 0   Bad Boxes: 1
> 
> _
> 
> 
> 
> ___
> 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] Something got wrong here

2016-07-28 Thread Ursula Hermann
, 11 attribute_list, 2 temp

mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances
(re)created, 108 calls

mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)

mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading

mkiv lua stats  > callbacks: 347 direct, 254 indirect, 601 total

mkiv lua stats  > randomizer: resumed with value 0.90060121463668

mkiv lua stats  > loaded patterns: en::2, load time: 0.000

mkiv lua stats  > interactive elements: 0 references, 1 destinations

mkiv lua stats  > result saved in file: Probe.pdf, compresslevel 3,
objectcompresslevel 3

mkiv lua stats  > loaded fonts: 5 files: latinmodern-math.otf,
lmmono10-regular.otf, lmroman10-regular.otf, lmroman12-regular.otf,
lmroman8-regular.otf

mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 11
instances, 4 shared in backend, 0 common vectors, 4 common hashes, load time
0.338 seconds 

mkiv lua stats  > used platform: mswin, type: windows, binary subtree: bin

mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live
2016/w32tex)

mkiv lua stats  > control sequences: 43869 of 65536 + 10

mkiv lua stats  > lua properties: engine: lua, used memory: 56 MB (ctx: 54
MB), hash type: lua, hash chars: min(32,40), symbol mask: utf (τεχ)

mkiv lua stats  > runtime: 0.864 seconds, 2 processed pages, 2 shipped
pages, 2.315 pages/second

 

SyncTeX written on Probe.synctex.

system  | total runtime: 1.313 seconds

 

_

 

ConTeXt Compilation Report (Pages: 2)

 

Errors: 0   Warnings: 0   Bad Boxes: 1

_

___
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] French and Ancient Greek

2016-07-11 Thread Jean-Pierre Delange
ilosophy_Margin-Footnotes-Greek-Version03.tex"
used option > kindofrun="1"
used option > maxnofruns="9"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./ConTEXt_Philosophy_Margin-Footnotes-Greek-Version03.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: C:/Users/Adeimantos/Documents/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.031 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 16 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 393 modules (0.422 sec), 83 tables (0.031 sec), 476 chunks (0.453 sec)
mkiv lua stats  > traced context: maxstack: 1189, freed: 1, unreachable: 1188
mkiv lua stats  > cleaned up reserved nodes: 48 nodes, 9 lists of 447
mkiv lua stats  > node memory usage: 109 hlist, 26 vlist, 13 rule, 26 boundary, 53 disc, 13 local_par, 62 dir, 262 glue, 223 kern, 55 penalty, 525 glyph, 443 attribute, 149 glue_spec, 120 attribute_list, 2 temp, 13 late_lua, 2 user_defined
mkiv lua stats  > node list callback tasks: 6 unique task lists, 7 instances (re)created, 627 calls
mkiv lua stats  > h-node processing time: 0.094 seconds including kernel
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 1454 direct, 336 indirect, 1790 total
mkiv lua stats  > v-node processing time: 0.016 seconds 
mkiv lua stats  > loaded patterns: en::2 fr::51, load time: 0.000
mkiv lua stats  > interactive elements: 0 references, 6 destinations
mkiv lua stats  > result saved in file: ConTEXt_Philosophy_Margin-Footnotes-Greek-Version03.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > margin data: 13 entries, 0 pending
mkiv lua stats  > loaded fonts: 6 files: ugmm8a.afm, ugmmi8a.afm, ipaexm.ttf, freesans.otf, freesansoblique.otf, theanodidot-regular.ttf
mkiv lua stats  > font engine: otf 3.025, afm 1.512, tfm 1.000, 33 instances, 27 shared in backend, 4 common vectors, 23 common hashes, load time 1.281 seconds 
mkiv lua stats  > used platform: win64, type: windows, binary subtree: texmf-win64
mkiv lua stats  > luatex banner: this is luatex, version 0.97.0 (tex live 2016/w32tex)
mkiv lua stats  > control sequences: 44221 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 132 MB (ctx: 133 MB), hash type: lua, hash chars: min(32,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 11.496 seconds, 8 processed pages, 8 shipped pages, 0.696 pages/second

___
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] A question about a symbol in an text

2016-07-01 Thread Hans Hagen

On 7/1/2016 2:32 PM, Ursula Hermann wrote:

Hello everyone!



I have this one:



\starttext Das Coverbild Untitled U+00023 9 ist eine Grafik aus der
Serie Plastic Bodies

der_des audiovisuellem Künstlerin bertkovski.

\stoptext



The problem is, that i wanted to use the symbol #.



But when i wrote it in the text as i need it,  after compiling, i got a
message, that i am not allowed (You cant’t use macro paramenter
character #‘ in horinzontal mode) to use it as i wanted.

Can sombebody help me please?

As you can see above, i tried to use the unicode. But there is something
wrong.


\asciimode % one option

\starttext

the # of special symbols is limited but one can always use \# (the 
traditional option) in case of troubles


\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] A question about a symbol in an text

2016-07-01 Thread Ursula Hermann
Hello everyone!

 

I have this one: 

 

\starttext Das Coverbild Untitled U+00023 9 ist eine Grafik aus der Serie
Plastic Bodies

der_des audiovisuellem Künstlerin bertkovski.

\stoptext 

 

The problem is, that i wanted to use the symbol #. 

 

But when i wrote it in the text as i need it,  after compiling, i got a
message, that i am not allowed (You cant’t use macro paramenter character #‘
in horinzontal mode) to use it as i wanted. 

Can sombebody help me please? 

As you can see above, i tried to use the unicode. But there is something
wrong. 

 

Uschi

___
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] Change font for footnote-symbols

2016-06-19 Thread Pablo Rodriguez
On 06/19/2016 10:10 PM, Alias 1 wrote:
> Hello ConTeXt-Users,
>  
> I want to change the font for the footnote-symbols. I want to change
> the font for the footnote-symbols (the numbers 1, 2, 3 etc.) to
> latinmodern. How do I do this? I tried to add the commands
> \setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and
> \setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}].
> If I only add one of these, the symbols in the text/notes at the
> bottom of the page, get changed, but if I add both, only the font of
> the symbols in the text get changed (In front of the first
> footnote-symbol (the 1) there is also some whitespace added, which
> looks like a bug or something; or I used the commands in a wrong
> way). So I assume, this is not the intended way. But what is the
> right way to do it?>

Hi Jannik,

this is another approach:

\definefontfamily[dejava][rm][DejaVu Serif]
\definefontfamily[dejava][hw][Latin Modern Roman]
\setupbodyfont[dejava]

\setupnote[footnote][textstyle={\hw}]

\setupnotation[footnote][headstyle={\hw}]

\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

Just in case 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
___

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Thomas A. Schmitz

On 06/19/2016 08:10 PM, Alias 1 wrote:

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges


Here is your example, somewhat simplified. I use bold italic to make the 
font change more visible; you will modify as necessary.


Best wishes

Thomas

\definefont[NoteFont][file:lmsans10-boldoblique sa 0.9]

\def\NoteRef#1%
  {\high{\NoteFont #1}}

\setupfootnotes[textcommand=\NoteRef]

\setupnotation[footnote][numbercommand=\NoteRef]

\setupbodyfont[dejavu]

\starttext

\dorecurse{10}{foo\footnote{bar} }

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Change font for footnote-symbols

2016-06-19 Thread Alias 1
Hello ConTeXt-Users,


I want to change the font for the footnote-symbols. I give a minimal example:

\starttypescript [serif] [dejavu] [name]
\definefontsynonym [Serif] [name:dejavuserif] [features=default]
\definefontsynonym [SerifBold] [name:dejavuserifbold] [features=default]
\definefontsynonym [SerifItalic] [name:dejavuserifitalic] [features=default]
\definefontsynonym [SerifBoldItalic] [name:dejavuserifbolditalic] 
[features=default]
\stoptypescript

\starttypescript[dejavu]
\definetypeface [dejavu] [rm] [serif] [dejavu] [default]
\stoptypescript

\starttypescript [serif] [latinmodern] [name]
\definefontsynonym [Serif] [name:latinmodernromanregular] [features=default]
\stoptypescript

\starttypescript[latinmodern]
\definetypeface [latinmodern] [rm] [serif] [latinmodern] [default]
\stoptypescript

\setupbodyfont[dejavu]



\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges

signature.asc
Description: Message signed with OpenPGP using AMPGpg
___
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] Latin setupmathematics

2016-06-17 Thread Hans Åberg

> On 17 Jun 2016, at 06:20, Alan BRASLAU <alan.bras...@cea.fr> wrote:
> 
> On Fri, 17 Jun 2016 01:02:48 +0200
> Hans Åberg <haber...@telia.com> wrote:
> 
>> The idea is avoiding clashes between variables and constants, like
>> this:
>> 
>> \starttext
>> 
>> \setupmathematics[default=normal]
>> 
>> $푒 = ∑_{푖=1}^∞ e^{i-푖}$
>> 
>> \setupmathematics[default=italic]
>> 
>> $푒 = ∑_{푖=1}^∞ e^{i-푖}$
> 
> Very, very poor mathematical style...
> 
> If you really want to use a variable "e", this would call for the use
> of the function \exp() to be readable.

Unicode has added characters to enable such writing. Also, \exp is already 
defined to “exp”, for example for the exponential map in differential geometry:
\startformula
  \exp_x: M_x → M
\stopformula

Here, the “:” expands in original TeX as a ratio operator, but Unicode has a 
special symbol for that, ∶ RATIO U+2236.


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

2016-06-08 Thread Hans Hagen

Hi,

I uploaded a new beta. This version has (experimental) support for color 
fonts. (not to be confused with 'coloring text in a font').


\definefontfeature[svg][default][svg=yes]
\definefontfeature[colored][default][colr=yes]

% \definefont[Emoj][file:emojionecolor-svginot.ttf*default,svg]
% \definefont[Emoj][file:seguiemj.ttf*default,colored]

\definesymbol[bug1][\getglyphdirect{file:emojionecolor-svginot.ttf*svg}{\char"1F41B}]
\definesymbol[bug2][\getglyphdirect{file:seguiemj.ttf*colored} 
{\char"1F41B}]


\startTEXpage [width=10em,align=middle,offset=1em]
There are several kind of bugs, like \symbol [bug1] and \symbol [bug2],
also in \CONTEXT !
\stopTEXpage

The colr features uses (if present) the overlay method (microsoft fonts 
have that) which is quite clean and efficient, while the svg one uses 
(when present) svg information from the font. Caching the later one will 
take some initial time (due to conversion, i might figure out something 
better) and needs inkscape installed.


Attached an example. I didn't look too extensively for a font, but on 
the agenda is turning the cowfont in a color one (maybe for the ctx 
meeting). At some point I might add overloading of colors (for the 
overlay variant).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-


colors-002.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Package esvect and Context

2016-06-07 Thread Fabrice Couvreur
lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.022, afm 1.512, tfm 1.000, 4
instances, load time 0.149 seconds
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live
2016)
mkiv lua stats  > control sequences: 43841 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 59 MB (ctx: 58
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.551 seconds, 1 processed pages, 1 shipped
pages, 1.815 pages/second

system  | total runtime: 0.784 seconds


Thanks,
Fabrice

2016-06-06 22:50 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 6/6/2016 9:39 PM, Fabrice Couvreur wrote:
>
>> Hi Joseph,
>> This is already the command I used, but I think the point of the too
>> small arrow.
>>
>
> If you really want to go over the top:
>
> \useMPlibrary[mat]
>
> % will be in meta-imp-mat.mkiv
>
> \startMPextensions
> vardef math_stacker_arrow_shape =
> image (
> drawarrow
> (OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
> withcolor
> OverlayLineColor ;
> setbounds currentpicture to boundingbox currentpicture
> bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;
> )
> enddef ;
> vardef math_stacker_leftarrow_shape =
> math_stacker_arrow_shape
> enddef ;
> vardef math_stacker_rightarrow_shape =
> math_stacker_arrow_shape rotated 180
> enddef ;
> \stopMPextensions
>
> \startuniqueMPgraphic{math:stacker:\number"2190}
> math_stacker_draw(math_stacker_leftarrow_shape) ;
> \stopuniqueMPgraphic
>
> \startuniqueMPgraphic{math:stacker:\number"2192}
> math_stacker_draw(math_stacker_rightarrow_shape) ;
> \stopuniqueMPgraphic
>
> % so far
>
> \setupmathstackers
>   [both] % vfenced]
>   [color=darkred,
>alternative=mp]
>
> \setupmathstackers
>   [top]
>   [color=darkred,
>alternative=mp]
>
> \setupmathstackers
>   [bottom]
>   [color=darkred,
>alternative=mp]
>
> \starttext
>
> $\overbracket   {a+b+c+d} \quad \underbracket{a+b+c+d} \quad
> \doublebracket{a+b+c+d}$ \blank
> $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad
> \doubleparent {a+b+c+d}$ \blank
> $\overbrace {a+b+c+d} \quad \underbrace  {a+b+c+d} \quad
> \doublebrace  {a+b+c+d}$ \blank
> $\overbar   {a+b+c+d} \quad \underbar{a+b+c+d} \quad
> \doublebar{a+b+c+d}$ \blank
>
> $\overleftarrow  {a+b+c+d} \quad \overrightarrow  {a+b+c+d} $ \blank
> $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank
>
> \stoptext
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Colon as non-operator

2016-05-31 Thread Hans Hagen

On 5/31/2016 5:53 PM, Hans Åberg wrote:



On 31 May 2016, at 17:04, Hans Hagen <pra...@wxs.nl> wrote:

On 5/31/2016 4:18 PM, Hans Åberg wrote:

It is possible to get the symbol : COLON U+003A to expand to \colon, instead of 
the ratio operator, as it is now?



it's a commented option


What does that mean?


that it has been considered but rejected already


i.e. we decided not to do that because the normal colon would be obscured then 
(just like overloading a period is not realistic)


But can one not have it only in math, the way you suggested before, as in the 
code below?


so what about (1:2) and so? do we really always want that colon symbol?


Anyway, for Unicode fonts that support RATIO U+2236, input : COLON U+003A 
should properly give that RATIO in the output, and \colon should output a 
COLON. :-)


\setupbodyfont[xits,10pt]

\appendtoks
  \catcode`:=\activecatcode
  \letcharcode `: \colon
\to \everymathematics


You love active characters yes? Try to avoid them. More efficient is:

\Umathcode"3A="6"00"002236 % : to \colon

in one of your styles


\starttext

Note: the colon in text should behave normally.
\startformula
  \startalign
\NC f\NC\colon A→B \NR % Outputs ∶ RATIO U+2236
\NC f\NC: A→B \NR  % : COLON U+003A, outputs ∶ RATIO U+2236
\NC f\NC ∶ A→B \NR % ∶ RATIO U+2236
  \stopalign
\stopformula

\stoptext


could be a style (or option) but then more for a set of such symbols, 
not for just one


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Colon as non-operator

2016-05-31 Thread Hans Åberg

> On 31 May 2016, at 17:04, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 5/31/2016 4:18 PM, Hans Åberg wrote:
>> It is possible to get the symbol : COLON U+003A to expand to \colon, instead 
>> of the ratio operator, as it is now?

> it's a commented option

What does that mean?

> i.e. we decided not to do that because the normal colon would be obscured 
> then (just like overloading a period is not realistic)

But can one not have it only in math, the way you suggested before, as in the 
code below?

Anyway, for Unicode fonts that support RATIO U+2236, input : COLON U+003A 
should properly give that RATIO in the output, and \colon should output a 
COLON. :-)


\setupbodyfont[xits,10pt]

\appendtoks
  \catcode`:=\activecatcode
  \letcharcode `: \colon
\to \everymathematics

\starttext

Note: the colon in text should behave normally.
\startformula
  \startalign
\NC f\NC\colon A→B \NR % Outputs ∶ RATIO U+2236
\NC f\NC: A→B \NR  % : COLON U+003A, outputs ∶ RATIO U+2236
\NC f\NC ∶ A→B \NR % ∶ RATIO U+2236
  \stopalign
\stopformula

\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] Colon as non-operator

2016-05-31 Thread Hans Hagen

On 5/31/2016 4:18 PM, Hans Åberg wrote:

It is possible to get the symbol : COLON U+003A to expand to \colon, instead of 
the ratio operator, as it is now? The latter is rather rare in pure math, and 
in addition, it seems to have been reversed in the implementation with ∶ RATIO 
U+2236, cf. example below.

\setupbodyfont[xits,10pt]

\startformula
  \startalign
\NC f\NC\colon A→B \NR % Produces ∶ RATIO U+2236
\NC f\NC: A→B \NR  % : COLON U+003A
\NC f\NC ∶ A→B \NR % ∶ RATIO U+2236
  \stopalign
\stopformula


it's a commented option i.e. we decided not to do that because the 
normal colon would be obscured then (just like overloading a period is 
not realistic)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Colon as non-operator

2016-05-31 Thread Hans Åberg
It is possible to get the symbol : COLON U+003A to expand to \colon, instead of 
the ratio operator, as it is now? The latter is rather rare in pure math, and 
in addition, it seems to have been reversed in the implementation with ∶ RATIO 
U+2236, cf. example below.

\setupbodyfont[xits,10pt]

\startformula
  \startalign
\NC f\NC\colon A→B \NR % Produces ∶ RATIO U+2236
\NC f\NC: A→B \NR  % : COLON U+003A
\NC f\NC ∶ A→B \NR % ∶ RATIO U+2236
  \stopalign
\stopformula


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Alignment/line break in a TABLE cell

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

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

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

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

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Thank you for your speedy replies!

Mari

On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
> Mari Voipio
> 19. Mai 2016 um 12:45
> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
> 1. Lower your graphic because it has margins around the lines which
> positions it too high.
>
> \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
>
> 2. Use a box symbol which sits lower on the baseline.
>
> \starttext
>
> \dontleavehmode\symbol[square] 1
>
> \stoptext
>
>
> 3. Use metapost to create your own box.
>
> \startuseMPgraphic{box3mm}
> draw unitsquare scaled 3mm ;
> \stopuseMPgraphic
>
> \definesymbol[box3mm][{\useMPgraphic{box3mm}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster

Mari Voipio <mailto:mari.voi...@iki.fi>
19. Mai 2016 um 12:45
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster

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


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

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext



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

\starttext

\dontleavehmode\symbol[square] 1

\stoptext


3. Use metapost to create your own box.

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

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

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
usedmethod=database
used file   >8: filename=lmmono10-regular filetype=otf format=otf foundname=/home/adeimantos/context/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf usedmethod=database
used file   >9: filename=texgyrepagella-regular.otf filetype=otf format=otf foundname=/home/adeimantos/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyrepagella-regular.otf usedmethod=database
used file   >   10: filename=lang-fr.lua filetype=scripts foundname=/home/adeimantos/context/tex/texmf-context/tex/context/patterns/mkiv/lang-fr.lua usedmethod=database
used file   >   11: filename=texgyrepagella-italic.otf filetype=otf format=otf foundname=/home/adeimantos/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyrepagella-italic.otf usedmethod=database
used file   >   12: filename=lpdf-pdx.xml filetype=tex foundname=/home/adeimantos/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="2"
used option > fulljobname="./ConTeXt_FootNote-CriticusApparatus_2Columns_PabloR-01.tex"
used option > input="./ConTeXt_FootNote-CriticusApparatus_2Columns_PabloR-01.tex"
used option > kindofrun="2"
used option > maxnofruns="9"
used option > no-parse-first-line="true"
used option > synctex="1 -- synctex"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./ConTeXt_FootNote-CriticusApparatus_2Columns_PabloR-01.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/adeimantos/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.011 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 387 modules (0.258 sec), 82 tables (0.012 sec), 469 chunks (0.270 sec)
mkiv lua stats  > traced context: maxstack: 1176, freed: 1, unreachable: 1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 452
mkiv lua stats  > node memory usage: 79 glue, 2 penalty, 155 attribute, 38 glue_spec, 52 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 11 instances (re)created, 8720 calls
mkiv lua stats  > h-node processing time: 0.029 seconds including kernel
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.005 seconds saving, 0.002 seconds loading
mkiv lua stats  > callbacks: 9468 direct, 300 indirect, 9768 total
mkiv lua stats  > randomizer: resumed with value 0.072991378173694
mkiv lua stats  > positions: 14 collected, 14 regulars, 0 regions, 0 unresolved regions
mkiv lua stats  > v-node processing time: 0.105 seconds 
mkiv lua stats  > loaded patterns: agr:gr:50 en::2 fr::51, load time: 0.000
mkiv lua stats  > interactive elements: 0 references, 60 destinations
mkiv lua stats  > result saved in file: ConTeXt_FootNote-CriticusApparatus_2Columns_PabloR-01.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > margin data: 5 entries, 0 pending
mkiv lua stats  > loaded fonts: 3 files: lmmono10-regular.otf, texgyrepagella-italic.otf, texgyrepagella-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 11 instances, 8 shared in backend, 1 common vectors, 7 common hashes, load time 0.117 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live 2016)
mkiv lua stats  > control sequences: 44167 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 51 MB (ctx: 49 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.715 seconds, 1 processed pages, 1 shipped pages, 0.583 pages/second



ConTeXt_FootNote-CriticusApparatus_2Columns_PabloR-01.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] What are your ten (10) favorite typography books of the last 50 years? (*not* OT)

2016-05-15 Thread Alan BRASLAU
  note  = {Translation and Notes by Harry Carter with the Assistance of Netty Hoeflake},
  language  = {english},
}

@Book{Erlacher1990,
  author= {Erlacher, X.},
  year  = {1990},
  title = {Hundert Jahre Typographie, Hundert Jahre Typographische Gesellschaft München – Eine Chronik},
  publisher = {TGM Bibliothek},
  language  = {german},
}

@Book{Excoffon2011,
  author= {Excoffon, R. and Knapp, P. and Rault, D.},
  year  = {2011},
  title = {Roger Excoffon},
  subtitle  = {le gentleman de la typographie},
  publisher = {Atelier Perrousseaux},
  language  = {french},
}

@Book{Fairbank1993,
  author= {Fairbank, A. J. and Hunt, R. W.},
  year  = {1993},
  title = {Humanistic script of the fifteenth and sixteenth centuries},
  publisher = {Bodleian Library},
  language  = {english},
}

@Book{Febvre1997,
  author= {Febvre, L. and Martin, H.-J.},
  year  = {1997},
  title = {The coming of the book},
  subtitle  = {the impact of printing 1450-1800},
  publisher = {Verso},
  volume= {10},
  language  = {english},
}

@Book{Febvre1999,
  author= {Febvre, L. and Martin, H.-J.},
  year  = {1999},
  title = {L'apparition du livre},
  publisher = {Albin Michel},
  language  = {french},
}

@Book{Fleischmann1984,
  author= {Fleischmann, G.},
  year  = {1984},
  title = {Bauhaus},
  subtitle  = {Drucksachen, Typografie, Reklame},
  publisher = {Ed. Marzona},
  language  = {german},
}

@Book{Fontana2012,
  author= {Fontana, R.},
  year  = {2012},
  title = {Ganarse la letra},
  subtitle  = {División de Ciencias y Artes para el Diseño},
  publisher = {Universidad Autónoma Metropolitana-Xochimilco},
  language  = {spanish},
}

@Book{Forssman2008,
  author= {Forssman, F. and De Jong, R.},
  year  = {2008},
  title = {Detailtypografie},
  subtitle  = {Nachschlagewerk für alle Fragen zu Schrift und Satz},
  publisher = {Schmidt},
  language  = {german},
}

@Book{Friedl1998,
  author= {Friedl, F. and Ott, N. and Stein, B.},
  year  = {1998},
  title = {Typography when who how},
  title:fr  = {Typographie quand qui comment},
  publisher = {Könemann Verlagsgesellschaft mbH},
  address   = {Colónia},
  language  = {english},
}

@Book{Frutiger1981,
  author= {Frutiger, A.},
  year  = {1981},
  title = {Der Mensch und seine Zeichen},
  publisher = {Horst Heiderhoff Verlag},
  language  = {german},
}

@Book{Frutiger1989,
  author= {Frutiger, A.},
  year  = {1989},
  title = {Signs and symbols},
  subtitle  = {their design and meaning},
  publisher = {Van Nostrand Reinhold Company},
  language  = {english},
}

@Book{Frutiger1995,
  author= {Frutiger, A.},
  year  = {1995},
  title = {Eine Typografie},
  publisher = {Vogt-Schild},
  language  = {german},
}

@Book{Frutiger1980,
  author= {Frutiger, A. and Besset, M. and Ruder, E. and Schneebeli, H. R.},
  year  = {1980},
  title = {Type, sign, symbol},
  publisher = {ABC Edition},
  language  = {english},
}

@Book{GalvezPizarro2005,
  author= {Gálvez Pizarro, F.},
  year  = {2005},
  title = {Educación tipográfica},
  subtitle  = {Una introducción a la tipografía: Xile: TPG},
  publisher = {Universidad Diego Portales},
  language  = {spanish},
}

@Book{GaroneGravier2012Miradas,
  author= {Garone Gravier, M.},
  year  = {2012},
  title = {Miradas a la Cultura del Libro en Puebla},
  publisher = {Educacion y Cultura Asesoria y Promocion},
  language  = {spanish},
}

@Book{GaroneGravier2011,
  author= {Garone Gravier, M.},
  year  = {2011},
  title = {Historia en Cubierta. El Fondo de Cultura Económica a través de sus portadas (1934-2009)},
  publisher = {Fondo de Cultura Económica},
  language  = {spanish},
}

@Book{GaroneGravier2014,
  author= {Garone Gravier, M.},
  year  = {2014},
  title = {Historia de la tipografía colonial para lenguas indígenas},
  publisher = {Centro de Investigaciones y Estudios Superiores en Antropología Social},
  language  = {spanish},
}

@Book{GaroneGravier2015,
  author= {Garone Gravier, M. and Odor Chávez, A. and Díaz Villanueva, T. B. and Velasco Castelán, T. E. and Romero Ramírez, M. and Luis, E. V. and Ruvalcaba Sil, J. L.},
  year  = {2015},
  title = {De la materialidad a la conservación del patrimonio documental},
  publisher = {Ediciones del Ermitaño},
  language  = {spanish},
}

@Book{GaroneGravier2012Muestras,
  author= {Garone Gravier, M. and Pérez Salas, M. E. and compiladoras.},
  year  = {2012},
  title = {Las muestras tipográficas y el estudio de la cultura impresa},
  publisher = {Instituto de Investigaciones Bibliográficas - Ediciones del Ermitaño},
  language  = {spanish},
}

@Book{Gastman2011,
  author= {Gastman, R. and Neelon, C.},
  year  = {2011},
  title = {The history of American graffiti},
  publisher = {Harper Collins},
  language  = {english},
}

@Book{Gates196

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan

On Sat, 14 May 2016, Hans Åberg wrote:


On 14 May 2016, at 18:41, Aditya Mahajan <adit...@umich.edu> wrote:

On Sat, 14 May 2016, Hans Åberg wrote:




On 14 May 2016, at 01:25, Hans Hagen <pra...@wxs.nl> wrote:



installing and running the garden distribution is quite simple (as is updating) 
.. there are less files too (so no big burden to have it alongside tex live)


With this installation, I get a strange bug:

In the example below, the first integral gets ‘limits' in the displayed 
formula, as though ‘nolimits’ has not been defined. It works if one puts a 
character before the first integral sign. So it seems that the \startformula 
command misses the ∫ definition on the first non-space character.


I haven't debugged this, but my guess is that the int symbol is read before 
\everymathematics is executed (because \startformula is looking ahead for the 
optional arguments in [...] and the only way to do so is read the next symbol 
and check if it is [).

Use
\startformula\relax
...
\stopformula


Just about anything seems to work:
I put in an empty group
\startformula{}
...
\stopformula


Be careful with empty group in math mode:

\startformula{} -a \stopformula
\startformula\relax -a \stopformula

Aditya___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Hans Åberg

> On 14 May 2016, at 18:41, Aditya Mahajan <adit...@umich.edu> wrote:
> 
> On Sat, 14 May 2016, Hans Åberg wrote:
> 
>> 
>>> On 14 May 2016, at 01:25, Hans Hagen <pra...@wxs.nl> wrote:
>> 
>>> installing and running the garden distribution is quite simple (as is 
>>> updating) .. there are less files too (so no big burden to have it 
>>> alongside tex live)
>> 
>> With this installation, I get a strange bug:
>> 
>> In the example below, the first integral gets ‘limits' in the displayed 
>> formula, as though ‘nolimits’ has not been defined. It works if one puts a 
>> character before the first integral sign. So it seems that the \startformula 
>> command misses the ∫ definition on the first non-space character.
> 
> I haven't debugged this, but my guess is that the int symbol is read before 
> \everymathematics is executed (because \startformula is looking ahead for the 
> optional arguments in [...] and the only way to do so is read the next symbol 
> and check if it is [).
> 
> Use
> \startformula\relax
> ...
> \stopformula

Just about anything seems to work: I put in an empty group
\startformula{}
...
\stopformula


___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan

On Sat, 14 May 2016, Hans Åberg wrote:




On 14 May 2016, at 01:25, Hans Hagen <pra...@wxs.nl> wrote:



installing and running the garden distribution is quite simple (as is updating) 
.. there are less files too (so no big burden to have it alongside tex live)


With this installation, I get a strange bug:

In the example below, the first integral gets ‘limits' in the displayed 
formula, as though ‘nolimits’ has not been defined. It works if one puts 
a character before the first integral sign. So it seems that the 
\startformula command misses the ∫ definition on the first non-space 
character.


I haven't debugged this, but my guess is that the int symbol is read 
before \everymathematics is executed (because \startformula is looking 
ahead for the optional arguments in [...] and the only way to do so is 
read the next symbol and check if it is [).


Use
\startformula\relax
...
\stopformula

Aditya___
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] Nolimits not working with Unicode characters

2016-05-13 Thread Hans Åberg

> On 13 May 2016, at 14:08, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 5/13/2016 1:55 PM, Hans Åberg wrote:
>> 
>>> On 13 May 2016, at 13:35, Hans Hagen <pra...@wxs.nl> wrote:
>>> 
>>> On 5/13/2016 1:07 PM, Hans Åberg wrote:
>>>> 
>>>>> On 13 May 2016, at 12:22, Hans Hagen <pra...@wxs.nl> wrote:
>>>>> 
>>>>> in principle one can make∫and \int but that has other side effects
>>>> 
>>>> What side effect do you have in mind here?
>>> 
>>> using it as normal character .. it's often harder to turn off features than 
>>> to turn on
>>> 
>>> and making all those characters active by default is not a good idea
>> 
>> The use in the source code helps readability of math formulas, though.
> 
> it's no problem to make a module that supports that but it will never be 
> default (some \mathcommand's represent base characters then become larger for 
> instance while the corresponding base character is fixed in size), so ∫ by 
> default is the character and not the 'adapting construct' (tex often has many 
> commands for the same symbol doing different things)

Currently, there is a problem with the lack of efficient Unicode input methods: 
symbol table and copy-paste are slow. But perhaps in the future, more might 
want to use it.

There may not be so many symbols: the “large operators" in the Tex Book, p. 
435, though Unicode have more, and some others like √ U+221A for \sqrt.

I could not make your code working - does it require a later LuaTex version 
(than 0.80.0)?


___
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] Nolimits not working with Unicode characters

2016-05-13 Thread Hans Hagen

On 5/13/2016 1:55 PM, Hans Åberg wrote:



On 13 May 2016, at 13:35, Hans Hagen <pra...@wxs.nl> wrote:

On 5/13/2016 1:07 PM, Hans Åberg wrote:



On 13 May 2016, at 12:22, Hans Hagen <pra...@wxs.nl> wrote:

in principle one can make ∫ and \int but that has other side effects


What side effect do you have in mind here?


using it as normal character .. it's often harder to turn off features than to 
turn on

and making all those characters active by default is not a good idea


The use in the source code helps readability of math formulas, though.


it's no problem to make a module that supports that but it will never be 
default (some \mathcommand's represent base characters then become 
larger for instance while the corresponding base character is fixed in 
size), so ∫ by default is the character and not the 'adapting construct' 
(tex often has many commands for the same symbol doing different things)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Handling Semi-Bold for Minion Pro in Context (LuaTeX)

2016-05-04 Thread Antoine Cailliau
s been enabled (extra log
> file generated)
> mkiv lua stats  > resource resolver: loadtime 0.105 seconds, 0 scans with
> scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths:
> 
> mkiv lua stats  > stored bytecode data: 371 modules (0.300 sec), 78 tables
> (0.009 sec), 449 chunks (0.309 sec)
> mkiv lua stats  > traced context: maxstack: 1132, freed: 0, unreachable:
> 1132
> mkiv lua stats  > running in nuts mode: yes
> mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
> mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 35
> glue_spec, 3 attribute_list, 2 temp
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
> instances (re)created, 202 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf
> output)
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: 577 direct, 762 indirect, 1339 total
> mkiv lua stats  > randomizer: resumed with value 0.5377294446983
> mkiv lua stats  > result saved in file: font2.pdf, compresslevel 3,
> objectcompresslevel 3
> *mkiv lua stats  > loaded fonts: 8 files: minionpro-bold.otf,
> minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf,
> minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf,
> xits-mathbold.otf*
> mkiv lua stats  > fonts load time: 0.275 seconds
> mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: bin
> mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0 (tex
> live 2015) (rev 5238)
> mkiv lua stats  > control sequences: 42831 of 65536 + 10
> mkiv lua stats  > lua properties: engine: lua, used memory: 113 MB (ctx:
> 113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.790 seconds, 1 processed pages, 1 shipped
> pages, 1.266 pages/second
>
> SyncTeX written on font2.synctex.gz.
> system  | total runtime: 0.999 seconds
>
>
> On 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfg...@gmail.com>
> wrote:
>
>> Antoine Cailliau <antoinecaill...@gmail.com>
>> 3. Mai 2016 um 08:58
>>
>>> The \definefontfamily command is limited to the default alternatives
>>> (tf, bf, it, sl, bi, bs ans sc).
>>>
>>
>> Thanks for your answer, what shall I use to define non-default
>> alternatives?
>>
>> At the moment your only option is to write your own typescript for the
>> fonts.
>>
>> \definefontalternative[sb]
>> \definefontalternative[si]
>>
>> \starttypescript [sans] [source-sans]
>>   \definebodyfont [default] [ss]
>> [tf=Sans sa 1,
>>  it=SansItalic   sa 1,
>>  sb=SansMedium   sa 1,
>>  si=SansMediumItalic sa 1,
>>  bf=SansBold sa 1,
>>  bi=SansBoldItalic   sa 1]
>> \stoptypescript
>>
>> \starttypescript [sans] [source-sans]
>> \definefontsynonym [Sans] [file:SourceSansPro-Regular.otf
>> ]
>> \definefontsynonym [SansItalic]   [file:SourceSansPro-It.otf]
>> \definefontsynonym [SansMedium]   [
>> file:SourceSansPro-Semibold.otf]
>> \definefontsynonym [SansMediumItalic] [
>> file:SourceSansPro-SemiboldIt.otf]
>> \definefontsynonym [SansBold] [file:SourceSansPro-Bold.otf]
>> \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
>> \stoptypescript
>>
>> \definetypeface [source] [ss] [sans] [source-sans] [default]
>> [features=default]
>> \definetypeface [source] [mm] [math] [xits][default]
>>
>> \setupbodyfont[source]
>>
>> \starttext
>>
>> Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi
>> BoldItalic}
>>
>> \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] Handling Semi-Bold for Minion Pro in Context (LuaTeX)

2016-05-04 Thread Antoine Cailliau
 6 unique task lists, 5
instances (re)created, 202 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 577 direct, 762 indirect, 1339 total
mkiv lua stats  > randomizer: resumed with value 0.5377294446983
mkiv lua stats  > result saved in file: font2.pdf, compresslevel 3,
objectcompresslevel 3
*mkiv lua stats  > loaded fonts: 8 files: minionpro-bold.otf,
minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf,
minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf,
xits-mathbold.otf*
mkiv lua stats  > fonts load time: 0.275 seconds
mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: bin
mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0 (tex
live 2015) (rev 5238)
mkiv lua stats  > control sequences: 42831 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 113 MB (ctx:
113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.790 seconds, 1 processed pages, 1 shipped
pages, 1.266 pages/second

SyncTeX written on font2.synctex.gz.
system  | total runtime: 0.999 seconds


On 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfg...@gmail.com>
wrote:

> Antoine Cailliau <antoinecaill...@gmail.com>
> 3. Mai 2016 um 08:58
>
>> The \definefontfamily command is limited to the default alternatives (tf,
>> bf, it, sl, bi, bs ans sc).
>>
>
> Thanks for your answer, what shall I use to define non-default
> alternatives?
>
> At the moment your only option is to write your own typescript for the
> fonts.
>
> \definefontalternative[sb]
> \definefontalternative[si]
>
> \starttypescript [sans] [source-sans]
>   \definebodyfont [default] [ss]
> [tf=Sans sa 1,
>  it=SansItalic   sa 1,
>  sb=SansMedium   sa 1,
>  si=SansMediumItalic sa 1,
>  bf=SansBold sa 1,
>  bi=SansBoldItalic   sa 1]
> \stoptypescript
>
> \starttypescript [sans] [source-sans]
> \definefontsynonym [Sans] [file:SourceSansPro-Regular.otf]
> \definefontsynonym [SansItalic]   [file:SourceSansPro-It.otf]
> \definefontsynonym [SansMedium]   [file:SourceSansPro-Semibold.otf
> ]
> \definefontsynonym [SansMediumItalic] [
> file:SourceSansPro-SemiboldIt.otf]
> \definefontsynonym [SansBold] [file:SourceSansPro-Bold.otf]
> \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
> \stoptypescript
>
> \definetypeface [source] [ss] [sans] [source-sans] [default]
> [features=default]
> \definetypeface [source] [mm] [math] [xits][default]
>
> \setupbodyfont[source]
>
> \starttext
>
> Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi
> BoldItalic}
>
> \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] Help with t-vim module and math

2016-04-13 Thread Nicola

On 2016-04-13 13:33:27 +, Wolfgang Schuster said:


Nicola 13. April 2016 um 15:28
On 2016-04-13 12:47:56 +, Wolfgang Schuster said:



Nicola 13. April 2016 um 14:17
On 2016-04-13 11:53:51 +, Hans Hagen said:




Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in 
my document:

is there a light variant?


Also, can't the fallback mechanism be used?
Yes it can but you have to enable your custom typeface with 
\setupbodyfont which

wasn’t done in your example.



You're right, but I have done it in my original document.
Even with that, the fallback symbol does not show up:


\usemodule[vim]
\definefontfamily[slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\setupbodyfont[slidesfont]
\starttext
\startpascal
 X := Y ∪ Z;
\stoppascal
\stoptext

You have to move the fallback setting before the font where you want to 
apply the fallback, i.e.


    \definefallbackfamily […] […] […]
    \definefontfamily […] […] […]



Great, it works!

Thanks to ConTeXt and this mailing list, I've cut down the time to 
prepare a presentation dramatically, while improving its quality and 
avoiding frustration (compared to LaTeX Beamer+listings).


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Help with t-vim module and math

2016-04-13 Thread Wolfgang Schuster

Nicola <mailto:nvitacolo...@gmail.com>
13. April 2016 um 15:28

On 2016-04-13 12:47:56 +, Wolfgang Schuster said:


Nicola <mailto:nvitacolo...@gmail.com>13. April 2016 um 14:17

On 2016-04-13 11:53:51 +, Hans Hagen said:



Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in 
my document:


is there a light variant?


Also, can't the fallback mechanism be used?

Yes it can but you have to enable your custom typeface with 
\setupbodyfont which


wasn’t done in your example.


You're right, but I have done it in my original document.

Even with that, the fallback symbol does not show up:


\usemodule[vim]

\definefontfamily[slidesfont][mono][Latin Modern Mono Light]

\definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]

\definevimtyping[pascal][syntax=pascal]

\setupbodyfont[slidesfont]

\starttext

\startpascal

X := Y ∪ Z;

\stoppascal

\stoptext


You have to move the fallback setting before the font where you want to 
apply the fallback, i.e.


\definefallbackfamily […] […] […]
\definefontfamily […] […] […]

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] Help with t-vim module and math

2016-04-13 Thread Nicola

On 2016-04-13 12:47:56 +, Wolfgang Schuster said:

Nicola 13. April 2016 um 14:17 
On 2016-04-13 11:53:51 +, Hans Hagen said: 



Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in 
my document: 
is there a light variant? 

Also, can't the fallback mechanism be used? 
Yes it can but you have to enable your custom typeface with 
\setupbodyfont which

wasn’t done in your example.


You're right, but I have done it in my original document.
Even with that, the fallback symbol does not show up:

\usemodule[vim]
\definefontfamily[slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\setupbodyfont[slidesfont]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Help with t-vim module and math

2016-04-13 Thread Nicola

On 2016-04-13 11:53:51 +, Hans Hagen said:


On 4/13/2016 11:19 AM, Nicola wrote:

Hi,
I am using the Vim module to typeset code, and I've found a situation
where I'd like to use some math symbols, but not in comments. I am not sure
whether it can be done. This is what I have tried:

\usemodule[vim]
\definefontfamily[slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext

The ∪ symbol does not appear in the output. Am I completely off-track?


use dejavu mono instead of lm mono


Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in 
my document:

is there a light variant?

Also, can't the fallback mechanism be used?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Help with t-vim module and math

2016-04-13 Thread Hans Hagen

On 4/13/2016 11:19 AM, Nicola wrote:

Hi,
I am using the Vim module to typeset code, and I've found a situation
where I'd like to use some math symbols, but not in comments. I am not sure
whether it can be done. This is what I have tried:

\usemodule[vim]
\definefontfamily[slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext

The ∪ symbol does not appear in the output. Am I completely off-track?


use dejavu mono instead of lm mono


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Help with t-vim module and math

2016-04-13 Thread Nicola

Hi,
I am using the Vim module to typeset code, and I've found a situation
where I'd like to use some math symbols, but not in comments. I am not sure
whether it can be done. This is what I have tried:

\usemodule[vim]
\definefontfamily[slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext

The ∪ symbol does not appear in the output. Am I completely off-track?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] placelist not working in latest beta

2016-03-21 Thread Schmitz Thomas A.

> On 21 Mar 2016, at 15:28, Hans Hagen <pra...@wxs.nl> wrote:
> 
> when playign with some new feature i commented too much
> 
> around line 722, uncomment:
> 
> \setuplistalternative
>  [\c!command=\strictlistparameter\c!command,
>   \c!symbol=.]
> 
> 

Done, and it works again! Thanks Hans!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] placelist not working in latest beta

2016-03-21 Thread Hans Hagen

On 3/21/2016 9:57 AM, Schmitz Thomas A. wrote:

Hi all,

example attached with output from latest beta and an older one. The \placelist 
command appears to have changed recently; the older beta I tested is from 
November, but this used to work in February as well, the change must be recent.


when playign with some new feature i commented too much

around line 722, uncomment:

\setuplistalternative
  [\c!command=\strictlistparameter\c!command,
   \c!symbol=.]




Thanks a lot

Thomas

\definelist[MyTopics][criterium=all]

\def\MyMark{}

\def\Topic%
   {\dosingleargument\doTopic}

\def\doTopic[#1]{%
   \gdef\MyMark{#1}%
   \writetolist[MyTopics][location=none]{#1}{}}

\define[3]\FancyEntry{%
   \doifelse{\rawstructurelistfirst}{\MyMark}%
 {\quad\color[red]{#1}\quad}
 {\quad #1\quad}}

\setuplist[MyTopics]
   [pagenumber=no,
alternative=command,
command=\FancyEntry]

\setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}]

\starttext

\Topic[First]
\contextversion

First Topic

\page

\Topic[Second]

Second Topic

\page

\Topic[Third]

Third Topic

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Diamond, and Unicode math symbols

2016-03-12 Thread Nicola

On 2016-03-11 20:57:28 +, Hans Hagen said:


On 3/11/2016 9:18 PM, Mikael P. Sundqvist wrote:


I could not find a diamond on p. 112 in my version of the
comprehensive symbol list, but maybe:

\definefontfamily[myface][rm][TeX Gyre Pagella]
\definefallbackfamily[myface][mm][Xits][range={"025C7}]
\definefontfamily[myface][mm][TeX Gyre Pagella Math]

\setupbodyfont[myface]

\starttext
You could try $⋄\quad   ⃟ $ from Pagella or $◇$ from Xits.
\stoptext

There is a nice document, unicode-symbols.pdf you can have a look in
for a list of (unicode) math symbols.


there are s-math-*.mkiv files that can generate all kind of lists

you can run s-mkiv-repertoire.mkiv to get a comparison (at the end of
the file you can see how)

% list here (some 8 fonts) that you have on your system:

\showmathcharacterssetbodyfonts{lucidaot,cambria,xits,modern,pagella,termes,bonum,schola,dejavu} 



\starttext

 \setupbodyfont[pagella,   12pt]

 \showmathfontrepertoire

\stoptext

you can click around (on a decent high res screen)



Hans, Mikael, thanks for your suggestions, all of them valuable.
Borrowing the symbol from Xits is a fine solution.
The comparison tables come in very handy, too.

Thanks again,
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Diamond, and Unicode math symbols

2016-03-11 Thread Hans Hagen

On 3/11/2016 9:18 PM, Mikael P. Sundqvist wrote:

On Thu, Mar 10, 2016 at 10:00 PM, Nicola <nvitacolo...@gmail.com> wrote:

I'm looking for a symbol similar to \lozenge, but squarer (like
\Diamond in some LaTeX packages, see The Comprehensive Symbol List,
p. 112). Any idea how I may typeset it in ConTeXt (MKIV)? \diamond
is too small. I am using TeX Gyre Pagella Math if that matters.

I also have a couple of questions about \showmathfontcharacters:

1) does that list show all and only the symbols available in the
current font, or a predefined list of symbols?

2) The list shows a Unicode point for each symbol, but not the
corresponding TeX command (if it exists). Say I need U+02B31
(three leftwards arrows), and I don't want to bother searching
TCSL above.  May I use the Unicode code point to define a control
sequence in ConTeXt that prints the symbol? If so, how?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


I could not find a diamond on p. 112 in my version of the
comprehensive symbol list, but maybe:

\definefontfamily[myface][rm][TeX Gyre Pagella]
\definefallbackfamily[myface][mm][Xits][range={"025C7}]
\definefontfamily[myface][mm][TeX Gyre Pagella Math]

\setupbodyfont[myface]

\starttext
You could try $⋄\quad   ⃟ $ from Pagella or $◇$ from Xits.
\stoptext

There is a nice document, unicode-symbols.pdf you can have a look in
for a list of (unicode) math symbols.


there are s-math-*.mkiv files that can generate all kind of lists

you can run s-mkiv-repertoire.mkiv to get a comparison (at the end of 
the file you can see how)


% list here (some 8 fonts) that you have on your system:

\showmathcharacterssetbodyfonts{lucidaot,cambria,xits,modern,pagella,termes,bonum,schola,dejavu}

\starttext

\setupbodyfont[pagella,   12pt]

\showmathfontrepertoire

\stoptext

you can click around (on a decent high res screen)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Diamond, and Unicode math symbols

2016-03-11 Thread Mikael P. Sundqvist
On Thu, Mar 10, 2016 at 10:00 PM, Nicola <nvitacolo...@gmail.com> wrote:
> I'm looking for a symbol similar to \lozenge, but squarer (like
> \Diamond in some LaTeX packages, see The Comprehensive Symbol List,
> p. 112). Any idea how I may typeset it in ConTeXt (MKIV)? \diamond
> is too small. I am using TeX Gyre Pagella Math if that matters.
>
> I also have a couple of questions about \showmathfontcharacters:
>
> 1) does that list show all and only the symbols available in the
> current font, or a predefined list of symbols?
>
> 2) The list shows a Unicode point for each symbol, but not the
> corresponding TeX command (if it exists). Say I need U+02B31
> (three leftwards arrows), and I don't want to bother searching
> TCSL above.  May I use the Unicode code point to define a control
> sequence in ConTeXt that prints the symbol? If so, how?
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

I could not find a diamond on p. 112 in my version of the
comprehensive symbol list, but maybe:

\definefontfamily[myface][rm][TeX Gyre Pagella]
\definefallbackfamily[myface][mm][Xits][range={"025C7}]
\definefontfamily[myface][mm][TeX Gyre Pagella Math]

\setupbodyfont[myface]

\starttext
You could try $⋄\quad   ⃟ $ from Pagella or $◇$ from Xits.
\stoptext

There is a nice document, unicode-symbols.pdf you can have a look in
for a list of (unicode) math symbols.

/Mikael
___
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] Diamond, and Unicode math symbols

2016-03-11 Thread Hans Hagen

On 3/11/2016 8:03 PM, Nicola wrote:

On 2016-03-10 21:00:21 +, Nicola said:


I'm looking for a symbol similar to \lozenge, but squarer […]
Any idea how I may typeset it in ConTeXt (MKIV)?


Unless I am overlooking something, there is no such symbol in
TeX Gyre Pagella Math, so maybe this is not possible.


2) The list shows a Unicode point for each symbol, but not the
corresponding TeX command (if it exists).


Ok, this is not correct: the command is there, for symbols that
have one. But how do I use symbols with no associated TeX command?


\utfchar{number}

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

<    2   3   4   5   6   7   8   9   10   11   >