[NTG-context] Apostrophes not converting to typographical curly apostrophes

2012-03-22 Thread John Magolske
I'm having difficulty getting straight 0x0027 apostrophes to convert
into typographical single-quotes when using a given typescript.

In the following example, \quote{single quotes} generates curly
typographical single quotes, but the apostrophe comes out as a
straight apostrophe in the PDF output:

\usetypescriptfile[type-lemonde]
\usetypescript[lemonde-1]
\setupbodyfont[lemonde,ss,11pt]
\starttext
Why don't the apostrophes show up as \quotation{curly}? The
\quote{single quotes} and \quotation{double quotes} are fine\ldots{}
\stoptext

The only way I can generate curly apostrophes is by placing 0x2019
characters into the source. However, when I comment out those first
three lines, the output displays a curly apostrophe fine in the default
font. Am I doing something wrong with how I've set up my typescript?

~/texmf/tex/context/user/type-lemonde.tex looks like this:

\starttypescript [serif] [lemonde]
\definefontsynonym [LeMondeLivre-Roman]  [name:lemondelivrenormalosf]
\definefontsynonym [LeMondeLivre-Bold]   [name:lemondelivreboldosf]
\definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
\definefontsynonym [Serif]   [LeMondeLivre-Roman]
\definefontsynonym [SerifBold]   [LeMondeLivre-Bold]
\definefontsynonym [SerifItalic] [LeMondeLivre-Italic]
\stoptypescript

\starttypescript [sans] [lemonde]
\definefontsynonym [LeMondeSans-Roman]   [name:lemondesansnormalosf]
\definefontsynonym [LeMondeSans-Bold][name:lemondesansboldosf]
\definefontsynonym [LeMondeSans-Italic]  [name:lemondesansitalicosf]
\definefontsynonym [Sans][LeMondeSans-Roman]
\definefontsynonym [SansBold][LeMondeSans-Bold]
\definefontsynonym [SansItalic]  [LeMondeSans-Italic]
\stoptypescript

\starttypescript [lemonde-1]
\definetypeface [lemonde] [rm] [serif][lemonde]
\definetypeface [lemonde] [ss] [sans] [lemonde]
\stoptypescript


This is using MkIV, recently updated minimals.

Thanks for any help,

John

-- 
John Magolske
http://B79.net/contact
___
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] xml manual typo

2012-03-22 Thread Meer, H. van der
I am reporting a typo in the MKIV XML-manual. It can put one on the wrong track.

Section 3.7 Setups:
\xmlsetup{name}{node} expands setup name and pass node as argument

Note that name and node in the parameters are interchanged.
It should read:
\xmlsetup{node}{name} expands setup name and pass node as argument

Hans van der Meer



___
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] Itemize without page break

2012-03-22 Thread Mojca Miklavec
On Thu, Mar 22, 2012 at 03:01, Kip Warner wrote:
 On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
 Anything else will leave to undersirable behaviour (or segfaults :) ) As I
 had said in one of my earlier emails, this is the case for ALL context
 macros that take both options and assignments.

 Fair enough. I got it to work now with,

 \startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
 \stoplinecorrection]

 My only concern here is that, for something as incredibly fundamental
 and recurring in the world of ConTeXt, the caveats and distinctions to
 be made between options and assignments, that can and have taken down
 entire operating systems, or cause hour after hour of no end of vague
 syntactical errors, or even successful compilations with the wrong
 effects, shouldn't that probably have been mentioned at least once, even
 if only in passing, somewhere within the 369 page user manual? The word
 assignment I couldn't locate once.

- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart - 11,
\@@itmbefore - \startlinecorrection, etc.

- Maybe it could be more explicit, but if you ever take a look at
documentation, for example
http://wiki.contextgarden.net/Command/setupitemgroup
you will notice that some brackets are depicted with [...,...] and
others with [...,...=...,...]

- The fact that luatex crashes is simply a bug that should be fixed,
so if you didn't do it already, please add a ticket to the tracker. It
would help a lot if somebody could come up with plain LuaTeX example
that does approximately the same since it might happen that until the
bug gets fixed, Hans might reimplement some functionality and then
LuaTeX won't crash on the same input any more. Lots and lots of bugs
in LuaTeX have been fixed in past, but most of them happened on
regular/proper/allowed input. Not many people use wrong ConTeXt syntax
on regular basis to be able to spot such problems. I also bet that if
somebody else would start writing his own TeX format comparable to
ConTeXt, quite some new bugs might have surfaced that one would never
stumble upon during regular use.

