Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Hi, Hans

I tried to run your first example, but ConTeXt throws an error and
complains that \resetleftparbox was never defined.
Using version: 2021.11.13

Regards

Marcus Vinicius


On Thu, Oct 28, 2021 at 6:24 AM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> Among the 'can they be made better' candidates in the engine are
> \vadjust and \local[left|right]box primitives that are not really used
> in context (okay, vadjust is used in mkii).
>
> The \vadjust vertical injector can be illustrated with
>
> \starttext
>  \ignorespaces\input tufte \removeunwantedspaces
>  we want a break before this line \vadjust pre {\break}%
>  \ignorespaces\input tufte \removeunwantedspaces
>
>  \page
>
>  \ignorespaces\input tufte \removeunwantedspaces
>  we want seperate lines now \leftparbox{\vadjust post {\break}}%
>  \ignorespaces\input tufte \removeunwantedspaces
>  \resetleftparbox{}
> \stoptext
>
> It's a signal that injects something in a vertical list without
> interupting the horizontal text flow. One can inject before (pre) or
> after (post which is default). New is that we can also influence the
> order: after vs before preceding \vadjust in the same line.  Also new is
> that deeply nested adjustments can migrate (so the hole los: marks,
> inserts and vadjust are now in sync) which is demonstrated with the next
> example:
>
> \starttext
>  \showstruts
>  \input tufte \removeunwantedspaces\space
>  \localleftbox  par {%
> \hbox to 0pt{%
>\llap{L}%
>\vadjust{\strut\blackrule[width=1cm,color=red]}%
>\hbox{\vadjust pre{\strut\blackrule[width=1cm,color=green]}}%
> }\hss
>  }%
>  \localrightbox par {}%
>  \input tufte \removeunwantedspaces\space
>  \vadjust pre{\strut BEFORE 1}%
>  \vadjust pre{\strut BEFORE 2}%
>  \vadjust before {\strut AFTER  1}%
>  \vadjust before {\strut AFTER  2}%
>  \ignorespaces
>  \input tufte
> \stoptext
>
> Indeed it looks bad (ugly) but it illustrates the idea. What makes
> vadjust sort of useless for content is that it messes up spacing (but if
> there is real demand and usage i can sort that out at some point, maybe
> some new options or so). Thsi example also brings us to local boxes:
>
> \showframe
>
> \starttext
>
> \showmakeup[hbox]
>
> \startnarrower[2*left] \raggedleft
> {\localleftbox par {L1}\input tufte  \par}
> \stopnarrower
> \blank
>
> \startnarrower[2*middle] \raggedcenter
> {\localrightbox par {R1}\input tufte  \par}
> \stopnarrower
> \blank
>
> \stoptext
>
> New is the par keyword that forces the setting to be applied from the
> first line downards (fyio: these commands, when display set registers,
> when inline they set registers and inject a node). Watch out: one needs
> to use grouping in order not to bleed into other mechanisms.
>
> Also new is that we can query the content of these registers using \the,
> as in:
>
> \dorecurse{10}{
>  \showboxes
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L #1.0]}}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.1]}\the\localleftbox}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.2]}\the\localleftbox}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.3]}\the\localleftbox}%
>  %
>  \localrightbox{\ruledhbox
> {\smallinfofont\setstrut\strut[R #1.0]}}%
>
> \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R
>
> #1.1]}}%
>
> \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R
>
> #1.2]}}%
>  \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont[R #1.3]}}%
>  % \localrightbox{}%
>  \samplefile{tufte}
> }
>
> Flushing permits us to append and prepend but it's still ugly so that is
> why we now have a new interface (context layer on top of engine):
>
> \dorecurse{10}{
>  \showboxes
>  %
>  \resetleftparbox
>  \resetrightparbox
>  %
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.0]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.1]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.2]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.3]}}%
>  %
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.0]}}%
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.1]}}%
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.2]}}%
>  \appendrightparbox{\ruledhbox{\smallinfofont[R #1.3]}}%
>  %
>  \samplefile{tufte}
> }
>
> But as this is not really user friendly, there is more: a mechanism for
> hooking in handlers.
>
> \definelocalboxes
>[linenumber]
>[command=\LeftNumber,
> location=left,
> width=3em,
> style=\bs,
> color=darkred]
>
> \definelocalboxes
>[linenumbertwo]
>[linenumber]
>

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Thank you Hraban and Taco for the help. Tricky indeed.

Regards

Marcus Vinicius

On Tue, Nov 16, 2021 at 8:57 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Dear list,
>
> When running the MWE below, the first footnote does not appear.
> What am I missing?
>
> \starttext
> \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.}
> \stoptext
>
> ConTeXt version: 2021.11.13
>
> Regards
>
> Marcus Vinicius
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

When running the MWE below, the first footnote does not appear.
What am I missing?

\starttext
\inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.}
\stoptext

ConTeXt version: 2021.11.13

Regards

Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Math font tips and tricks

2021-11-11 Thread Marcus Vinicius Mesquita via ntg-context
Sometime ago I needed some basic math in Minion and I concocted something
like follows below:

% latin
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,range={1D50D,1D514},force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsa,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsb,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebolditalic,force=yes]

% greek
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbolditalic,force=yes]

