Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Alan Braslau
On Wed, 23 May 2018 21:06:42 +0200 Pablo Rodriguez wrote: > On 05/23/2018 07:19 PM, Alan Braslau wrote: > > On Wed, 23 May 2018 18:40:14 +0200 Pablo Rodriguez wrote: > >> > >> I have tried to add the shifted option to the path definition and > >> drawing and there was no shift in

[NTG-context] \showgrid not working right

2018-05-23 Thread Marcus Vinicius Mesquita
Dear list, The frame around text area is appearing way below where it should be. ​​ Minimal working example: \setuplayout[grid=yes] \showgrid \starttext \input knuth.tex \stoptext My context version: mtx-context | current version: 2018.05.19 21:46 mkiv lua stats > used platform:

Re: [NTG-context] Trim blank space of a PDF page

2018-05-23 Thread Henri Menke
On 05/23/2018 01:25 AM, Procházka Lukáš Ing. wrote: > 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... It's not really clear what you want. Are you looking for

Re: [NTG-context] Referring to \head

2018-05-23 Thread Wolfgang Schuster
Use \starthead. Wolfgang Procházka Lukáš Ing. 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize

Re: [NTG-context] Trim blank space of a PDF page

2018-05-23 Thread Taco Hoekwater
> > On 05/23/2018 01:25 AM, Procházka Lukáš Ing. wrote: >> 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... > The ‘pdfcrop’ command from TeXLive can do that for

[NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize

Re: [NTG-context] Trim blank space of a PDF page

2018-05-23 Thread Hans Hagen
On 5/23/2018 11:25 AM, Taco Hoekwater wrote: On 05/23/2018 01:25 AM, Procházka Lukáš Ing. wrote: 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... The ‘pdfcrop’ command

[NTG-context] DTD's and XML-ConTeXt question

2018-05-23 Thread Hans van der Meer
Here is a sample xml-document: ]> The file setup/xmp.dtd contains the line: My 1st question, why does this fail for ? The is substituted but is not. My 2nd question is why included files do not substitute either of these two entities. Thus in: xml-document-included processed by

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, deducing: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h]{Head} Some text. \stophead \item[i] Item. \stopitemize See \in[h] and \in[i]. \stoptext Thank you. Lukas On Wed, 23 May 2018 13:18:27 +0200, Wolfgang Schuster

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello Wolfgang, thank you for the answer, wikified: http://wiki.contextgarden.net/Command/head Best regards, Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster wrote: Use \starthead. Wolfgang Procházka Lukáš Ing.

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, the "headstyle" option in \startitemize affect undesirably all text following \head in the itemize scope: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h] Head \stophead Some text. \item[i] Item. \stopitemize See \in[h] and \in[i].

Re: [NTG-context] Referring to \head

2018-05-23 Thread Wolfgang Schuster
\starthead takes takes the title as argument, i.e. \starthead {…} … \stophead Wolfgang Procházka Lukáš Ing. 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb

Re: [NTG-context] referenceprefix=+ not working

2018-05-23 Thread Hans Hagen
On 5/23/2018 3:59 AM, Henri Menke wrote: 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. fixed in next beta

Re: [NTG-context] Trim blank space of a PDF page

2018-05-23 Thread Alan Braslau
Do these tools work vectorally, that is identify the drawing extent and adjust the boundingbox appropriately, or do they (especially gs) convert to an image and then crop? I use MP to read the pdf and then crop, but to a fixed closed path. The problem here appears to seek an autocrop. Alan On

[NTG-context] Defining command with optional and mandatory arguments

2018-05-23 Thread Christoph Reller
Hi, What is the right way to define a command with both mandatory and optional arguments, e.g: \MyCommand[optional][mandatory] Consider the following MWE: \unexpanded\def\MyCommand[#1]{ \dosingleempty{\doMyCommand[#1]}} \def\doMyCommand[#1][#2]{ \doifsomething{#1}{number 1: #1\par}

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Hans Hagen
On 5/23/2018 5:50 PM, Pablo Rodriguez wrote: On 05/22/2018 10:22 PM, Hans Hagen wrote: On 5/22/2018 9:05 PM, Pablo Rodriguez wrote: Dear list, [...] 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.

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Alan Braslau
On Wed, 23 May 2018 17:50:27 +0200 Pablo Rodriguez wrote: > Is there any way to set origin to another value than (0, 0) in MP? What does this mean, mathematically that is? Of course, you can always shift an image anywhere (or in general apply any transformation), thus effectively

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Alan Braslau
On Wed, 23 May 2018 18:05:07 +0200 Hans Hagen wrote: > > Is there any way to set origin to another value than (0, 0) in MP? > > > > I realize it might sound weird, but it would make things easier in > > an example that I’m working on. > redefining origin is a bad idea

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Pablo Rodriguez
On 05/23/2018 06:05 PM, Hans Hagen wrote: > On 5/23/2018 5:50 PM, Pablo Rodriguez wrote: >> >> Many thanks for your reply, Hans. >> >> Is there any way to set origin to another value than (0, 0) in MP? >> >> I realize it might sound weird, but it would make things easier in an >> example that I’m

Re: [NTG-context] Defining command with optional and mandatory arguments

2018-05-23 Thread Hans Hagen
On 5/23/2018 3:39 PM, Christoph Reller wrote: Hi, What is the right way to define a command with both mandatory and optional arguments, e.g: \MyCommand[optional][mandatory] Consider the following MWE: \unexpanded\def\MyCommand[#1]{ \dosingleempty{\doMyCommand[#1]}}

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Pablo Rodriguez
On 05/22/2018 10:22 PM, Hans Hagen wrote: > On 5/22/2018 9:05 PM, Pablo Rodriguez wrote: >> Dear list, >> [...] >> 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

Re: [NTG-context] Defining command with optional and mandatory arguments

2018-05-23 Thread Henning Hraban Ramm
Am 2018-05-23 um 16:01 schrieb Hans Hagen : > On 5/23/2018 3:39 PM, Christoph Reller wrote: >> Hi, >> What is the right way to define a command with both mandatory and >> optional arguments, e.g: > i'm not sure wht happens at your end but this is the best way: Also, there’s

Re: [NTG-context] Trim blank space of a PDF page

2018-05-23 Thread Taco Hoekwater
> On 23 May 2018, at 16:44, Alan Braslau wrote: > > Do these tools work vectorally, that is identify the drawing extent > and adjust the boundingbox appropriately, or do they (especially gs) > convert to an image and then crop? in pdfcrop, gs computes a boundingbox

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Alan Braslau
On Wed, 23 May 2018 18:40:14 +0200 Pablo Rodriguez wrote: > I have the following sample: > > \starttext > \edef\TextInside{Just follow the tokens} > \startMPpage > path p ; p := reverse halfcircle scaled .6TextWidth; > path q ; q := halfcircle rotatedaround (origin,

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Pablo Rodriguez
On 05/23/2018 07:19 PM, Alan Braslau wrote: > On Wed, 23 May 2018 18:40:14 +0200 Pablo Rodriguez wrote: >> >> I have tried to add the shifted option to the path definition and >> drawing and there was no shift in the MP page. > > (If you only have one MPpage, then there is no need for