emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Survey: Toolbars


From: Jean Louis
Subject: Re: Emacs Survey: Toolbars
Date: Thu, 24 Dec 2020 09:31:15 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Christopher Dimech <dimech@gmx.com> [2020-12-24 08:58]:
> I understand what you mean.  Whan I want to print something quick,
> I also have to turn to LibreOffice.  I wrangled that a new major mode
> could suffice, but I am not an knowledgeable enough to be sure.

Really? I left it long ago, I wish I would have some use of
Libreoffice, but don't. Everything I do in Emacs.

For simple printing of text I use Emacs with these commands below to
create PDF files. Then I get those outputs as in attachment. I could
make some function and enlarge or make letters smaller or change
output fonts and so on.

(setq ps-bottom-margin 40)
(setq ps-header-offset 20)
(setq ps-lpr-command "ps-print.sh")
(setq ps-print-footer t)
(setq ps-top-margin 100)
(setq lpr-command "paps_print.sh")

ps-print.sh:

#!/bin/bash
tmpdir=/home/data1/protected/tmp/muttprint/
mkdir -p $tmpdir
cd $tmpdir
file=$tmpdir/$(date +'%F-%T-%A')
#highlight --syntax=lisp --page-color -O pango | paps --markup 
--font="Monospace 11" > $file.ps
cat > $file.ps
#gv $file.ps
# paps --font="DejaVu Sans Mono 11" > $file.ps
ps2pdf14 $file.ps
exec zathura $file.pdf 2> /dev/null &

paps_print.sh:

#!/bin/bash
tmpdir=/home/data1/protected/tmp/muttprint/
mkdir -p $tmpdir
cd $tmpdir
file=$tmpdir/$(date +'%F-%T-%A')
#highlight --syntax=lisp --page-color -O pango | paps --markup 
--font="Monospace 11" > $file.ps
paps > $file.ps
#gv $file.ps
# paps --font="DejaVu Sans Mono 11" > $file.ps
ps2pdf14 $file.ps
zathura $file.pdf 2> /dev/null &


Attachment: 2020-12-24-09:28:16-Thursday.pdf
Description: Adobe PDF document

Attachment: 2020-12-24-09:28:44-Thursday.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]