% digits - need to be defined without node mode, which means no default set
\definefontfeature[inlinemath][lnum=yes,pnum=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsnormal,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsbold,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[superscriptsandsubscripts] [force=yes]
\setupmathematics[autopunctuation={all},ucgreek=italic,lcgreek=italic]

\definefallbackfamily [mainface] [math] [Minion Pro]
[tf=style:normal,range={0x27-0x2F,0x3C-0x3E,0xB1,0xD7,0xF7,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x2190,0x2192,0x210C-0x211C,0x212D,0x2202,0x2206,0x220F,0x2211,0x2212,0x2215,0x2219,0x221E,0x2248,0x2260,0x2264,0x2265,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]%

\definefallbackfamily [mainface] [math] [Minion Pro]
[bf=style:bold,range={0x27-0x2F,0xD7,0xF7,0x3A-0x3C,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x210C-0x211C,0x212D,0x2212,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]

\definefontfamily [mainface] [math] [Cambria Math]

\setupbodyfont[mainface,12pt]

\starttext

\startformula
c^2 = a^2 + b^2
\stopformula

\bgroup\bf
\startformula
c^2 = a^2 + b^2
\stopformula
\egroup

\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula

\bgroup\bf
\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula
\egroup

\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula

\bgroup\bf
\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula
\egroup

\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula

\bgroup\bf
\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula
\egroup

\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula

\bgroup\bf
\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula
\egroup

\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] Romanization of ancient greek

2021-10-26 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Jairo. It helped, the hack worked for what I needed. I'll mail
Philipp and ask him to fix the module.

Best regards

Marcus Vinicius

On Tue, Oct 26, 2021 at 7:25 AM Jairo A. del Rio 
wrote:

> Ugly hack: add this before loading transliterator:
>
> \startluacode
> unicode = unicode and unicode or _G
> \stopluacode
>
> I get the following output:
>
> kakon anagkē, all' udemia anagkē zēn meta anagkēs
>
> I hope this helps. I also think you should mail Philipp so that he fixes
> it (the Lua code looks pretty old).
>
> Cordially,
>
> Jairo
>
> El mar, 26 de oct. de 2021 a la(s) 05:08, Marcus Vinicius Mesquita via
> ntg-context (ntg-context@ntg.nl) escribió:
>
>> I tried the MWE example below with the transliterator module, but context
>> throws an error:
>> token call, execute:
>> ...ules/tex/context/third/transliterator/transliterator.lua:20: attempt to
>> index a nil value (global 'unicode')
>>
>> \usemodule[transliterator]
>> \starttext
>> \transliterate[mode=gr]{κακὸν ἀνάγκη, ἀλλ' οὐδεμία ἀνάγκη ζῆν μετὰ
>> ἀνάγκης}
>> \stoptext
>>
>> I'm using context current version: 2021.10.24 21:45
>> Marcus Vinicius
>>
>>
>>
>>
>> On Tue, Oct 26, 2021 at 5:13 AM Marcus Vinicius Mesquita <
>> marcusvinicius.mesqu...@gmail.com> wrote:
>>
>>> Thank you, Wolfgang. I'll look into it.
>>>
>>> Regards
>>>
>>> Marcus Vinicius
>>>
>>> On Tue, Oct 26, 2021 at 1:22 AM Wolfgang Schuster <
>>> wolfgang.schuster.li...@gmail.com> wrote:
>>>
>>>> Marcus Vinicius Mesquita via ntg-context schrieb am 26.10.2021 um 00:38:
>>>> > Dear list,
>>>> >
>>>> > Is there anything in ConTeXt that could help me with automatic
>>>> > romanization of ancient greek words?
>>>>
>>>> Is the Transliterator module from Philipp Gesang what you're looking
>>>> for?
>>>>
>>>>
>>>> https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=5025059042/action=view/id=50
>>>>
>>>> Wolfgang
>>>>
>>>>
>>>
>>> --
>>> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
>>> corpo nem seus membros, por ser descanso da alma, primavera do coração,
>>> distração do aflito, entretenimento do solitário, e viático do viajante.
>>>
>>> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>>>
>>
>>
>> --
>> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
>> corpo nem seus membros, por ser descanso da alma, primavera do coração,
>> distração do aflito, entretenimento do solitário, e viático do viajante.
>>
>> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>>
>> ___
>> 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
>>
>> ___
>>
>

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Romanization of ancient greek

2021-10-26 Thread Marcus Vinicius Mesquita via ntg-context
I tried the MWE example below with the transliterator module, but context
throws an error:
token call, execute:
...ules/tex/context/third/transliterator/transliterator.lua:20: attempt to
index a nil value (global 'unicode')

\usemodule[transliterator]
\starttext
\transliterate[mode=gr]{κακὸν ἀνάγκη, ἀλλ' οὐδεμία ἀνάγκη ζῆν μετὰ ἀνάγκης}
\stoptext

I'm using context current version: 2021.10.24 21:45
Marcus Vinicius




On Tue, Oct 26, 2021 at 5:13 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Thank you, Wolfgang. I'll look into it.
>
> Regards
>
> Marcus Vinicius
>
> On Tue, Oct 26, 2021 at 1:22 AM Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
>
>> Marcus Vinicius Mesquita via ntg-context schrieb am 26.10.2021 um 00:38:
>> > Dear list,
>> >
>> > Is there anything in ConTeXt that could help me with automatic
>> > romanization of ancient greek words?
>>
>> Is the Transliterator module from Philipp Gesang what you're looking for?
>>
>>
>> https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=5025059042/action=view/id=50
>>
>> Wolfgang
>>
>>
>
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Romanization of ancient greek

2021-10-26 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Wolfgang. I'll look into it.

Regards

Marcus Vinicius

On Tue, Oct 26, 2021 at 1:22 AM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Marcus Vinicius Mesquita via ntg-context schrieb am 26.10.2021 um 00:38:
> > Dear list,
> >
> > Is there anything in ConTeXt that could help me with automatic
> > romanization of ancient greek words?
>
> Is the Transliterator module from Philipp Gesang what you're looking for?
>
>
> https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=5025059042/action=view/id=50
>
> Wolfgang
>
>

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Romanization of ancient greek

2021-10-25 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

Is there anything in ConTeXt that could help me with automatic romanization
of ancient greek words?

TIA

Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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 command in current latest

2021-10-13 Thread Marcus Vinicius Mesquita via ntg-context
I noticed the same problem reported by Massi, since a lua function I use in
a project as an argument of \getmarking does not get expanded anymore with
the new marking code.

Marcus Vinicius

On Mon, Oct 11, 2021 at 8:33 AM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> On 10/11/2021 11:33 AM, mf via ntg-context wrote:
> > It looks like the argument of \getmarking is not expanded, since you get
> > "\it knuth" instead of an italicized "knuth" in the headers of this MWE:
> >
> > \definemarking[myheader]
> > \setupheadertexts[{\getmarking[myheader][last]}]
> > \starttext
> >\dorecurse{10}{\samplefile{knuth}\marking[myheader]{\it knuth}\par}
> > \stoptext
> we switched to the new marking code; i'll sent you a file to test
>
> fyi: in mkii/mkiv we had to work around limitations of mark
> synchronization and in mkiv that went even further; in lmtx we can use
> some new engine features so the whole lot could be simplified, which
> should also perfoem a little better; it means that mark content follows
> a bit different route
>
> 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
>
> ___
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] composing commands

2021-10-11 Thread Marcus Vinicius Mesquita via ntg-context
Is it possible to add \withinvertedbrevebelow to the list?

On Mon, Feb 8, 2021 at 6:53 AM Hans Hagen  wrote:

> On 2/6/2021 11:41 PM, T. Kurt Bond wrote:
>
> > I think that it would be useful.  I use Unicode characters extensively
> > in my ConTeXt input, but only because I edit it in Emacs and can set up
> > keymaps that map to the Unicode characters in a way that I can actually
> > remember.  I think that this would add an easily remembered way for
> > people to add combining characters to their documents.  Sometimes a
> > slightly more verbose way to do something is helpful when it is more
> > easily remembered.  (Honestly, I can't remember the hex codes for any
> > Unicode characters after you get out of the range that maps to plain
> ASCII
> I anyway uprgade this mechanism. First of all, the short commands will
> be equivalents to more verbose ones.
>
> \withgrave   {a} == \\`{a}
> \withacute   {a} == \\'{a}
> \withcircumflex  {a} == \\^{a}
> \withtilde   {a} == \\~{a}
> \withmacron  {a} == \\={a}
> \withbreve   {e} == \\u{e}
> \withdot {c} == \\.{c}
> \withdieresis{e} == \\"{e}
> \withring{u} == \\r{u}
> \withhungarumlaut{u} == \\H{u}
> \withcaron   {e} == \\v{e}
> \withcedilla {e} == \\c{e}
> \withogonek  {e} == \\k{e}
>
> Did I miss one?
>
> Then we can deprecate the short ones (keep them a low profile, with
> permission to overload). After all, I don't expect someone who needs
> lots of them to use these commands, so more verbose is better then. Aas
> I already mentioned, in bib files they are treated differently already.
>
> The low level helper is \chr, that can be used as
>
> \chr {à} \chr {á} \chr {ä}
> \chr {`a} \chr {'a} \chr {"a}
> \chr {a acute} \chr {a grave} \chr {a umlaut}
> \chr {aacute}  \chr {agrave}  \chr {aumlaut}
>
> (I can add more of the verbose, like {cyrillic a} if really needed. It
> means that we can declare \eacute etc also depricated (these verbose
> names date from \MKII, encoding neutral labels, utf handling, remapping
> to backend encodings etc but we don't need that and I'm not sure if
> anyone ever used those long names. Again, depricated, not removed (yet).)
>
> Then there is the question what to do with \AE and \ij and such ...
> these were used to enforce specific ligatures into a file assuming that
> f ont has them but nowadays that's the job of a font handler (script
> language control). We can keep them but assume them legacy. They
> normally don't belong in input. (Being Dutch I actually never used \IJ
> or \ij).
>
> Now, we can assume that when your languages needs characters with
> accents that you use a font that has them. In MKIV and LMTX one can
> enable a checker
>
> \enabletrackers[fonts.missing]
> \enabletrackers[fonts.missing=replace]
> \enabletrackers[fonts.missing=remove]
>
> but in LMTX it's upgraded with more clever replacements (Jano will
> document that + more about checking missing stuff in the wiki).
>
> So, in LMTX we have more options (maybe I'll backport that to MKIV)
>
> \checkmissingcharacters   \enabletrackers[fonts.missing]
> \removemissingcharacters  \enabletrackers[fonts.missing=remove]
> \replacemissingcharacters \enabletrackers[fonts.missing=replace]
> \handlemissingcharacters
> \enabletrackers[fonts.missing={decompose,replace}]
>
> the last one will inject decomposed characters into the list when font
> lacks the real thing. The replacements visualize similar to MKIV but
> adapt to the style.
>
> Hans
>
> (no upload yet)
>
> -
>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
>
> ___
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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  : 

Re: [NTG-context] MkIV missing?

2021-10-04 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Taco

Your suggestion resolved the issue for me.

Regards

Marcus Vinicius

On Mon, Oct 4, 2021 at 10:50 AM Taco Hoekwater via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> Here is what I assume has happened:
>
> Hans gave LMTX its own "luametatex-cache” directory (around August 20).
> Previously, the cache for LMTX still used files under luatex-cache, just
> like MKIV. But since that change, the “context -—generate” call no longer
> updates files in luatex-cache, only in luametatex-cache.
>
>
> That is not a big problem unless something happens to clear any existing
> cache in that folder (like a re-install from scratch, say).
>
> Normally, one runs “context —-generate” to fix the cache and “context
> —-luatex” to run luatex Combined, that would be
>   “context —-generate —-luatex”.
> But the problem is that luatex cannot find “mtx-context.lua” exactly
> because of the missing cache that we are actually trying to create with
> that command line. Missing “mtx-context.lua” is usually fixed by running
> the more basic “mtxrun —generate”.
>
> However, “mtxrun -—generate”  does not currently support a "-—luatex”
> argument, so the only way I know of right now to get the luatex-cache
> restored|updated is to run the command below.
>
> (Incidentally, this sort of issue is why the core command is not “context
> -—generate” but “mtxrun -—generate”. It is unfortunate that that does not
> help in this case).
>
> Best wishes,
> Taco
>
> > On 4 Oct 2021, at 15:33, Taco Hoekwater via ntg-context <
> ntg-context@ntg.nl> wrote:
> >
> > We are busy with this off-list.
> >
> > If it is urgent:
> >
> > luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate
> >
> > fixed it for me (you’ll need to adjust the path, of course)
> >
> > Best wishes,
> > Taco
> >
> >> On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context <
> ntg-context@ntg.nl> wrote:
> >>
> >> Same problem here, on a linux64, context current version: 2021.09.26
> 17:00
> >>
> >> Greetings
> >>
> >> Marcus Vinicius
> >>
> >> On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context <
> ntg-context@ntg.nl> wrote:
> >>
> >>> Am 04.10.2021 um 13:06 schrieb Hans Hagen :
> >>>
> >>> On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
> >>>> Hi,
> >>>> since a while, I can’t run MkIV any more, even after several runs of
> install.sh (and mtxrun --generate, of course).
>
> —
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
>
>
>
>
> ___
> 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
>
> ___
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] MkIV missing?

2021-10-04 Thread Marcus Vinicius Mesquita via ntg-context
Same problem here, on a linux64, context current version: 2021.09.26 17:00

Greetings

Marcus Vinicius

On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

>
> > Am 04.10.2021 um 13:06 schrieb Hans Hagen :
> >
> > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
> >> Hi,
> >> since a while, I can’t run MkIV any more, even after several runs of
> install.sh (and mtxrun --generate, of course).
> >> It’s the same on my Mac and my Linux laptop (of course the bin dir is
> different on the latter):
> >> $ context --version
> >> mtx-context | ConTeXt Process Management 1.04
> >> mtx-context |
> >> mtx-context | main context file:
> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> >> mtx-context | current version: 2021.09.26 17:00
> >> mtx-context | main context file:
> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> >> mtx-context | current version: 2021.09.26 17:00
> >> $ context --version --luatex
> >> mtx-context | redirect luametatex -> luatex: luatex --luaonly
> "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context
> --version --luatex --redirected
> >> mtxrun  | unknown script 'mtx-context.lua' or
> 'mtx-mtx-context.lua'
> >> $ which context
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context
> >> $ which luatex
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex
> >> $ luatex --version
> >> This is LuaTeX, Version 1.13.0 (TeX Live 2021)
> >> ...
> >> $ mtxrun --version
> >> mtxrun  | ConTeXt TDS Runner Tool 1.32
> >> mtxrun  | source path
> >> I thought that was related to the server/provider move, but I guess it
> isn’t.
> >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so
> that a call to mtxrun can’t find any configuration.
> > works here ... maybe a --generate issue?
>
> I re-ran the install script with a shell ("sh install.sh" instead just ".
> install.sh"), but that doesn’t change the "unknown script" issue.
>
> "mtxrun --generate" seems to work without problems; or do you see
> something suspicious in the attached log?
>
> Hraban
>
>
> ___
> 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
>
> ___
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Invalid conversion specification

2021-09-27 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

The command in the last line of p. 66 of the fonts-mkiv.pdf file:
mtxrun --script font --list --info --pattern=pagella

throws a lua error: function call: invalid conversion specification: '% -8s'

I'm on a linux64 platform using:
current version: 2021.09.26 17:00

Marcus Vinicius


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
Yes, in texmf-local/web2c

Only mtxrun --generate

But even after now also running context --make,
when compiling the mwe, lmtx throws:
tex error   > tex error on line 540005 in file ./mwe.tex: TeX capacity
exceeded, sorry [node memory size=5000]

On Fri, Sep 10, 2021 at 8:49 AM Hans Hagen  wrote:

> On 9/10/2021 1:45 PM, Marcus Vinicius Mesquita wrote:
> > Hi,
> >
> > After perusing the texmfcnf.lua file, I created a file with the same name
> > in my texmf-local folder, changing the settings for the node memory and
> > step size, but it did not affect the compilation of the original MWE
> > (without the enableexperiments switches), which still fails.  What am I
> > missing?
> >
> > Below the contents of the file:
> >
> > return {
> > content = {
> > directives = {
> > ["luametatex.nodesize"] = { size = 6000, step =  60 },
> > }
> >}
> > }
> hm, in texmf-local/web2c ? did you run mtxrun --generate and context
> --make ?
>
> 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
> -
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
Hi,

After perusing the texmfcnf.lua file, I created a file with the same name
in my texmf-local folder, changing the settings for the node memory and
step size, but it did not affect the compilation of the original MWE
(without the enableexperiments switches), which still fails.  What am I
missing?

Below the contents of the file:

return {
   content = {
directives = {
   ["luametatex.nodesize"] = { size = 6000, step =  60 },
}
  }
}

Marcus Vinicius

On Fri, Sep 10, 2021 at 5:55 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Hi, Hans
>
> The enableexperiments switches you pointed to solved the problem for the
> mwe I sent, but I'll take a look at the texmfcnf.lua configuration file to
> learn more.
>
> Thank you for your suggestions.
>
> Marcus Vinicius
>
>
> On Thu, Sep 9, 2021 at 5:12 AM Hans Hagen  wrote:
>
>> On 9/9/2021 12:52 AM, Marcus Vinicius Mesquita via ntg-context wrote:
>> > Dear list,
>> >
>> > In the MWE below, ConTeXt lmtx throws an error with the message in the
>> > title:
>> >
>> > \starttext
>> > \startluacode
>> >
>> > local upperlimit = 9
>> >
>> > context.starttabulate({ "|l|l|l|" })
>> > for i=1,upperlimit do
>> > context.NC()
>> > context("word 1")
>> > context.NC()
>> > context("word 2")
>> > context.NC()
>> > context("word 3")
>> > context.NC()
>> > context.AR()
>> > end
>> > context.stoptabulate()
>> >
>> > \stopluacode
>> > \stoptext
>> >
>> > But it compiles with no problems with MKIV.
>> >
>> > context version: 2021.09.06 11:47
>> >
>> > How to avoid this with lmtx?
>> In luatex there is also a max on configured memory usage but because in
>> luametatex we have larger nodes you hit limits earlier. Also, the memory
>> allocation in luametatex is somewhat different (larger nodes are
>> compensated by savings elsewhere so in the end mem usage for this run is
>> similar).
>>
>>  luatex  luametatex
>>
>> pages   21962196
>> pps/s  8  11
>> time 278 195
>> mem 1.1G1.1G
>>
>> now, luametatex reports
>>
>> tex memory  > bumping category 'node' succeeded, details:
>> all=40050 | ini=0 | max=5000 | mem=4450 | min=100 |
>> ptr=-843956 | set=5000 | stp=50 | top=4399
>>
>> you can bump the the max in the configuration file and also the step. As
>> you can see, luametatex runs quite a bit faster on this test but that is
>> due to other differences between the two engines.
>>
>> The reason why it does run on my machine is that i have this:
>>
>> \enableexperiments [tabulatesparseskips]
>> \enableexperiments [tabulateusesize]
>>
>> this makes tabulate a bit more efficient in terms of node usage so i
>> stay some 20% below the configured max .. you can try to run with this
>> option. Of course adding more text will also demand more mem but then
>> you can always bump the max (in a configuration file in texmf-local or
>> so; maybe some day i will add a --huge flag to the runner).
>>
>> 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
>> -
>>
>
>
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
Hi, Hans

The enableexperiments switches you pointed to solved the problem for the
mwe I sent, but I'll take a look at the texmfcnf.lua configuration file to
learn more.

Thank you for your suggestions.

Marcus Vinicius


On Thu, Sep 9, 2021 at 5:12 AM Hans Hagen  wrote:

> On 9/9/2021 12:52 AM, Marcus Vinicius Mesquita via ntg-context wrote:
> > Dear list,
> >
> > In the MWE below, ConTeXt lmtx throws an error with the message in the
> > title:
> >
> > \starttext
> > \startluacode
> >
> > local upperlimit = 9
> >
> > context.starttabulate({ "|l|l|l|" })
> > for i=1,upperlimit do
> > context.NC()
> > context("word 1")
> > context.NC()
> > context("word 2")
> > context.NC()
> > context("word 3")
> > context.NC()
> > context.AR()
> > end
> > context.stoptabulate()
> >
> > \stopluacode
> > \stoptext
> >
> > But it compiles with no problems with MKIV.
> >
> > context version: 2021.09.06 11:47
> >
> > How to avoid this with lmtx?
> In luatex there is also a max on configured memory usage but because in
> luametatex we have larger nodes you hit limits earlier. Also, the memory
> allocation in luametatex is somewhat different (larger nodes are
> compensated by savings elsewhere so in the end mem usage for this run is
> similar).
>
>  luatex  luametatex
>
> pages   21962196
> pps/s  8  11
> time 278 195
> mem 1.1G1.1G
>
> now, luametatex reports
>
> tex memory  > bumping category 'node' succeeded, details:
> all=40050 | ini=0 | max=5000 | mem=4450 | min=100 |
> ptr=-843956 | set=5000 | stp=50 | top=4399
>
> you can bump the the max in the configuration file and also the step. As
> you can see, luametatex runs quite a bit faster on this test but that is
> due to other differences between the two engines.
>
> The reason why it does run on my machine is that i have this:
>
> \enableexperiments [tabulatesparseskips]
> \enableexperiments [tabulateusesize]
>
> this makes tabulate a bit more efficient in terms of node usage so i
> stay some 20% below the configured max .. you can try to run with this
> option. Of course adding more text will also demand more mem but then
> you can always bump the max (in a configuration file in texmf-local or
> so; maybe some day i will add a --huge flag to the runner).
>
> 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
> -
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-08 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

In the MWE below, ConTeXt lmtx throws an error with the message in the
title:

\starttext
\startluacode

local upperlimit = 9

context.starttabulate({ "|l|l|l|" })
for i=1,upperlimit do
context.NC()
context("word 1")
context.NC()
context("word 2")
context.NC()
context("word 3")
context.NC()
context.AR()
end
context.stoptabulate()

\stopluacode
\stoptext

But it compiles with no problems with MKIV.

context version: 2021.09.06 11:47

How to avoid this with lmtx?

TIA
Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] (no subject)

2021-09-08 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

Let's say we have two types of synonyms:

\definesynonyms[Abrev][Abrevs][\AbrevExp][\AbrevComp]
\definesynonyms[Rubrica][Rubricas][\RubricaExp][\RubricaComp]

Is it possible to combine them in a unique list of merged Abrevs and
Rubricas?

TIA

Marcus Vinicius

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
Thank you for the last update. It works perfectly.

Marcus Vinicius

On Sat, Aug 7, 2021 at 10:23 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Thank you, Hans. I'll wait then for the next upload.
>
> Have a nice weekend.
>
> Marcus Vinicius
>
>
> On Sat, Aug 7, 2021 at 10:14 AM Hans Hagen  wrote:
>
>> On 8/7/2021 1:09 PM, Marcus Vinicius Mesquita via ntg-context wrote:
>> > Dear list,
>> >
>> > I'm trying to use the BabelStone Flags font, with colored flags of many
>> > countries,available freely under the SIL Open Font License 1.1 at:
>> > https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf
>> > <https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf>
>> >
>> > In the MWE below, there is a spurious “at” in the first time that the
>> > definition of the symbol for the Brazilian flag is used, but no problem
>> > when the definition for the flag of Portugal is used or even when the
>> > symbol for the Brazilian flag is used a second time. How to correct
>> this
>> > behavior?
>> >
>> > MWE:
>> >
>> > \definefontfeature[colored][colr=yes]
>> > \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt]
>> > \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}]
>> > \definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}]
>> >
>> > \starttext
>> >
>> > Brasil \symbol[BR]
>> >
>> > Portugal \symbol[PT]
>> >
>> > Brasil \symbol[BR]
>> >
>> > \stoptext
>> the fontsize is automatic so the "at .." interferes
>>
>> here is an alternative (call by name):
>>
>>\definesymbol[BR][{\getnamedglyphdirect{flags}{br}}]
>>\definesymbol[PT][{\getnamedglyphdirect{flags}{pt}}]
>>
>> now, because you want it smaller i'll add this
>>
>>\definesymbol[BR][{\getnamedglyphdirectscaled{.7}{flags}{br}}]
>>\definesymbol[PT][{\getnamedglyphdirectscaled{.7}{flags}{pt}}]
>>
>> in the next upload
>>
>> 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
>> -
>>
>
>
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Hans. I'll wait then for the next upload.

