[NTG-context] MetaPost, specifiy max width of a text?

2015-03-18 Thread Norbert Melzer
Hi there! Is there a way to specify the with of a text so that the text gets wrapped? Something simalar to the following TikZ-Example (wrapped in ConTeXt): ```tex \usemodule[tikz] \starttext \starttikzpicture \draw (0, 0) node[text width=2.5cm,align=center] {Start new Game}; \stoptikzpict

Re: [NTG-context] MetaPost, specifiy max width of a text?

2015-03-18 Thread Hans Hagen
On 3/18/2015 8:25 AM, Norbert Melzer wrote: Hi there! Is there a way to specify the with of a text so that the text gets wrapped? Something simalar to the following TikZ-Example (wrapped in ConTeXt): ```tex \usemodule[tikz] \starttext \starttikzpicture \draw (0, 0) node[text width=2.5cm

Re: [NTG-context] Now that I have something working on mkiv, I'd like to try ePUB

2015-03-18 Thread Hans Hagen
On 3/18/2015 7:34 AM, Gerben Wierda wrote: On 18 Mar 2015, at 02:14, Hans Hagen mailto:pra...@wxs.nl>> wrote: On 3/17/2015 10:33 PM, Gerben Wierda wrote: On 17 Mar 2015, at 16:51, Hans Hagen mailto:pra...@wxs.nl>> wrote: On 3/17/2015 3:41 PM, Gerben Wierda wrote: Nobody? On 15 Mar 2015, at

Re: [NTG-context] MetaPost, specifiy max width of a text?

2015-03-18 Thread Alan BRASLAU
On Wed, 18 Mar 2015 08:25:50 +0100 Norbert Melzer wrote: > \starttext >   \startMPcode >     draw "Start new Game" infont defaultfont scaled defaultscale; >   \stopMPcode > \stoptext draw textext("\framed[frame=off,width=2.5cm,align=middle]{Start new Game}"); Alan __

[NTG-context] File name to print to include %

2015-03-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to get: "%Home%" with \hyphenatedfilename to the Ctx output. But, these two methods don't work: \hyphenatedfilename{\%Home\%} -- gives "\%Home\%" and \hyphenatedfilename{%Home%} -- (obviously) produces error. So what to write into \hyphenatedfilename to get "%Home%"? Best re

Re: [NTG-context] File name to print to include %

2015-03-18 Thread luigi scarso
On Wed, Mar 18, 2015 at 8:53 AM, Procházka Lukáš Ing. - Pontex s. r. o. < l...@pontex.cz> wrote: > Hello, > > I'd like to get: > > "%Home%" > > with \hyphenatedfilename to the Ctx output. > > But, these two methods don't work: > > \hyphenatedfilename{\%Home\%} -- gives "\%Home\%" and > \hyphenated

Re: [NTG-context] Now that I have something working on mkiv, I'd like to try ePUB

2015-03-18 Thread Gerben Wierda
On 18 Mar 2015, at 08:46, Hans Hagen wrote: > On 3/18/2015 7:34 AM, Gerben Wierda wrote: >> On 18 Mar 2015, at 02:14, Hans Hagen > > wrote: >> >>> On 3/17/2015 10:33 PM, Gerben Wierda wrote: On 17 Mar 2015, at 16:51, Hans Hagen >>> > wrote:

[NTG-context] ePUB creation problems

2015-03-18 Thread Gerben Wierda
I’m getting to the next phase of ePUB creation. My project now exports and with mtxrun —script epub, I can create an actual ePUB, but there are issues I need to fix. One is the lack of a cover image. The command for epub creation works, but says: (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun

[NTG-context] [MetaFun] Decorating running text

2015-03-18 Thread Norbert Melzer
Hi there! I have some text (a single word) which I want to decorate using MP. In this special case, I want to put a little crown above the "g" in the word "Shogun". Also the crown and text should get scaled accordingly to the surrounding text. ```tex \define\Shogun{\startMPcode draw textext("Sho

[NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \usemodule[hemistich] \setuphemistich [width=local, distance=1\emwidth, separator=] \setuphemistich [leftcolor=, separatorcolor=, rightcolor

[NTG-context] PLacing framed text.

2015-03-18 Thread John Culleton
I know how to place an intermezzo, e.g. \starttext \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \placeintermezzo[right]{} \startframedtext[width=3.2in]

Re: [NTG-context] ePUB creation problems

2015-03-18 Thread Hans Hagen
On 3/18/2015 1:00 PM, Gerben Wierda wrote: I’m getting to the next phase of ePUB creation. My project now exports and with mtxrun —script epub, I can create an actual ePUB, but there are issues I need to fix. attached a manual i'm on-and-off working on .. i have no time now for more info Han

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
> Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > Dear gang, > > In the attached, we export hemistiches: > > === > \setupexport[cssfile=sh_ahmad-qajar.css] > \setupbackend[export=yes] > > \usemodule[hemistich] > > \setuphemistich > [width=local, > di

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 18 Mar 2015 11:51:13 -0600, Wolfgang Schuster wrote: Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد : Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \usemodule[hemistich]

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
> Am 18.03.2015 um 20:45 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > On Wed, 18 Mar 2015 11:51:13 -0600, Wolfgang Schuster > mailto:schuster.wolfg...@gmail.com>> wrote: > >> >>> Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد >>> : >>> >>> Dear gang, >>> >>> In t