JensErat / pandoc-scrlttr2

Writing Letters in Markdown Using Pandoc and KOMA-Script
61 stars 22 forks source link

get babel error #10

Closed p-phillips closed 7 years ago

p-phillips commented 7 years ago

Hi

I get the following error:

! Package babel Error: You haven't specified a language option.
See the babel package documentation for explanation.

I have tried setting lang to en and english in the YAML block but to no avail.

Any ideas ? Pete

JensErat commented 7 years ago

Can you please provide an example markdown file and the versions of Pandoc and LaTeX distribution you're using?

p-phillips commented 7 years ago

Hi.

Content as per the example below.
Pandoc version 1.15.0.6 Running Ubuntu 16.04, default texlive latex, 2015.20160320-1

Cheers Pete

---
letteroption:
- DIN          # typeset following DIN norm
- example      # loads example style file example.lco
to: |          # required, YAML multiline value
  Maurice Moss
  Reynholm Industries
  123 Carenden Road
  LONDON
  EC5M 8AJ
  GREAT BRITAIN
lang: english
subject: Lorem Ipsum
opening: Dear Moss,
closing: Sincerely,
...

<!-- This is the actual letter content -->

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
nextlevelshit commented 7 years ago

It should be

lang: en

Look out for the example file: https://raw.githubusercontent.com/JensErat/pandoc-scrlttr2/master/example-letter.md

JensErat commented 7 years ago

I must have missed the update on this issue -- thank you for replying @nextlevelshit.

Indeed, the lang parameter changed as it did on the upstream pandoc project some time ago. The variable is not specific to this template at all.