khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

tex sees error; lambdas not encoded??? #281

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. With the attached Makefile and the attached minimal.lhs file in one folder
2. In a shell (latter folder again) run make minimal.pdf

What is the expected output? What do you see instead?
minimal.pdf file should be produced in the folder. Actually an error is 
detected by the tex compiler around the first occurance of a lambda expression 
in minimal.lhs... see minimal.log

What version of the product are you using? On what operating system?
pandoc.exe version 1.8 on a MS XP.

Please provide any additional information below.
Attached...

Original issue reported on code.google.com by d.kahlen...@gmail.com on 31 Jan 2011 at 6:02

Attachments:

GoogleCodeExporter commented 9 years ago
Try changing 

PANDOC := pandoc --no-wrap -sS

to

PANDOC := pandoc --no-wrap -sS -f markdown+lhs

Since you are sending the file to pandoc through stdin, it has no way of 
knowing that it is a markdown+lhs file, and is interpreting the > sections as 
standard markdown block quotes.

Or, supply the file name to pandoc:

pandoc minimal.lhs -t latex  -s > minimal.tex

works just fine, because now pandoc knows from the filename that it's lhs.

Reply here if this helps.

Original comment by fiddloso...@gmail.com on 31 Jan 2011 at 7:16

GoogleCodeExporter commented 9 years ago
Thank you,

very enlightening, this completely solves the issue I had!

Original comment by d.kahlen...@gmail.com on 1 Feb 2011 at 8:25

GoogleCodeExporter commented 9 years ago
Great. Closing.

Original comment by fiddloso...@gmail.com on 1 Feb 2011 at 3:34