ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Giuseppe Bilotta" <oblomov@freemail.it>
Subject: Translating from LaTeX to ConTeXt: environments
Date: Thu, 5 Oct 2000 18:50:10 +0200	[thread overview]
Message-ID: <001401c02eed$586c6700$875a0e97@nuovo> (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


             reply	other threads:[~2000-10-05 16:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-05 16:50 Giuseppe Bilotta [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001401c02eed$586c6700$875a0e97@nuovo' \
    --to=oblomov@freemail.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).