Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #266859

Re: printing problem, markdown files

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: printing problem, markdown files
Date 2024-02-01 21:50 +0100
Message-ID <I2Mat-79co-3@gated-at.bofh.it> (permalink)
References <I2IzT-76Oh-3@gated-at.bofh.it> <I2J2X-77dS-19@gated-at.bofh.it> <I2LxL-78Vg-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


gene heskett wrote: 
> On 2/1/24 12:24, Dan Ritter wrote:
> > gene heskett wrote:
> > pandoc -f markdown FILEIN.md -t pdf -o FILEOUT.pdf
> > 
> > will turn markdown into PDF, which you can probably print, if by
> > no other means than FTP to the printer itself. (Try it, Brothers
> > come with this by default.)
> > 
> 
> Thanks DSR.
> 
> Scanning thru the docs I don't see anything that looks like what the print
> job shops of the last century called a "binding ditch".  That is where the
> output file has say a 15mm blank space inserted on the left edge of odd
> numbered pages, while that same 15mm of blank space is inserted to the right
> of the text on even pages, leave a blank area to perfect bind the duplex
> pages w/o burying the text into the center crack of the opened pages. Have
> they adopted a new name for this?

Printers (the people) still call it that. 

You will also want to install latex ( apt install texlive-extra-utils 
will get you what you need)

pandoc options:

-V geometry:margin=1in

(all four sides)

-V geometry:left=3cm,right=3cm,top=2cm,bottom=2cm

(separate values for each side)

and finally, what you probably want: 

-V geometry:twoside,left=15mm,right=30mm,top=2cm,bottom=3cm

I just tested that and it did a pretty nice job. My actual
command:

pandoc -f markdown -t pdf -V geometry:twoside,left=15mm,right=30mm,top=2cm,bottom=3cm test.md -o foo.pdf

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

printing problem, markdown files gene heskett <gheskett@shentel.net> - 2024-02-01 18:00 +0100
  Re: printing problem, markdown files Dan Ritter <dsr@randomstring.org> - 2024-02-01 18:30 +0100
    Re: printing problem, markdown files gene heskett <gheskett@shentel.net> - 2024-02-01 21:10 +0100
      Re: printing problem, markdown files Dan Ritter <dsr@randomstring.org> - 2024-02-01 21:50 +0100
        Re: printing problem, markdown files gene heskett <gheskett@shentel.net> - 2024-02-02 11:50 +0100
  Re: printing problem, markdown files Teemu Likonen <tlikonen@iki.fi> - 2024-02-01 18:30 +0100

csiph-web