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

2012-03-21 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
___


Re: [NTG-context] Request to help categorizing commands on wiki

2012-03-21 Thread Thomas A. Schmitz

On 03/22/2012 02:44 AM, Jan Heinen wrote:


I hope we get some help of all the people around here that use ConTeXt.
With organizing existing information we can improve the documentation of
ConTeXt and help beginners and maybe also experts.

Woutld be nice if everyone who gets help from this mailinglist gives a
little back to ConTeXt :-) This was my motivation to engage for the
documentation.

You can count on me :-)

Regards
Jannis


I missed this the first time around, so a belated reply: this is an 
absolutely wonderful initiative, and your words about giving back are 
spot on. I'll be sure to try my hand at this, it's very useful. Thanks a 
lot!


Thomas
___
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-21 Thread Kip Warner
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. 

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.

Thanks for the help,

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

2012-03-21 Thread Kip Warner
On Tue, 2012-03-20 at 22:41 +0100, luigi scarso wrote:
> > As I said earlier, I get a segmentation fault if I leave it to run, but
> > I always have to kill it before it takes down the entire operating
> > system with it (apparently this is normal). I don't get the TeX capacity
> > exceeded error message, as you saw from my earlier console output.
> Ok, this is not normal and I suspect that it's linux 64bit issue --
> can be bug of luatex then.
> Can anyone confirm that on  linux 64bit the following
> \starttext
> 
> \startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
> \item foo
> \stopitemize
> \stoptext
> gives a segmentation fault ?

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.

-- 
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] Request to help categorizing commands on wiki

2012-03-21 Thread Jan Heinen


> Jan Heinen did some heaving wiki editing in order to 
achieve better

> categorization of different topics on the wiki.

> One particular part where your help would be welcome is a 
big number

> of different commands listed here:
>http://wiki.contextgarden.net/Category:Commands
> It would be great to assign one or more categories to 
each command.


>Mojca


I hope we get some help of all the people around here that 
use ConTeXt.
With organizing existing information we can improve the 
documentation of ConTeXt and help beginners and maybe also 
experts.


Woutld be nice if everyone who gets help from this 
mailinglist gives a little back to ConTeXt :-) This was my 
motivation to engage for the documentation.


You can count on me :-)

Regards
Jannis





--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: "One-Click" from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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 error

2012-03-21 Thread Meer, H. van der
lxml-ini.mkiv defines:
\unexpanded\def\xmlregisteredsetups
  {\xmlstarttiming
   \xmlflushsetups
   \xmldefaulttotext\xmldocument % after include
   \xmlstoptiming}

but \xmlflushsetups can be found here only, nowhere else in the ConTeXt 
base-files does a search for it match. Calling \xmlregisteredsetups results in 
an error:
Undefined control sequence
\xmlregisteredsetups ...arttiming \xmlflushsetups 
  \xmldefaulttotext \xmldocu...

What could have happened to the xml-modules? As there seem more problems with 
it then this one alone. 

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] References broken when using more than one component?

2012-03-21 Thread Steffen Wolfrum

I consider it a bug.

Steffen W.


Am 21.03.2012 um 13:54 schrieb Steffen Fritzsche:

> Hi,
> 
> I've got a deep hierarchy of components, while everything builds fine I have 
> a problem using references. Have a look at the following sample files:
> 
> reftest.tex:
> \setuphead[chapter][referenceprefix=+]
> 
> \starttext
> 
> \chapter[one]{Chapter One}
> 
> \section[bla]{Blablabla}
> See \in{Section}[three:foobar]
> 
> \chapter[two]{Chapter Two}
> 
> \section[blubb]{BlubbBlubbBlubb}
> 
> \subsection{BlubberBlubber}
> See \in{Section}[one:bla]
> 
> \component refcomp
> 
> \stoptext
> 
> refcomp.tex:
> \startcomponent refcomp
> \chapter[three]{Chapter Three}
> \component refcompsec
> \stopcomponent
> 
> refcompsec.tex:
> \section[foobar]{Foobar Section}
> See \in{Section}[two:blubb] for more details!
> \stopcomponent
> 
> 
> If I move the second component "refcompsec.tex" into the "refcomp.tex" 
> component the reference in chapter one is found. If I translate it as shown 
> using two components the reference in the first chapter is lost.
> 
> Is this a bug or am I doing something wrong?
> 
> Cheers,
> 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
> ___

___
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--verbatim in error?

