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


Groups > linux.debian.user > #266843 > unrolled thread

printing problem, markdown files

Started bygene heskett <gheskett@shentel.net>
First post2024-02-01 18:00 +0100
Last post2024-02-01 18:30 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  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

#266843 — printing problem, markdown files

Fromgene heskett <gheskett@shentel.net>
Date2024-02-01 18:00 +0100
Subjectprinting problem, markdown files
Message-ID<I2IzT-76Oh-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#266845

FromDan Ritter <dsr@randomstring.org>
Date2024-02-01 18:30 +0100
Message-ID<I2J2X-77dS-19@gated-at.bofh.it>
In reply to#266843
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-

[toc] | [prev] | [next] | [standalone]


#266858

Fromgene heskett <gheskett@shentel.net>
Date2024-02-01 21:10 +0100
Message-ID<I2LxL-78Vg-9@gated-at.bofh.it>
In reply to#266845
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

[toc] | [prev] | [next] | [standalone]


#266859

FromDan Ritter <dsr@randomstring.org>
Date2024-02-01 21:50 +0100
Message-ID<I2Mat-79co-3@gated-at.bofh.it>
In reply to#266858
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-

[toc] | [prev] | [next] | [standalone]


#266866

Fromgene heskett <gheskett@shentel.net>
Date2024-02-02 11:50 +0100
Message-ID<I2Zhn-7lwU-7@gated-at.bofh.it>
In reply to#266859
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

[toc] | [prev] | [next] | [standalone]


#266846

FromTeemu Likonen <tlikonen@iki.fi>
Date2024-02-01 18:30 +0100
Message-ID<I2J2Y-77dS-25@gated-at.bofh.it>
In reply to#266843

[Multipart message — attachments visible in raw view] — view raw

* 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web