Have a nice weekend.

Marcus Vinicius


On Sat, Aug 7, 2021 at 10:14 AM Hans Hagen  wrote:

> On 8/7/2021 1:09 PM, Marcus Vinicius Mesquita via ntg-context wrote:
> > Dear list,
> >
> > I'm trying to use the BabelStone Flags font, with colored flags of many
> > countries,available freely under the SIL Open Font License 1.1 at:
> > https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf
> > <https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf>
> >
> > In the MWE below, there is a spurious “at” in the first time that the
> > definition of the symbol for the Brazilian flag is used, but no problem
> > when the definition for the flag of Portugal is used or even when the
> > symbol for the Brazilian flag is used a second time. How to correct this
> > behavior?
> >
> > MWE:
> >
> > \definefontfeature[colored][colr=yes]
> > \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt]
> > \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}]
> > \definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}]
> >
> > \starttext
> >
> > Brasil \symbol[BR]
> >
> > Portugal \symbol[PT]
> >
> > Brasil \symbol[BR]
> >
> > \stoptext
> the fontsize is automatic so the "at .." interferes
>
> here is an alternative (call by name):
>
>\definesymbol[BR][{\getnamedglyphdirect{flags}{br}}]
>\definesymbol[PT][{\getnamedglyphdirect{flags}{pt}}]
>
> now, because you want it smaller i'll add this
>
>\definesymbol[BR][{\getnamedglyphdirectscaled{.7}{flags}{br}}]
>\definesymbol[PT][{\getnamedglyphdirectscaled{.7}{flags}{pt}}]
>
> in the next upload
>
> 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
> -
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Problem with colored font

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

I'm trying to use the BabelStone Flags font, with colored flags of many
countries, available freely under the SIL Open Font License 1.1 at:
https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf

In the MWE below, there is a spurious “at” in the first time that the
definition of the symbol for the Brazilian flag is used, but no problem
when the definition for the flag of Portugal is used or even when the
symbol for the Brazilian flag is used a second time. How to correct this
behavior?

MWE:

\definefontfeature[colored][colr=yes]
\definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt]
\definesymbol[BR][\getglyphdirect{flags}{\char"F0023}]
\definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}]

\starttext

Brasil \symbol[BR]

Portugal \symbol[PT]

Brasil \symbol[BR]

\stoptext

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] lpeg pattern in function

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Hans. Very nice indeed your solutions.

Marcus Vinicius

On Sat, Aug 7, 2021 at 5:37 AM Hans Hagen  wrote:

