Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-07-11 Thread Tillmann Rendel

Hi Ivan,

(why are you answering off-list?)

Ivan Miljenovic wrote:

I was under the impression that with cweb, you can have one function
definition split into two, with another completely different block of
code in between them.


I agree, that's something literate haskell can not do. (But it's 
different from what you wrote before).


  Tillmann
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-05-06 Thread Ozgur Akgun
On 6 May 2010 01:23, Ivan Miljenovic ivan.miljeno...@gmail.com wrote:


  El 05/05/2010, a las 12:42, Ozgur Akgun escribió:
 
  OK, I've found them!
 
  They were under /Users/username/.cabal/share/lhs2tex-1.15 and this path
  was not in the search path of lhs2TeX.
  I'm using Snow Leoprad. This might be a bug I guess?


 Not quite; the lhs2tex documentation says you need to put those .fmt,
 .sty, etc. files in a texmf directory.


Oh I assumed, cabal-installing lhs2tex would put those files into some place
so that it can find them later :)

Where exactly in the documentation does it say I have to manually put them
in my texmf dir?
I am of course happy to handle some file copying for such a tool to work,
but I couldn't find explicit instructions about it in the documentation.

Best,
Ozgur Akgun
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-05-06 Thread Ivan Lazar Miljenovic
Ozgur Akgun ozgurak...@gmail.com writes:

 On 6 May 2010 01:23, Ivan Miljenovic ivan.miljeno...@gmail.com wrote:


  El 05/05/2010, a las 12:42, Ozgur Akgun escribió:
 
  OK, I've found them!
 
  They were under /Users/username/.cabal/share/lhs2tex-1.15 and this path
  was not in the search path of lhs2TeX.
  I'm using Snow Leoprad. This might be a bug I guess?


 Not quite; the lhs2tex documentation says you need to put those .fmt,
 .sty, etc. files in a texmf directory.


 Oh I assumed, cabal-installing lhs2tex would put those files into some place
 so that it can find them later :)

 Where exactly in the documentation does it say I have to manually put them
 in my texmf dir?

Page 5 of http://people.cs.uu.nl/andres/lhs2tex/Guide2-1.15.pdf

However, it appears I was mistaken regarding lhs2tex.fmt; instead it
appears that the executable doesn't know where the .fmt file is to be
found.  You'll have to wait until Andres responds for clarification on
this :s

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-05-05 Thread Pierre-Etienne Meunier
By the way, if someone on this list has got too much time, he could write 
something that would fulfill the goals of literate programming -- à la web and 
cweb.
Knuth was able to make books with his source code. I believe that lhs2tex is 
great for classes about haskell or fp, but I never found it satisfying for 
programs with several modules, for instance.



El 05/05/2010, a las 12:42, Ozgur Akgun escribió:

 OK, I've found them!
 
 They were under /Users/username/.cabal/share/lhs2tex-1.15 and this path was 
 not in the search path of lhs2TeX.
 I'm using Snow Leoprad. This might be a bug I guess?
 
 Anyway, problem solved for me.
 
 Best,
 
 On 5 May 2010 16:03, Ozgur Akgun ozgurak...@gmail.com wrote:
 Hi all,
 
 I am trying to get lhs2TeX to work. I installed the package using cabal, and 
 now I try to run it on a very simple *.lhs file.
 
 But it blames me and says user error, cannot find lhs2TeX.fmt:
 
 lhs2TeX: user error (File `lhs2TeX.fmt' not found in search path:
 
 And, when I check the search path, there really is no lhs2TeX.fmt file. 
 Should I download it separately or something like that?
 
 PS: Thanks for the great package to the authors!
 
 Best,
 Ozgur Akgun
 
 
 
 -- 
 Ozgur Akgun
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-05-05 Thread Chris Eidhof
I've generated large LaTeX documents with several modules without too much 
hassle. The key was to use %include a lot, as well as conditionals. Lots of %if 
False around import statements.

-chris

On 5 mei 2010, at 20:18, Pierre-Etienne Meunier wrote:

 By the way, if someone on this list has got too much time, he could write 
 something that would fulfill the goals of literate programming -- à la web 
 and cweb.
 Knuth was able to make books with his source code. I believe that lhs2tex is 
 great for classes about haskell or fp, but I never found it satisfying for 
 programs with several modules, for instance.
 
 
 
 El 05/05/2010, a las 12:42, Ozgur Akgun escribió:
 
 OK, I've found them!
 
 They were under /Users/username/.cabal/share/lhs2tex-1.15 and this path 
 was not in the search path of lhs2TeX.
 I'm using Snow Leoprad. This might be a bug I guess?
 
 Anyway, problem solved for me.
 
 Best,
 
 On 5 May 2010 16:03, Ozgur Akgun ozgurak...@gmail.com wrote:
 Hi all,
 
 I am trying to get lhs2TeX to work. I installed the package using cabal, and 
 now I try to run it on a very simple *.lhs file.
 
 But it blames me and says user error, cannot find lhs2TeX.fmt:
 
 lhs2TeX: user error (File `lhs2TeX.fmt' not found in search path:
 
 And, when I check the search path, there really is no lhs2TeX.fmt file. 
 Should I download it separately or something like that?
 
 PS: Thanks for the great package to the authors!
 
 Best,
 Ozgur Akgun
 
 
 
 -- 
 Ozgur Akgun
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: lhs2TeX - lhs2TeX.fmt missing

2010-05-05 Thread Ivan Miljenovic
On 6 May 2010 04:18, Pierre-Etienne Meunier
pierreetienne.meun...@gmail.com wrote:
 By the way, if someone on this list has got too much time, he could write
 something that would fulfill the goals of literate programming -- à la web
 and cweb.
 Knuth was able to make books with his source code. I believe that lhs2tex is
 great for classes about haskell or fp, but I never found it satisfying for
 programs with several modules, for instance.

I think the main difference between cweb and literate haskell is that
the former allows documentation _anywhere_, whereas with literate
haskell you can't suddenly cut out of a code block to have a
discussion on what the next line means (instead you need to have an
explicit comment).  Unless GHC[i] starts stripping out all non-code
from literate haskell files and joining all the code blocks together,
I'm not sure if this situation can be remedied.

 El 05/05/2010, a las 12:42, Ozgur Akgun escribió:

 OK, I've found them!

 They were under /Users/username/.cabal/share/lhs2tex-1.15 and this path
 was not in the search path of lhs2TeX.
 I'm using Snow Leoprad. This might be a bug I guess?

Not quite; the lhs2tex documentation says you need to put those .fmt,
.sty, etc. files in a texmf directory.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe