ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <havdmeer@ziggo.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: Re: double followtokens?
Date: Tue, 1 Jan 2019 19:17:52 +0100	[thread overview]
Message-ID: <CC8DBDDF-D28E-473F-9FEC-931442BD2397@ziggo.nl> (raw)
In-Reply-To: <fcf06da5-a67e-47ec-742b-4c42369edbba@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2877 bytes --]

Is followtext(“string”,path) not yet implemented?

Because I get an error when running:
\startMPcode
path p; p:=reverse halfcircle xyscaled 25mm; draw p;
followtext("some text but not that long",p); % <- causes error
\stopMPcode

Or do I need to call followtext in some other way that is not clear to me.

dr. Hans van der Meer


> On 8 Apr 2018, at 16:41, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:
>> On 04/07/2018 11:25 PM, Hans Hagen wrote:
>>> On 4/7/2018 11:04 PM, Pablo Rodriguez wrote:
>>>> Dear list,
>>>> 
>>>> I have the following sample:
>>>> 
>>>>    \useMPlibrary[txt]
>>>> 
>>>>    \starttext
>>>> 
>>>>    \startuseMPgraphic{followtokens}
>>>>     path RotPath ; RotPath := reverse halfcircle ;
>>>>     % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ;
>>>>    \stopuseMPgraphic
>>>> 
>>>>    \followtokens{Just follow the tokens}
>>>>    \stoptext
>>>> 
>>>> How can I get both paths (in diverse directions)?
>>>> 
>>>> I would like to repeat the same text twice, separating both sentences
>>>> with a character.
>>>> 
>>>> I have to ask this, beause MetaPost is all Greek to me.
>>> i have no clue what you mean but this will change the direction
>> Many thanks for your reply, Hans.
>> I attach an image of what I mean.
>> I want a full circle in two halves with the same duplicated sentence.
>> The first one written clockwise and the second one written
>> counterclockwise (as in the commented path above).
>> I hope it is clearer now.
> 
>    path p ; p := reverse halfcircle scaled 5cm ;
>    path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>    path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>    \followtokens{~this way~}
>    \followtokens{\reversedtext{~this way~}}
> 
> we will have this in metafun:
> 
>    followtext("this way",p) ;
> 
> so that one can do it all in mp ... a nice gimmick for the ctx meeting
> 
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6159 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

  parent reply	other threads:[~2019-01-01 18:17 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-07 21:04 Pablo Rodriguez
2018-04-07 21:25 ` Hans Hagen
2018-04-07 22:11   ` Pablo Rodriguez
2018-04-08 14:41     ` Hans Hagen
2018-04-08 14:56       ` Build for Alpine Linux Brian Hunt
2018-04-08 20:50         ` Mojca Miklavec
2018-04-08 21:09           ` Arthur Reutenauer
2018-04-08 21:26           ` Henri Menke
2018-04-08 21:45             ` Arthur Reutenauer
2018-04-09  0:50           ` Henri Menke
2018-04-09 18:59             ` Brian Hunt
2018-04-09 19:35               ` Arthur Reutenauer
2018-04-10 11:05                 ` Brian Hunt
2018-04-10 12:26                   ` Brian Hunt
2018-04-10 16:27                   ` Alan Braslau
2018-04-10 20:55                   ` Arthur Reutenauer
2018-04-11 12:30                     ` Brian Hunt
2018-04-11 20:08                       ` Brian Hunt
2018-04-11 20:24                         ` Aditya Mahajan
2018-04-11 20:37                         ` Hans Hagen
2018-04-11 21:08                           ` Brian Hunt
2018-04-13 11:14                           ` Mojca Miklavec
2018-04-13 11:42                             ` Henri Menke
2018-04-13 19:54                               ` Henning Hraban Ramm
2018-04-13 20:02                                 ` Aditya Mahajan
2018-04-13 12:49                             ` Hans Hagen
2018-04-11 23:13                         ` Henri Menke
2018-04-13 10:37                           ` Brian Hunt
     [not found]                             ` <CALBOmsaXyTXhR=j6Ht1LwKGcfxMD4sHjQnEOxtjH-4gc3b5R8g@mail.gmail.com>
     [not found]                               ` <20180417152547.GA1755070@phare.normalesup.org>
2018-04-17 15:54                                 ` Thomas A. Schmitz
2018-04-08 18:10       ` double followtokens? Pablo Rodriguez
2018-04-08 21:17         ` Hans Hagen
2018-04-09 18:25           ` Pablo Rodriguez
2019-01-01 18:17       ` Hans van der Meer [this message]
2019-01-01 20:17         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CC8DBDDF-D28E-473F-9FEC-931442BD2397@ziggo.nl \
    --to=havdmeer@ziggo.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).