2017-01-28T23:37:00+08:00https://vincenttam.github.io/Octopress2014-08-03T17:21:01+08:00https://vincenttam.github.io/blog/2014/08/03/my-pandoc-template-1The last post about pandoc was written four months ago. Last week,
I slightly changed the pandoc template default.latex on
jgm/pandoc-templates so that users can easily create $\rm \LaTeX$
documents with
1-inch margin; and
one-half (or double) spacing.
The following command can create a PDF using the template.
I hope that more people will use pandoc and write in Markdown.
]]>2014-03-15T12:55:46+08:00https://vincenttam.github.io/blog/2014/03/15/complicated-pandoc-commandsI don’t need to memorize these commands. Instead, what I need is to
create a page here so that I can make quickly get the right command
for my work. This saves the time for checking and testing the right
command.
For many ordinary computer users who are used to write documents using
WYSIWYG editors, the above command is quite scary, so I’ve written a
custom template to save the trouble. See
My Pandoc Template (1) for details.
]]>2014-03-15T12:49:05+08:00https://vincenttam.github.io/blog/2014/03/15/using-gvim-on-windows-to-create-pandoc-slidesAt night on 25/02/14, I tried to open gVim and use the command mode to
issue system commands, so that I can use pandoc to create $\rm \LaTeX$
Beamer slides. However, with the correct command, gVim went wrong and
in the resulting PDF file, all lines in the source markdown files were
concatenated into one single line. I hadn’t encountered such error
last time.
With the same command, I managed to get back my $\rm \LaTeX$ Beamer
slides. As a Vim lover, I’d like to try to do things within the
editor. Therefore, I changed to the project directory and start gVim
through the command prompt. Then I used q: to find the
corresponding pandoc command, and re-ran it. Job done!
]]>2014-02-23T18:16:39+08:00https://vincenttam.github.io/blog/2014/02/23/including-a-bibliography-in-pandoc-markdown-on-ubuntu-12-04-ltsI tried typesetting a $\rm \LaTeX$ Beamer slide using pandoc markdown
since it’s easy to use. According to the official demo1, with a
CSL file2, which specifies the style to the citation, users are
suppose to be able to create a document with a bibliography. However,
when I ran the following command in Vim on Ubuntu 12.04 LTS, pandoc
hanged.
I admit that it’s too complicated. I tested several things:
$\rm \LaTeX$ Beamer class
Bibliography
To figure out which part of the command is wrong, I tried to remove
the part related to item 1. Issuing a simple command for item 2, the
usage of one of the CPU in my computer rose to almost 100%, and
remained high with small fluctuations.
:!pandoc -s -S --biblio biblio.bib -o %<.html
This issue is indeed one faced by the community of Ubuntu users, so I
can find official advices on GitHub. Eventually, the last comment on
the page has solved my problem. I think installing
libghc-citeproc-hs-data is quicker than installing the latest
(1.9.4.2-2) version of the DEB file for pandoc.