Re: [NTG-context] box width to fit longest line of text

2016-09-28 Thread Wolfgang Schuster

Csikos Bela 
28. September 2016 um 23:36
Dear context users:

I'd like to handle a block of text with 2 or more lines where the 
block width should be equal
to the longest line in the block. I'd like the lines be center aligned 
in the block.

Something like this:

line1
second longerline
another line

In latex I can do it using parbox like this:

\parbox{\widthof{second longerline}}{\centering{}line1\\second 
longerline\\another line}


How can achieve the same or similar in context?

\starttext

\startframed[align=middle]
line\\
second longer line\\
another line
\stopframed

\stoptext

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
___

[NTG-context] box width to fit longest line of text

2016-09-28 Thread Csikos Bela
Dear context users:

I'd like to handle a block of text with 2 or more lines where the block width 
should be equal
to the longest line in the block. I'd like the lines be center aligned in the 
block.
Something like this:

line1
second longerline
another line

In latex I can do it using parbox like this:

\parbox{\widthof{second longerline}}{\centering{}line1\\second 
longerline\\another line}

How can achieve the same or similar in context?

Thanks in advance,

bcsikos

___
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] Bug in \usetikzlibrary{datavisualization}?

2016-09-28 Thread Florian Leupold
Dear list,

when one tries to load the TikZ data visualization library, the documents does 
not compile anymore. The error is “.../tikzlibrarydatavisualization.code.tex: ! 
Missing number, treated as zero”.

I have also tried this using ConTeXt online, to the same end:
http://live.contextgarden.net/cgi-bin/output.cgi?id=jSjLZO

\usemodule[tikz]
\usetikzlibrary{datavisualization}
\starttext
Hello world!
\stoptext

Is this a known bug?

Best,
Florian


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Center a framedtext

2016-09-28 Thread Fabrice Couvreur
Hi Wolfgang,
Thanks.
Fabrice

2016-09-28 9:08 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 27. September 2016 um 22:02
> Hi Wolfgang,
> Thank you for your suggestion, but I think I was not clear enough. In
> fact, I want to place the algorithm as the image.
>
> You need also "location=middle" for the framedtext.
>
> \defineframedtext
>   [algorithmframe]
>   [width=fit,
>location=middle,
>background=color,
>backgroundcolor=lightgray,
>framecolor=darkred,
>corner=round]
>
> \definelines
>   [algorithm]
>   [space=on,
>before=\startalgorithmframe,
>after=\stopalgorithmframe]
>
> \starttext
>
> \startmakeup[standard]
> \startalgorithm
> Initialisation :
>   \math{u} prend la valeur 2\,000
>   \math{S} prend la valeur 2\,000
> Traitement :
>   Pour \math{i} allant de 2 à \math{n}
>  \math{u} prend la valeur \math{u\times 1,008}
>  \math{S} prend la valeur \math{S +u}
>   Fin Pour
> Sortie :
>   Afficher \math{S}
> \stopalgorithm
> \stopmakeup
>
> \stoptext
>
> 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] Looking for wiki master(s)

2016-09-28 Thread Mojca Miklavec
Hi,

While discussing the state of the wiki during the ConTeXt conference,
we came up with proposal to find a person (or a small group of people)
whose task would be to:

- extract the list of all existing wiki pages (you can get help with that)
- group them in reasonable blocks (fonts, graphics, installation, ...)
- push/remind the community to look into individual blocks at scheduled times

We could for example have special "focus weeks" such as "installation
week" where a list of all pages related to installation would be
posted on the mailing list with the goal to clean those chapters up or
to write the missing content. We need someone who will post reminders
and push people.

It would also be very helpful to have someone who would come up with a
list of missing topics and some proposals to restructure and better
organize the pages.

(We realized that it might be easy to find people to go over one
single page at a time, but no one has stepped forward to actively
organize this work.)

Looking forward to hear from new volunteers,
Mojca (in the name of the brainstorming group at the ConTeXt meeting)
___
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] Letter module and letterhead

2016-09-28 Thread Roger Mason
Hello,

Is it possible to use the letter module with letterhead?  If so, is
there an exaple somewhere?

Thanks,
Roger
___
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] cambria.ttc problem

2016-09-28 Thread Lutz Haseloff
Hi all,
it seems that luatex 1.0.0 doesn't recognise the cambria  normal from the
ttc.
I can only access the italic, bold, bolditalic and math.
I use minimal context under win7 and win10, both x64.

Greetings Lutz
___
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] Taking extensible math accents from fallback font

2016-09-28 Thread Aditya Mahajan

Hi,

Is it possible to take particular math accents from the fallback font. In 
praticular, I want to use NeoEuler as the math font, but want the \widehat 
and \widetilde accents to be taken from Pagella.


This is because the widetilde accent of neo euler does not change the the 
size of the glyph. Until that is fixed, using the accent from another font 
is a stopgap solution.


Thanks,
Aditya
___
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] Overfull boxes in bibliography

2016-09-28 Thread Wolfgang Schuster

Henri Menke 
28. September 2016 um 13:43
Dear Alan,

many thanks for the suggested fix for the overfull box. However, I am 
looking for a solution to fix the *missing display* of overfull boxes. 
What I want is that the black rectangle is shown in the margin when 
there is an overfull box in the bibliography. The overfull box in the 
bibliography is also not reported in the log.
The list mechanism (which is AFAIK used for the bib entries) disables 
the warnings and rule for overfull lines.


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
___

Re: [NTG-context] Overfull boxes in bibliography

2016-09-28 Thread Henri Menke
Dear Alan,

many thanks for the suggested fix for the overfull box.  However, I am looking 
for a solution to fix the *missing display* of overfull boxes.  What I want is 
that the black rectangle is shown in the margin when there is an overfull box 
in the bibliography.  The overfull box in the bibliography is also not reported 
in the log.

Cheers, Henri

