[NTG-context] referenceprefix=+ not working

2018-05-22 Thread Henri Menke

Dear list,

the option referenceprefix=+ for setuphead seems to not work.
https://tex.stackexchange.com/questions/432844
It works however if you put an explicit prefix.  See MWE below. 
Reproducible on TL2018 and latest beta.


Cheers, Henri

---

\setuphead
  [section]
  [referenceprefix=+] % when I put "test" it works

\starttext

\startsection[reference=test,title={Test}]

  \startplacefigure[reference=cow]
\externalfigure[cow]
  \stopplacefigure

\stopsection

\in[test:cow] % ??

\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] question about followtext in MP

2018-05-22 Thread Hans Hagen

On 5/22/2018 9:05 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startMPcode
path p ; p := reverse halfcircle scaled 5cm;
path q ; q := reverse halfcircle rotatedaround (origin, 180)
scaled 5cm ;
draw p;
draw q;
draw followtext(p, "·Just follow the tokens") ;
draw followtext(q, "Just follow the tokens·") ;
draw followtext(reverse q, "Just follow the tokens·") ;
   \stopMPcode
 \stoptext

Is there any way to followtext in q without changing text direction?

I need to write the text counter-clockwise, but on outside of the path.

Reverse changes both text direction and side of the text (related to the
path) and I don’t want to change text direction.

it will probably always look bad

\startMPcode
   path p ; p := reverse halfcircle scaled (5cm + 0.5LineHeight);
   path q ; q := reverse halfcircle rotatedaround (origin, 180)
   scaled (5cm +1.3LineHeight);
   draw fullcircle scaled 5cm;;
   draw followtext(p, "\strut just follow the tokens\enspace") ;
   draw followtext(reverse q, "\strut just follow the 
tokens\enspace") ;

  \stopMPcode


-
  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] \vfrac (math mode)

2018-05-22 Thread Alan Braslau
On Tue, 22 May 2018 14:30:16 -0400 (EDT)
Aditya Mahajan  wrote:

> On Tue, 22 May 2018, Alan Braslau wrote:
> 
> > \Unskewed is undefined/unrecognized.  
> 
> It is \Uskewed (not\Unskewed).
> 
> Aditya

My typo!

Also, requires extra braces:
\def\vfrac#1#2{{{#1} \Uskewed / {#2}}}

I have to say, however, that the result (scriptsizing the numerator
and denominator), when used for symmetry operations, is not as nice as
\def\vfrac#1#2{#1\!/\!#2}

$\vfrac{4_1}{m}$


Nevertheless, the default definition:
\let\vfrac\vulgarfraction
that is, \vulgarfraction, needs to be *fixed* to work within math mode
(as well as outside of math mode).

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

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

[NTG-context] question about followtext in MP

2018-05-22 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startMPcode
   path p ; p := reverse halfcircle scaled 5cm;
   path q ; q := reverse halfcircle rotatedaround (origin, 180)
   scaled 5cm ;
   draw p;
   draw q;
   draw followtext(p, "·Just follow the tokens") ;
   draw followtext(q, "Just follow the tokens·") ;
   draw followtext(reverse q, "Just follow the tokens·") ;
  \stopMPcode
\stoptext

Is there any way to followtext in q without changing text direction?

I need to write the text counter-clockwise, but on outside of the path.

Reverse changes both text direction and side of the text (related to the
path) and I don’t want to change text direction.

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] \vfrac (math mode)

2018-05-22 Thread Aditya Mahajan

On Tue, 22 May 2018, Alan Braslau wrote:


\Unskewed is undefined/unrecognized.


It is \Uskewed (not\Unskewed).

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
___

Re: [NTG-context] \vfrac (math mode)

2018-05-22 Thread Alan Braslau
Hi Massi,

\Unskewed is undefined/unrecognized.
Enabling Opentype math (somehow) or perhaps an experimental version of
luatex is needed?

Alan


On Tue, 22 May 2018 18:29:30 +0200
MF  wrote:

> Hi Alan, try this:
> 
> \def\vFrac#1#2{#1 \Uskewed / #2}
> 
> \starttext
> $\frac{2_1}{m}$
> 
> ${2_1 \Uskewed / m}$
> 
> $\vFrac{2_1}{m}$
> \stoptext
> 
> See "5.7 Skewed fractions", in the manual still.pdf.
> 
> Hope it helps,
> greetings,
> Massi
> 
> > Is there a version of the vulgarfraction that works in math mode?
> > 
> > MWE:
> > 
> > \starttext
> > $\vfrac{2_1}{m}$
> > \stoptext
> > 
> > Alan
> >   
> ___
> If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://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] Upcoming 12th ConTeXt Meeting in the Czech Republic

2018-05-22 Thread Willi Egger
Hello all!

I would like to point you to the upcoming 12th ConTeXt-meeting. Details can be 
found on the ConTeXt-Wiki! (http://meeting.contextgarden.net/).

The registration is open. Early bird registrations will be accepted until 1 of 
July.

The 12th ConTeXt Meeting will take place in Sibřina, Czech Republic on 
September 2–8, 2018. 

Everybody is welcome!

Kind regards

Willi Egger
cg-secretary
___
If your question is of interest to others as well, please add an 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] \vfrac (math mode)

2018-05-22 Thread MF
Hi Alan, try this:

\def\vFrac#1#2{#1 \Uskewed / #2}

\starttext
$\frac{2_1}{m}$

${2_1 \Uskewed / m}$

$\vFrac{2_1}{m}$
\stoptext

See "5.7 Skewed fractions", in the manual still.pdf.

Hope it helps,
greetings,
Massi

> Is there a version of the vulgarfraction that works in math mode?
> 
> MWE:
> 
> \starttext
> $\vfrac{2_1}{m}$
> \stoptext
> 
> Alan
> 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Question about \definedescription

2018-05-22 Thread Procházka Lukáš Ing .

Hello,

the following defintions:


\definedescription[A][alternative=top]

\A{Aaa} \input knuth

\definedescription[B][alternative=hanging]

\B{Bbb} \input knuth


generate texts shaped:


Aaa
Thus, I came to the
conclusion that the
designer

BbbThus, I came
  to the conclusion
  that the designer


How to \definedescription so to get:


QQQ
  Thus,  I  came to
  theconclusion
  that the designer


IOW, to keep "alternative=top" (= next text from a new line) but to keep some 
indenting from left?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
If your question is of interest to others as well, please add an 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] Trim blank space of a PDF page

2018-05-22 Thread Procházka Lukáš Ing .

Hello,

just curious - is threre a way how to crop a page of a PDF via ConTeXt?

Ideally - to process a single page PDF into another file, with the one page 
cropped...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
If your question is of interest to others as well, please add an 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] \textrule location

2018-05-22 Thread Hans van der Meer
\textrule{TEXT} puts a rule with the TEXT to the left, like so:
--TEXT——[endofline]

I imagined that \textrule[location=..] could be used to vary the position of 
TEXT to middle or to the right (as I would like to have it). But I could not 
get this working, the only effect of for example \textrule[location=left] is to 
insert a blank line after the rule. I am missing something or isn’t this 
possible?

Hans van der Meer

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

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