Re: printing problem, markdown files

2024-02-02 Thread gene heskett

On 2/1/24 15:31, Dan Ritter wrote:

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-

Downright tasty stuff, thank you dsr.

.


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: printing problem, markdown files

2024-02-01 Thread Dan Ritter
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-



Re: printing problem, markdown files

2024-02-01 Thread gene heskett

On 2/1/24 12:24, Dan Ritter wrote:

gene heskett wrote:

debian bookworm everting updated earlier this morning.

I have an about 125 page .md file I need hardcopy of.


If you don't have pandoc installed:

sudo apt install pandoc

then:

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.)

pandoc will translate all sorts of formats into many other
formats; if you don't want PDF, HTML, docx, rtf and even epub
are available.

-dsr-


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?


Take care, stay well

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: printing problem, markdown files

2024-02-01 Thread Teemu Likonen
* 2024-02-01 11:57:50-0500, gene heskett wrote:

> I have an about 125 page .md file I need hardcopy of.

Maybe install "okular" and "okular-extra-backends" which includes
markdown backend. Open your .md file in Okular which then renders it
nicely. Print.

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462


signature.asc
Description: PGP signature


Re: printing problem, markdown files

2024-02-01 Thread Dan Ritter
gene heskett wrote: 
> debian bookworm everting updated earlier this morning.
> 
> I have an about 125 page .md file I need hardcopy of.

If you don't have pandoc installed:

sudo apt install pandoc

then:

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.)

pandoc will translate all sorts of formats into many other
formats; if you don't want PDF, HTML, docx, rtf and even epub
are available.

-dsr-



printing problem, markdown files

2024-02-01 Thread gene heskett

debian bookworm everting updated earlier this morning.

I have an about 125 page .md file I need hardcopy of.
I have loaded into geany which recognizes it as an .md file but it had 
so 300 char lines so I've gone thru it and reformmated the long lines to 
a max of 72 chars.


1: Unfortunately, both printers now suddenly have no left borders so 
there's no "binding ditch" when printed duplex, no room for 3 hole 
punching the printout.  So I had geany print the line numbers which will 
use up some damageable space used by the hole puncher.


2. I have also lost the top border, so a 90% shrink to assure the 
printer does not line wrap, no longer centers it on the page, a 2nd 
rather revolting development.


3. I am supposedly using brothers drivers (cups_browsed is not 
installed) which can make both printers do everything they can do. Those 
are NOT $49 walmart specials, but $130 and $750 printers that can and 
have done flawlees book length++ printouts in the past. htop says I am 
using the brother drivers, but I recall the print manager that pops up 
when you click on any editors print menu having those features until 
fairly recently, but that popup menu no longer has an options tab used 
to set that stuff.


Does anyone know of a fix?

Thanks for any help

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis