Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamldoc-latex error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-05-31 (19:29)
From: Matt Gushee <matt@g...>
Subject: ocamldoc-latex error
Hello, all--

I just compiled Camomile 0.7.1, and generated the latex documentation 
with 'make doclatex'. Much to my surprise, when I attempt to process the 
  LaTeX file with either the 'latex' or 'pdflatex' program, I get the 
following error:

   ! You can't use `macro parameter character #' in horizontal mode.
   <argument> ...n Unicode Technical Report \verb `##
   l.9 ...ned in Unicode Technical Report \verb`#`21}

   ! Emergency stop.
   <argument> ...n Unicode Technical Report \verb `##
   l.9 ...ned in Unicode Technical Report \verb`#`21}

I am using TeXLive 2007.2 ... given the caution with which TeX is 
developed, it's hard to believe this is a bug in the TeX distribution. 
On the other hand, it's hard to believe that OCamlDoc is generating 
incorrect LaTeX code. Maybe some misconfiguration in my TeX 
installation? Any hints appreciated.

BTW, if I edit the generated LaTeX file, replacing every instance of
\verb`#` with \#{}, it runs fine.

Matt Gushee
: Bantam - lightweight file manager : :
: RASCL's A Simple Configuration Language : :