> On 8/6/2021 10:58 PM, Marcus Vinicius Mesquita via ntg-context wrote:
> > Dear list,
> > in the mwe below, the expected result is ok for most entries but fails
> > when the word contains the letters ó or ô.
> > We get zoolco instead of zoológico, and termtro instead of termômetro.
> > What am I doing wrong?
> >
> > mwe:
> >
> > \def\stripnumber#1%
> >  {\cldcontext{lpeg.match(lpeg.stripper("[¹²³⁴⁵⁶⁷⁸⁹⁰]"),
> > [==[#1]==])}}
> >
> > \starttext
> >
> > \stripnumber{árbitro⁶}
> > \stripnumber{ébano¹}
> > \stripnumber{ícone⁸}
> > \stripnumber{zoológico⁰}
> > \stripnumber{eletroacústico⁹}
> > \stripnumber{trânsfuga⁷}
> > \stripnumber{farmacêutico¹}
> > \stripnumber{maître²}
> > \stripnumber{termômetro³}
> > \stripnumber{noûs⁴}
> >
> > \stoptext
>
>
> \def\stripnumber#1%
>{\cldcontext{lpeg.match(lpeg.stripper(lpeg.US("¹²³⁴⁵⁶⁷⁸⁹⁰")),
> [==[#1]==])}}
>
> (US -> utf set)
>
> or
>
> \startluacode
>  local s = lpeg.stripper(lpeg.US("¹²³⁴⁵⁶⁷⁸⁹⁰"))
>  function document.StripNumber(str)
>  context(lpeg.match(s, str))
>  end
> \stopluacode
>
> \def\stripnumber#1{\ctxlua{document.StripNumber([==[#1]==])}}
>
> or you can go fancy:
>
> \startluacode
>  local p_strip = lpeg.stripper(lpeg.US("¹²³⁴⁵⁶⁷⁸⁹⁰"))
>
>  interfaces.implement {
>  name  = "StripNumber",
>  public= true,
>  arguments = "string",
>  actions   = function(str)
>  context(lpeg.match(p_strip, str))
>  end
>  }
> \stopluacode
>
> \StripNumber{zoológico⁰}
>
> There are more efficient variants but i guess it's good enough.
>
> 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
> -
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] lpeg pattern in function

2021-08-06 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,
in the mwe below, the expected result is ok for most entries but fails when
the word contains the letters ó or ô.
We get zoolco instead of zoológico, and termtro instead of termômetro. What
am I doing wrong?

mwe:

\def\stripnumber#1%
{\cldcontext{lpeg.match(lpeg.stripper("[¹²³⁴⁵⁶⁷⁸⁹⁰]"), [==[#1]==])}}

\starttext

\stripnumber{árbitro⁶}
\stripnumber{ébano¹}
\stripnumber{ícone⁸}
\stripnumber{zoológico⁰}
\stripnumber{eletroacústico⁹}
\stripnumber{trânsfuga⁷}
\stripnumber{farmacêutico¹}
\stripnumber{maître²}
\stripnumber{termômetro³}
\stripnumber{noûs⁴}

\stoptext
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Loading a file at the line ConTeXt throws as an errror automatically with vim

2021-07-01 Thread Marcus Vinicius Mesquita
Dear list,

Is there a way to do this when running context from the command line in
linux?

TIA

Marcus Vinicius


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] 2020 Meeting recordings?

2020-09-17 Thread Marcus Vinicius Mesquita
So do I.

Marcus Vinicius

On Thu, Sep 17, 2020, 13:07 Denis Maier 
wrote:

> Hi,
>
> unfortunately, I wasn't able to come to this years meeting. Have the
> presentations and demos been recorded? I would very much like to watch
> some of those.
>
> Best,
> Denis
>
> ___
> 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] Fonts out of ConTeXt manual

2020-08-23 Thread Marcus Vinicius Mesquita
There is also a typo in section 8.4.14 Contexts, in the lua code:
name = "ytest", should be: name = "ctest",

Regards,

Marcus Vinicius

On Sun, Aug 23, 2020 at 10:28 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Dear list,
>
> In the fonts-mkiv.pdf file, section 8.14.3 Examples, the table at the top
> of page 178 has all entries in the third column equal, when they shouldn't.
> Please, fix when possible.
>
> Regards,
>
> Marcus Vinicius
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Fonts out of ConTeXt manual

2020-08-23 Thread Marcus Vinicius Mesquita
Dear list,

In the fonts-mkiv.pdf file, section 8.14.3 Examples, the table at the top
of page 178 has all entries in the third column equal, when they shouldn't.
Please, fix when possible.

Regards,

Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Wrong counting of lines and paragraphs

2020-08-10 Thread Marcus Vinicius Mesquita
Ok. Thank you for your clarification.

Regards

Marcus Vinicius

On Sat, Aug 8, 2020 at 7:03 AM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Marcus Vinicius Mesquita schrieb am 07.08.2020 um 21:10:
> > Dear list,
> >
> > In the MWE below you don't get lines and paragraphs numbered correctly:
> >
> > [...]
> >
> > Have I hit a bug?
>
> No, this is a side effect from your sections which start the paragraphs.
>
> Wolfgang
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Wrong counting of lines and paragraphs

2020-08-07 Thread Marcus Vinicius Mesquita
Dear list,

In the MWE below you don't get lines and paragraphs numbered correctly:

\setuplinenumbering[location=inner,align=right,style=\tfxx,distance=10pt,color=red]
\setupparagraphnumbering[state=start,style=bold,distance=0pt,color=darkblue]

\setuphead[title][alternative=text,style=bold]
\setuphead[subject][alternative=text,style=bolditalic]
\setuphead[subsubject][alternative=text,style=\ss]
\setuphead[subsubsubject][alternative=text,style=\ss\it]

\startbuffer[waltham]
  \input waltham
\stopbuffer

\starttext
\startlinenumbering

\starttitle[title={Waltham}]
\dorecurse{4}{\getbuffer[waltham]\par}

\startsubject[title={Waltham}]
\dorecurse{5}{\getbuffer[waltham]\par}

\startsubsubject[title={Waltham}]
\dorecurse{5}{\getbuffer[waltham]\par}

\startsubsubsubject[title={Waltham}]
\dorecurse{2}{\getbuffer[waltham]\par}
\stopsubsubsubject

\stopsubsubject
\stopsubject
\stoptitle

\stoplinenumbering

\stoptext

Have I hit a bug?

Regards

Marcus Vinicius


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
\setuplinenumbering [location=inner,align=right,style=\tfxx,distance=10pt,color=red]
\setupparagraphnumbering[state=start,style=bold,distance=0pt,color=darkblue]

\setuphead[title][alternative=text,style=bold]
\setuphead[subject][alternative=text,style=bolditalic]
\setuphead[subsubject][alternative=text,style=\ss]
\setuphead[subsubsubject][alternative=text,style=\ss\it]

\startbuffer[waltham]
  \input waltham
\stopbuffer

\starttext
\startlinenumbering

\starttitle[title={Waltham}]
\dorecurse{4}{\getbuffer[waltham]\par}

\startsubject[title={Waltham}]
\dorecurse{5}{\getbuffer[waltham]\par}

\startsubsubject[title={Waltham}]
\dorecurse{5}{\getbuffer[waltham]\par}

\startsubsubsubject[title={Waltham}]
\dorecurse{2}{\getbuffer[waltham]\par}
\stopsubsubsubject

\stopsubsubject
\stopsubject
\stoptitle

\stoplinenumbering

\stoptext


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


Re: [NTG-context] Alphabet & color

2020-07-31 Thread Marcus Vinicius Mesquita
Ok, after changing the glyph names in colorfont.lfg things run smoothly but
for six glyphs:

uacute, ucircumflex, udieresis, Uacute, Ucircumflex, Udieresis

Have I hit a bug?

Regards,

Marcus Vinicius

On Fri, Jul 31, 2020 at 3:00 PM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Thank you, that was very helpful.
>
> Marcus Vinicius
>
>

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)


colorfont.lfg
Description: Binary data
\setupbodyfont[plex,22pt]

\definecolor[colorscheme:1:1][h=002776]  % a
\definecolor[colorscheme:1:2][h=009c3b]  % b
\definecolor[colorscheme:1:3][h=17737e]  % c
\definecolor[colorscheme:1:4][h=ff5733]  % d
\definecolor[colorscheme:1:5][h=493367]  % e
\definecolor[colorscheme:1:6][h=7c6d11]  % f
\definecolor[colorscheme:1:7][h=117c2a]  % g
\definecolor[colorscheme:1:8][h=6d109d]  % h
\definecolor[colorscheme:1:9][h=08d11a]  % i
\definecolor[colorscheme:1:10][h=a81163] % j
\definecolor[colorscheme:1:11][h=7d2830] % k
\definecolor[colorscheme:1:12][h=2868d1] % l
\definecolor[colorscheme:1:13][h=2c11da] % m
\definecolor[colorscheme:1:14][h=cf47bb] % n
\definecolor[colorscheme:1:15][h=27bde2] % o
\definecolor[colorscheme:1:16][h=dc5777] % p
\definecolor[colorscheme:1:17][h=c28201] % q
\definecolor[colorscheme:1:18][h=ffdf00] % r
\definecolor[colorscheme:1:19][h=30a777] % s
\definecolor[colorscheme:1:20][h=722548] % t
\definecolor[colorscheme:1:21][h=ff00ff] % u
\definecolor[colorscheme:1:22][h=e0115f] % v
\definecolor[colorscheme:1:23][h=004c4c] % w
\definecolor[colorscheme:1:24][h=ae0001] % x
\definecolor[colorscheme:1:25][h=696966] % y
\definecolor[colorscheme:1:26][h=7bb3ff] % z

\definefontfeature
   [MyFeaturesA] [default]
   [goodies={colorfont},colorscheme=default]

\definefont[MyFontA][SerifBold*MyFeaturesA]

\starttext

\setfontcolorscheme[1]
\MyFontA
\startlines
aàáâãäå AÀÁÂÃÄÅ
eèéêë EÈÉÊË
iìíîï IÌÍÎÏ
oòóôõö OÒÓÔÕÖ
uùúûü UÙÚÛÜ

\stoptext


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


Re: [NTG-context] Alphabet & color

2020-07-31 Thread Marcus Vinicius Mesquita
Thank you, that was very helpful.

Marcus Vinicius
___
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] Alphabet & color

2020-07-31 Thread Marcus Vinicius Mesquita
Hi, again

With the suggestions you gave I managed to obtain the functionality I need,
almost.
Somehow letters with accents like á ã é ó õ and also ç don't get the same
color of the base letters given in the colorfont.lfg below:

return {
 name = "coloralphabet",
 colorschemes = {
 default = {
 [1] = { "A", "a", "á", "ã", "å", "à", "ä" },
 [2] = { "b", "B" },
 [3] = { "c", "ç", "C", "Ç" },
 [4] = { "d", "D" },
 [5] = { "e", "E" },
 [6] = { "f", "F" },
 [7] = { "g", "G" },
 [8] = { "h", "H" },
 [9] = { "i", "í", "ì", "I", "Í", "Ì" },
 [10] = { "j", "J" },
 [11] = { "k", "K" },
 [12] = { "l", "L" },
 [13] = { "m", "M" },
 [14] = { "n", "ñ", "N", "Ñ" },
 [15] = { "o", "ó", "õ", "ö", "O", "Ó", "Õ", "Ö"  },
 [16] = { "p", "P" },
 [17] = { "q", "Q" },
 [18] = { "r", "R" },
 [19] = { "s", "S" },
 [20] = { "t", "T" },
 [21] = { "u", "ù", "ú", "ü", "U", "Ù", "Ú", "Ü" },
 [22] = { "v", "V" },
 [23] = { "w", "W" },
 [24] = { "x", "X" },
 [25] = { "y", "Y" },
 [26] = { "z", "Z" },
 },
 }
}

The MWE follows below:

\setupbodyfont[plex,22pt]

\definecolor[colorscheme:1:1][h=002776]  % a
\definecolor[colorscheme:1:2][h=009c3b]  % b
\definecolor[colorscheme:1:3][h=17737e]  % c
\definecolor[colorscheme:1:4][h=ff5733]  % d
\definecolor[colorscheme:1:5][h=493367]  % e
\definecolor[colorscheme:1:6][h=7c6d11]  % f
\definecolor[colorscheme:1:7][h=117c2a]  % g
\definecolor[colorscheme:1:8][h=6d109d]  % h
\definecolor[colorscheme:1:9][h=08d11a]  % i
\definecolor[colorscheme:1:10][h=a81163] % j
\definecolor[colorscheme:1:11][h=7d2830] % k
\definecolor[colorscheme:1:12][h=2868d1] % l
\definecolor[colorscheme:1:13][h=2c11da] % m
\definecolor[colorscheme:1:14][h=cf47bb] % n
\definecolor[colorscheme:1:15][h=27bde2] % o
\definecolor[colorscheme:1:16][h=dc5777] % p
\definecolor[colorscheme:1:17][h=c28201] % q
\definecolor[colorscheme:1:18][h=ffdf00] % r
\definecolor[colorscheme:1:19][h=30a777] % s
\definecolor[colorscheme:1:20][h=722548] % t
\definecolor[colorscheme:1:21][h=ff00ff] % u
\definecolor[colorscheme:1:22][h=e0115f] % v
\definecolor[colorscheme:1:23][h=004c4c] % w
\definecolor[colorscheme:1:24][h=ae0001] % x
\definecolor[colorscheme:1:25][h=696966] % y
\definecolor[colorscheme:1:26][h=7bb3ff] % z

\definefontfeature
   [MyFeaturesA] [default]
   [goodies={colorfont},colorscheme=default]

\definefont[MyFontA][SerifBold*MyFeaturesA]

\starttext

\setfontcolorscheme[1] {\MyFontA BRASIL brasil órfão ÓRFÃO mão MÃO bênção}

\stoptext

What needs to be changed?

Greetings

Marcus Vinicius


colorfont.lfg
Description: Binary data
\setupbodyfont[plex,22pt]

\definecolor[colorscheme:1:1][h=002776]  % a
\definecolor[colorscheme:1:2][h=009c3b]  % b
\definecolor[colorscheme:1:3][h=17737e]  % c
\definecolor[colorscheme:1:4][h=ff5733]  % d
\definecolor[colorscheme:1:5][h=493367]  % e
\definecolor[colorscheme:1:6][h=7c6d11]  % f
\definecolor[colorscheme:1:7][h=117c2a]  % g
\definecolor[colorscheme:1:8][h=6d109d]  % h
\definecolor[colorscheme:1:9][h=08d11a]  % i
\definecolor[colorscheme:1:10][h=a81163] % j
\definecolor[colorscheme:1:11][h=7d2830] % k
\definecolor[colorscheme:1:12][h=2868d1] % l
\definecolor[colorscheme:1:13][h=2c11da] % m
\definecolor[colorscheme:1:14][h=cf47bb] % n
\definecolor[colorscheme:1:15][h=27bde2] % o
\definecolor[colorscheme:1:16][h=dc5777] % p
\definecolor[colorscheme:1:17][h=c28201] % q
\definecolor[colorscheme:1:18][h=ffdf00] % r
\definecolor[colorscheme:1:19][h=30a777] % s
\definecolor[colorscheme:1:20][h=722548] % t
\definecolor[colorscheme:1:21][h=ff00ff] % u
\definecolor[colorscheme:1:22][h=e0115f] % v
\definecolor[colorscheme:1:23][h=004c4c] % w
\definecolor[colorscheme:1:24][h=ae0001] % x
\definecolor[colorscheme:1:25][h=696966] % y
\definecolor[colorscheme:1:26][h=7bb3ff] % z

\definefontfeature
   [MyFeaturesA] [default]
   [goodies={colorfont},colorscheme=default]

\definefont[MyFontA][SerifBold*MyFeaturesA]

\starttext

\setfontcolorscheme[1] {\MyFontA BRASIL brasil órfão ÓRFÃO mão MÃO bênção}

\stoptext


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


Re: [NTG-context] Unknown script 'fonts.lua' or 'mtx-fonts.lua'

2020-07-30 Thread Marcus Vinicius Mesquita
Hi, Hans

I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file:

~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua

Am I missing something?

Marcus Vinicius

--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Unknown script 'fonts.lua' or 'mtx-fonts.lua'

2020-07-30 Thread Marcus Vinicius Mesquita
Dear List,

After updating ConTeXt to the last version, the command:

mtxrun --script fonts

replies:
mtxrun  | unknown script 'fonts.lua' or 'mtx-fonts.lua'

mtxrun --version gives:

mtxrun  | ConTeXt TDS Runner Tool 1.32

Greetings

Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Alphabet & color

2020-07-16 Thread Marcus Vinicius Mesquita
I got it. Thanks.

Marcus Vinicius

On Thu, Jul 16, 2020, 13:57 Hans Hagen  wrote:

> On 7/16/2020 6:41 PM, Marcus Vinicius Mesquita wrote
>
> > I tried your code and it works fine. But where do the color schemes
> > default and whatever come from? How can they be changed?
> defauls is defined in the example .. colorshemes have numbers:
>
> \definecolor[colorscheme:1:1][s=.75]
> \definecolor[colorscheme:1:2][r=.75]
> \definecolor[colorscheme:1:3][g=.75]
> \definecolor[colorscheme:1:4][b=.75]
> \definecolor[colorscheme:1:5][c=.75]
> \definecolor[colorscheme:1:6][m=.75]
> \definecolor[colorscheme:1:7][y=.75]
>
> 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] Alphabet & color

2020-07-16 Thread Marcus Vinicius Mesquita
Thank you, Hans for your answer.

I tried your code and it works fine. But where do the color schemes default
and whatever come from? How can they be changed?

Best regards

Marcus Vinicius

On Thu, Jul 16, 2020, 04:19 Hans Hagen  wrote:

> On 7/16/2020 7:32 AM, Marcus Vinicius Mesquita wrote:
> > Dear list
> >
> > I need to typeset a book for kids wich contains texts where each letter
> > is assigned a fixed color, for example:
> >
> > A - - > red;
> > B - - > blue;
> > ...
> > Z - - > green.
> >
> > What would be the best way to do this? TIA.
> There's more ways to do this but here is one:
>
> (1) make a file: colorfont.lfg:
>
> return {
>  name = "coloralphabet",
>  colorschemes = {
>  default = {
>  [1] = { "a", "e" },
>  [2] = { "i", "o", "u" },
>  },
>  whatever = {
>  [1] = { "65:90" },
>  [2] = { },
>  [3] = { },
>  [4] = { "97:122" },
>  }
>  }
> }
>
> There is some more possible but this wil do ...
>
> (2) You define a font with these goodies attached:
>
> \setupbodyfont[plex,10pt]
>
> \definefontfeature
>[MyFeaturesA] [default]
>[goodies={colorfont},colorscheme=default,liga=no]
>
> \definefontfeature
>[MyFeaturesB] [default]
>[goodies={colorfont},colorscheme=whatever,liga=no]
>
> \definefont[MyFontA][Serif*MyFeaturesA]
> \definefont[MyFontB][Serif*MyFeaturesB]
>
> (3) and use it this way:
>
> \starttext
>
> \setfontcolorscheme[1] {\MyFontA \samplefile{tufte}}\par
> \setfontcolorscheme[2] {\MyFontA \samplefile{tufte}}\par
> \setfontcolorscheme[3] {\MyFontA \samplefile{tufte}}\par
>
> \page
>
> \setfontcolorscheme[1] {\MyFontB \samplefile{tufte}}\par
> \setfontcolorscheme[2] {\MyFontB \samplefile{tufte}}\par
> \setfontcolorscheme[3] {\MyFontB \samplefile{tufte}}\par
>
> \stoptext
>
> Now, this is pretty (more than a decade) old functionality from early
> days of mkiv/luatex when it was used for some tracing (by Idris) and it
> still works (surprise).
>
> Today I would definitely use more recent trickery. If there is real
> demand for this I can have a look at it, after all it's "kind of fun"
> (as is most of font stuff).
>
> 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
___


[NTG-context] Alphabet & color

2020-07-15 Thread Marcus Vinicius Mesquita
Dear list

I need to typeset a book for kids wich contains texts where each letter is
assigned a fixed color, for example:

A - - > red;
B - - > blue;
...
Z - - > green.

What would be the best way to do this? TIA.

Marcus Vinicius
___
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] wiki update - status

2020-06-08 Thread Marcus Vinicius Mesquita
So much better! Thank you very much for the effort!

Greetings

Marcus Vinicius

On Sun, Jun 7, 2020, 19:05 Garulfo  wrote:

> Hi all,
>
> New source browser is nice ! Thanks a lot.
>
> After level 1 (Main Page / Download and Install / Documentation /
> Mailing lists), I mostly finished a review of level 2 (and some level 3)
> pages.
>
> Several tweaks all over the place like:
>
> - Fonts: full update for newcomers,
> - Try to be responsive "enough" for smartphone
> - More homogeneous style / theme
> - Old Content category and tag pages, update dead links
> - Layout:
>- do the todo, like merging content of paper setup + paper sizes pages
>- complete the flow with imposition
>- rework the "Further reading section", add PDF links and so on
> - Programming & DB:
>- Gather "Calling Lua from TeX" and "Calling TeX from Lua"
>  (section +links) in a same page
> - Tools:
>- segregate "core tools" and "additional tools"
>- highlight existence of mtxrun and context scripts pages
> - Remove former "manually made links bar" at the top of the pages
>current structure should be enough now have an easier understanding of
>the wiki structure.
>
> Thanks for your help Taco, Hans, Aditya, Hraban, Tomáš.
>
> I hope that this will help to improve the reception of users and their
> willingness to contribute.
>
> Bye.
>
> ___
> 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] complete cover example

2020-05-12 Thread Marcus Vinicius Mesquita
Hi, Julian

I uploaded to github a cover I designed and created with ConTeXt some time
ago for a book I typesetted called “Cultivando o bem” for a buddhist
organization.
It is quite a complete example and illustrates the power of ConTeXt.
The comments in the code are sparse and not exactly detailed as you wish,
but I hope it will be useful to you.
My OS is linux and I use a Makefile to generate all the necessary files.

You can access the code at:

https://github.com/marcusviniciusmesquita/cob-cover

Greetings

Marcus Vinicius

On Fri, Apr 24, 2020 at 3:32 AM jbf  wrote:
>
> Am wondering if anybody has a complete example (explained below) of a
book cover: front, spine and back. It doesn't matter how simple or
complicated the example. Am one of those people who, once he sees an
example, can generally work out the necessary adaptations.
>
> By a complete example I mean the kind of thing found here Creating a
style file in ConTeXt | Random Determinism where the writer explains things
bit by bit but importantly, offers a summary of the code at the end. I
probably don't need the lengthy explanation but the summary of code is most
helpful - except that it is not about a book cover:-)
>
> As a relative newcomer to ConTeXt, I have found complete examples of
something I want/need to do very useful. Of course, many such are on the
wiki, but from time to time I need something else, and right at the moment
I need a bit of guidance for a book cover, and an example might help.
>
> Julian
>
>
___
> 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
>
___



--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Pixels gone wrong?

2020-02-28 Thread Marcus Vinicius Mesquita
Thank you

On Fri, Feb 28, 2020, 08:18 Hans Hagen  wrote:

> On 2/28/2020 11:27 AM, Marcus Vinicius Mesquita wrote:
> > The MWE below when compiled with mkiv gives a one page document, whereas
> > lmtx gives a blank pdf with 171 pages.
> >
> >
> > \definepapersize[screen][width=1920px,height=1080px]
> > \setuppapersize [screen][screen]
> >
> > \starttext
> >
> > \input knuth
> >
> > \stoptext
> interesting ... fixed in next version
>
> you can put this in your cont-new.mkiv file:
>
> \pxdimen 1bp
>
> 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
___


[NTG-context] Pixels gone wrong?

2020-02-28 Thread Marcus Vinicius Mesquita
The MWE below when compiled with mkiv gives a one page document, whereas
lmtx gives a blank pdf with 171 pages.


\definepapersize[screen][width=1920px,height=1080px]
\setuppapersize [screen][screen]

\starttext

\input knuth

\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] Error in MetaFun LMTX

2020-02-25 Thread Marcus Vinicius Mesquita
should be D := instead of D : =

On Tue, Feb 25, 2020 at 2:35 PM Jan-Erik Hägglöf 
wrote:

> The following code gives an error, my goal is to draw 4 different arrows
> but only three functions successfully.
>
> The error log shows
>
> metapost> initializing number mode 'scaled'
> metapost log>
> metapost log> loading metafun, including plain.mp version 1.004 for
> metafun iv and xl
> metapost log>
> metapost log> >> unknown path D
> metapost log> ! Isolated expression.
> metapost log> 
> metapost log>:
> metapost log> <*> ... :=(12cm, -1cm)--(11cm, -1cm); path D ; D :
> metapost log>
>  =(4cm, -1cm)--(3cm, -1cm)...
> metapost log>
>
> And the code is as follows
>
> \startMPcode
> path A ; A :=(0cm, -1cm)--(1cm, -1cm);
> path B ; B :=(13.5cm, -1cm)--(14.5cm, -1cm);
> path C ; C :=(12cm, -1cm)--(11cm, -1cm);
> path D ; D : =(4cm, -1cm)--(3cm, -1cm);
> drawarrow A; drawarrow B; drawarrow C ; drawarrow D ;
> \stopMPcode
>
> Unless I uncomment D it gives the above error.
>
> Mysterious issue
>
> /Janne
>
> ___
> 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
>
> ___
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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 backgroundcolors with showgrid and luacode

2019-04-27 Thread Marcus Vinicius Mesquita
\definepalet[layout][grid=black]

On Sat, Apr 27, 2019, 07:04 Pablo Rodriguez  wrote:

> On 4/26/19 2:28 PM, Wolfgang Schuster wrote:
> > [...]
> > \showgrid highlights different page elements with colors but you can
> > change the output
> >
> > https://www.mail-archive.com/ntg-context@ntg.nl/msg90312.html
>
> Hi Wolfgang,
>
> is there any way to get the lines from \showgrid in black instead of red?
>
> 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
>
> ___
>
___
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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Hi, Pablo

Indeed, with curl I was able to download the file. Thank you.

In the wiki page about ConTeXt standalone (
https://wiki.contextgarden.net/ConTeXt_Standalone), the section about
single user installation suggests only the wget program, so I got stuck,
and perhaps we could avoid that for future users.

Regards

Marcus Vinicius

On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:

> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:
> > Hi, Taco
> >
> > I tried again, but the server still answers with a 404 error.
>
> Hi Marcus,
>
> I have just updated my ConTeXt Suite to its latest beta.
>
> And the following command downloads the file (I don’t have wget installed):
>
>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
>
> 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://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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Hi, Taco

I tried again, but the server still answers with a 404 error.

Marcus Vinicius

On Fri, Feb 8, 2019, 15:41 Taco Hoekwater  wrote:

> Dear Marcus,
>
> That was my fault, I messed something up in the webserver settings. It
> should be ok now.
>
> With my best apologies,
>
> Taco
>
>
>
> > On 8 Feb 2019, at 17:25, Marcus Vinicius Mesquita <
> marcusvinicius.mesqu...@gmail.com> wrote:
> >
> > Dear list,
> >
> > When I try to fetch the file first-setup.sh with
> >
> > wget http://minimals.contextgarden.net/setup/first-setup.sh
> >
> > the server answers with: 404 error: Not found.
> >
> > Marcus Vinicius
> >
> ___
> > 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
> >
> ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> 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] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
Thank you, Wolfgang.

Marcus Vinicius

On Fri, Feb 8, 2019, 14:53 Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Marcus Vinicius Mesquita schrieb am 08.02.19 um 17:47:
> > Dear list,
> >
> > When processing the attached mwe:
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \setupcolumns[n=2]
> >
> > \starttext
> >
> > \startcolumns
> > \input knuth
> > \column
> > \input knuth
> > \stopcolumns
> >
> > \stoptext
> >
> > in the final result there is a background color.
> > How do I get rid of it?
>
> \showgrid[reset,bottom,all,right]
>
> 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
___


[NTG-context] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
Dear list,

When processing the attached mwe:

\setuplayout[grid=yes]
\showgrid
\setupcolumns[n=2]

\starttext

\startcolumns
\input knuth
\column
\input knuth
\stopcolumns

\stoptext

in the final result there is a background color.
How do I get rid of it?

Marcus Vinicius


mwe.tex
Description: TeX document


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


[NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Dear list,

When I try to fetch the file first-setup.sh with

wget http://minimals.contextgarden.net/setup/first-setup.sh

the server answers with: 404 error: Not found.

Marcus Vinicius
___
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] inner option for \showgrid

2019-02-05 Thread Marcus Vinicius Mesquita
Ok, thank you.

Regards

Marcus Vinicius

On Mon, Feb 4, 2019, 07:13 Hans Hagen  wrote:

> On 2/3/2019 9:06 PM, Marcus Vinicius Mesquita wrote:
> > Dear list,
> >
> > In the i-context.pdf file, among the \showgrid[…,…] options there are:
> > right, left, and outer.
> > Is it possible to add another option: inner?
> sure, but no beta today
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The N
> <https://maps.google.com/?q=Ridderstraat+27+%7C+8061+GH+Hasselt+%7C+The+N=gmail=g>
> etherlands
> 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] inner option for \showgrid

2019-02-03 Thread Marcus Vinicius Mesquita
Dear list,

In the i-context.pdf file, among the \showgrid[…,…] options there are:
right, left, and outer.
Is it possible to add another option: inner?

TIA

Marcus Vinicius
___
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] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-21 Thread Marcus Vinicius Mesquita
Thomas, thank you for your solution. It works.

Hraban, I tried your suggestion, but it does not work.
See new attached MWE.

Best regards

Marcus Vinicius


MWE.pdf
Description: Adobe PDF document


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

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Marcus Vinicius Mesquita
Sorry,

the wanted result is:

A
abnegação 1
agrilhoado 1
água 1
alegria 1
anjo 1
árvore 1


O
ódio
orgulho


Regards,

Marcus Vinicius
___
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] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Marcus Vinicius Mesquita
Dear list,

In the wiki page https://wiki.contextgarden.net/Registers it is said that:

- There’s no preset for the combination "uppercase like lowercase,
diacritics ignored", try "zm,pm,zc,zm,uc".

Well, I tried all possible permutations thereof, and also the predefined
methods, and none gives what my editor wants, which is just "uppercase like
lowercase, diacritics ignored".
See MWE attached.
Please, would somebody help me achieve the desired result?

TIA

ConTeXt version:
ConTeXt Process Management 1.02
current version: 2019.01.19 12:06

Marcus Vinicius


MWE.pdf
Description: Adobe PDF document


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

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Marcus Vinicius Mesquita
\definesymbol[e-mail][\getglyphdirect{FontAwesome}{\number"F003}]

\definesymbol[phone][\getglyphdirect{FontAwesome}{\number"F095}]

\starttext

\symbol[e-mail] someone@somewhere

\symbol[phone] your number

\stoptext


Fonts Awesome: https://fontawesome.com/
___
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] Spurious blank line inside paragraph

2018-07-18 Thread Marcus Vinicius Mesquita
Dear list,

In the MWE below, ConTeXt generates a spurious blank line inside the
paragraph in the pdf output.

\setuplayout[grid=yes]
\mainlanguage[pt]
\starttext
Poderíamos perguntar-nos: O mundo que percebemos é uma ilusão?
A percepção que tenho do mundo parece objetiva, pois sou consciente disso.
Mas também averiguo que existem muitas situações totalmente estranhas para
mim:
o estado de consciência de um esquizofrênico, a experiência mística de uma
Teresa de Ávila,
a capacidade, cabalmente comprovada, que muitas pessoas têm de fazer
predições,
a percepção de um daltônico que vê o mundo em duas cores, as experiências
extracorpóreas que milhares de pessoas conhecem,
a inflência a que se submete uma pessoa sob os efeitos da hipnose, etc.
\stoptext


My ConTeXt version: 2018.07.18 17:33


Marcus Vinicius
​​


mwe.tex
Description: TeX document


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

Re: [NTG-context] Recursive search in resources folder

2018-07-05 Thread Marcus Vinicius Mesquita
Thank you.

Marcus Vinicius

On Thu, Jul 5, 2018, 10:47 Hans Hagen  wrote:

> On 7/5/2018 3:21 PM, Marcus Vinicius Mesquita wrote:
> > Dear list,
> >
> > In a project I received, there are a lot of images distributed in
> > several folders like:
> >
> > figures/folder1
> > ...
> > figures/folderN
> >
> > Which is the syntax for ConTeXt to find recursevely all images under the
> > folder figures in the main folder of the project?
> >
> > I tried
> >
> > \setupexternalfigures[location=global,directory=figures]
> >
> > then ConTeXt finds the images in the figures folder, but not in the
> > subfolders folder1, folder2, ... folderN
> see workflows-mkiv.pdf
>
>
> -
>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] Recursive search in resources folder

2018-07-05 Thread Marcus Vinicius Mesquita
Dear list,

In a project I received, there are a lot of images distributed in several
folders like:

figures/folder1
...
figures/folderN

Which is the syntax for ConTeXt to find recursevely all images under the
folder figures in the main folder of the project?

I tried

\setupexternalfigures[location=global,directory=figures]

then ConTeXt finds the images in the figures folder, but not in the
subfolders folder1, folder2, ... folderN

TIA

Marcus Vinicius
___
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] Position of layer in foreground

2018-06-28 Thread Marcus Vinicius Mesquita
Thank you, Wolfgang.

On Thu, Jun 28, 2018, 16:16 Wolfgang Schuster 
wrote:

>
> Marcus Vinicius Mesquita 
> 28. Juni 2018 um 01:23
>
> Dear List,
>
> In the MWE below, I expected the numbers to appear above the cow figure.
> What am I missing?
>
>
> \definefont
> [Title]
> [SerifBold at 42pt]
>
> \starttext
>
> \placefigure[][]{Cow}
> {\externalfigure[cow][width=.5\textwidth]}
>
> \definelayer[myfigure][x=6cm,y=6cm,preset=middle]
>
> \setlayer[myfigure]{\framed[frame=off]{\Title
> \color[middlecyan]{123456789}}}
>
>
>
> \setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789}
>
> \setupbackgrounds[page][background={myfigure}]
>
>
> When you set a layer with the background key it is placed *behind* the
> content
> of the page but you can move it before the content with the "foreground”
> keyword,
> e.g. \setupbackgrounds[page][background={foreground,myfigure)].
>
> 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
___

[NTG-context] Position of layer in foreground

2018-06-27 Thread Marcus Vinicius Mesquita
Dear List,

In the MWE below, I expected the numbers to appear above the cow figure.
What am I missing?


\definefont
[Title]
[SerifBold at 42pt]

\starttext

\placefigure[][]{Cow}
{\externalfigure[cow][width=.5\textwidth]}

\definelayer[myfigure][x=6cm,y=6cm,preset=middle]

\setlayer[myfigure]{\framed[frame=off]{\Title
\color[middlecyan]{123456789}}}

\setupbackgrounds[page][background={myfigure}]

\stoptext


Marcus Vinicius


mwe.tex
Description: TeX document


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

Re: [NTG-context] Commands \inmargin and \inouter not working

2018-06-04 Thread Marcus Vinicius Mesquita
Thank you, Pablo.

My version was from 2 of June. I updated again today, and the problem was
solved.

Greetings

Marcus Vinicius
___
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] Commands \inmargin and \inouter not working

2018-06-03 Thread Marcus Vinicius Mesquita
Dear list,

After updating ConTeXt, commands \inmargin and \inouter do not work anymore.

MWE:

\starttext
This is an example of a simple margin note set in the slanted font
of the document. If used correctly, the note \inmargin{Here is a
simple margin note.} should print on the side with the command
\type {\inmargin} placed in the text. You will of course want to
adjust your margins to accommodate the type.

This is an example of a simple margin note set in the slanted font
of the document. If used correctly, the note \inouter{Here is a
simple margin note.} should print on the side with the command
\type {\inouter} placed in the text. You will of course want to
adjust your margins to accommodate the type.

\stoptext


My ConTeXt version:

mkiv lua stats > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats > lua properties: engine: lua 5.3, used memory: 79 MB (ctx:
79 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)

Marcus Vinicius


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

[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: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)

Marcus Vinicius


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

Re: [NTG-context] bug with en and em dashes

2017-05-11 Thread Marcus Vinicius Mesquita
It works flawless in arch linux 64bits.
___
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 crash

2017-02-16 Thread Marcus Vinicius Mesquita
I could compile the MWE with no problems whatsoever on arch linux 64bit.

On Thu, Feb 16, 2017 at 5:36 PM, j. van den hoff  wrote:
> On Thu, 16 Feb 2017 20:32:28 +0100, Alan Braslau 
> wrote:
>
>> I confirm this (with a different error message) on 32bit linux,
>
>
> thanks for confirming this.
>
>> but it compiles fine on 64bit linux, 64bit freebsd and 64bit osx.
>
>
> in my case it happens on a 64 bit linux(ubuntu) system:
>
> #arch
> x86_64
>
> and yes: under OSX everything is fine.
>
> joerg
>
>>
>> Alan
>>
>>
>>
>>
>> On Thu, 16 Feb 2017 19:51:25 +0100
>> "j. van den hoff"  wrote:
>>
>>> in a pristine standalone context (installed yesterday) under ubuntu I
>>> see a seemingly consistent crash of luatex if the document contains
>>> footnotes
>>>
>>> minimal example:
>>>
>>> \starttext
>>> foo\footnote{bar}
>>> \stoptext
>>>
>>>
>>> which crashes
>>
>>
>
>
> --
> 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
> ___



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Hanging hyphen in the left margin in Portuguese

2016-10-18 Thread Marcus Vinicius Mesquita
Thank you, Joseph. It did help.

Regards

Marcus Vinicius

On Tue, Oct 18, 2016 at 5:39 PM, <josephcan...@gmail.com> wrote:

> Hello Marcus
>
>
>
> This answer might help : http://www.mail-archive.com/
> ntg-context@ntg.nl/msg59507.html
>
> A bit hard to find as the word used is « potrusion ».
>
> Hope this helps
>
>
>
> Best
>
>
>
> Joseph
>
>
>
>
>
> *De : *Marcus Vinicius Mesquita <marcusvinicius.mesqu...@gmail.com>
> *Envoyé le :*lundi 17 octobre 2016 21:17
> *À : *mailing list for ConTeXt users <ntg-context@ntg.nl>
> *Objet :*[NTG-context] Hanging hyphen in the left margin in Portuguese
>
>
>
> Dear list,
>
> In Portuguese many times we have words with one or two explicit hyphens;
> for example: “tornar-nos-emos” (we shall become). When at the end of a
> line, it
> is mandatory to repeat the explicit hyphen both at the end and in the
> beginning of the next line. I managed to do this using:
>
> \definebreakpoints[portuguese]
> \definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-]
> \setbreakpoints[portuguese]
>
> If I use
> \setupalign[hz,hanging]
> I get the first hyphen hanging in the right margin.
>
> My question is: How do I manage to have the second hyphen in the beginning
> of the new line also hanging to the left in the left margin?
>
> TIA
>
> Marcus Vinicius
>
>
>



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Hanging hyphen in the left margin in Portuguese

2016-10-17 Thread Marcus Vinicius Mesquita
Dear list,

In Portuguese many times we have words with one or two explicit hyphens;
for example: “tornar-nos-emos” (we shall become). When at the end of a
line, it
is mandatory to repeat the explicit hyphen both at the end and in the
beginning of the next line. I managed to do this using:

\definebreakpoints[portuguese]
\definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-]
\setbreakpoints[portuguese]

If I use
\setupalign[hz,hanging]
I get the first hyphen hanging in the right margin.

My question is: How do I manage to have the second hyphen in the beginning
of the new line also hanging to the left in the left margin?

TIA

Marcus Vinicius
___
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] \blank[force, halfline] at top page issue

2016-09-30 Thread Marcus Vinicius Mesquita
Try

\blank[force,halfline,depth]
___
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 grid typesetting

2016-09-26 Thread Marcus Vinicius Mesquita
Thank you very much.

Regards​

Marcus Vinicius
___
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 grid typesetting

2016-09-25 Thread Marcus Vinicius Mesquita
Dear list,

In the MWE below, the line with
\setuphead[chapter][before={\blank[3*line,force]}] disrupts the grid
typesetting in the first page. What am I missing?


\setuplayout[grid=yes]
\showgrid
\setuphead[chapter][before={\blank[3*line,force]}]

\starttext

\startchapter[title={Chapter}]
\dorecurse{7}{\input tufte}
\stopchapter

\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] Wrong numeration of titles

2016-07-24 Thread Marcus Vinicius Mesquita
Thank you, Hans. The \setuphead [section] [placehead=empty] is almost
​ ​
what I want, but although not showing in the bookmarks and in the text, the
section numbers still appear in the TOC. How do I make them go too?
___
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] Wrong numeration of titles

2016-07-24 Thread Marcus Vinicius Mesquita
Dear List

I'm using the
​ ​
​ConTeXt
​ ​
​mkiv version 2016.07.23.
In the MWE below, the numbers in TOC are OK, but in the bookmarks and in
the text they appear messed up. A bug?

\setupinteraction[state=start]

\placebookmarks[chapter,section,subsection]
\setuphead [section] [placehead=hidden]
\setuphead [subsection] [placehead=yes]
\starttext
\completecontent
\dorecurse{10}{\expanded{
\chapter{Chapter}
\dorecurse{3}{\expanded{
\section{Section}
\dorecurse{3}{\expanded{
\subsection{Subsection}
}}

\stoptext


MWE.tex
Description: TeX document


MWE.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] TOC in bookmarks

2016-07-11 Thread Marcus Vinicius Mesquita
Thank you

Marcus Vinicius

On Mon, Jul 11, 2016, 10:33 Wolfgang Schuster <schuster.wolfg...@gmail.com>
wrote:

> Marcus Vinicius Mesquita <marcusvinicius.mesqu...@gmail.com>
> 11. Juli 2016 um 15:00
>
> Dear list
>
> How can one make the page with the TOC also appear in the bookmarks using
> mkiv?
>
>
> \setupinteraction[state=start]
>
> \placebookmarks[title,chapter][force=yes]
>
> \starttext
>
> % Variant 1, shows the text which is set with
> \setupheadtext[][content=...]
> \completecontent
>
> % Variant 2, you can set your own text for the bookmark
> % \starttitle[title=\headtext{content},reference=content,bookmark=Table of
> content]
> % \placecontent
> % \stoptitle
>
> \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
>
> \stoptext
>
> BTW: It isn't necessary to format the text of your question.
>
> 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
___

[NTG-context] TOC in bookmarks

2016-07-11 Thread Marcus Vinicius Mesquita
Dear list

How can one make the page with the TOC also appear in the bookmarks using
mkiv?

Regards

Marcus Vinicius

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] Table of character frequency for portuguese

2016-06-30 Thread Marcus Vinicius Mesquita
Dear Hans

In the annex you can find a table of character frequency for Portuguese. Is
it possible to add it in a future beta?

TIA

Marcus Vinicius

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
return {
language= "pt",
source  = "https://pt.wikipedia.org/wiki/Frequência_de_letras;,
frequencies = {
[0x61] = 14.63, [0x62] = 1.04, [0x63] = 3.88, [0x64] = 4.99, [0x65] = 12.57,
[0x66] =  1.02, [0x67] = 1.30, [0x68] = 1.28, [0x69] = 6.18, [0x6A] =  0.40,
[0x6B] =  0.02, [0x6C] = 2.78, [0x6D] = 4.74, [0x6E] = 5.05, [0x6F] = 10.73,
[0x70] =  2.52, [0x71] = 1.20, [0x72] = 6.53, [0x73] = 7.81, [0x74] =  4.74,
[0x75] =  4.63, [0x76] = 1.67, [0x77] = 0.01, [0x78] = 0.21, [0x79] =  0.01,
[0x7A] =  0.47,
}
}
___
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] [NTG-ConTeXt] Wrong order of sections and subsections

2016-06-18 Thread Marcus Vinicius Mesquita
Dear List

In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to
flush section head data without typesetting it in the text. But then
\placelist gives a wrong order of sections and subsections:

1   First section
1.1   First subsection
2   Second section
1.2   Second subsection
2.1   First subsection

If \setuptexttexts is omitted and the argument placehead=yes instead of
placehead=hidden, then the order is correct:

1   First section
1.1   First subsection
1.2   Second subsection
2   Second section
2.1   First subsection


Am I missing something?


Marcus Vinicius

__-

MWE from the wiki

\setuphead
   [section]
   [placehead=hidden,
page=yes]

\setuphead
   [subsection]
   [placehead=yes,
page=yes,
continue=yes,
style=\it]

\setuptexttexts[{\placerawheaddata[section]}]

\starttext

\placelist[section,subsection] \page

\startsection[title=First section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

   \startsubsection[title=second subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\startsection[title=Second section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\stoptext


Marcus Vinicius



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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 texexec pdfarrange

2006-11-17 Thread Marcus Vinicius Mesquita de So
Ok. With --paperformat texexec works nice.
Thank you for the answers.

Greetings from Brazil

Marcus Vinicius

Hans Hagen [EMAIL PROTECTED] wrote: Sanjoy Mahajan wrote:
 texexec --pdfarrange --paper=A5A4 --print=up  live.pdf
 

 It needs to be given as '--paperformat'.  I'm pretty sure '--paper'
 gets disambiguated as --paperoffset, so ConTeXt looks for a dimension
 but gets A5A4, and then complains about a missing number.
   
indeed

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



-
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems with texexec pdfarrange

2006-11-16 Thread Marcus Vinicius Mesquita de So
Hello, everybody

In page 8 of the mtexexec manual we can see the following command:

texexec --pdfarrange --paper=A5A4 --print=up  live.pdf

If I try it with a PDF file, for example, 


texexec --pdfarrange --paper=A5A4 --print=up   --print gri.pdf

I get an error message:

! Missing number, treated as zero.
to be read again
   A
\@@ppoffset -A
   5A4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
  \divide \scratchdimen \arr...
argument ...dth }\fi \calculatepaperoffsets {A4}
  \xdef \papersize {A4}
\firstofoneargument #1-#1

\next1 #1,-\docommand {#1}
   \doprocesscommaitem
...
l.3 \setuplayout

?


Do I miss something?


Greetings

Marcus Vinicius


Details from the command:

D:\contexttexexec --pdfarrange --paper=A5A4 gri.pdf

TeXExec | arranging file gri.pdf
TeXExec | processing document 'texexec'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | writing option file texexec.top
TeXExec | using randomseed 761
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5)
 \write18 enabled.
 (d:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
entering extended mode
(./texexec.tex

ConTeXt  ver: 2006.11.16 12:02 MK II  fmt: 2006.11.16  int: english/english

language: language en is active
system  : cont-new loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex)
bodyfont: 12pt rm is loaded
language: patterns nl-texnansi:texnansi-1-2:3 nl-ec:ec-2-2:3 fr-
texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3 de-texnansi:texnansi-5-2:3 de-e
c:ec-6-2:3 it-texnansi:texnansi-7-2:3 it-ec:ec-8-2:3 pt-texnansi:texna
nsi-9-2:3 pt-ec:ec-10-2:3 hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3 pl-ec:e
c-13-2:3 pl-qx:qx-14-2:3 cz-il2:il2-15-2:3 cz-ec:ec-16-2:3 sk-il2:i
l2-17-2:3 sk-ec:ec-18-2:3 sl-ec:ec-19-2:3 ru-t2a:t2a-21-2:3 en-ec:e
c-22-2:3 uk-ec:ec-23-2:3 us-ec:ec-24-2:3 agr-agr:agr-25-2:3 da-ec:e
c-26-2:3 sv-ec:ec-27-2:3 af-ec:ec-28-2:3 no-ec:ec-29-2:3 deo-ec:ec-
30-2:3 es-ec:ec-31-2:3 ca-ec:ec-32-2:3 la-ec:ec-33-2:3 ro-ec:ec-34
-2:3 tr-ec:ec-35-2:3 fi-ec:ec-37-2:3 hu-ec:ec-38-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : texexec.top loaded
(./texexec.top
specials: loading definition file tpd
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are enabled
! Missing number, treated as zero.
to be read again
   A
\@@ppoffset -A
   5A4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
  \divide \scratchdimen \arr...
argument ...dth }\fi \calculatepaperoffsets {A4}
  \xdef \papersize {A4}
\firstofoneargument #1-#1

\next1 #1,-\docommand {#1}
   \doprocesscommaitem
...
l.3 \setuplayout

?

 
-
Sponsored Link

Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo -   Calculate 
new house payment___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Roman numerals in headers

2006-10-26 Thread Marcus Vinicius Mesquita de So
\setupsection[chapter][conversion=Romannumerals](you get I, II, III, IV... )or\setupsection[chapter][conversion=romannumerals](you get i, ii, iii, iv ... )MarcusJeff Smith [EMAIL PROTECTED] wrote: Hi again,I've been searching through various docs in order to find how I canhave roman numbering with headers (namely, chapter titles), but I'vebeen unsuccessful. I'm sure it's possible! How does one do it?Thank you in advance,Jeff___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context 
		 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \showgrid question

2006-10-15 Thread Marcus Vinicius Mesquita de So
Hi!Is there an option for the \showgrid command for showing only the line numbers (no lines) ?Marcus Vinicius___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] A new manual

2006-09-28 Thread Marcus Vinicius Mesquita de So
I would buy it too...Marcus Vinicius 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with mswincontext installation

2006-09-20 Thread Marcus Vinicius Mesquita de So
Hi, HansYour parameters seem to be the same in the file context.cnffound (in my mswincontext system) in d:\context\usr\local\context\tex\texmf-local\web2cDo they override the ones found in texmf.cnf in the same directory? Or is the contrary? Anyway, I used them in both files, regenerated the formats, and mswincontext still could not compile the book which MikTeX 2.5+ConTeXt compile without problems.I continue to receive a message like the following:...! Font \**\thedefinedfont**=GaramondPremrPro-DisplayOsF at 59.84042pt not loaded: Not enough room left.to be read again ...Greetings,Marcus Vinicius 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with mswincontext installation

2006-09-18 Thread Marcus Vinicius Mesquita de So
@ThomasI could not find a dimension for tfm words in my texmf.cnf file.Perhaps an entry only in the linux version ?It seems that you have a point, since if I use another fontfamily, things run smoothly.When you're using linux again, could you see pleasewhat the entry looks like?Greetings@MojcaI had a bad time with MikTeX! I was using version 2.4and I updated it (not upgraded for 2.5). ConTeXtstopped to function. I tried everything and gave up.Then I downloaded the mswincontext package andfinally managed to make ConTeXt work againg,but still with problems with the Adobe Garamond Premier fontfamily. But this with the mswincontex package.Then I uninstalled totally MikTeX 2.4, downloadedMikTeX 2.5 and installed it from scratch. Now ConTeXtworks again and I compiled the book with theAdobe Garamond Premier fonts without problems.Thank you for your
 concern.Marcus 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with mswincontext installation

2006-09-18 Thread Marcus Vinicius Mesquita de So
Hi!I increased the variable in the texmf.cnf, but with no successwith the mswincontext package. Some fonts are loaded,but others not.With MikTeX 2.5 + ConTeXt, there are no problems to compilethe book."Thomas A. Schmitz" [EMAIL PROTECTED] wrote:  @Thomas  I could not find a dimension for tfm words in my texmf.cnf file. Perhaps an entry only in the linux version ?  It seems that you have a point, since if I use another font family, things run smoothly.  When you're using linux again, could you see please what the entry looks like?  Greetings  Marcus,I rebooted into my linux system, and it is indeed a variable calledfont_mem_size. Here is the setting in my
 texmf.cnf:% Words of font info for TeX (total size of all TFM files,approximately). font_mem_size = 250(it was 50 before I changed the value). Sorry I can't be of more help, but I know nothing about windoze.Thomas___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with mswincontext installation

2006-09-17 Thread Marcus Vinicius Mesquita de So
Hello gang!I discovered what caused the problem. The shell !I used 4nt instead of cmd, and with 4nt things don't work well.I tried again with cmd and I managed to compile all three exampleswithout problems.But then I tried to compile a book which MikTeX+ConTexT 2.4 (before the update) did very well and I received the followingmessage ( after successfully compiling 105 pages )! Font \*10ptrmtfrm*=GaramondPremrPro-RegularOsF at 10.03647pt not loaded: Notenough room left.to be read againany clues ?GreetingsMarcus Vinicius 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Help with mswincontext installation

2006-09-15 Thread Marcus Vinicius Mesquita de So
After upgrading MikTeX, ConTeXt is working no more.Since I'm not using LaTeX anymore (ConTeXt rules !!! )I decided to use only the mswincontext package. After downloading it,I followed the intructions in http://wiki.contextgarden.net/Windows_Installation#Installation_Instructionsbut I could not compile the example (demo-tex.tex)In the SciTe windows I receive the following log :Exec | using randomseed 1152TeXExec | tex engine: pdftexTeXExec | tex format: cont-enTeXExec | progname: contextwarning: Could not open char translation file `natural.tcx'.This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5)\write18 enabled.I can't find the format file `cont-en.fmt'!TeXExec | runtime: 0.359Exit code: 1Then, from the cmd line, I tried to build the formats with the command:texexec --make --allbut I received:TeXExec | using search method 'kpsefast'TeXExec |
 updating file databasemktexlsr: d:/context/usr/local/context/tex/ EXMF is not a directory. Skipping...mktexlsr: Done.TeXExec | using tex engine pdftexTeXExec | using tex format path D:/context/usr/local/context/tex/texmf-mswin/web2c/pdftexTeXExec | generating tex format cont-enwarning: Could not open char translation file `natural.tcx'.This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5) (INITEX)\write18 enabled.entering extended mode! I can't find file `cont-en'.* *cont-enPlease type another input file name:Any help will be apreciated ...Greetings from a shiny BrazilMarcus ViniciusBy the way :Ruby is ok :ruby --version gives:ruby 1.8.5 (2006-08-25) [i386-mswin32]Perl is ok:perl --version gives:This is perl, v5.8.6 built for MSWin32-x86-multi-thread(with 3 registered patches, see perl -V for
 more detail) 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definelogo alignments

