ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* alltt equivalent?
@ 2002-05-23  5:05 Denis B. Roegel
  2002-05-24  9:01 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Denis B. Roegel @ 2002-05-23  5:05 UTC (permalink / raw)
  Cc: roegel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]

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


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

end of thread, other threads:[~2002-05-24  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-23  5:05 alltt equivalent? Denis B. Roegel
2002-05-24  9:01 ` Hans Hagen

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).