[NTG-context] itemize no indentation from the second line

2010-09-15 Thread Zhaopeng Xing
Dear All,

I am trying to get an itemization like this

(1) This is a test. This is a test. This is a test.
This is a test. This is a test. This is a test.

(2) This is a test. This is a test. This is a test.
This is a test. This is a test. This is a test.

i.e., for each item, there is no indentation from the second line. I tried

\setupitemize[left=(, right=), stopper={}, indentnext=no]

But got no effect. Can anyone help me with it? Thank you.

Regards,
Zhaopeng Xing
China Economic Monitoring and Analysis Center, National Bureau of Statistics
of China
___
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] Impostion to make a scroll

2010-09-15 Thread Arild Syme
I am trying to string 10 pdfs together onto one very wide page so I can
print it as a scroll.
I've tried using texexec as follows:

$texexec --combination=10*1 --pdfcombine infile.pdf

but what I get is 10 pdfs at the top of an A4 sheet.
How do I make a custom page size 1480mm x 210 mm?

I've also tried using a tex file like the following:

\definepapersize [scroll][width=1480mm, height=210mm]

\setuppapersize[A5][scroll]

\setuppaper

[topspace=0mm,

backspace=0mm,

dx=1mm,

dy=0mm,

nx=1,

ny=10,

margin=0,

width=148mm,

height=210mm]

\setuplayout

[topspace=0mm,

backspace=0mm,

margin=0mm,

width=1480mm,

height=210mm,

header=0mm,

footer=0mm]

\setuparranging[XY]


\starttext

\insertpages

[input.pdf]

\stoptext


I get the right sized pdf sheet, but all the input.pdf pages are stacked on
top of one another in a big mess all on the right hand side.


Thanks for any help,
Arild
___
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/fo typesetting with ConTeXt/foXet?

2010-09-15 Thread Mica Semrick
Hi list!

I am hoping that someone can point me towards some more information on
typesetting FO (Formatting Objects) with foXet and ConTeXt. I've read
the threads on the foxet mailing list (and I assume that's dead, last
post in 2005), and the wiki provides pretty sparse information. There
are some files listed in the manual, but it doesn't say how to load
them (or I missed that part, very possible).

I can parse my .FO file, but the content is just flowed into PDF,
there are no line breaks, or headings, or anything-- it just strips
out the xml tags.

Thanks for any help/directions!

Best,
Mica
___
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 no indentation from the second line

2010-09-15 Thread luigi scarso
On Mon, Sep 13, 2010 at 3:43 PM, Zhaopeng Xing zpx...@gmail.com wrote:
 Dear All,

 I am trying to get an itemization like this

 (1) This is a test. This is a test. This is a test.
 This is a test. This is a test. This is a test.

 (2) This is a test. This is a test. This is a test.
 This is a test. This is a test. This is a test.

 i.e., for each item, there is no indentation from the second line. I tried

 \setupitemize[left=(, right=), stopper={}, indentnext=no]
Hm I'm not sure to understand what you want
Do you have a simple example ?
-- 
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] itemize no indentation from the second line

2010-09-15 Thread Wolfgang Schuster

Am 13.09.2010 um 15:43 schrieb Zhaopeng Xing:

 Dear All,
 
 I am trying to get an itemization like this
 
 (1) This is a test. This is a test. This is a test. 
 This is a test. This is a test. This is a test. 
 
 (2) This is a test. This is a test. This is a test. 
 This is a test. This is a test. This is a test. 
 
 i.e., for each item, there is no indentation from the second line. I tried 
 
 \setupitemize[left=(, right=), stopper={}, indentnext=no]
 
 But got no effect. Can anyone help me with it? Thank you.

\starttext
\startitemize[n,intext][left=(,right=),stopper=]
\item \input knuth
\item \input ward
\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
___


[NTG-context] Forcing \about to give the full title

2010-09-15 Thread Duncan Hothersall

 Hi folks.

Just hit a strange feature using \about to give me the title of a 
referenced section. When the title is long, there seems to be an 
automatic cut-off, as if some form of \nomarking had been used on the 
last words of the title. So with a section somewhere in the text like


\section[sect0101]{Residence and domicile and the taxation of overseas 
income}


a later reference of the form

See \about[sect0101] for further details

gives me

See 'Residence and domicile and the taxation of overseas ... ' for 
further details



What I would like is for the full title to be output, however long. I 
have had a look through the sources but not managed to identify where 
any default cut-off is defined. Can someone help.


Oh, and my apologies, I haven't upgraded to MkIV yet, so this is a MkII 
question.


Thanks very much,

Duncan
___
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] Impostion to make a scroll

2010-09-15 Thread Wolfgang Schuster

Am 15.09.2010 um 02:26 schrieb Arild Syme:

 I am trying to string 10 pdfs together onto one very wide page so I can print 
 it as a scroll.
 I've tried using texexec as follows:
 
 $texexec --combination=10*1 --pdfcombine infile.pdf
 
 but what I get is 10 pdfs at the top of an A4 sheet.
 How do I make a custom page size 1480mm x 210 mm?
 
 I've also tried using a tex file like the following:
 
 \definepapersize  [scroll][width=1480mm, height=210mm]
 \setuppapersize[A5][scroll]
 \setuppaper
 [topspace=0mm,
 backspace=0mm,
 dx=1mm,
 dy=0mm,
 nx=1,
 ny=10,

nx=10,
ny=1

 margin=0,
 width=148mm,
 height=210mm]
 \setuplayout
 [topspace=0mm,
 backspace=0mm,
 margin=0mm,
 width=1480mm,
 height=210mm,
 header=0mm,
 footer=0mm]

You can just write

\setuplayout[page]

 \setuparranging[XY]
 
 \starttext
 \insertpages
 [input.pdf]
 \stoptext
 
 I get the right sized pdf sheet, but all the input.pdf pages are stacked on 
 top of one another in a big mess all on the right hand side.

This is a alternative solution for your problem:

\starttext
\startTEXpage
\getfiguredimensions[insert.pdf]
\dontleavehmode\dorecurse\noffigurepages{\externalfigure[insert.pdf][page=\recurselevel]}
\stopTEXpage
\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] Forcing \about to give the full title

2010-09-15 Thread Wolfgang Schuster

Am 15.09.2010 um 09:22 schrieb Duncan Hothersall:

 Hi folks.
 
 Just hit a strange feature using \about to give me the title of a referenced 
 section. When the title is long, there seems to be an automatic cut-off, as 
 if some form of \nomarking had been used on the last words of the title. So 
 with a section somewhere in the text like
 
 \section[sect0101]{Residence and domicile and the taxation of overseas income}
 
 a later reference of the form
 
 See \about[sect0101] for further details
 
 gives me
 
 See 'Residence and domicile and the taxation of overseas ... ' for further 
 details
 
 
 What I would like is for the full title to be output, however long. I have 
 had a look through the sources but not managed to identify where any default 
 cut-off is defined. Can someone help.

\setupreferencing[width=]

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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
I thought I'd give the mailing list a small change of pace---instead of
asking how to do it, I will show you :)

The short answer is:

\starttext
My Concrete Poem

\startlines
All   the whitespace
will   print   !
\stoplines
\stoptext


However, \startlines..\stoplines is not available when defining a macro.
I've documented the solution to this situation on my blog:
http://drippingdigital.com/blog/2010/09/typesetting-poetry-in-context/

Thanks to Wolfgang Schuster for helping me work it out!
___
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] sunset showoff

2010-09-15 Thread Henning Hraban Ramm
try this:

\starttext

\setupcolors[state=start]
\definedfont[SansBold at 35mm]
\baselineskip 0pt % switch off the space between the stripes
\lineskip 0pt
\def\MyLogo{\vbox{\hbox{\CONTEXT}\null}} % null is necessary for the
whole bounding box

\def\Number{30}

\dorecurse{\Number}{\definecolor[Col:\recurselevel][c=0,m=\ctxlua{tex.print(\recurselevel/\Number)},y=1,k=0]}

\dorecurse{\Number}{
\clip[ny=\Number,y=\recurselevel]{\color[Col:\recurselevel]\MyLogo}
}

\hbox{\dorecurse{\Number}{\clip[nx=\Number,x=\recurselevel]{\color[Col:\recurselevel]\MyLogo}}}

\stoptext

(With the help of Taco, Piotr and Wolfgang - thanks!)

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


Re: [NTG-context] sunset showoff

2010-09-15 Thread Aditya Mahajan

On Wed, 15 Sep 2010, Henning Hraban Ramm wrote:


\starttext

\setupcolors[state=start]
\definedfont[SansBold at 35mm]
\baselineskip 0pt % switch off the space between the stripes
\lineskip 0pt
\def\MyLogo{\vbox{\hbox{\CONTEXT}\null}} % null is necessary for the
whole bounding box

\def\Number{30}

\dorecurse{\Number}{\definecolor[Col:\recurselevel][c=0,m=\ctxlua{tex.print(\recurselevel/\Number)},y=1,k=0]}

\dorecurse{\Number}{
\clip[ny=\Number,y=\recurselevel]{\color[Col:\recurselevel]\MyLogo}
}

\hbox{\dorecurse{\Number}{\clip[nx=\Number,x=\recurselevel]{\color[Col:\recurselevel]\MyLogo}}}

\stoptext


Add \showboxes to see what is happening :)

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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
Apologies, as a very significant aspect of this process was omitted in the
previous email!

Don't forget to do:

\setuplines[space=on]

first!

On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger 
john.haltiwan...@gmail.com wrote:

 I thought I'd give the mailing list a small change of pace---instead of
 asking how to do it, I will show you :)

 The short answer is:

 \starttext
 My Concrete Poem

 \startlines
 All   the whitespace
 will   print   !
 \stoplines
 \stoptext


 However, \startlines..\stoplines is not available when defining a macro.
 I've documented the solution to this situation on my blog:
 http://drippingdigital.com/blog/2010/09/typesetting-poetry-in-context/

 Thanks to Wolfgang Schuster for helping me work it out!

___
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] A rose by any other name ....

2010-09-15 Thread Aditya Mahajan

Hi,

Is it possible to change the name of the font as it appears in the pdf 
file?


More specifically, I am using Termes font, but I want that the document 
properties to show the name of the font as Times. Is that possible? Is 
doing so a violation of the font license?


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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan

On Wed, 15 Sep 2010, John Haltiwanger wrote:


Apologies, as a very significant aspect of this process was omitted in the
previous email!

Don't forget to do:

\setuplines[space=on]

first!

On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger 
john.haltiwan...@gmail.com wrote:


I thought I'd give the mailing list a small change of pace---instead of
asking how to do it, I will show you :)

The short answer is:

\starttext
My Concrete Poem

\startlines
All   the whitespace
will   print   !
\stoplines
\stoptext


However, \startlines..\stoplines is not available when defining a macro.


What do you mean by that these macros are not available?

Doesn't the following work? (untested, but I will be really surprised if 
it doesn't work)


\def\startpoety
  {\startlines
   % All the remaining setup
  }

\def\stoppoety
 {%whatever setup you want
  \stoplines}


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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Wolfgang Schuster

Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:

 However, \startlines..\stoplines is not available when defining a macro.
 
 What do you mean by that these macros are not available?
 
 Doesn't the following work? (untested, but I will be really surprised if it 
 doesn't work)
 
 \def\startpoety
  {\startlines
   % All the remaining setup
  }
 
 \def\stoppoety
 {%whatever setup you want
  \stoplines}

He use

\def\poetry
  {\startlines
   line 1
   line 2
   ...
   \stoplines}

and this doesn't work.

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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
I don't usually define macros like that (isn't that more of a
\definestartstop kind of deal?).

On Wed, Sep 15, 2010 at 10:38 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Wed, 15 Sep 2010, John Haltiwanger wrote:

  Apologies, as a very significant aspect of this process was omitted in the
 previous email!

 Don't forget to do:

 \setuplines[space=on]

 first!

 On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger 
 john.haltiwan...@gmail.com wrote:

  I thought I'd give the mailing list a small change of pace---instead of
 asking how to do it, I will show you :)

 The short answer is:

 \starttext
 My Concrete Poem

 \startlines
 All   the whitespace
will   print   !
 \stoplines
 \stoptext


 However, \startlines..\stoplines is not available when defining a macro.


 What do you mean by that these macros are not available?

 Doesn't the following work? (untested, but I will be really surprised if it
 doesn't work)

 \def\startpoety
  {\startlines
   % All the remaining setup
  }

 \def\stoppoety
  {%whatever setup you want
  \stoplines}


 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

 ___

___
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: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
What Wolfgange said :)

On Wed, Sep 15, 2010 at 10:42 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:

  However, \startlines..\stoplines is not available when defining a
 macro.
 
  What do you mean by that these macros are not available?
 
  Doesn't the following work? (untested, but I will be really surprised if
 it doesn't work)
 
  \def\startpoety
   {\startlines
% All the remaining setup
   }
 
  \def\stoppoety
  {%whatever setup you want
   \stoplines}

 He use

 \def\poetry
  {\startlines
   line 1
   line 2
   ...
   \stoplines}

 and this doesn't work.

 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
___


Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan

On Thu, 16 Sep 2010, Wolfgang Schuster wrote:



Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:


However, \startlines..\stoplines is not available when defining a macro.


What do you mean by that these macros are not available?

Doesn't the following work? (untested, but I will be really surprised if it 
doesn't work)

\def\startpoety
 {\startlines
  % All the remaining setup
 }

\def\stoppoety
{%whatever setup you want
 \stoplines}


He use

\def\poetry
 {\startlines
  line 1
  line 2
  ...
  \stoplines}

and this doesn't work.


Oh. In that case, I will do

\startbuffer[poerty]
line 1
line
\stopbuffer

\def\poetry
  {\startlines
   \getbuffer[poetry]
   \stoplines}

or even

\def\getpoerty#1[#2]%
  {\startlines
   \getbuffer[#2]
   \stoplines}

That should work (again untested).


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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan

On Wed, 15 Sep 2010, John Haltiwanger wrote:


I don't usually define macros like that (isn't that more of a
\definestartstop kind of deal?).


\definestartstop just provides some syntax sugar around that.


From core-sys.mkiv


\def\dododefinestartstop[#1][#2]%
  { 
   \setvalue{\e!start#1}%
 {\getvalue{\??be#1\c!before}%
  \bgroup
  \getvalue{\??be#1\c!commands}%
  \dostarttagged\t!construct{#1}%
  \dostartattributes{\??be#1}\c!style\c!color\empty}%
   \setvalue{\e!stop#1}%
 {\dostopattributes
  \dostoptagged
  \egroup
  \getvalue{\??be#1\c!after}}}


So, it is basically defining \start#1 and \stop#1, while I was defining 
them explicitly.


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
___


[NTG-context] Greetings from ConTeXist from Brejlov - CTM 2010

2010-09-15 Thread Jaroslav Hajtmar

Hi Everybody...

Everyone who can not be with us physically today in Brejlov, we send a 
few pictures to bring the atmosphere conferencing. Photos are 
continuously met through Sunday.

http://www.kostverlorenvaart.nl/context2010/

Autor: Frans Goddijn.

With greetings Jaroslav and all of Brejlov
___
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: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
Yeah, that seems like a good way to go. Now I finally understand what
Wolfgang was saying last night :)

Since whitespace wasn't important to this particular poem, it did not matter
(using \par worked fine). But I will update my blog with this for sure, as
in the case of whitespace-sensitive poetry its a much better solution.

In general though, it is completely unnecessary, as poetry generally has no
need to be defined in macros. But it's the edge cases, where I live :)

On Wed, Sep 15, 2010 at 10:47 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 16 Sep 2010, Wolfgang Schuster wrote:


 Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:

  However, \startlines..\stoplines is not available when defining a macro.


 What do you mean by that these macros are not available?

 Doesn't the following work? (untested, but I will be really surprised if
 it doesn't work)

 \def\startpoety
  {\startlines
  % All the remaining setup
  }

 \def\stoppoety
 {%whatever setup you want
  \stoplines}


 He use

 \def\poetry
  {\startlines
  line 1
  line 2
  ...
  \stoplines}

 and this doesn't work.


 Oh. In that case, I will do

 \startbuffer[poerty]
 line 1
 line
 \stopbuffer

 \def\poetry
  {\startlines
   \getbuffer[poetry]
   \stoplines}

 or even

 \def\getpoerty#1[#2]%
  {\startlines
   \getbuffer[#2]
   \stoplines}

 That should work (again untested).


 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

 ___

___
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: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan

On Wed, 15 Sep 2010, John Haltiwanger wrote:


In general though, it is completely unnecessary, as poetry generally has no
need to be defined in macros. But it's the edge cases, where I live :)


On the contrary, typesetting poerty can be very tricky. This is what I did 
once to typeset the divine comedy. Don't ask how I figured out the right 
value of the inbetween key :)


\setupindenting   [medium,yes]
\setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next]

\starttext
\startlines
Midway upon the journey of our life
I found myself within a forest dark,
For the straightforward pathway had been lost.

Ah me! how hard a thing it is to say
What was this forest savage, rough, and stern,
Which in the very thought renews the fear.

So bitter is it, death is little more;
But of the good to treat, which there I found,
Speak will I of the other things I saw there.

I cannot well repeat how there I entered,
So full was I of slumber at the moment
In which I had abandoned the true way.

But after I had reached a mountain's foot,
At that point where the valley terminated,
Which had with consternation pierced my heart,

...
\stoplines
\stoptext

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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
On Wed, Sep 15, 2010 at 11:12 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Wed, 15 Sep 2010, John Haltiwanger wrote:

  In general though, it is completely unnecessary, as poetry generally has
 no
 need to be defined in macros. But it's the edge cases, where I live :)


 On the contrary, typesetting poerty can be very tricky. This is what I did
 once to typeset the divine comedy. Don't ask how I figured out the right
 value of the inbetween key :)

 \setupindenting   [medium,yes]

 \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next]

 \starttext
 \startlines
 Midway upon the journey of our life
 I found myself within a forest dark,
 For the straightforward pathway had been lost.

 Ah me! how hard a thing it is to say
 What was this forest savage, rough, and stern,
 Which in the very thought renews the fear.

 So bitter is it, death is little more;
 But of the good to treat, which there I found,
 Speak will I of the other things I saw there.

 I cannot well repeat how there I entered,
 So full was I of slumber at the moment
 In which I had abandoned the true way.

 But after I had reached a mountain's foot,
 At that point where the valley terminated,
 Which had with consternation pierced my heart,

 ...
 \stoplines
 \stoptext


Yes, but this is an example of what I am saying: in general
\startlines..\stoplines is enough (albeit here with some extra stuff
integrated into \setuplines[inbetween=]). It seems to me that pretty much
only if you are doing something generative would you need to worry about the
specifics of buffers and defining macros for typesetting poetry (as was my
case with writing a dedication page in a pandoc template). No
\startpoem..\stoppoem, or even \poem (though now I am having some nice ideas
for weird poetry.. as I said, I spend a lot of time with edge cases ;)

Interestingly, this conversation has cleared up a few lingering details in
my mind re: ConTeXt. Maybe a poetry typesetting tutorial is a worthy way to
explain some key concepts?

I'd be really curious to see your edition of the Inferno, by the way.
___
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: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan

Hi John,

On Wed, 15 Sep 2010, John Haltiwanger wrote:


Interestingly, this conversation has cleared up a few lingering details in
my mind re: ConTeXt. Maybe a poetry typesetting tutorial is a worthy way to
explain some key concepts?


Definite write such a tutorial. I think ConTeXt is lacking such 
explanations by beginners on how they understood specific ConTeXtisms. 
Most ConTeXt tutorials and manuals are written by users who know ConTeXt 
too well to realize what others may find to be confusing.


Best Wishes,
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] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Andrea Valle
I totally agree. My experience with ConTeXt is that I can obtain  
incredible results. But I have to dig into docs, typically with no  
much hope,  and at the end I ask the list. The solution is typically  
cut and past from a guru's email :-).


Best

-a-

On Sep 16, 2010, at 1:51 AM, Aditya Mahajan wrote:


Hi John,

On Wed, 15 Sep 2010, John Haltiwanger wrote:

Interestingly, this conversation has cleared up a few lingering  
details in
my mind re: ConTeXt. Maybe a poetry typesetting tutorial is a  
worthy way to

explain some key concepts?


Definite write such a tutorial. I think ConTeXt is lacking such  
explanations by beginners on how they understood specific  
ConTeXtisms. Most ConTeXt tutorials and manuals are written by users  
who know ConTeXt too well to realize what others may find to be  
confusing.


Best Wishes,
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
___


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- http://www.flickr.com/photos/vanderaalle/
--  http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it
--
 This is a very complicated case, Maude. You know, a lotta ins, a  
lotta outs, a lotta what-have-yous.

(Jeffrey 'The Dude' Lebowski)



___
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] \big has no effect in Mkiv with opentype math fonts

2010-09-15 Thread Hongwen Qiu
 \big \bigg \Big and \Bigg has no effect in Mkiv with opentype math fonts.
___
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
___