demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

PDF Margin sizes too large (and untouchable through markdown2pdf) #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. use markdown2pdf to generate a pdf
2. use pandoc to generate a tex (pandoc -w context) and texexec to convert
to pdf 

You get a PDF as expected but the margins are very large. Using
markdown2pdf I see no way to effectively manipulate margins.  Using padoc
to generate an intermediary tex allows you to modify the tex before using
texexec to convert.

On 0.46 - OS X 10.5.1 (Leopard)

Original issue reported on code.google.com by good.mid...@gmail.com on 19 Jan 2008 at 1:20

GoogleCodeExporter commented 8 years ago
You can set margins by using a custom header (-C option) or by including a
margin-setting command in the header (-H option).  So, create a file
bigmargins containing just the line

\usepackage[left=1cm,right=1cm]{geometry}

Then, do

markdown2pdf input.txt -H bigmargins

You can put other customizations here, too.  For example,

\usepackage{txfonts}

to use Times instead of Computer Modern.

Original comment by fiddloso...@gmail.com on 19 Jan 2008 at 2:10

GoogleCodeExporter commented 8 years ago
Thank you!

markdown2pdf accepts options? Is that (are they) documented anywhere?

Original comment by good.mid...@gmail.com on 19 Jan 2008 at 3:10

GoogleCodeExporter commented 8 years ago
They're documented in the man page.  'man markdown2pdf' on a unix machine.
If you're on windows, you can read the page here:
http://johnmacfarlane.net/pandoc/markdown2pdf1.html

Hmm.  Maybe I should include html versions of the man page with
the windows package?

Original comment by fiddloso...@gmail.com on 19 Jan 2008 at 3:30

GoogleCodeExporter commented 8 years ago
Oh boy I'm retarded.  I checked that last night - I noticed the reference to 
the -s
option for pandoc.

My apologies for wasting your time on this.

Original comment by good.mid...@gmail.com on 19 Jan 2008 at 3:47