Mojca
___
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] Itemize without page break

2012-03-22 Thread Hans Hagen

On 22-3-2012 11:38, Mojca Miklavec wrote:


- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart -  11,
\@@itmbefore -  \startlinecorrection, etc.


fyi:

In mkiv the principle is the same but it's a bit more more dynamic:

\namespaceinstance:key

with namespace being efficiently shortcut deep down in context. The new 
fashion is then \namespaceparameter{key} given that 
\currentnamespace == instance is set. This is the new commandhandler 
approach that we use in overhauled core code as well as in Wolfgangs and 
Adityas modules. The dynamic approach is somewhat slower but it's 
compensated by way less hash entries and other speedups in the overhaul.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread Hans Hagen

On 22-3-2012 11:38, Mojca Miklavec wrote:


- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart -  11,
\@@itmbefore -  \startlinecorrection, etc.


fyi:

In mkiv the principle is the same but it's a bit more more dynamic:

\namespaceinstance:key

with namespace being efficiently shortcut deep down in context. The new 
fashion is then \namespaceparameter{key} given that 
\currentnamespace == instance is set. This is the new commandhandler 
approach that we use in overhauled core code as well as in Wolfgangs and 
Adityas modules. The dynamic approach is somewhat slower but it's 
compensated by way less hash entries and other speedups in the overhaul.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread Philipp Gesang
On 2012-03-22 11:38, Mojca Miklavec wrote:
 On Thu, Mar 22, 2012 at 03:01, Kip Warner wrote:
  On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
  Anything else will leave to undersirable behaviour (or segfaults :) ) As I
  had said in one of my earlier emails, this is the case for ALL context
  macros that take both options and assignments.
 
  Fair enough. I got it to work now with,
 
  \startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
  \stoplinecorrection]
 
  My only concern here is that, for something as incredibly fundamental
  and recurring in the world of ConTeXt, the caveats and distinctions to
  be made between options and assignments, that can and have taken down
  entire operating systems, or cause hour after hour of no end of vague
  syntactical errors, or even successful compilations with the wrong
  effects, shouldn't that probably have been mentioned at least once, even
  if only in passing, somewhere within the 369 page user manual? The word
  assignment I couldn't locate once.

You’re right, it can cause confusion to people migrating from
Latex where package options, afair, allows mixed key-value/list
syntax (like e.g. Lua does as well). Random example from the
KOMA-Script manual:

  \documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
 ^  ^^^
 assignment  …  switch

Therefore the difference to Context deserves mention at least
somewhere in
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt
which said migrators are most likely to consult first.

 - Maybe it could be more explicit, but if you ever take a look at
 documentation, for example
 http://wiki.contextgarden.net/Command/setupitemgroup
 you will notice that some brackets are depicted with [...,...] and
 others with [...,...=...,...]

And while we are handing out reading assignments (pun intended)
here are two wiki links that provide background information:
http://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists
http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments
Perhaps it makes most sense to think of Comma Lists v. Assignment
Lists in terms of the two different argument parsers being used
to process them.

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpqFhjIkDqmZ.pgp
Description: PGP signature
___
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] Itemize without page break

2012-03-22 Thread Philipp Gesang
On 2012-03-22 12:21, Philipp Gesang wrote:
 Therefore the difference to Context deserves mention at least
 somewhere in
 http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt
 which said migrators are most likely to consult first.

Fyi I just added a couple words to the article:
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
please expand as needed!

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpCe70K85Jxz.pgp
Description: PGP signature
___
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] howto execute loaded xml?

2012-03-22 Thread Meer, H. van der
It took hours (some far in the night) to solve. Finally. I am posting this 
message just in case someone starts delving into it.

Still standing is the problem of \xmlcommand not obeying the attribute 
selection but generating an error: 
\xmlcommand{#1}{path[@attrib==whatever]}{command}

Hans van der Meer



On 21 mrt. 2012, at 10:29, Meer, H. van der wrote:

The output was missing in my previous post. Sorry. Here it is.

Hans van der Meer



On 21 mrt. 2012, at 10:27, H. van der Meer wrote:

I made a minimal example showing that load'ed xml is not typeset. In contrast 
to the first text-node the second comes out as xml and not as typeset text.

What has to be done to change that?
Thanks in advance.

Hans van der Meer

test.pdf

___
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] Itemize without page break

2012-03-22 Thread luigi scarso
On Thu, Mar 22, 2012 at 3:01 AM, Kip Warner k...@thevertigo.com wrote:

What's probably happening is eventually the system runs out of memory,
the swap gets depleted as well, and as a last act of desperation, the
kernel finally denies an allocation request to luatex which is pretty
rare. The latter probably then dereferences the null pointer and then it
blows.
Yes, can be, but LuaTex has it's memory manager that  should manage
this situation
just to avoid segmentation faults. I will see if I'm able to setup a vm .


 I'm not sure if this is a concept inherited from TeX, but if it is, it's
 probably not a good idea for the documentation and the user interface to
 assume that ConTeXt users have a background with TeX or derived.
Hm, ConTeXt is rooted in TeX and plain TeX.
It helps a lot to know TeX (and eTeX and pdfTeX).


-- 
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] simple graphics, Metafun vs. ConTeXt

2012-03-22 Thread S Barmeier
I have leaved through the ConTeXt and MetaFun manuals on the search for
examples of graphics resembling the attached file which I created in TikZ.

I was wanting to switch to something more native to ConTeXt, but haven't
quite found a way of realising it in ConTeXt or MetaFun.

Maybe someone would be so kind as to point me to the right section in
the manual.

All I want is to define text boxes (of a fixed size) to fill them with a
background colour and (centred, typeset) text. Do I need MetaFun for
that, or should some table/framed text environment in ConTeXt be able to
do that?

Many thanks,
Severin
attachment: sg.png___
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] simple graphics, Metafun vs. ConTeXt

2012-03-22 Thread Wolfgang Schuster

Am 22.03.2012 um 15:09 schrieb S Barmeier:

 I have leaved through the ConTeXt and MetaFun manuals on the search for
 examples of graphics resembling the attached file which I created in TikZ.
 
 I was wanting to switch to something more native to ConTeXt, but haven't
 quite found a way of realising it in ConTeXt or MetaFun.
 
 Maybe someone would be so kind as to point me to the right section in
 the manual.
 
 All I want is to define text boxes (of a fixed size) to fill them with a
 background colour and (centred, typeset) text. Do I need MetaFun for
 that, or should some table/framed text environment in ConTeXt be able to
 do that?

You can use a table as seen in the example below but when you have many
graphics in this form I would use layers and write a few commands to fill
all fields with the information.

\startsetups kanji

  \setupTABLE  [frame=off]
  
\setupTABLE[1][1][background=color,backgroundcolor=red,width=4cm,align={middle,lohi}]
  \setupTABLE[2][1][background=color,backgroundcolor=orange,width=6cm]
  \setupTABLE[1][2][background=color,backgroundcolor=yellow]

\stopsetups

\starttext

\bTABLE[setups=kanji]
  \bTR
\bTD A \eTD
\bTD
  line 1\\
  line 2\\
  line 3
\eTD
  \eTR
  \bTR
\bTD[nx=2]
  line 1\\
  line 2\\
  line 3
\eTD
  \eTR
\eTABLE

\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] TABLE with split=repeat and headings

2012-03-22 Thread Andreas Schneider
Hello,

I  have several natural tables with the split=repeat option set. Those
tables  are  directly  after  a  subsubsubject.  Every now and then it
happens,  that  the  heading stays on the previous page (as last line)
and the table slips to the next page.

Without  split=repeat  it  correctly takes the header to the next page
too. Can I consider this a bug or am I doing something wrong?

The attached example demonstrates this problem.

Testet with
ConTeXt  ver: 2012.01.02 21:59 MKIV  fmt: 2012.1.24  int: english/english

and
201200310 13:15 MKIV

-- 
Best Regards,
Andreas\starttext
\dorecurse{35}{some text some text some text some text some text\crlf}
\subsubsubject{Some Table}
\bTABLE[split=repeat]
\bTABLEhead 
\bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \eTR
\eTABLEhead 
\bTABLEbody
\bTR \bTD foo \eTD \bTD bar \eTD \bTD \eTD \eTR
\bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR
\eTABLEbody
\eTABLE
\stoptext

pgpn7ojpq9pjH.pgp
Description: PGP signature
___
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] [***SPAM***] interaction kills hyperlinks??

2012-03-22 Thread Steffen Wolfrum
Hi,

it's probably a rare case: URL with comma.

Just by chance I found that these URL kill hyperlinks when interaction is 
active:

\setupinteraction
   [state=start]

\starttext

\goto{\hyphenatedurl{www.spiegel.de/spiegel/0,1518,288433,00.html}}[url(http://www.spiegel.de/spiegel/0,1518,288433,00.html)]

\goto{\hyphenatedurl{www.ftd.de/politik/deutschland/1058704515970.html}}[url(http://www.ftd.de/politik/deutschland/1058704515970.html)]
 

\stoptext


Strange, isn't?

Steffen
___
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] interaction kills hyperlinks

2012-03-22 Thread Steffen Wolfrum
[as the first posting was labeled spam, I try it once more:]


Hi,

it's probably a rare case: URL with comma.

Just by chance I found that these URL kill hyperlinks when interaction is 
active:

\setupinteraction
  [state=start]

\starttext

\goto{\hyphenatedurl{www.spiegel.de/spiegel/0,1518,288433,00.html}}[url(http://www.spiegel.de/spiegel/0,1518,288433,00.html)]

\goto{\hyphenatedurl{www.ftd.de/politik/deutschland/1058704515970.html}}[url(http://www.ftd.de/politik/deutschland/1058704515970.html)]
 

\stoptext


Strange, isn't?

Steffen
___
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] Lettrine misbehaving in beta

2012-03-22 Thread James 'Twey' Kay
I have this problem too… most frustrating :-\  I guess the drop-cap is 
being counted as part of the line, and thereby increasing the line 
height.


  — Twey


On Sat, 14 Jan 2012 23:34:12 +0100, Michael Guravage wrote:

Greetings,

If you run the following example with the current beta you will see
that the second and subsequent lines of the paragraph are pushed down
below the extent of the drop cap. This behavior appeared sometime
after 2011.10.24. Can anyone explain what is happening and suggest a
solution?

usemodule[lettrine]
showgrid

defmyhook {definefontsynonym[LettrineFont][eusm10]}
setuplettrine
  [Lines=5,
   FontHook={redmyhook},
   Findent=0.2em,
   Nindent=0.2em,
   Oversize=1.0,
   Hang=0.15]

setuplayout
  [grid=yes]

starttext

  lettrine{W}{e thrive} in information||thick worlds because of our
  marvelous and everyday capacity to select, edit, single out,
  structure, highlight, group, pair, merge, harmonize, synthesize,
  focus, organize, condense, reduce, boil down, choose, categorize,
  catalog, classify, list, abstract, scan, look into, idealize,
  isolate, discriminate, distinguish, screen, pigeonhole, pick over,
  sort, integrate, blend, inspect, filter, lump, skip, smooth, chunk,

  average, approximate, cluster, aggregate, outline, summarize,
  itemize, review, dip into, flip through, browse, glance into, leaf
  through, skim, refine, enumerate, glean, synopsize, winnow the
wheat
  from the chaff and separate the sheep from the goats.

stoptext

With kind regards,

Michael Guravage


___
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] Itemize without page break

2012-03-22 Thread luigi scarso
On Thu, Mar 22, 2012 at 1:05 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Mar 22, 2012 at 3:01 AM, Kip Warner k...@thevertigo.com wrote:

What's probably happening is eventually the system runs out of memory,
the swap gets depleted as well, and as a last act of desperation, the
kernel finally denies an allocation request to luatex which is pretty
rare. The latter probably then dereferences the null pointer and then it
blows.
 Yes, can be, but LuaTex has it's memory manager that  should manage
 this situation
 just to avoid segmentation faults. I will see if I'm able to setup a vm .
On a qemu vm Suse 11.3
Linux linux 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200
x86_64 x86_64 x86_64 GNU/Linux
at runlevel 3
after 7minuts I have

Runaway argument?
{before=\startlinecorrection ,after=\stoplinecorrection
}]{\dodoubleemptyYESone \ETC.
! TeX capacity exceeded, sorry [token memory size=226427358].

The vm  was slow but usable, the max load factor was 2.3 . No
segmentation fault.

-- 
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] interaction kills hyperlinks

2012-03-22 Thread Hans Hagen

On 22-3-2012 16:09, Steffen Wolfrum wrote:

[as the first posting was labeled spam, I try it once more:]


Hi,

it's probably a rare case: URL with comma.

Just by chance I found that these URL kill hyperlinks when interaction is 
active:

\setupinteraction
   [state=start]

\starttext

\goto{\hyphenatedurl{www.spiegel.de/spiegel/0,1518,288433,00.html}}[url(http://www.spiegel.de/spiegel/0,1518,288433,00.html)]

\goto{\hyphenatedurl{www.ftd.de/politik/deutschland/1058704515970.html}}[url(http://www.ftd.de/politik/deutschland/1058704515970.html)]

\stoptext

Strange, isn't?


not at all, as between [] there can be a list of actions to be done, in 
your case only one; so put {} around it:


1: 
\goto{\hyphenatedurl{www.spiegel.de/spiegel/0,1518,288433,00.html}}[{url(http://www.spiegel.de/spiegel/0,1518,288433,00.html)}]


2: 
\goto{\hyphenatedurl{www.ftd.de/politik/deutschland/1058704515970.html}}[{url(http://www.ftd.de/politik/deutschland/1058704515970.html)}]


or even better, use an abstraction (easier to maintain):

\useurl[spiegel-1][www.spiegel.de/spiegel/0,1518,288433,00.html]
\useurl[politik-1][www.ftd.de/politik/deutschland/1058704515970.html]

3: \goto{\url[spiegel-1]}[spiegel-1]

4: \goto{\url[politik-1]}[politik-1]


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simple graphics, Metafun vs. ConTeXt

2012-03-22 Thread Hans Hagen

On 22-3-2012 15:09, S Barmeier wrote:

I have leaved through the ConTeXt and MetaFun manuals on the search for
examples of graphics resembling the attached file which I created in TikZ.

I was wanting to switch to something more native to ConTeXt, but haven't
quite found a way of realising it in ConTeXt or MetaFun.

Maybe someone would be so kind as to point me to the right section in
the manual.

All I want is to define text boxes (of a fixed size) to fill them with a
background colour and (centred, typeset) text. Do I need MetaFun for
that, or should some table/framed text environment in ConTeXt be able to
do that?


this can be done with \bTABLE .. \eTABLE


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Apostrophes not converting to typographical curly apostrophes

2012-03-22 Thread Hans Hagen

On 22-3-2012 07:32, John Magolske wrote:

I'm having difficulty getting straight 0x0027 apostrophes to convert
into typographical single-quotes when using a given typescript.

In the following example, \quote{single quotes} generates curly
typographical single quotes, but the apostrophe comes out as a
straight apostrophe in the PDF output:

 \usetypescriptfile[type-lemonde]
 \usetypescript[lemonde-1]
 \setupbodyfont[lemonde,ss,11pt]
 \starttext
 Why don't the apostrophes show up as \quotation{curly}? The
 \quote{single quotes} and \quotation{double quotes} are fine\ldots{}
 \stoptext

The only way I can generate curly apostrophes is by placing 0x2019
characters into the source. However, when I comment out those first
three lines, the output displays a curly apostrophe fine in the default
font. Am I doing something wrong with how I've set up my typescript?

~/texmf/tex/context/user/type-lemonde.tex looks like this:

\starttypescript [serif] [lemonde]
 \definefontsynonym [LeMondeLivre-Roman]  [name:lemondelivrenormalosf]
 \definefontsynonym [LeMondeLivre-Bold]   [name:lemondelivreboldosf]
 \definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
 \definefontsynonym [Serif]   [LeMondeLivre-Roman]
 \definefontsynonym [SerifBold]   [LeMondeLivre-Bold]
 \definefontsynonym [SerifItalic] [LeMondeLivre-Italic]
\stoptypescript

\starttypescript [sans] [lemonde]
 \definefontsynonym [LeMondeSans-Roman]   [name:lemondesansnormalosf]
 \definefontsynonym [LeMondeSans-Bold][name:lemondesansboldosf]
 \definefontsynonym [LeMondeSans-Italic]  [name:lemondesansitalicosf]
 \definefontsynonym [Sans][LeMondeSans-Roman]
 \definefontsynonym [SansBold][LeMondeSans-Bold]
 \definefontsynonym [SansItalic]  [LeMondeSans-Italic]
\stoptypescript

\starttypescript [lemonde-1]
 \definetypeface [lemonde] [rm] [serif][lemonde]
 \definetypeface [lemonde] [ss] [sans] [lemonde]
\stoptypescript


This is using MkIV, recently updated minimals.


search the wiki for 'features' ... you need to tell context what 
features to use for an opentype font


btw, the quote remapping is a old-time tex thing and should be avoided 
by either using proper unicodes or by using \quote and \quotation


Hans


--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lettrine misbehaving in beta

2012-03-22 Thread Hans Hagen

On 22-3-2012 16:44, James 'Twey' Kay wrote:

I have this problem too… most frustrating :-\ I guess the drop-cap is
being counted as part of the line, and thereby increasing the line height.


better try:

%D For the moment here: dropped caps redone. In addition to the
%D parameters shown in the example you can use the \type {style} and
%D more low level \type {font} keys to set up the font where
%D the first one wins. If you don't like the behaviour you can always
%D roll out your own command.
%D
%D \starttyping
%D \placeinitial \input ward \par \input ward \par \placeinitial \input 
tufte

%D
%D \setupinitial
%D   [location=text,
%Dn=2,
%Dcolor=darkred,
%Ddistance=-1em,
%Dhoffset=1em,
%Dvoffset=-3ex,
%Dbefore=\blank]
%D
%D \placeinitial \input ward \par \input ward \placeinitial \input tufte
%D \stoptyping

(dropping caps is something that can interfere with anything else that 
synchronizes at the start of a paragraph)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 11:38 +0100, Mojca Miklavec wrote:
 - Maybe it could be more explicit, but if you ever take a look at
 documentation

Sorry, but which documentation should one obviously be looking at? The
half a dozen PDFs, the several versions of the wiki, the mailing list,
one of the actual hard copy books, the source code? Bits and pieces are
scattered everywhere with little rhyme or reason at times.

 , for example
 http://wiki.contextgarden.net/Command/setupitemgroup
 you will notice that some brackets are depicted with [...,...] and
 others with [...,...=...,...]

Yes, and where was the thinking behind that explained in the user
manual? It wasn't. Look for the word assignment.

 - The fact that luatex crashes is simply a bug that should be fixed,
 so if you didn't do it already, please add a ticket to the tracker. 

I cc'd the minimal example to the luatex mailing list, but I won't have
time right now to get more details for them on their tracker.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:21 +0100, Philipp Gesang wrote:
 You’re right, it can cause confusion to people migrating from
 Latex where package options, afair, allows mixed key-value/list
 syntax (like e.g. Lua does as well). Random example from the
 KOMA-Script manual:
 
   \documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
  ^  ^^^
  assignment  …  switch

Thanks Philipp. I'm finding that one of the big weaknesses of ConTeXt is
similar to a common criticism of the first one listed on Git here:

https://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/

It requires users to know too much about how ConTeXt actually works
internally (e.g. its information model). Maybe this is necessary. Maybe
it isn't. I'm fairly new to typesetting and never came from a background
of decades of experience with TeX. But it seems to me like any
programming language, and ConTeXt is a kind of one for document
engineering, should have users focusing on creating beautiful books and
not on the language's information and processing model. 

Just my two cents.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:58 +0100, Philipp Gesang wrote:
 Fyi I just added a couple words to the article:
 http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
 please expand as needed!

Thank you.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Lettrine misbehaving in beta

2012-03-22 Thread Alan Braslau
On Thu, 22 Mar 2012 22:47:13 +0100
Hans Hagen pra...@wxs.nl wrote:

 
 (dropping caps is something that can interfere with anything else
 that synchronizes at the start of a paragraph)
 

Like \definetextbackground [Highlight] [location=paragraph] ?

Alan
___
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] Itemized List Definitions

2012-03-22 Thread Malte Stien
Hi,

Thank you for all your help so far. I do have another question, though. I would 
like to define different styles for different types of itemized lists. I have 
defined:

  % Setup itemised lists
  \setupitemize[1][packed][symbol=1]
  \setupitemize[2][packed][symbol=2]

for one type and I would like to setup another type where the symbols and the 
indentation are different. Is there a mechanism for that? Something along the 
line of

  \setupitemizedlist[typeA][...]
  \setupitemizedlist[typeB][...]

similar to \definedelimitedtext for example?

Regards,
Malte.

___
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] Itemized List Definitions

2012-03-22 Thread Aditya Mahajan

On Fri, 23 Mar 2012, Malte Stien wrote:


Hi,

Thank you for all your help so far. I do have another question, though. I would 
like to define different styles for different types of itemized lists. I have 
defined:

 % Setup itemised lists
 \setupitemize[1][packed][symbol=1]
 \setupitemize[2][packed][symbol=2]

for one type and I would like to setup another type where the symbols and the 
indentation are different. Is there a mechanism for that? Something along the 
line of

 \setupitemizedlist[typeA][...]
 \setupitemizedlist[typeB][...]

similar to \definedelimitedtext for example?


Of course.

\defineitemgroups[...]

\setupitemgroups[...][...]

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
___