ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* verbatim pseudo-code
@ 2004-08-31 13:54 Nikolai Weibull
  2004-08-31 15:19 ` Nikolai Weibull
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2004-08-31 13:54 UTC (permalink / raw)


I would like to create a verbatim environment for writing pseudo-code
in.  Anyone have any suggestions/hints on how to go about it.  I've
looked at verb-*.tex, but they don't enlighten much.

I basically want simple stuff like pseudo-code you'd find in one of
Knuth's books or anything by Aho, Sethi, Hopcrof, and/or Ullman and
those kinds of books.
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

* Re: verbatim pseudo-code
  2004-08-31 13:54 verbatim pseudo-code Nikolai Weibull
@ 2004-08-31 15:19 ` Nikolai Weibull
  2004-09-01  1:50   ` Nikolai Weibull
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2004-08-31 15:19 UTC (permalink / raw)


* Nikolai Weibull <context-list@pcppopper.org> [Aug 31, 2004 16:00]:
> I would like to create a verbatim environment for writing pseudo-code
> in.  Anyone have any suggestions/hints on how to go about it.  I've
> looked at verb-*.tex, but they don't enlighten much.

> I basically want simple stuff like pseudo-code you'd find in one of
> Knuth's books or anything by Aho, Sethi, Hopcrof, and/or Ullman and
> those kinds of books.

What I really need to know now (I got a small implementation I want to
try out) is how to install the verbatim environment and then how to try
it out.
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

* Re: verbatim pseudo-code
  2004-08-31 15:19 ` Nikolai Weibull
@ 2004-09-01  1:50   ` Nikolai Weibull
  0 siblings, 0 replies; 3+ messages in thread
From: Nikolai Weibull @ 2004-09-01  1:50 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

* Nikolai Weibull <context-list@pcppopper.org> [Aug 31, 2004 17:20]:
> What I really need to know now (I got a small implementation I want to
> try out) is how to install the verbatim environment and then how to try
> it out.

OK.  Here's a preliminary implementation.  Perhaps using a verbatim
environment complicates matters unnecessarily.  Anyway, set up with
[palet=,style=\rm,icommand=\bf,ccommand=\rm] it looks kind of nice.
Suggestions for other solutions are welcome.  But I need to start
writing down some algorithms soon, so...
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

[-- Attachment #2: verb-pseudo.tex --]
[-- Type: application/x-tex, Size: 3912 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: application/x-tex, Size: 1322 bytes --]

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2004-09-01  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 13:54 verbatim pseudo-code Nikolai Weibull
2004-08-31 15:19 ` Nikolai Weibull
2004-09-01  1:50   ` Nikolai Weibull

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