Re: [NTG-context] ConTeXt minimals on linux armhf

2017-03-01 Thread luigi scarso
On Thu, Mar 2, 2017 at 8:41 AM, Lutz Haseloff  wrote:
> Hi all,
>
> since yesterday, the installation of the minimals on linux armhf doesn't work
> anymore. On a fresh system, after "sh ./first-setup.sh" I get:
>
>
> receiving incremental file list
> bin/
> bin/luatex
> bin/mtx-update.lua
> bin/mtxrun
> bin/texlua -> luatex
>
> sent 92 bytes  received 8,631,278 bytes  1,150,849.33 bytes/sec
> total size is 8,628,902  speedup is 1.00
> ./bin/mtxrun:2763: attempt to index global 'fio' (a nil value)

hm, 'fio' is only in experimental and commit were tagged as "WORK IN
PROGRESS"
so it could even possible that the code doesn't compile at all.
We are working on it.


-- 
luigi
___
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] ConTeXt minimals on linux armhf

2017-03-01 Thread Lutz Haseloff
Hi all,

since yesterday, the installation of the minimals on linux armhf doesn't work
anymore. On a fresh system, after "sh ./first-setup.sh" I get:


receiving incremental file list
bin/
bin/luatex
bin/mtx-update.lua
bin/mtxrun
bin/texlua -> luatex

sent 92 bytes  received 8,631,278 bytes  1,150,849.33 bytes/sec
total size is 8,628,902  speedup is 1.00
./bin/mtxrun:2763: attempt to index global 'fio' (a nil value)

When you want to use context, you need to initialize the tree by typing:

  . /usr/local/context/tex/setuptex

in your shell or add
  "/usr/local/context/tex/texmf-linux-armhf/bin"
to PATH variable if you want to set it permanently.
This can usually be done in .bashrc, .bash_profile
(or whatever file is used to initialize your shell).

I suspect, the new mtxrun binary doesn't match the rather old luatex (1.0.0)

Greetings Lutz

P.S. I could provide luatex and luajittext binaries for armhf (experimental or 
trunk)
___
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] Formula numbering conversion

2017-03-01 Thread Antoine Cailliau
Does anyone have a tip for me? I really want these tags in my document.

Many thanks in advance,

On 27 February 2017 at 19:22, Antoine Cailliau 
wrote:

> I try to replicate the following : https://mailman.ntg.nl/
> pipermail/ntg-context/2006/021038.html (i.e. the equivalent of \tag in
> latex/amsmath). More precisely this:
>
>> %8<--
>> \def\placeformulatag%
>>{\dosingleempty\doplaceformulatag}
>> \def\doplaceformulatag[#1]#2%
>>{\let\normalstopformula\stopformula
>> \def\stopformula%
>>  {\normalstopformula
>>   \restorenumber[formula]
>>   \egroup
>>   \let\stopformula\normalstopformula}
>>   \bgroup
>>   \savenumber[formula]
>>   \def\dummyconversion##1{#2}
>>   \defineconversion[dummyconversion][\dummyconversion]
>>   \setupformulas[conversion=dummyconversion]
>>   \placeformula[#1]}
>>
>> \starttext
>> \placeformulatag[tag]{test} \startformula
>>E = mc^2
>> \stopformula
>> See \in formula[tag] for a tagged formula
>> \stoptext
>> %8<-
>
>
> However, the following (simpler) code produce an "Undefined control
> sequence" when using \in command.
>
> \starttext
>> {
>>   \def\a#1{test}
>>   \defineconversion[a][\a]
>>   \setupformulae[numberconversion=a]
>>   \placeformula[test]
>>   \startformula E = mc^2 \stopformula
>> }
>> This is my reference: \in{formula}[test].
>> \stoptext
>
>
> The following code, does not produce the error, but is not practical for
> the reproducing the \tag command.
>
>>
>> \starttext
>> {
>>   \def\a#1{test}
>>   \defineconversion[a][\a]
>>   \setupformulae[numberconversion=a]
>>   \placeformula[test]
>>   \startformula E = mc^2 \stopformula
>>   This is my reference: \in{formula}[test].
>> }
>> \stoptext
>
>
> What am I doing wrong? I guess the command \a is no longer defined when
> the compiler hit \in but how can I ensure that such local definition stay
> accessible ?
>
> Thank you in advance,
>
> Antoine C.
>
>
> On 27 February 2017 at 17:28, Antoine Cailliau 
> wrote:
>
>> Thanks.
>>
>> I updated the wiki.
>>
>> On 27 February 2017 at 17:18, Pablo Rodriguez  wrote:
>>
>>> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
>>> > The following code is documented to change the numbering of the
>>> equations.
>>> > However, this still use numerals for the equations.
>>> > [...]
>>> > Is this a bug ? Is it the correct way to change the numbering ?
>>>
>>> Hi Antoine,
>>>
>>> it’s numberconversion (as it reads in “ConTeXt Commands”):
>>>
>>> \setupformulas[numberconversion=greek]
>>> \setupbodyfont[dejavu]
>>> \starttext
>>> \placeformula[test]
>>> \startformula E = mc^2 \stopformula
>>> \stoptext
>>>
>>> BTW, if this is wrong documented in the wiki, please correct it for
>>> future reference.
>>>
>>> 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/list
>>> info/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] two framed item lists side by side

2017-03-01 Thread Pablo Rodriguez
On 02/09/2017 06:21 PM, Csikos Bela wrote:
> Dear context user:
> 
> I would like to put two itemized lists side by side (1cm between them), top 
> aligned.
> I inserted each lists in framedtext and tried to use combinations but the 
> distance
> between the two frames is too big, and the list are not top aligned.
> What would be a correct solution? I don't need the frame to be drawn.
> Why distance=1cm and width=12cm have no effect in my code?

Hi Csikos,

I guess another approach (not ideal,  but it works) would be to use an
xtable:

\showframe
\setupitemize[each][packed,joinedup,n]
[stopper=.~,itemalign=flushright]
\starttext
\startxtable[split=yes, option=stretch]
\startxrow
\startxcell
\startitemize
\item In The Flesh? 3:19
\item The Thin Ice  2:29
\item Another Brick In The Wall (Part 1)3:09
\item The Happiest Days Of Our Lives1:50
\stopitemize
\stopxcell
\startxcell
\startitemize
\item Hey You   4:41
\item Is There Anybody Out There?   2:40
\stopitemize
\stopxcell
\stopxrow
\stopxtable
\stoptext

Font size must be smaller, otherwise it won’t fit in page margins.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] xtables different frame thickness for one side only

2017-03-01 Thread Pablo Rodriguez
On 02/24/2017 01:19 PM, Csikos Bela wrote:
> Dear context users:
> 
> Is it possible to change the rulethickness of one side of a row in xtables?
> I the example below I'd like the bottom of the first row to be thicker than 
> other sides.

Sorry for the delayed reply, Csikos.

You can accomplish it with the following code (recursion only used to
show the single thicker bottom frame):

\installbottomframerenderer{thicker}
{\blackrule[width=\overlaywidth,height=3\linewidth]}
\starttext
\startxtable[frame=on]
\startxrow[bottomframe=thicker] % bottom frame should be thicker
\startxcell AAA \stopxcell
\startxcell BBB \stopxcell
\stopxrow
\dorecurse{5}{\startxrow
\startxcell CCC \stopxcell
\startxcell DDD \stopxcell
\stopxrow}
\stopxtable
\stoptext

If this is what you want, would you be so kind to wikify it?

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
___

[NTG-context] compression not working in linenotes

2017-03-01 Thread Pablo Rodriguez
Dear list,

I don’t get compressed linenotes with this source:

\setuppapersize[A5]
\setupnote[linenote][paragraph=yes]
\setupnotation[linenote]
[alternative=serried, compress=yes, compressseparator=]
\starttext
\startlinenumbering
\dorecurse{100}{text\linenote{variant} }
\stoplinenumbering
\stoptext

Am I missing something or is it a bug?

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
___