ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Translating from LaTeX to ConTeXt: environments
@ 2000-10-05 16:50 Giuseppe Bilotta
  2000-10-06 19:20 ` Berend de Boer
  0 siblings, 1 reply; 9+ messages in thread
From: Giuseppe Bilotta @ 2000-10-05 16:50 UTC (permalink / raw)


As I already said in a previous post, I'm trying to convert some LaTeX files
to ConTeXt. The next problem I'm facing is:

What's the ConTeXt equivalent of a (generic) LaTeX environment? To be
precise, I'm looking for an equivalent of the "verse" LaTeX environment. I
would assume that  and appropriate \defineparagraphs (with n=1) is the
answer. The problem is to set the paragraphs appropriately: I need to nest a
\startnarrower ... \stopnarrower (to ensure narrower margins) and a
\startlines ... \stoplines. But it does not seem to work:

\def\SongStart{\startnarrower[2*left,right]\startlines}
\def\SongStop{\stoplines\stopnarrowe}
\defineparagraphs[song][n=1]
\setupparagraphs[song][style=italic,before=\SongStart,after=\SongStop]

gives an incomplete conditional error (the same also swapping narrower and
lines).
Does anybody know a solution?

One more question: is there an easy way to define a command (\def) that
accepts an optional parameter? I mean:

\command{argument}

does one thing,

\command[optional]{argument}

does another, depending on [optional]. (btw, Hans, this is what I meant when
asking for a "programmer's reference").

Giuseppe Bilotta


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-10-16 18:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-05 16:50 Translating from LaTeX to ConTeXt: environments Giuseppe Bilotta
2000-10-06 19:20 ` Berend de Boer
2000-10-06 20:33   ` Giuseppe Bilotta
2000-10-08 14:08     ` Giuseppe Bilotta
2000-10-13 19:36       ` Hraban
     [not found]         ` <001c01c035db$85ca1fe0$01460e97@nuovo>
2000-10-14 20:45           ` Hraban
2000-10-15 20:11             ` Hans Hagen
2000-10-15 20:17         ` Hans Hagen
2000-10-16 18:49           ` music typesetting Hraban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).