ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: looking for equivalence to LaTeX algorithm package
Date: Wed, 3 Dec 2008 17:18:55 +0100	[thread overview]
Message-ID: <742A812D-6397-4BE8-B834-8688AD25137C@gmail.com> (raw)
In-Reply-To: <4933E7F0.70204@mevis.de>


Am 01.12.2008 um 14:34 schrieb Richard Rascher-Friesenhausen:

> Zhaopeng Xing schrieb:
>> Hi,
>>
>> Does anyone know how to describe algorithm procedures in similar  
>> way as LaTeX algorithmic and algorithm packages? I tried to search  
>> it on wiki but found nothing. Thanks.
>
> Hello,
>
> I once tried to copy the LaTeX environment to ConTeXt. And this is,  
> what came out of it: *t-algorithmic.tex* It works for me, but i'm  
> open to new and better implementations...

It's ok for a private module but before you can put it on
the garden a few things can be done better.

- define the commands (IF, WHILE etc.) local and use protected
   names in the code, users can user similiar names in their
   documents and you have to take care of this

- you can use \doadaptleftskip to increase/decrease the left
   margin with each \IF/\ENDIF ... pair

- you can define \Algorithm with \defineframedtext[Algorithm]

Thanks for sharing it with the rest of the community.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-12-03 16:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-30 16:09 Zhaopeng Xing
2008-11-30 17:26 ` Mohamed Bana
2008-11-30 19:43 ` Wolfgang Schuster
2008-12-01 11:09 ` Wolfgang Schuster
2008-12-01 12:09   ` Zhaopeng Xing
2008-12-01 13:34 ` Richard Rascher-Friesenhausen
2008-12-03 16:18   ` Wolfgang Schuster [this message]
2008-12-15 10:37 ` Wolfgang Schuster

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=742A812D-6397-4BE8-B834-8688AD25137C@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /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).