2006-03-29 Thread Marcus Vinicius Mesquita de So
Thank you. I'll do some experiments too...GreetingsMarcus ViniciusHans Hagen [EMAIL PROTECTED] wrote:  Marcus Vinicius Mesquita de So wrote: to no avail. Any hints?use layers (comparable featureset) Hans  
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] definelogo alignments

2006-03-24 Thread Marcus Vinicius Mesquita de So
Experimenting with the logo features as suggested  by Henning Hraban Ramm I discovered  that I can say:\definelogo[Pagina][text][left][command={\framed{\blackrule}}, state=start]or\definelogo[Pagina][text][middle][command={\framed{\blackrule}}, state=start]or\definelogo[Pagina][text][right][command={\framed{\blackrule}}, state=start]with the second key making the control of the alignment of the framed material.How is possible to control the alignment if instead  of [text] I use [rightmargin] ?I tried \definelogo[Pagina][rightmargin][left][command={\framed{\blackrule}}, state=start]and\definelogo[Pagina][rightmargin][middle][command={\framed{\blackrule}}, state=start]to no avail. Any hints?Marcus Vinicius  
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Location of page numbers

2006-03-21 Thread Marcus Vinicius Mesquita de So
Thanks, I'll do some experiments...Greeting from a sunny Brazil!Marcus ViniciusHenning Hraban Ramm [EMAIL PROTECTED] wrote:  Am 2006-03-20 um 19:55 schrieb Marcus Vinicius Mesquita de So: How is it possible to put page numbers in the middle of the page in the margins? Thanks in advance for you help.That's not possible with \setuppagenumbering alone.Try the Logo approach:\setuppagenumbering[alternative=doublesided, location=]\definelogo[Pagina][text][rightmargin][command={\framed {\pagenumber}}, state=start]or have a look at http://wiki.contextgarden.net/Letter_style and its  use of Layers and setups.Greetlings from Lake Constance!Hraban---http://www.fiee.net/texnique/http://contextgarden.nethttp://www.cacert.org (I'm an
 assurer)___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
		Yahoo! Travel 