On 09/28/2016 01:29 PM, Alan Braslau wrote:
> Hello,
> 
> It turns out that "alignment" of the bibliography lists does not take the 
> document global settings, but rather, like in other cases such as a framed 
> environment, alignment is reset to the default value: strict alignment does 
> not give the best results for the bibliography list rendering, so I have now 
> set this is the various style specifications to be "{verytolerant,stretch}".
> 
> Awaiting that this correction be propagated, one can add
> 
> \setupbtxlist
>   [aps] % for example
>   [align={normal,verytolerant,stretch}]
> 
> in your setup. There should then be no need for overfill boxes.
> 
> Alan
> 
>> On Aug 30, 2016, at 00:23, Henri Menke  wrote:
>>
>> Dear list,
>>
>> I noticed, that even though I set \version[temporary] to make overfull boxes 
>> visible, they were not marked with an overfullrule in the bibliography.  
>> Below you find a minimal example which reproduces the problem on TL 2016.  
>> First I typeset the entry by hand where the black rectangle shows up in the 
>> margin, then I format it automatically using \placelistofpublications where 
>> no box is shown.
>>
>> How can I have overfull boxes highlighted in the bibliography?
>>
>> Many thanks, Henri
>>
>> ---
>>
>> \startbuffer[biblio]
>> @article{Heisenberg1926,
>>  author = {Heisenberg, W.},
>>  title = {Mehrk\"orperproblem und Resonanz in der Quantenmechanik},
>>  journal = {Zeitschrift f\"ur Physik},
>>  year = {1926},
>>  volume = {38},
>>  number = {6},
>>  pages = {411--426},
>>  issn = {0044-3328},
>>  doi = {10.1007/BF01397160},
>>  url = {http://dx.doi.org/10.1007/BF01397160}
>> }
>> \stopbuffer
>>
>> \version[temporary]
>> \setuppapersize[A5][A5]
>>
>> \usebtxdataset[biblio.buffer]
>> \usebtxdefinitions[aps]
>>
>> \starttext
>>
>> \showframe
>>
>> \setupitemize[left={[},right={]},width=3em,stopper=]
>> \startitemize[n]
>> \item W. Heisenberg, Mehrkörperproblem und Resonanz in der
>>  Quantenmechanik, {\em Zeitschrift für Physik} {\bf 38}(6), 411--426 (1926).
>> \stopitemize
>>
>> \nocite[Heisenberg1926]
>> \placelistofpublications
>>
>> \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
>> ___
> 
> ___
> 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
___

Re: [NTG-context] Overfull boxes in bibliography

2016-09-28 Thread Alan Braslau
Hello,

It turns out that "alignment" of the bibliography lists does not take the 
document global settings, but rather, like in other cases such as a framed 
environment, alignment is reset to the default value: strict alignment does not 
give the best results for the bibliography list rendering, so I have now set 
this is the various style specifications to be "{verytolerant,stretch}".

Awaiting that this correction be propagated, one can add

\setupbtxlist
  [aps] % for example
  [align={normal,verytolerant,stretch}]

in your setup. There should then be no need for overfill boxes.

Alan

> On Aug 30, 2016, at 00:23, Henri Menke  wrote:
> 
> Dear list,
> 
> I noticed, that even though I set \version[temporary] to make overfull boxes 
> visible, they were not marked with an overfullrule in the bibliography.  
> Below you find a minimal example which reproduces the problem on TL 2016.  
> First I typeset the entry by hand where the black rectangle shows up in the 
> margin, then I format it automatically using \placelistofpublications where 
> no box is shown.
> 
> How can I have overfull boxes highlighted in the bibliography?
> 
> Many thanks, Henri
> 
> ---
> 
> \startbuffer[biblio]
> @article{Heisenberg1926,
>  author = {Heisenberg, W.},
>  title = {Mehrk\"orperproblem und Resonanz in der Quantenmechanik},
>  journal = {Zeitschrift f\"ur Physik},
>  year = {1926},
>  volume = {38},
>  number = {6},
>  pages = {411--426},
>  issn = {0044-3328},
>  doi = {10.1007/BF01397160},
>  url = {http://dx.doi.org/10.1007/BF01397160}
> }
> \stopbuffer
> 
> \version[temporary]
> \setuppapersize[A5][A5]
> 
> \usebtxdataset[biblio.buffer]
> \usebtxdefinitions[aps]
> 
> \starttext
> 
> \showframe
> 
> \setupitemize[left={[},right={]},width=3em,stopper=]
> \startitemize[n]
> \item W. Heisenberg, Mehrkörperproblem und Resonanz in der
>  Quantenmechanik, {\em Zeitschrift für Physik} {\bf 38}(6), 411--426 (1926).
> \stopitemize
> 
> \nocite[Heisenberg1926]
> \placelistofpublications
> 
> \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
> ___

___
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] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Jan U. Hasecke
Am 28.09.2016 um 08:58 schrieb Wolfgang Schuster:

> It’s a tabulate bug:
> http://www.mail-archive.com/ntg-context%40ntg.nl/msg83290.html

Argh, there was a voice in my head telling me that I've seen something
about this. I should have browsed through my mails before making noise here.

So let me use this thread to say thank you to all who worked on LuaTeX
1.0.0 and many greetings to Kalenberg. Have a nice time. I hope I can
make it to the ConTeXt Meeting next year.

juh


___
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] Center a framedtext

2016-09-28 Thread Wolfgang Schuster

Fabrice Couvreur 
27. September 2016 um 22:02
Hi Wolfgang,
Thank you for your suggestion, but I think I was not clear enough. In 
fact, I want to place the algorithm as the image.

You need also "location=middle" for the framedtext.

\defineframedtext
  [algorithmframe]
  [width=fit,
   location=middle,
   background=color,
   backgroundcolor=lightgray,
   framecolor=darkred,
   corner=round]

\definelines
  [algorithm]
  [space=on,
   before=\startalgorithmframe,
   after=\stopalgorithmframe]

\starttext

\startmakeup[standard]
\startalgorithm
Initialisation :
  \math{u} prend la valeur 2\,000
  \math{S} prend la valeur 2\,000
Traitement :
  Pour \math{i} allant de 2 à \math{n}
 \math{u} prend la valeur \math{u\times 1,008}
 \math{S} prend la valeur \math{S +u}
  Fin Pour
Sortie :
  Afficher \math{S}
\stopalgorithm
\stopmakeup

\stoptext

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
___

Re: [NTG-context] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Wolfgang Schuster

Jan U. Hasecke 
28. September 2016 um 08:31
Hi all,

with LuaTeX 1.0.0 I get an undefined control sequence error when
compiling an example from the wiki.
It’s a tabulate bug: 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg83290.html


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
___

[NTG-context] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Jan U. Hasecke
Hi all,

with LuaTeX 1.0.0 I get an undefined control sequence error when
compiling an example from the wiki.

\placetable[force,none]{}{%
  \starttabulate[|r|l|]
  \HL
  \NC I want this table \NC aligned in the center.\NC\NR
  \HL
  \stoptabulate
}


or


\startplacetable[location=force,number=no]
  \starttabulate[|r|l|]
  \HL
  \NC I want this table \NC aligned in the center.\NC\NR
  \HL
  \stoptabulate
\stopplacetable


In both cases \stoptabulate is reported as undefined.

Without \placetable everything is ok.


juh

-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90
___
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
___