caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Maxence Guesdon <maxence.guesdon@inria.fr>
To: skaller@users.sourceforge.net
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Ocamldoc problem
Date: Mon, 30 Aug 2004 15:42:39 +0200	[thread overview]
Message-ID: <20040830154239.62d7c5bb@tintin.inria.fr> (raw)
In-Reply-To: <1093749214.15255.2244.camel@pelican.wigram>

On 29 Aug 2004 13:13:38 +1000
skaller <skaller@users.sourceforge.net> wrote:

> Using Ocamldoc to make latex files, I am getting a weird problem:
> 
> ! LaTeX Error: Environment ocamldocobjectend undefined.
>  
> When I look in the generated ocamldoc.sty file:
> 
> \ProvidesPackage{ocamldoc}
>               [2001/12/04 v1.0 ocamldoc support]
>  
> I can see that Latex is wrong -- here's the definition
> I found in the file:
> 
> \newenvironment{ocamldocobjectend}
>      {\noindent\quad\texttt{object}\ocamldocindent}
>      {\endocamldocindent\vskip -\lastskip
>       \noindent\quad\texttt{end}\medskip}
>  
> Here is the command I use:
> 
> ocamldoc -I src -d impldoc src/*.mli -html
> ocamldoc -I src -o impldoc/flx_impl.tex src/*.mli -latex
> cd impldoc
> latex flx_impl.tex
> 
> Ok, now here is the WEIRD part. If I do this first:
> 
> rm impldoc/*
> 
> it all works. (Well I do get
>   LaTeX Warning: There were multiply-defined labels.
> but that's another issue)
> 
> I can even rerun ocamldoc:
> 
> ocamldoc -I src -o impldoc/flx_impl.tex src/*.mli -latex
> latex flx_impl.tex
> 
> 
> and it STILL works. But sometime later, it stops working :)
> 
> Clearly something left over from a previous run is
> getting the way but I can't figure out what. It seems
> to happen even when I 'clean' everything first --
> but then when I try to do that manually the problem goes
> away .. for a while.

The new ocamldocobjectend environment used in ocamldoc latex output was
introduced in version 3.08.0. If you have an earlier version of ocamldoc.sty
in the directory you generate the .tex files, it is not removed by ocamldoc,
and probably does not contain the definition of ocamldocobjectend. But If
there is no such file, ocamldoc generates the default one, with the correct
definitions.

Regards,

Maxence Guesdon

-------------------
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-08-30 13:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-29  3:13 skaller
2004-08-30 13:42 ` Maxence Guesdon [this message]
2004-08-30 14:52   ` skaller

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=20040830154239.62d7c5bb@tintin.inria.fr \
    --to=maxence.guesdon@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=skaller@users.sourceforge.net \
    /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).