aaronwolen / pandoc-letter Goto Github PK
View Code? Open in Web Editor NEWPandoc template for writing letters in markdown
License: GNU General Public License v3.0
Pandoc template for writing letters in markdown
License: GNU General Public License v3.0
Hi
If you're interested you can check out our fork we've added three features:
Soon we plan to integrate the document and letter template, allowing one to be used for everything depending on configuration.
There is also a Gulpfile, a good improvement from my build.sh script that never really worked well
Davide
On occasion, I mix both the Latin and a non-Latin script in letters. pandoc 2.17
has spruced the way this is handled by using babel
for both lualatex
and xelatex
. I wonder if you would consider refreshing the template to keep up with changes.
Thanks.
First of all: Thank you a lot for providing this template!
I cloned this repository and discovered that the example does not work. Then I went back by one commit and it worked again. I guess that 31e603e somehow introduced a bug here. I ran the following commands:
pandoc-letter$ pandoc --template=template-letter.tex example/letter.md -o example/letter.pdf
Error producing PDF.
! Undefined control sequence.
<recently read> \signature
l.64 \signature
pandoc-letter$ git checkout b0fd7342b352ebb87aea17614ec014f68d48747f
M example/letter.pdf
Note: switching to 'b0fd7342b352ebb87aea17614ec014f68d48747f'.
...
pandoc-letter$ pandoc --template=template-letter.tex example/letter.md -o example/letter.pdf
The for b0fd734 the command worked as expected and a pdf was produced.
I see that the rendered pdf has Business letter: Modified_block Format - Wikipedia.
In a modified-block format letter, all text is left aligned (except the author's address, date, and closing), paragraphs are not indented, and the author's address, date, and closing begin at the center point.
Could you please provide another tex file for Business letter: Block Format - Wikipedia?
In a block-format letter, all text is left aligned and paragraphs are not indented.
Hi, is there any way to make the letter text not be right-justified? Or if there is not, could I request that as an option?
Would it be possible to output docx of openoffice documents?
Hi,
This template is great, and very useful. It would be even greater with the possibility to include a logo in the header for corporate mail. Is it in the plans?
When trying to generate a letter with a date like "1. Januar 2017", when invoking
pandoc --template=template-letter.tex test.md -o test.pdf
it throws the following error:
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...l.74 \opening{To whom it may concern,}
pandoc: Error producing PDF
It seems german-style dates (Which are written with a dot to donate the ordering, ie. "1. Januar 2017" meaning "first of january of the year 2017") are parsed as lists or something like that, resulting in compiled LaTeX like this:
\date{\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\setcounter{enumi}{5}
\tightlist
\item
April 2017
\end{enumerate}}
instead of the correct
\date{6 April 2017}
Sadly, my LaTeX skills are nonexistant, so I wouldn't even know where to start fixing this.
Hi, what's the license for this repo?
Davide
Hi, I would like to attach documents with something like this
![la lune](lalune.jpg "Voyage to the moon")
but i'm uncertain how to go about it, or if it is supported at all. if you help me figure it out i'd be happy to write a PR that adds a hint to the README.
big fan of pandoc-letter, thanks for writing and publishing it!
Enabling the colorlinks
option in c43dccf revealed a package clash that occurs if the blockquote
or letterhead
options are enabled.
I find the need to include a reference and its citation in a letter. But I find that the letter template does not support sections. Is there any way to work around this?
Thanks.
PS. Thanks for an excellent template.๐
If opening
is undefined a standard document is produced instead of a letter.
How can we show page number on the first page if letter contains more than 1 page?
Hello,
I was looking for such a template and I make a Nix flake for it so anyone can use it easily.
Find the repository here: https://github.com/drupol/latex-letter
If you want to try it, just install Nix on your computer, enable the flake feature, create a .md file and do: nix run github:drupol/latex-letter -- letter.md
After that, a PDF will be generated in the same directory.
Hope it helps!
Even in a container running an image built with the provided Dockerfile
, Pandoc (or better yet, pdflatex) hits the Undefined control sequence
error on \signature
.
I've tried adding graphicx
to the list of packages installed by tlmgr
, but it complains the package isn't present in the repository.
Thanks a lot for this repository.
I would like to use it without installing Texlive, as it takes up to 800 MB and I do not use LaTeX otherwise. Would it be possible to provide a link to "template-letter.tex" so I can use it without installing the whole Texlive, or is the full fledged Texlive required even for basic functions in the example letter? If yes, is there any lightweight LaTeX install I could use if I just need the underlying language but not the editor and extra packages?
Thank you.
Could you please provide a tex file that satisfies the German format where only the date is on the right-hand side?
Providing a dockerfile would remove the requirement of a local installation.
Hello Aron,
thanks for your template (it provides me a super fast way of writing letter together with few macros in VIM). I just wanted to ask you if it is possible to modify it in order to get the recipient address on the right an return on the left (italian ways of writing letter ..!) ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.