Find  
great deals to the top 10 hottest destinations!___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Location of page numbers

2006-03-20 Thread Marcus Vinicius Mesquita de So
Hi!How is it possible to put page numbers in the middle  of the page in the margins? Thanks in advance for you help.Marcus Vinicius  
		Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chapters with parts

2006-03-13 Thread Marcus Vinicius Mesquita de So
Thank you, my friend.  Just what I needed.Greetings from a sunny Brazil!Marcus ViniciusTaco Hoekwater [EMAIL PROTECTED] wrote:  Marcus Vinicius Mesquita de So wrote: Hi!  I'm typesetting a book with chapters with parts, such as:  Chapter 25-I Chapter 25-II Chapter 25-III Chapter 25-IV  Chapter 26  Chapter 27-I  How can I achieve this in ConTeXt? Thanks in advance for any help!Ik hou don't know in advance what type of numbers you need,then perhaps it is easiest to use:   \setuphead[chapter][ownnumber=yes]   \chapter{25-I}{...Title...}Greetings, Taco___ntg-context mailing
 listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
		Relax. Yahoo! Mail 
virus scanning helps detect nasty viruses!___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Chapters with parts

2006-03-10 Thread Marcus Vinicius Mesquita de So
Hi!I'm typesetting a book with chapters with parts, such as:Chapter 25-I  Chapter 25-II  Chapter 25-III  Chapter 25-IVChapter 26Chapter 27-IHow can I achieve this in ConTeXt?  Thanks in advance for any help!Marcus Vinicius  
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Search in ConTeXt PDF files

2006-03-01 Thread Marcus Vinicius Mesquita de So
Hi, KavianIt seems to me it's a problem with Acrobat 7.0  I tried the same pdf file in other computer  with acrobat reader 5, which had no problems  to find the word Kephalaia.Did you search the word in the pdf I uploaded?GreetingsMarcus Vinicius  Otared KAVIAN [EMAIL PROTECTED] wrote:  On 3/1/06, Marcus Vinicius Mesquita de So  wrote: Hi, Hans  I uploaded a small test file with its pdf in a zip file (46.7 kb) to this link:  http://rapidshare.de/files/14396912/teste.zip.html  I searched the word Kephalaia, which appears in the header,  but Acrobat (v. 7.0.7)  can not find the word...  GreetingsHi Vinicius,I tried your fil
 e
 "teste.tex", no problem here: I typeset it on mymachine (PowerBook under Mac OS X 10.4.5) and opened the resultingteste.pdf with Adobe Reader 7: the word Kephalaia is found in theheader.Regards: OK___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
	
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Search in ConTeXt PDF files

2006-02-28 Thread Marcus Vinicius Mesquita de So
Hi, HansI uploaded a small test file with its pdf in a zip file (46.7 kb) to this link:  http://rapidshare.de/files/14396912/teste.zip.htmlI searched the word Kephalaia, which appears in the header,  but Acrobat (v. 7.0.7) can not find the word...GreetingsMarcus ViniciusHans Hagen [EMAIL PROTECTED] wrote:  Marcus Vinicius Mesquita de So wrote:   Hi! Strangely Acrobat does not find words in headers. Did this ocurred already to anyone?can you make a small pdf file that we can test?Hans -  Hans Hagen | PRAGMA ADE  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 
 69 |
 fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl-___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
		Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Search in ConTeXt PDF files

2006-02-26 Thread Marcus Vinicius Mesquita de So
Hi!Strangely Acrobat does not find words in headers.  Did this ocurred already to anyone?Greetings from a sunny BrazilMarcus Vinicius  
	
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Literate programming ConTeXt

2005-11-14 Thread Marcus Vinicius Mesquita de So
Hi, Taco

Thank you for your interest.
What I meant is: If you are working with CWEB,
is it possible to typeset with ConTeXt
the weaved files of a program?

Marcus Vinicius




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Lettrine Problems

2005-10-03 Thread Marcus Vinicius Mesquita de So
Thank you for your effort!!

Marcus

--- Taco Hoekwater [EMAIL PROTECTED] wrote:

 
 
 Taco Hoekwater wrote:
  
  Marcus Vinicius Mesquita de So wrote:
  
  Problems occur with Lettrine when used with the
 linenumbering
  environment, the dropped cap stays outside the
 margin.
  Minimal example below.
 
 Sorry, this is unfixable.
 
 Greetings,
 
 Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 





__ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Lettrine Problems

2005-09-30 Thread Marcus Vinicius Mesquita de So
Problems occur with Lettrine when used with the
linenumbering
environment, the dropped cap stays outside the margin.
Minimal
example below.


A zipped file (129 Kb) with the pdf generated and a
corrected one
with Pitstop can be downloaded from the following
link:

http://rapidshare.de/files/5707655/test.zip.html


Marcus Vinicius

%***

\enableregime   [win]

\usemodule[t-lettri]

\unexpanded\def\myfonthook{\definefontsynonym[LettrineFont][Serif]}

\setuplettrine[Lines=2,TextFont=\sc,FontHook=\myfonthook,Findent=2pt,Nindent=0pt]

\setupspacing[packed]

\setuplinenumbering[start=1,step=5,style=\tfx]

\setupindenting[medium] \setupindenting[medium]

\starttext

\language[pt]



\startlinenumbering


\lettrine{N}{aquele dia}, --- já lá vão dez anos! ---
o Dr. Félix levantou-se tarde, abriu a janela e
cumprimentou o sol.
O~dia estava esplêndido; uma fresca bafagem do mar
vinha quebrar um
pouco os ardores do estio; algumas raras nuvenzinhas
brancas, finas
e transparentes se destacavam no azul do céu.
Chilreavam na chácara
vizinha à casa do doutor algumas aves afeitas à vida
semi-urbana,
semi-silvestre que lhes pode oferecer uma chácara nas
Laranjeiras.
Parecia que toda a natureza colaborava na inauguração
do ano.
Aqueles para quem a idade já desfez o viço dos
primeiros tempos, não
se terão esquecido do fervor com que esse dia é
saudado na meninice
e na adolescência. Tudo nos parece melhor e mais belo,
--- fruto da
nossa ilusão, e alegres com vermos o ano que desponta,
não reparamos
que ele é também um passo para a morte.

Teria esta última idéia entrado no espírito de Félix,
ao contemplar
a magnificência do céu e os esplendores da luz? Certo
é que uma
nuvem ligeira pareceu toldar-lhe a fronte. Félix
embebeu os olhos no
horizonte e ficou largo tempo imóvel e absorto, como
se interrogasse
o futuro ou revolvesse o passado. Depois, fez um gesto
de tédio, e
parecendo envergonhado de se ter entregue à
contemplação interior de
alguma quimera, desceu rapidamente à prosa, acendeu um
charuto, e
esperou tranqüilamente a hora do almoço.

Félix entrava então nos seus trinta e seis anos, idade
em que muitos
já são pais de família, e alguns homens de Estado.
Aquele era apenas
um rapaz vadio e desambicioso. A~sua vida tinha sido
uma singular
mistura de elegia e melodrama; passara os primeiros
anos da mocidade
a suspirar por cousas fugitivas, e na ocasião em que
parecia
esquecido de Deus e dos homens, caiu-lhe nas mãos uma
inesperada
herança, que o levantou da pobreza. Só a Providência
possui o
segredo de não aborrecer com esses lances tão
estafados no teatro.

Félix conhecera o trabalho no tempo em que precisava
dele para
viver; mas desde que alcançou os meios de não pensar
no dia
seguinte, entregou-se corpo e alma à serenidade do
repouso. Mas
entenda-se --- que não era esse repouso aquela
existência apática e
vegetativa dos ânimos indolentes; era, se assim me
posso exprimir,
um repouso ativo, composto de toda a espécie de
ocupações elegantes
e intelectuais que um homem na posição dele podia ter.

Não direi que fosse bonito, na significação mais ampla
da palavra;
mas tinha as feições corretas, a presença simpática, e
reunia a
graça natural a apurada elegância com que vestia.
A~cor do rosto era
um tanto pálida, a pele lisa e fina. A~fisionomia era
plácida e
indiferente, mal alumiada por um olhar de ordinário
frio, e não
poucas vezes morto.

Do seu caráter e espírito melhor se conhecerá lendo
estas páginas e
acompanhando o herói por entre as peripécias da
singelíssima ação
que empreendo narrar. Não se trata aqui de um caráter
inteiriço nem
de um espírito lógico e igual a si mesmo; trata-se de
um homem
complexo, incoerente e caprichoso, em quem se reuniam
opostos
elementos, qualidades exclusivas, e defeitos
inconciliáveis.


\stoplinenumbering


\stoptext

%



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with \setupindenting in the new ConTeXt version

2005-09-29 Thread Marcus Vinicius Mesquita de So
Yes, it works. Thank you.

Marcus Vinicius

--- Idris Samawi Hamid [EMAIL PROTECTED] wrote:

 On Thu, 29 Sep 2005 10:46:12 -0700 (PDT), Marcus
 Vinicius Mesquita de So 
 [EMAIL PROTECTED] wrote:
 
  I downloaded today the ConTeXt version,
  and updated it, but the command \setupindenting
  stopped to function...
 
 A known bug, declare it twice and it should work.
 
 Best
 Idris
 -- 
 Professor Idris Samawi Hamid
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Lettrine in ConTeXt

2005-05-30 Thread Marcus Vinicius Mesquita de Sousa
Hi Taco!

It works perfectly!

Thank you.

Marcus Vinicius


--- Taco Hoekwater [EMAIL PROTECTED] wrote:
 
 The problem is that FontHook has to redefine the
 font synonym
 'LettrineFont'. You have to do it like this:
 
\unexpanded\def\myfonthook
  {\definefontsynonym[LettrineFont][SerifBold]}
 
\setuplettrine[Lines=3,TextFont=\it,
  FontHook=\myfonthook,
  Findent=0pt,Nindent=0pt]
 
 Greetings, Taco
 
 (I'll send a new zip with included documentation
 to Patrick soon)
 




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Hyphenation in portuguese

2005-05-20 Thread Marcus Vinicius Mesquita de Sousa
Thank you, Hans, for the quick answer.
I did what you suggested and the problem continues...

Marcus Vinicius


--- Hans Hagen [EMAIL PROTECTED] wrote:
 Marcus Vinicius Mesquita de Sousa wrote:
  Hi everybody!
  
  I'm having problems with hyphenation in
 portuguese.
  Any help would be appreciated.
 
 what happens if you generate the format with
 
 texexec --make --all
 
 Hans
 

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

-
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >