From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7971 Path: main.gmane.org!not-for-mail From: "Denis B. Roegel" Newsgroups: gmane.comp.tex.context Subject: alltt equivalent? Date: Thu, 23 May 2002 07:05:55 +0200 (MET DST) Sender: owner-ntg-context@let.uu.nl Message-ID: <200205230505.HAA20158@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035398410 23825 80.91.224.250 (23 Oct 2002 18:40:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:40:10 +0000 (UTC) Cc: roegel@lorraine.loria.fr Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:7971 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7971 I have a LaTeX `alltt' environment to simulate in ConTeXt. Here is the piece of code in LaTeX: \def\xxxoe/{\oe} \begin{alltt} struct stat \{ dev_t st_dev; /* identificateur du périphérique */ /* où se trouve le fichier */ ino_t st_ino; /* numéro du n\xxxoe/ud d'index */ mode_t st_mode; /* droits d'accès du fichier */ nlink_t st_nlink; /* nombre de liens effectués sur le fichier */ uid_t st_uid; /* identificateur du propriétaire */ gid_t st_gid; /* identificateur du groupe du propriétaire */ dev_t st_rdev; /* type de périphérique */ off_t st_size; /* taille en octets du fichier */ time_t st_atime; /* date du dernier accès au fichier */ time_t st_mtime; /* date de la dernière modification du fichier */ time_t st_ctime; /* date du dernier changement du n\xxxoe/ud d'index */ \} ; \end{alltt} In this environment, everything is like in \starttyping/\stoptyping, except that commands (\{, \}, \xxxoe/) are interpreted. I need such an environment, because of the `oe' ligature. If I write n\oe ud in a \starttyping/\stoptyping environment, I will get what I write here. Also, if I write this in an `alltt' environment, I will keep the space, hence the kludge I used. What would be the best ConTeXt way to do this? Thanks, Denis