caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pietro Abate <Pietro.Abate@anu.edu.au>
To: caml-list@inria.fr
Subject: Re: [Caml-list] can I use camlp4 to output latex ?
Date: Fri, 2 Apr 2004 16:31:39 +1000	[thread overview]
Message-ID: <20040402063139.GA13047@pulp.anu.edu.au> (raw)
In-Reply-To: <20040402045113.GA14712@ours.starynkevitch.net>

On Fri, Apr 02, 2004 at 06:51:13AM +0200, Basile STARYNKEVITCH wrote:
> On Fri, Apr 02, 2004 at 10:45:18AM +1000, Pietro Abate wrote:
> > I'd like to use camlp4 to pretty print my files (pseudo-ocaml) in latex.
> This is the job of ocamldoc (which already knows how to output
> LaTeX). Why don't you use ocamldoc?

because ocamldoc doesn't know about my camlp4-sh syntax ... do you
propose to hack ocamldoc to understand my syntax and then write ad-hoc
output functions ? I hope there's a better solution :-((

actually, my pretty print is not going to be just ocaml code + color in
latex, but a total rewrite of my rules/code in a human readable
format...

something like:

let or =
	let a = prem { A ; B ; X }
	and b = concl { A v B ; X }
in rule (a,b)

to

\frac{or}{A ; B ; X}{A v B ; X} 

... don't know if it's legitmate latex code ...

tnx for the feedback :-)

p

-- 
++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      reply	other threads:[~2004-04-02  6:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-02  0:45 Pietro Abate
2004-04-02  4:51 ` Basile STARYNKEVITCH
2004-04-02  6:31   ` Pietro Abate [this message]

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=20040402063139.GA13047@pulp.anu.edu.au \
    --to=pietro.abate@anu.edu.au \
    --cc=caml-list@inria.fr \
    /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).