Comments (4)
I'm facing the same issue. The diff between both commits shows the document class can be overridden by the documentclass
variable.
For some reasons it may be set somewhere to something different.
If I set documentclass
in the document, it works:
---
documentclass: letter
...
This variable can also be set with the pandoc command:
pandoc --template=template-letter.tex -V documentclass:letter ...
from pandoc-letter.
$documentclass$
appears to be shadowing \documentclass
PR inbound that would keep the change but rename $documentclass$
to $userdocumentclass$
, but, given that some of those constructs in the template are part of letter
I'm not actually sure accommodating user-specified documentclass is good?
from pandoc-letter.
Hi!
I am sorry I provided the patch without noticing that pandoc sets the documentclass to article by default and thus broke this template.
See:
https://github.com/jgm/pandoc/blob/cc371a9485241db3e0101180432e2122d023a9bd/src/Text/Pandoc/Writers/LaTeX.hs#L109
I see that @to-json made a good fix - changing this to userdocumentclass
if people want to specify a different documentclass and avoid the hassle of having to provide letter by default. Thanks!
Apologies!
Juan
from pandoc-letter.
Related Issues (20)
- Enabling colorlinks causes error if blockquote or letterhead options are enabled HOT 1
- Make opening optional
- German-style dates ("1. Januar 2017") throw error in pdf generation HOT 3
- Logo in header HOT 2
- links-as-notes should be enabled by default HOT 2
- Using template-letter.tex without Texlive? HOT 7
- Question: attachments? HOT 3
- Provide a dockerfile
- Business letter: Block Format
- Business Letter: German Format (only date on Right hand side) HOT 1
- Make the text non-justified HOT 1
- Can citations/references be supported? HOT 2
- pandoc 2.17 has changed the way babel handles fonts; can the letter template be update please? HOT 1
- Nix package
- Feature request: Add Page folding and punching marks
- Undefined control sequence: \signature HOT 1
- Show Page number on first page if letter has more than 1 page
- license HOT 2
- background and pure-latex letterhead HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-letter.