2012-03-21 Thread Meer, H. van der
I found something that might be an error in the current xml-processing. 
In the following minimal example een "Undefined control sequence" error occurs 
for the \xmldisplayverbatim and \xmlinlineverbatims. The \xmlverbatim doesn't.

\startxmldisplayverbatim ...\doinitializeverbatim 
  \beginofverbatimlines 

\startbuffer[test-1]


  buffer[test-1] contents

\stopbuffer

\startxmlsetups load:setups
  \xmlsetsetup{\xmldocument}{myroot|text}{load:*}
\stopxmlsetups\xmlregistersetup{load:setups}

\startxmlsetups load:myroot
  \writestatus{TEST}{loading myroot node = #1 = \xmlname{#1}}
%  \xmlverbatim{#1}{text}\par
  \xmldisplayverbatim{#1}{text}\par
%  \xmlinlineverbatim{#1}{text}\par
\stopxmlsetups

\startxmlsetups load:text
\writestatus{TEST}{node = #1 = \xmlname{#1}}
\xmlflush{#1}
\stopxmlsetups

\enabletrackers[lxml.loading]
\setuppapersize[S5][S5]
\starttext
\xmlprocessbuffer{myroot}{test-1}{}
\stoptext


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] References broken when using more than one component?

2012-03-21 Thread Steffen Fritzsche
Oh, forgot to mention I'm using mkiv with the latest beta.

Steffen



Am 21.03.2012 um 13:54 schrieb Steffen Fritzsche:

> Hi,
> 
> I've got a deep hierarchy of components, while everything builds fine I have 
> a problem using references. Have a look at the following sample files:
> 
> reftest.tex:
> \setuphead[chapter][referenceprefix=+]
> 
> \starttext
> 
> \chapter[one]{Chapter One}
> 
> \section[bla]{Blablabla}
> See \in{Section}[three:foobar]
> 
> \chapter[two]{Chapter Two}
> 
> \section[blubb]{BlubbBlubbBlubb}
> 
> \subsection{BlubberBlubber}
> See \in{Section}[one:bla]
> 
> \component refcomp
> 
> \stoptext
> 
> refcomp.tex:
> \startcomponent refcomp
> \chapter[three]{Chapter Three}
> \component refcompsec
> \stopcomponent
> 
> refcompsec.tex:
> \section[foobar]{Foobar Section}
> See \in{Section}[two:blubb] for more details!
> \stopcomponent
> 
> 
> If I move the second component "refcompsec.tex" into the "refcomp.tex" 
> component the reference in chapter one is found. If I translate it as shown 
> using two components the reference in the first chapter is lost.
> 
> Is this a bug or am I doing something wrong?
> 
> Cheers,
> 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
> ___




smime.p7s
Description: S/MIME cryptographic 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] References broken when using more than one component?

2012-03-21 Thread Steffen Fritzsche
Hi,

I've got a deep hierarchy of components, while everything builds fine I have a 
problem using references. Have a look at the following sample files:

reftest.tex:
\setuphead[chapter][referenceprefix=+]

\starttext

\chapter[one]{Chapter One}

\section[bla]{Blablabla}
See \in{Section}[three:foobar]

\chapter[two]{Chapter Two}

\section[blubb]{BlubbBlubbBlubb}

\subsection{BlubberBlubber}
See \in{Section}[one:bla]

\component refcomp

\stoptext

refcomp.tex:
\startcomponent refcomp
\chapter[three]{Chapter Three}
\component refcompsec
\stopcomponent

refcompsec.tex:
\section[foobar]{Foobar Section}
See \in{Section}[two:blubb] for more details!
\stopcomponent


If I move the second component "refcompsec.tex" into the "refcomp.tex" 
component the reference in chapter one is found. If I translate it as shown 
using two components the reference in the first chapter is lost.

Is this a bug or am I doing something wrong?

Cheers,
Steffen

smime.p7s
Description: S/MIME cryptographic 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] Custom itemize Symbols

2012-03-21 Thread Wolfgang Schuster

Am 21.03.2012 um 13:11 schrieb Wolfgang Schuster:

> 
> Am 21.03.2012 um 10:19 schrieb Malte Stien:
> 
>> Hi all,
>> 
>> Is there a way to define your own itemize symbols? I would like a solid 
>> square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but 
>> solid/filled whereas 8 is hollow.
>> 
>> I tried to declare my own bullet point, as in:
>> 
>> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
>> 
>> and then tried to use it in the \startitemize command, but it appears that 
>> command does not take commands as its first argument:
>> 
>> \startitemize[\squarebullet, packed]
>> \item foo
>> \item baz
>> ...
>> \stopitemize
>> 
>> So here goes that idea. Other idea was to use \sym{\squarebullet}. That 
>> actually works, however, the problem is that it needs to be specified for 
>> the individual bullet point. I need something that can be specified in 
>> \setupitemize, such that my writers get that symbol automatically without 
>> having any control over it.
>> 
>> Any ideas?
> 
> \definesymbol[blacksquare][\textmath\blacksquare]

And for MkIV one can replace this with \setupsymbolset[text] because the “text” 
symbol set defines a “blacksquare” symbol.

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] Custom itemize Symbols

2012-03-21 Thread Wolfgang Schuster

Am 21.03.2012 um 10:19 schrieb Malte Stien:

> Hi all,
> 
> Is there a way to define your own itemize symbols? I would like a solid 
> square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but 
> solid/filled whereas 8 is hollow.
> 
> I tried to declare my own bullet point, as in:
> 
> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
> 
> and then tried to use it in the \startitemize command, but it appears that 
> command does not take commands as its first argument:
> 
> \startitemize[\squarebullet, packed]
> \item foo
> \item baz
> ...
> \stopitemize
> 
> So here goes that idea. Other idea was to use \sym{\squarebullet}. That 
> actually works, however, the problem is that it needs to be specified for the 
> individual bullet point. I need something that can be specified in 
> \setupitemize, such that my writers get that symbol automatically without 
> having any control over it.
> 
> Any ideas?

\definesymbol[blacksquare][\textmath\blacksquare]

\setupitemize[1][blacksquare]

\starttext

\startitemize
\item One
\item Two
\item Three
\stopitemize

\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] Custom itemize Symbols

2012-03-21 Thread Thomas A. Schmitz

On 03/21/2012 10:19 AM, Malte Stien wrote:

Hi all,

Is there a way to define your own itemize symbols? I would like a solid square, 
as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled 
whereas 8 is hollow.

I tried to declare my own bullet point, as in:

  \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet

and then tried to use it in the \startitemize command, but it appears that 
command does not take commands as its first argument:

  \startitemize[\squarebullet, packed]
  \item foo
  \item baz
  ...
  \stopitemize

So here goes that idea. Other idea was to use \sym{\squarebullet}. That 
actually works, however, the problem is that it needs to be specified for the 
individual bullet point. I need something that can be specified in 
\setupitemize, such that my writers get that symbol automatically without 
having any control over it.

Any ideas?


have you tried

\definesymbol [1] [\squarebullet] ? Or, if you want it only for a few items

\sym{\squarebullet}

HTH

Thomas
___
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] howto execute loaded xml?

2012-03-21 Thread Meer, H. van der
I made a minimal example showing that load'ed xml is not typeset. In contrast 
to the first -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


\startbuffer[load-1]


  
  buffer[load-1] contents

\stopbuffer

\startbuffer[load-2]

  Included buffer[load-2] contents & ampersand.

\stopbuffer

\startxmlsetups load:setups
  \xmlsetsetup{\xmldocument}{myroot|text|include}{load:*}
\stopxmlsetups\xmlregistersetup{load:setups}

\startxmlsetups load:myroot
  \writestatus{TEST-LOAD}{loading myroot}
  \xmlall{#1}{include}
  \xmlall{#1}{text}
  \xmlall{includes}{text}
\stopxmlsetups

\startxmlsetups load:text
  *** \xmlflush{#1} ***\par
\stopxmlsetups

\startxmlsetups load:include
  \writestatus{TEST-LOAD}{loading include}
  \xmlloadbuffer{includes}{load-2}
\stopxmlsetups

\enabletrackers[lxml.loading]
\setuppapersize[S5][S5]
\starttext
\hairline
\xmlprocessbuffer{myroot}{load-1}{}
\hairline
\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
___

[NTG-context] Custom itemize Symbols

2012-03-21 Thread Malte Stien
Hi all,

Is there a way to define your own itemize symbols? I would like a solid square, 
as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled 
whereas 8 is hollow.

I tried to declare my own bullet point, as in:

 \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet

and then tried to use it in the \startitemize command, but it appears that 
command does not take commands as its first argument:

 \startitemize[\squarebullet, packed]
 \item foo
 \item baz
 ...
 \stopitemize

So here goes that idea. Other idea was to use \sym{\squarebullet}. That 
actually works, however, the problem is that it needs to be specified for the 
individual bullet point. I need something that can be specified in 
\setupitemize, such that my writers get that symbol automatically without 
having any control over it.

Any ideas?

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
___