* wie kann ich Emacs so einstellen, dass ich drucken kann
@ 2022-12-14 16:38 Gottfried
2022-12-14 17:27 ` Philip Kaludercic
` (2 more replies)
0 siblings, 3 replies; 44+ messages in thread
From: Gottfried @ 2022-12-14 16:38 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 260 bytes --]
Hallo,
ich wollte einen Puffer ausdrucken (das erste Mal)
und es gab diese Fehlermeldung:
lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr:
Fehler - Kein voreingestelltes Ziel.
Wie kann ich das Ziel einstellen?
danke
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
@ 2022-12-14 17:27 ` Philip Kaludercic
2022-12-16 15:27 ` printing Gottfried
2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
2022-12-17 9:00 ` Jean Louis
2 siblings, 1 reply; 44+ messages in thread
From: Philip Kaludercic @ 2022-12-14 17:27 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
Gottfried <gottfried@posteo.de> writes:
> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)
> und es gab diese Fehlermeldung:
>
> lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr:
> Fehler - Kein voreingestelltes Ziel.
>
> Wie kann ich das Ziel einstellen?
>
> danke
> Gottfried
You have to take a look at `lpr-switches', and specifically figure out
what -P<printer name> flag to add, so that the "lpr" command knows where
you want to print.
^ permalink raw reply [flat|nested] 44+ messages in thread
* printing
2022-12-14 17:27 ` Philip Kaludercic
@ 2022-12-16 15:27 ` Gottfried
2022-12-16 22:26 ` printing Michael Heerdegen
2022-12-17 13:48 ` printing Gottfried
0 siblings, 2 replies; 44+ messages in thread
From: Gottfried @ 2022-12-16 15:27 UTC (permalink / raw)
To: Philip Kaludercic; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1116 bytes --]
Hi,
I added this to my init.el file:
;;printer
(setq lpr-switches
(append '("-P" "HP_Officejet_J4680_All-in-One"
"-o" "sides=two-sided-long-edge"
"-o" "number-up=2")
lpr-switches))
But still it does not find my printer.
Where is my mistake?
The two lines after the printer I am not sure if they are right as well,
but probably that has nothing to do with the printer itself.
I have got a "HP Officejet J4680 All-in-One" printer
Kind regards
Gottfried
Am 14.12.22 um 18:27 schrieb Philip Kaludercic:
> Gottfried <gottfried@posteo.de> writes:
>
>> Hallo,
>> ich wollte einen Puffer ausdrucken (das erste Mal)
>> und es gab diese Fehlermeldung:
>>
>> lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr:
>> Fehler - Kein voreingestelltes Ziel.
>>
>> Wie kann ich das Ziel einstellen?
>>
>> danke
>> Gottfried
>
> You have to take a look at `lpr-switches', and specifically figure out
> what -P<printer name> flag to add, so that the "lpr" command knows where
> you want to print.
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing
2022-12-16 15:27 ` printing Gottfried
@ 2022-12-16 22:26 ` Michael Heerdegen
2022-12-17 6:29 ` printing tomas
2022-12-17 13:48 ` printing Gottfried
1 sibling, 1 reply; 44+ messages in thread
From: Michael Heerdegen @ 2022-12-16 22:26 UTC (permalink / raw)
To: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> I added this to my init.el file:
>
> ;;printer
> (setq lpr-switches
> (append '("-P" "HP_Officejet_J4680_All-in-One"
> "-o" "sides=two-sided-long-edge"
> "-o" "number-up=2")
> lpr-switches))
>
>
> But still it does not find my printer.
>
> Where is my mistake?
> The two lines after the printer I am not sure if they are right as well,
> but probably that has nothing to do with the printer itself.
Does the lpr command print outside of Emacs?
Michael.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing
2022-12-16 22:26 ` printing Michael Heerdegen
@ 2022-12-17 6:29 ` tomas
2022-12-17 7:41 ` printing Emanuel Berg
0 siblings, 1 reply; 44+ messages in thread
From: tomas @ 2022-12-17 6:29 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]
On Fri, Dec 16, 2022 at 11:26:39PM +0100, Michael Heerdegen wrote:
> Gottfried <gottfried@posteo.de> writes:
>
> > I added this to my init.el file:
> >
> > ;;printer
> > (setq lpr-switches
> > (append '("-P" "HP_Officejet_J4680_All-in-One"
> > "-o" "sides=two-sided-long-edge"
> > "-o" "number-up=2")
> > lpr-switches))
> >
> >
> > But still it does not find my printer.
> >
> > Where is my mistake?
> > The two lines after the printer I am not sure if they are right as well,
> > but probably that has nothing to do with the printer itself.
>
> Does the lpr command print outside of Emacs?
This is the first I'd try, yes. In a console, do
lpq -a
This should show you all the printer queues your
system thinks it has. The printer queue you mention
above ("HP_Officejet_J4680_All-in-One") should show
up in the list.
Then try
lpr -P HP_Officejet_J4680_All-in-One <some filename>
where <some filename> is the name of some existing (text
or Postscript or PDF) file and see what it happens.
Once you have that running, the Emacs part should be
easy.
Have you printed anything with your computer (outside
of Emacs) yet? How have you done it?
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing
2022-12-16 15:27 ` printing Gottfried
2022-12-16 22:26 ` printing Michael Heerdegen
@ 2022-12-17 13:48 ` Gottfried
2022-12-17 16:30 ` printing tomas
1 sibling, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-17 13:48 UTC (permalink / raw)
To: Philip Kaludercic, michael_heerdegen; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 727 bytes --]
Hi,
I found the mistake why I couldn't print in emacs.
My printer has a different name and I changed it in my init.el file.
HP_Officejet_J4680_series
No I can print within emacs, at the moment with the menu: print
Other options I have to figure out.
Kind regards
Gottfried
Am 16.12.22 um 16:27 schrieb Gottfried:
> Hi,
>
> I added this to my init.el file:
>
> ;;printer
> (setq lpr-switches
> (append '("-P" "HP_Officejet_J4680_All-in-One"
> "-o" "sides=two-sided-long-edge"
> "-o" "number-up=2")
> lpr-switches))
>
>
> But still it does not find my printer.
>
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-14 17:27 ` Philip Kaludercic
@ 2022-12-14 21:30 ` Michael Heerdegen
2022-12-17 9:00 ` Jean Louis
2 siblings, 0 replies; 44+ messages in thread
From: Michael Heerdegen @ 2022-12-14 21:30 UTC (permalink / raw)
To: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)
Bitte auch Alternativen in Erwägung ziehen wenn du dich nicht mit
Interna herumschlagen möchtest:
- Emacs kann mit M-x ps-spool-buffer-with-faces den Buffer in Postscript
umwandeln - das Ergebnis ist im neuen Buffer *PostScript*. Das kann man
dann als Postscript- (.ps) File abspeichern und ebenfalls mit anderen
Programmen drucken (etwa gv oder was auch immer)
- Paket htmlize um einen Buffer in ein html-File zu drucken und mit
einem anderen Programm drucken (Browser, etwa Firefox). Das macht
Sinn weil Browser heutzutage oft sehr gute Druck-Interfaces haben.
Viele machen das weil das Interface in Emacs zum Drucken sehr
spartanisch ist. Es gibt auch noch printing.el das versucht ein
besseres Interface für's Drucken zu Verfügung zu stellen um es etwas
leichter zu machen.
Ich persönlich nutze zur Zeit `ps-spool-buffer-with-faces'.
Michael.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-14 17:27 ` Philip Kaludercic
2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
@ 2022-12-17 9:00 ` Jean Louis
2022-12-17 9:29 ` Michael Heerdegen
` (2 more replies)
2 siblings, 3 replies; 44+ messages in thread
From: Jean Louis @ 2022-12-17 9:00 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]
* Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)
> und es gab diese Fehlermeldung:
So far best tool to print Emacs buffers that I have found is the
command `paps' as it supports correctly Unicode, also emoticons. Thus
you may try by installing `paps' tool from your Operating System
distribution.
Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
aus Ihrer Betriebssystemverteilung installieren.
dov/paps: A text to postscript converter through pango:
https://github.com/dov/paps
Ich verwende folgende Funktionen:
(defun rcd-command-output-from-input (program input &rest args)
"Return output string from PROGRAM with given INPUT string and optional ARGS."
(let* ((output (with-temp-buffer
(insert input)
(apply #'call-process-region nil nil program t '(t nil) nil args)
(buffer-string))))
output))
I am too often using landscape, you can adjust it for your needs.
(defun rcd-paps-process (text &optional format title &rest args)
(let* ((format (or format "pdf"))
(title (or title (buffer-name)))
(length (length title))
(max 45)
(title (if (> length max) (substring title 0 max) title)))
(apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))
(defun string-to-file-force (string file)
"Prints string into file, matters not if file exists. Return FILE as file name."
(with-temp-file file
(insert string))
file)
(defun rcd-paps-text-to-pdf (text &optional file-name title)
(let* ((output (rcd-paps-process text "pdf" title))
(file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
(string-to-file-force output file-name)))
(defun rcd-paps-buffer-to-pdf-view ()
(interactive)
(let ((output (rcd-paps-process-buffer))
(file-name (rcd-temp-file-name nil "pdf")))
(sleep-for 1)
(start-process "evince" nil "evince" (string-to-file-force output file-name))))
😎
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
[-- Attachment #2: Saturday-December-17-2022-11-59-20.pdf --]
[-- Type: application/pdf, Size: 24879 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:00 ` Jean Louis
@ 2022-12-17 9:29 ` Michael Heerdegen
2022-12-17 9:41 ` Jean Louis
2022-12-18 8:04 ` Eduardo Ochs
2022-12-18 12:06 ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2 siblings, 1 reply; 44+ messages in thread
From: Michael Heerdegen @ 2022-12-17 9:29 UTC (permalink / raw)
To: help-gnu-emacs
Jean Louis <bugs@gnu.support> writes:
> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > Hallo,
> > ich wollte einen Puffer ausdrucken (das erste Mal)
> > und es gab diese Fehlermeldung:
> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist [...]
Wenn es sich allerdings um einen Kartoffelpuffer handelt, ist es mit dem
Drucken tatsächlich nicht so einfach.
Sorry, could not resist. Puffer...
Michael.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:29 ` Michael Heerdegen
@ 2022-12-17 9:41 ` Jean Louis
2022-12-17 10:34 ` Michael Heerdegen
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-17 9:41 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: help-gnu-emacs
* Michael Heerdegen <michael_heerdegen@web.de> [2022-12-17 12:31]:
> Jean Louis <bugs@gnu.support> writes:
>
> > * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > > Hallo,
> > > ich wollte einen Puffer ausdrucken (das erste Mal)
> > > und es gab diese Fehlermeldung:
>
> > Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> > habe, ist [...]
>
> Wenn es sich allerdings um einen Kartoffelpuffer handelt, ist es mit dem
> Drucken tatsächlich nicht so einfach.
Hahhahaha, dann wie sagt man es üblicherweise in Deutschland? Buffer?
How do you say "Buffer" in Germany?
Wie übersetzt man besser Buffer im Kontext von Emacs?
How do you translate "Buffer" in the context of Emacs?
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:41 ` Jean Louis
@ 2022-12-17 10:34 ` Michael Heerdegen
2022-12-17 10:39 ` Michael Heerdegen
0 siblings, 1 reply; 44+ messages in thread
From: Michael Heerdegen @ 2022-12-17 10:34 UTC (permalink / raw)
To: help-gnu-emacs
Jean Louis <bugs@gnu.support> writes:
> Wie übersetzt man besser Buffer im Kontext von Emacs?
> How do you translate "Buffer" in the context of Emacs?
"Puffer" is actually ok, but may sound a bit weird. Most of the time
many people just use the English words, so "buffer" would also be ok.
Using English words in German sentences a lot has its own name:
speaking Denglish.
It depends on who you explain something. But you also do older
people no favor if you use words that they don't find in texts and the
Internet etc. because they are not common.
In this case "buffer" and "Puffer" are very similar, so I would prefer
"buffer": it's easy to remember even for people not speaking English,
and it's more precise than "Puffer".
Michael.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 10:34 ` Michael Heerdegen
@ 2022-12-17 10:39 ` Michael Heerdegen
0 siblings, 0 replies; 44+ messages in thread
From: Michael Heerdegen @ 2022-12-17 10:39 UTC (permalink / raw)
To: help-gnu-emacs
Michael Heerdegen <michael_heerdegen@web.de> writes:
> It depends on who you explain something. But you also do older
> people no favor if you use words that they don't find in texts and the
> Internet etc. because they are not common.
When I speak about Emacs with my friends (in German) I only use English
terms: buffer, window, frame, mode-line, narrowing, etc. If I would try
to translate all this stuff, I would have forgotten what I actually
wanted to say. And it would be hard to understand.
Michael.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:00 ` Jean Louis
2022-12-17 9:29 ` Michael Heerdegen
@ 2022-12-18 8:04 ` Eduardo Ochs
2022-12-18 17:18 ` Jean Louis
2022-12-18 12:06 ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2 siblings, 1 reply; 44+ messages in thread
From: Eduardo Ochs @ 2022-12-18 8:04 UTC (permalink / raw)
To: Gottfried, help-gnu-emacs@gnu.org
On Sat, 17 Dec 2022 at 06:02, Jean Louis <bugs@gnu.support> wrote:
>
> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > Hallo,
> > ich wollte einen Puffer ausdrucken (das erste Mal)
> > und es gab diese Fehlermeldung:
>
> So far best tool to print Emacs buffers that I have found is the
> command `paps' as it supports correctly Unicode, also emoticons. Thus
> you may try by installing `paps' tool from your Operating System
> distribution.
>
> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
> Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
> aus Ihrer Betriebssystemverteilung installieren.
>
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
>
> Ich verwende folgende Funktionen:
>
> (defun rcd-command-output-from-input (program input &rest args)
> "Return output string from PROGRAM with given INPUT string and optional ARGS."
> (let* ((output (with-temp-buffer
> (insert input)
> (apply #'call-process-region nil nil program t '(t nil) nil args)
> (buffer-string))))
> output))
>
> I am too often using landscape, you can adjust it for your needs.
>
> (defun rcd-paps-process (text &optional format title &rest args)
> (let* ((format (or format "pdf"))
> (title (or title (buffer-name)))
> (length (length title))
> (max 45)
> (title (if (> length max) (substring title 0 max) title)))
> (apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))
>
> (defun string-to-file-force (string file)
> "Prints string into file, matters not if file exists. Return FILE as file name."
> (with-temp-file file
> (insert string))
> file)
>
> (defun rcd-paps-text-to-pdf (text &optional file-name title)
> (let* ((output (rcd-paps-process text "pdf" title))
> (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
> (string-to-file-force output file-name)))
>
> (defun rcd-paps-buffer-to-pdf-view ()
> (interactive)
> (let ((output (rcd-paps-process-buffer))
> (file-name (rcd-temp-file-name nil "pdf")))
> (sleep-for 1)
> (start-process "evince" nil "evince" (string-to-file-force output file-name))))
>
> 😎
Hi Jean Louis,
What are the definitions of `rcd-paps-process-buffer'
and `rcd-temp-file-name'?
Thanks in advance!
Eduardo
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-18 8:04 ` Eduardo Ochs
@ 2022-12-18 17:18 ` Jean Louis
2022-12-18 22:34 ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-18 17:18 UTC (permalink / raw)
To: Eduardo Ochs; +Cc: Gottfried, help-gnu-emacs@gnu.org
* Eduardo Ochs <eduardoochs@gmail.com> [2022-12-18 11:05]:
> Hi Jean Louis,
>
> What are the definitions of `rcd-paps-process-buffer'
> and `rcd-temp-file-name'?
(defun rcd-paps-process-buffer (&rest args)
(let ((text (buffer-substring-no-properties (point-min) (point-max))))
(apply 'rcd-paps-process text args)))
(defcustom rcd-temp-file-directory "~/tmp/"
"Temporary directory for other temporary files."
:group 'rcd
:type 'string)
(defun rcd-temp-file-name (&optional file-name extension)
"Return temporary file name."
(concat (file-truename (file-name-as-directory rcd-temp-file-directory))
(or file-name (format-time-string "%A-%B-%d-%Y-%H-%M-%S"))
"."
(or extension "txt")))
I hope you will get it to work, as paps gives quite good
output. Author has recently updated modification of header. My package
`rcd-paps' is not finished, it will be.
dov/paps: A text to postscript converter through pango:
https://github.com/dov/paps
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* rcd-paps.el (was: Re: wie kann ich Emacs...)
2022-12-18 17:18 ` Jean Louis
@ 2022-12-18 22:34 ` Eduardo Ochs
2022-12-19 12:50 ` rcd-paps.el Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Eduardo Ochs @ 2022-12-18 22:34 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org, Jean Louis
On Sun, 18 Dec 2022 at 14:19, Jean Louis <bugs@gnu.support> wrote:
>
> I hope you will get it to work, as paps gives quite good
> output. Author has recently updated modification of header. My package
> `rcd-paps' is not finished, it will be.
Hi Jean Louis,
I changed the subject.
This is an answer to:
https://lists.gnu.org/archive/html/help-gnu-emacs/2022-12/msg00575.html
I am getting errors.
When I run it in my default system I get this error in evince:
Unable to open document
“file:///home/edrx/tmp/Sunday-December-18-2022-19-08-23.pdf”.
File type empty document (application/x-zerosize) is not supported.
and when I run it in an emacs -Q I get this lisp error:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
call-process-region(nil nil "paps" t (t nil) nil "--format" "pdf"
"--landscape" "--title" "rcd-paps.el" "--header")
apply(call-process-region nil nil "paps" t (t nil) nil ("--format" "pdf"
"--landscape" "--title" "rcd-paps.el" "--header"))
where to "run it" means to run this:
http://angg.twu.net/elisp/rcd-paps.el
(find-wget-elisp "http://angg.twu.net/elisp/rcd-paps.el")
Thanks in advance!
Eduardo Ochs
http://angg.twu.net/eepitch.html
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: rcd-paps.el
2022-12-18 22:34 ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
@ 2022-12-19 12:50 ` Jean Louis
0 siblings, 0 replies; 44+ messages in thread
From: Jean Louis @ 2022-12-19 12:50 UTC (permalink / raw)
To: Eduardo Ochs; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
This package is not finished, find it attached if you wish to modify
or suggest things.
I use it in peculiar way:
M-x rcd-paps-buffer-to-pdf and
M-x rcd-paps-buffer-to-pdf-view
which anyway generates PDF file, and then I send PDF file for
printing.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
[-- Attachment #2: rcd-paps.el --]
[-- Type: text/plain, Size: 6962 bytes --]
;;; rcd-paps.el --- RCD PAPS Emacs Bindings to PAPS printing utilities
;; Copyright (C) 2021-2022 by Jean Louis
;; Author: Jean Louis <bugs@gnu.support>
;; Version: 0.1
;; Package-Requires: (rcd-utilities)
;; Keywords: tools
;; URL:
;; This file is not part of GNU Emacs.
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;; Change Log:
;;; Code:
(require 'rcd-utilities)
(defcustom rcd-paps-orientation nil
"Page orientation. By default it is portrait, if TRUE, it will
be landscape"
:group 'rcd-paps
:type 'boolean)
(defcustom rcd-paps-columns 1
"Number of columns output"
:group 'rcd-paps
:type 'integer)
(defcustom rcd-paps-pdf-viewer "evince"
"PDF Viewer"
:group 'rcd-paps
:type 'string)
;; (defcustom rcd-paps-paper "evince"
;; "PDF Viewer"
;; :group 'rcd-paps
;; :type 'string)
(defcustom rcd-paps-output-directory (file-name-as-directory (getenv "HOME"))
"Default PAPS output directory."
:group 'rcd-paps
:type 'string)
;; Application Options:
;; --landscape Landscape output. (Default: portrait)
;; --columns=NUM Number of columns output. (Default: 1)
;; --font=DESC Set font. (Default: Monospace 12)
;; -o, --output=DESC Output file. (Default: stdout)
;; -v, --version Current version.
;; --rtl Do right-to-left text layout.
;; --justify Justify the layout.
;; --hyphens Show hyphens when wrapping.
;; --wrap=WRAP Text wrapping mode [word, char, word-char]. (Default: word-char)
;; --show-wrap Show characters for wrapping.
;; --paper=PAPER Set paper size [legal, letter, a3, a4]. (Default: a4)
;; --gravity=GRAVITY Base glyph rotation [south, west, north, east, auto]. (Defaut: auto)
;; --gravity-hint=HINT Base glyph orientation [natural, strong, line]. (Default: natural)
;; --format=FORMAT Set output format [pdf, svg, ps]. (Default: ps)
;; --bottom-margin=NUM Set bottom margin in postscript point units (1/72 inch). (Default: 36)
;; --top-margin=NUM Set top margin. (Default: 36)
;; --right-margin=NUM Set right margin. (Default: 36)
;; --left-margin=NUM Set left margin. (Default: 36)
;; --gutter-width=NUM Set gutter width. (Default: 40)
;; --header Draw page header for each page.
;; --footer Draw page footer for each page.
;; --title=TITLE Title string for page header (Default: filename/stdin).
;; --header-left=HEADER_LEFT Left side of the header. Default is localized date.
;; --header-center=HEADER_CENTER Center side of the header. Default is localized date.
;; --header-right=HEADER_RIGHT Right side of the header. Default is localized date.
;; --markup Interpret input text as pango markup.
;; --encoding=ENCODING Assume encoding of input text. (Default: UTF-8)
;; --lpi=REAL Set the amount of lines per inch.
;; --cpi=REAL Set the amount of characters per inch.
;; --g-fatal-warnings=REAL Make all glib warnings fatal.
(defun rcd-paps-process (text &optional format title &rest args)
(let* ((format (or format "pdf"))
(title (cond (title title)
(current-prefix-arg (rcd-ask-get "Title: "))
(t (buffer-name))))
(length (length title))
(orientation (cond (rcd-paps-orientation "--landscape")
(current-prefix-arg (when (y-or-n-p "Do you wish to use landscape? ")
"--landscape"))))
(max 45)
(title (if (> length max) (substring title 0 max) title)))
(apply 'rcd-command-output-from-input "paps" text "--format" format "--title" title "--header"
(format "--columns=%d"
(cond (current-prefix-arg (rcd-ask-number "Columns: "))
(t rcd-paps-columns)))
(cond (orientation (append (list "--landscape") args))
(t args)))))
(defun rcd-paps-text-to-pdf (text &optional file-name title)
(let* ((output (rcd-paps-process text "pdf" title))
(file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (rcd-ask "File name without .pdf extension: ") ".pdf"))))
(string-to-file-force output file-name)))
(defun rcd-paps-buffer-to-pdf ()
(interactive)
(let ((output (rcd-paps-process-buffer))
(file-name (rcd-temp-file-name nil "pdf")))
(prog1
(string-to-file-force output file-name)
(rcd-message "PDF: %s" file-name))))
(defun rcd-paps-buffer-to-pdf-view ()
(interactive)
(start-process rcd-paps-pdf-viewer rcd-paps-pdf-viewer rcd-paps-pdf-viewer (rcd-paps-buffer-to-pdf)))
(defun rcd-paps-region-to-pdf ()
(interactive)
(let ((output (rcd-paps-process-region))
(file-name (rcd-temp-file-name nil "pdf")))
(prog1
(string-to-file-force output file-name)
(rcd-message "PDF: %s" file-name))))
(defun rcd-paps-region-to-pdf-view ()
(interactive)
(start-process rcd-paps-pdf-viewer rcd-paps-pdf-viewer rcd-paps-pdf-viewer (rcd-paps-region-to-pdf)))
(defun rcd-paps-process-region (&rest args)
(let ((text (rcd-region-string)))
(when text
(apply 'rcd-paps-process text args))))
(defun rcd-paps-process-buffer (&rest args)
(let ((text (buffer-substring-no-properties (point-min) (point-max))))
(apply 'rcd-paps-process text args)))
(defun rcd-paps-print-buffer ()
(interactive)
(let* ((file-name (concat (buffer-name) ".pdf"))
(file (read-file-name "File name: " rcd-paps-output-directory nil nil file-name))
(output (rcd-paps-process-buffer)))
(string-to-file-force output file)
(message "Buffer printed to `%s'" file)))
(defun rcd-export-pdf ()
(interactive)
(let* ((type "pdf")
(file (concat rcd-paps-output-directory (buffer-name) "." type))
(output (x-export-frames nil (intern type))))
(string-to-file-force output file)
(message "Buffer printed to `%s'" file)))
(defun rcd-paps-config-paper ()
(interactive)
(let ((paper (rcd-choose '("legal" "letter" "a3" "a4") "Configure `paps' paper size: " nil "a4")))
(customize-set-value rcd-paps-paper paper)))
(provide 'rcd-paps)
;;; rcd-paps.el ends here
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:00 ` Jean Louis
2022-12-17 9:29 ` Michael Heerdegen
2022-12-18 8:04 ` Eduardo Ochs
@ 2022-12-18 12:06 ` Gottfried
2022-12-18 17:20 ` Jean Louis
2 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-18 12:06 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 4826 bytes --]
Hi Jean,
I installed paps with my System GNU Guix
and I copied
........................................
(defun rcd-command-output-from-input (program input &rest args)
> "Return output string from PROGRAM with given INPUT string and
optional ARGS."
> (let* ((output (with-temp-buffer
> (insert input)
> (apply #'call-process-region nil nil program t '(t nil) nil args)
> (buffer-string))))
> output))
(defun rcd-paps-process (text &optional format title &rest args)
> (let* ((format (or format "pdf"))
> (title (or title (buffer-name)))
> (length (length title))
> (max 45)
> (title (if (> length max) (substring title 0 max) title)))
> (apply 'rcd-command-output-from-input "paps" text "--format"
format "--landscape" "--title" title "--header" args)))
>
> (defun string-to-file-force (string file)
> "Prints string into file, matters not if file exists. Return FILE
as file name."
> (with-temp-file file
> (insert string))
> file)
>
> (defun rcd-paps-text-to-pdf (text &optional file-name title)
> (let* ((output (rcd-paps-process text "pdf" title))
> (file-name (or file-name (concat (file-name-as-directory (getenv
"HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
> (string-to-file-force output file-name)))
>
> (defun rcd-paps-buffer-to-pdf-view ()
> (interactive)
> (let ((output (rcd-paps-process-buffer))
> (file-name (rcd-temp-file-name nil "pdf")))
> (sleep-for 1)
> (start-process "evince" nil "evince" (string-to-file-force
output file-name))))
..........................................
into my init.el file
How does now the program paps find my printer?
because when I wanted to print something it says
"kein voreingestelltes Ziel/No preset destination
What else do I have to do?
Do I have to install pags in emacs?
Do I have to add something in my init.el file to find the printer?
Sorry, but I am learning
thanks for help
Gottfried
Am 17.12.22 um 10:00 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
>> Hallo,
>> ich wollte einen Puffer ausdrucken (das erste Mal)
>> und es gab diese Fehlermeldung:
>
> So far best tool to print Emacs buffers that I have found is the
> command `paps' as it supports correctly Unicode, also emoticons. Thus
> you may try by installing `paps' tool from your Operating System
> distribution.
>
> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
> Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
> aus Ihrer Betriebssystemverteilung installieren.
>
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
>
> Ich verwende folgende Funktionen:
>
> (defun rcd-command-output-from-input (program input &rest args)
> "Return output string from PROGRAM with given INPUT string and optional ARGS."
> (let* ((output (with-temp-buffer
> (insert input)
> (apply #'call-process-region nil nil program t '(t nil) nil args)
> (buffer-string))))
> output))
>
> I am too often using landscape, you can adjust it for your needs.
>
> (defun rcd-paps-process (text &optional format title &rest args)
> (let* ((format (or format "pdf"))
> (title (or title (buffer-name)))
> (length (length title))
> (max 45)
> (title (if (> length max) (substring title 0 max) title)))
> (apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))
>
> (defun string-to-file-force (string file)
> "Prints string into file, matters not if file exists. Return FILE as file name."
> (with-temp-file file
> (insert string))
> file)
>
> (defun rcd-paps-text-to-pdf (text &optional file-name title)
> (let* ((output (rcd-paps-process text "pdf" title))
> (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
> (string-to-file-force output file-name)))
>
> (defun rcd-paps-buffer-to-pdf-view ()
> (interactive)
> (let ((output (rcd-paps-process-buffer))
> (file-name (rcd-temp-file-name nil "pdf")))
> (sleep-for 1)
> (start-process "evince" nil "evince" (string-to-file-force output file-name))))
>
> 😎
>
--
Kind regards
Gottfried
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Why is HTML email a security nightmare? See https://useplaintext.email/
Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-18 12:06 ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
@ 2022-12-18 17:20 ` Jean Louis
2022-12-19 13:49 ` Gottfried
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-18 17:20 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2022-12-18 15:37]:
> How does now the program paps find my printer?
Once you generate PDF, you may preview PDF files, right?
Then you do in shell
$ lpr Your-File.pdf
or if output is ".ps" then corresponding ps file.
or you print the PDF from PDF viewer.
> Do I have to install pags in emacs?
Did you get PDF preview?
paps is program you install yes, in your system distribution.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-18 17:20 ` Jean Louis
@ 2022-12-19 13:49 ` Gottfried
2022-12-19 17:19 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-19 13:49 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 844 bytes --]
Hi Jean,
how can I generate PDF?
I installed pdf-tools, but I don't know how to use it.
It said I should use
C-c C-c to change to this mode.
When I do C-c C-c it says:
undetermined keybinding.
So I don't know how to get into pdf-tools and how to generate a pdf.
Kind regards
Gottfried
Am 18.12.22 um 18:20 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-18 15:37]:
>> How does now the program paps find my printer?
>
> Once you generate PDF, you may preview PDF files, right?
>
> Then you do in shell
>
> $ lpr Your-File.pdf
>
> or if output is ".ps" then corresponding ps file.
>
> or you print the PDF from PDF viewer.
>
>> Do I have to install pags in emacs?
>
> Did you get PDF preview?
>
> paps is program you install yes, in your system distribution.
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-19 13:49 ` Gottfried
@ 2022-12-19 17:19 ` Jean Louis
2022-12-27 16:10 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
2022-12-27 16:39 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
0 siblings, 2 replies; 44+ messages in thread
From: Jean Louis @ 2022-12-19 17:19 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
> Hi Jean,
>
> how can I generate PDF?
With my package you have to use also:
GNU Emacs package: rcd-utilities.el :
https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
which is pretty personal utilities.
Then you do preview with rcd-paps.el by using:
M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
M-x rcd-paps-buffer-to-pdf
or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
for title, orientation and columns.
> I installed pdf-tools, but I don't know how to use it.
> It said I should use
>
> C-c C-c to change to this mode.
I do not know about pdf-tools.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs)
2022-12-19 17:19 ` Jean Louis
@ 2022-12-27 16:10 ` Gottfried
2022-12-27 17:35 ` Jean Louis
2022-12-27 16:39 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
1 sibling, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-27 16:10 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1116 bytes --]
Hi Jean,
I downloaded
rcd-utilities.el
and put it im my emacs directory in a sub-folder
after running
M-x rcd-paps-buffer-to-pdf-view
or
M-x rcd-paps-buffer-to-pdf
it said:
symbol’s function definition is void: rcd-paps-process-buffer
Where is my mistake?
Kind regards
Gottfried
Am 19.12.22 um 18:19 schrieb Jean Louis:
>
> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>> Hi Jean,
>>
>> how can I generate PDF?
>
> With my package you have to use also:
>
> GNU Emacs package: rcd-utilities.el :
> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
>
> which is pretty personal utilities.
>
> Then you do preview with rcd-paps.el by using:
>
> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
>
> M-x rcd-paps-buffer-to-pdf
>
> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
> for title, orientation and columns.
>
>> I installed pdf-tools, but I don't know how to use it.
>> It said I should use
>>
>> C-c C-c to change to this mode.
>
> I do not know about pdf-tools.
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
2022-12-19 17:19 ` Jean Louis
2022-12-27 16:10 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
@ 2022-12-27 16:39 ` Gottfried
2022-12-27 16:47 ` Gottfried
1 sibling, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-27 16:39 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org, Jean Louis
[-- Attachment #1.1.1: Type: text/plain, Size: 1748 bytes --]
Hi Jean,
I tried to install rcd-utilities.el
with
M-x package-install-file RET rcd-utilities.el RET
I got this message
Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10’
\f
Compiling file
/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Tue
Dec 27 17:33:43 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’
rcd-utilities.el:108:44: Warning: file-directory-p called with 2 arguments,
but accepts only 1
In rcd-sql-current-weekday:
rcd-utilities.el:1073:60: Warning: reference to free variable ‘cf-db’
In read-from-buffer:
rcd-utilities.el:1180:27: Warning: Unused lexical variable
`my-buffer-kill-hook'
In rcd-uuid-p:
rcd-utilities.el:2692:37: Warning: reference to free variable
‘thing-at-point-uuid-regexp’
rcd-utilities.el:2707:1: Error: Symbol’s function definition is void:
rcd-my-home
Kind regards
Gottfried
Am 19.12.22 um 18:19 schrieb Jean Louis:
>
> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>> Hi Jean,
>>
>> how can I generate PDF?
>
> With my package you have to use also:
>
> GNU Emacs package: rcd-utilities.el :
> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
>
> which is pretty personal utilities.
>
> Then you do preview with rcd-paps.el by using:
>
> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
>
> M-x rcd-paps-buffer-to-pdf
>
> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
> for title, orientation and columns.
>
>> I installed pdf-tools, but I don't know how to use it.
>> It said I should use
>>
>> C-c C-c to change to this mode.
>
> I do not know about pdf-tools.
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
2022-12-27 16:39 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
@ 2022-12-27 16:47 ` Gottfried
2022-12-27 17:37 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-27 16:47 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org, Jean Louis
[-- Attachment #1.1.1: Type: text/plain, Size: 2143 bytes --]
Hi Jean,
> Error: Symbol’s function definition is void:
>> rcd-my-home
This is in rcd-my-home:
(defun rcd-my-home ()
"Return my home directory."
(file-name-as-directory (getenv "HOME")))
Kind regards
Gottfried
Am 27.12.22 um 17:39 schrieb Gottfried:
> Hi Jean,
>
> I tried to install rcd-utilities.el
> with
> M-x package-install-file RET rcd-utilities.el RET
>
> I got this message
>
> Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10’
> \f
> Compiling file
> /home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Tue
> Dec 27 17:33:43 2022
> Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’
> rcd-utilities.el:108:44: Warning: file-directory-p called with 2 arguments,
> but accepts only 1
>
> In rcd-sql-current-weekday:
> rcd-utilities.el:1073:60: Warning: reference to free variable ‘cf-db’
>
> In read-from-buffer:
> rcd-utilities.el:1180:27: Warning: Unused lexical variable
> `my-buffer-kill-hook'
>
> In rcd-uuid-p:
> rcd-utilities.el:2692:37: Warning: reference to free variable
> ‘thing-at-point-uuid-regexp’
> rcd-utilities.el:2707:1: Error: Symbol’s function definition is void:
> rcd-my-home
>
>
> Kind regards
>
> Gottfried
>
>
> Am 19.12.22 um 18:19 schrieb Jean Louis:
>>
>> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>>> Hi Jean,
>>>
>>> how can I generate PDF?
>>
>> With my package you have to use also:
>>
>> GNU Emacs package: rcd-utilities.el :
>> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
>>
>> which is pretty personal utilities.
>>
>> Then you do preview with rcd-paps.el by using:
>>
>> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
>>
>> M-x rcd-paps-buffer-to-pdf
>>
>> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
>> for title, orientation and columns.
>>
>>> I installed pdf-tools, but I don't know how to use it.
>>> It said I should use
>>>
>>> C-c C-c to change to this mode.
>>
>> I do not know about pdf-tools.
>>
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
2022-12-27 16:47 ` Gottfried
@ 2022-12-27 17:37 ` Jean Louis
2022-12-28 16:31 ` printing with paps Gottfried
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-27 17:37 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2022-12-27 19:48]:
> Hi Jean,
>
> > Error: Symbol’s function definition is void:
> > > rcd-my-home
>
>
> This is in rcd-my-home:
>
> (defun rcd-my-home ()
> "Return my home directory."
> (file-name-as-directory (getenv "HOME")))
Download latest version:
https://gnu.support/files/emacs/packages/rcd-utilities.el
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-27 17:37 ` Jean Louis
@ 2022-12-28 16:31 ` Gottfried
2022-12-30 14:26 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-28 16:31 UTC (permalink / raw)
To: Jean Louis, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1219 bytes --]
Hi Jean,
I downloaded the latest version of rcd-utilities
from
> https://gnu.support/files/emacs/packages/rcd-utilities.el
and after installing:
M-x package-install-file
I got the same message, but less mistakes as earlier
\f
Compiling file
/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Wed
Dec 28 17:16:54 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’
In rcd-sql-current-weekday:
rcd-utilities.el:1086:60: Warning: reference to free variable ‘cf-db’
In rcd-uuid-p:
rcd-utilities.el:2704:37: Warning: reference to free variable
‘thing-at-point-uuid-regexp’
rcd-utilities.el:2719:1: Error: Symbol’s function definition is void:
rcd-my-home
Kind regards
Gottfried
Am 27.12.22 um 18:37 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-27 19:48]:
>> Hi Jean,
>>
>>> Error: Symbol’s function definition is void:
>>>> rcd-my-home
>>
>>
>> This is in rcd-my-home:
>>
>> (defun rcd-my-home ()
>> "Return my home directory."
>> (file-name-as-directory (getenv "HOME")))
>
> Download latest version:
>
> https://gnu.support/files/emacs/packages/rcd-utilities.el
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-28 16:31 ` printing with paps Gottfried
@ 2022-12-30 14:26 ` Jean Louis
2022-12-31 12:09 ` Gottfried
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-30 14:26 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
Hello,
Here is the improved package and you may do your own customizations
for it.
GNU Emacs package: rcd-paps.el:
https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-paps-el-76862.html
1. Download new rcd-utilities.el from
https://gnu.support/files/emacs/packages/rcd-utilities.el
2. Install with M-x package-install-file
3. Download rcd-paps.el from https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
4. Install with M-x package-install-file
Then you can do following:
{M-x rcd-paps-buffer-to-pdf-view RET} to get instant preview of
buffer.
and setup your options by {M-x customize-group RET rcd-paps RET}
It will improve in future.
`paps` utility is excellent for reason that it will produce PDF, PS,
SVG and that it will incldue Unicode characters correctly together
with emoji. ☺️
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
P.S. When you see something like {M-x help} in curly brackets that is
GNU Hyperbole hyperlink that you may activate by M-RET provided you
installed GNU Hyperbole.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-30 14:26 ` Jean Louis
@ 2022-12-31 12:09 ` Gottfried
2022-12-31 22:53 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2022-12-31 12:09 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1879 bytes --]
Hi Jean,
thanks very much for your help.
When I downloaded the new rcd-utilities.el
and I tried to install it
it gave me less mistakes
but didn’t install it.
here the message:
...................................................
Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11’
\f
Compiling file
/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/rcd-utilities.el at Sat
Dec 31 12:50:45 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/’
In rcd-sql-current-weekday:
rcd-utilities.el:1087:60: Warning: reference to free variable ‘cf-db’
rcd-utilities.el:2720:1: Error: Symbol’s function definition is void:
rcd-my-home
...........................................................
after that I installed rcd-paps.el
and there were no messages of mistakes
This means that I can't use it yet.
Kind regards
Gottfried
Am 30.12.22 um 15:26 schrieb Jean Louis:
> Hello,
>
> Here is the improved package and you may do your own customizations
> for it.
>
> GNU Emacs package: rcd-paps.el:
> https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-paps-el-76862.html
>
> 1. Download new rcd-utilities.el from
> https://gnu.support/files/emacs/packages/rcd-utilities.el
>
> 2. Install with M-x package-install-file
>
> 3. Download rcd-paps.el from https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
>
> 4. Install with M-x package-install-file
>
> Then you can do following:
>
> {M-x rcd-paps-buffer-to-pdf-view RET} to get instant preview of
> buffer.
>
> and setup your options by {M-x customize-group RET rcd-paps RET}
>
> It will improve in future.
>
> `paps` utility is excellent for reason that it will produce PDF, PS,
> SVG and that it will incldue Unicode characters correctly together
> with emoji. ☺️
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-31 12:09 ` Gottfried
@ 2022-12-31 22:53 ` Jean Louis
2022-12-31 23:46 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-31 22:53 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2022-12-31 15:11]:
> Hi Jean,
>
> thanks very much for your help.
>
> When I downloaded the new rcd-utilities.el
> and I tried to install it
> it gave me less mistakes
> but didn’t install it.
>
> here the message:
> ...................................................
> Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11’
> \f
> Compiling file
> /home/gfp/.config/emacs/elpa/rcd-utilities-2.11/rcd-utilities.el at Sat Dec
> 31 12:50:45 2022
> Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/’
>
> In rcd-sql-current-weekday:
> rcd-utilities.el:1087:60: Warning: reference to free variable ‘cf-db’
> rcd-utilities.el:2720:1: Error: Symbol’s function definition is void:
> rcd-my-home
> ...........................................................
I have removed it the stuff that bothered, now it should work.
And I really hope you will start producing beautiful PDFs.
Frohes neues Jahr
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-31 22:53 ` Jean Louis
@ 2022-12-31 23:46 ` Jean Louis
2023-01-01 14:24 ` Gottfried
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2022-12-31 23:46 UTC (permalink / raw)
To: Gottfried, help-gnu-emacs@gnu.org
Look at GNU/Emacs TUTORIAL generated by using RCD Paps package as PDF file:
https://gnu.support/files/emacs/packages/rcd-paps/2023-01-01-02:42:51.pdf
Here are instructions how to customize headers and footer:
https://github.com/dov/paps/issues/30
They all take a string that is based on python f-strings. I have
defined the following variable that may be used in the definitions of
the headers:
path - The complete path of the file being printed
filename - The basename (without directory) of the file being printed
mtime - The file's modification time
now - The current time
num_pages - The total number of pages in the document
page_idx - The current page being printed
Here is an example of how it may be used:
paps --header-left="{now:%Y-%m-%d %H:%M}" --header-center="{filename}" --header-right="Page {page_idx:02d}/{num_pages:02d}" --header -o hello.pdf paps.cc
I will work on easier customization of header and footer.
It is so important to be able to generate PDF files for even simple text.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2022-12-31 23:46 ` Jean Louis
@ 2023-01-01 14:24 ` Gottfried
2023-01-01 14:53 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2023-01-01 14:24 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org, Jean Louis
[-- Attachment #1.1.1: Type: text/plain, Size: 1706 bytes --]
Hi Jean,
thanks for help
I installed the new version 2.11 and deleted the version 2.10
I opened a text file
and wanted to print it
with
M-x rcd-paps-buffer-to-pdf-view RET
it gave me the answer
Symbol’s function definition is void: rcd-paps-process-buffer
and in the menu until now there is no change. The new more detailed
options for printing (AFAIU) did never appear.
I don't know where the problem lies???
So I didn't to the point of customizing rcd-utilities yet.
Kind regards
Gottfried
Am 01.01.23 um 00:46 schrieb Jean Louis:
> Look at GNU/Emacs TUTORIAL generated by using RCD Paps package as PDF file:
> https://gnu.support/files/emacs/packages/rcd-paps/2023-01-01-02:42:51.pdf
>
> Here are instructions how to customize headers and footer:
> https://github.com/dov/paps/issues/30
>
> They all take a string that is based on python f-strings. I have
> defined the following variable that may be used in the definitions of
> the headers:
>
> path - The complete path of the file being printed
> filename - The basename (without directory) of the file being printed
> mtime - The file's modification time
> now - The current time
> num_pages - The total number of pages in the document
> page_idx - The current page being printed
>
> Here is an example of how it may be used:
>
> paps --header-left="{now:%Y-%m-%d %H:%M}" --header-center="{filename}" --header-right="Page {page_idx:02d}/{num_pages:02d}" --header -o hello.pdf paps.cc
>
> I will work on easier customization of header and footer.
>
> It is so important to be able to generate PDF files for even simple text.
>
>
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-01 14:24 ` Gottfried
@ 2023-01-01 14:53 ` Jean Louis
0 siblings, 0 replies; 44+ messages in thread
From: Jean Louis @ 2023-01-01 14:53 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2023-01-01 17:24]:
> I installed the new version 2.11 and deleted the version 2.10
>
> I opened a text file
> and wanted to print it
> with
> M-x rcd-paps-buffer-to-pdf-view RET
>
> it gave me the answer
>
> Symbol’s function definition is void: rcd-paps-process-buffer
OK, I have polished it, and tested it with Emacs -Q:
Download latest RCD Utilities 2.12:
https://gnu.support/files/emacs/packages/rcd-utilities.el
Download latest RCD paps 0.3:
https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
and I hope it will work.
New settings I did is for header and footer to have it easier, there
is completion choice, for:
header -- left, center, right
and
footer -- left, center, right
there will be completion choices like:
- current full file name
- current file name without directory
- EMPTY -- if you wish one of those fields to be empty, choose EMPTY,
so "EMPTY" as word cannot be part of header and footer.
- Page {page_idx:02d}/{num_pages:02d} -- you can customize this to be
for example "Seite {page_idx:02d} von {num_pages:02d}"
- Modified time and date {mtime:%Y-%m-%d %H:%M} -- but now I remember
I did not program it, must program it to detect modified time
through Emacs.
- Current time and date: {now:%Y-%m-%d %H:%M}, which you may customize
how you wish and want.
- Number of pages: {num_pages:02d}
- Page number: {page_idx:02d}
And you can customize it yourself. If you happen to have problem to
insert space, use C-q SPC to insert it.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* printing with paps
@ 2023-01-02 11:07 Gottfried
2023-01-05 8:54 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2023-01-02 11:07 UTC (permalink / raw)
To: Jean Louis, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1416 bytes --]
Hi Jean,
I installed the new rcd-utilities.el and rcd-paps.el
Warning (comp): rcd-utilities.el:2087:57: Warning: the function
‘rcd-asciidoctor-preview’ is not known to be defined. Disable showing
Disable logging
Warning (comp): rcd-utilities.el:2086:54: Warning: the function
‘rcd-asciidoc-preview’ is not known to be defined. Disable showing
Disable logging
Warning (comp): rcd-utilities.el:2041:25: Warning: the function
‘prop-match-end’ is not known to be defined. Disable showing Disable logging
Warning (comp): rcd-utilities.el:2040:27: Warning: the function
‘prop-match-beginning’ is not known to be defined. Disable showing
Disable logging
Warning (comp): rcd-utilities.el:285:10: Warning: the function
‘prop-match-value’ is not known to be defined. Disable showing Disable
logging
Warning (comp): rcd-utilities.el:283:33: Warning: the function
‘text-property-search-forward’ is not known to be defined. Disable
showing Disable logging
when I am doing a
M-x rcd-paps-buffer-to-pdf-view
answer
symbol's function definition is void rcd-paps-process-buffer
printing does not work and there are no additional options it the help
menu for printing.
May be I should leave it for now.
May be I make mistakes that it doesn’t work.???
I know too little about Emacs yet.
sincere thanks for your endeavour to help me.
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-02 11:07 Gottfried
@ 2023-01-05 8:54 ` Jean Louis
2023-01-05 19:12 ` andrés ramírez
` (2 more replies)
0 siblings, 3 replies; 44+ messages in thread
From: Jean Louis @ 2023-01-05 8:54 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2023-01-02 14:07]:
>
> Hi Jean,
>
> I installed the new rcd-utilities.el and rcd-paps.el
>
>
> Warning (comp): rcd-utilities.el:2087:57: Warning: the function
> ‘rcd-asciidoctor-preview’ is not known to be defined. Disable showing
> Disable logging
> Warning (comp): rcd-utilities.el:2086:54: Warning: the function
> ‘rcd-asciidoc-preview’ is not known to be defined. Disable showing Disable
> logging
> Warning (comp): rcd-utilities.el:2041:25: Warning: the function
> ‘prop-match-end’ is not known to be defined. Disable showing Disable logging
> Warning (comp): rcd-utilities.el:2040:27: Warning: the function
> ‘prop-match-beginning’ is not known to be defined. Disable showing Disable
> logging
> Warning (comp): rcd-utilities.el:285:10: Warning: the function
> ‘prop-match-value’ is not known to be defined. Disable showing Disable
> logging
> Warning (comp): rcd-utilities.el:283:33: Warning: the function
> ‘text-property-search-forward’ is not known to be defined. Disable showing
> Disable logging
Those warnings will not influence you while using rcd-paps.el package.
> when I am doing a
> M-x rcd-paps-buffer-to-pdf-view
>
> answer
> symbol's function definition is void rcd-paps-process-buffer
Maybe you did not get really latest rcd-paps.el
https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
It is very useful tool to generate PDF out of any buffer of Emacs.
Another issue is that I use latest `paps' from:
dov/paps: A text to postscript converter through pango:
https://github.com/dov/paps
`paps' command as compared to GNU `a2ps' or `enscript' supports
Unicode and emoji out of box.
There is also basic markup that one can use:
Pango – 1.0: Text Attributes and Markup:
https://docs.gtk.org/Pango/pango_markup.html
theoretically is possible to write translator package to convert Emacs
Enriched mode, or any fontified Emacs buffer to pango markup and to
generate PDF files in colors.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-05 8:54 ` Jean Louis
@ 2023-01-05 19:12 ` andrés ramírez
2023-01-06 13:16 ` Jean Louis
2023-01-06 12:55 ` Gottfried
2023-01-06 13:45 ` Gottfried
2 siblings, 1 reply; 44+ messages in thread
From: andrés ramírez @ 2023-01-05 19:12 UTC (permalink / raw)
To: bugs, Gottfried, help-gnu-emacs@gnu.org
Hi.
>>>>> "Jean" == Jean Louis <bugs@gnu.support> writes:
[...]
Jean> theoretically is possible to write translator package to convert Emacs Enriched mode, or
Jean> any fontified Emacs buffer to pango markup and to generate PDF files in colors.
C-u M-x ps-print-buffer-with-faces. isn,t enough?
BR
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-05 8:54 ` Jean Louis
2023-01-05 19:12 ` andrés ramírez
@ 2023-01-06 12:55 ` Gottfried
2023-01-06 13:19 ` Jean Louis
2023-01-06 13:45 ` Gottfried
2 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2023-01-06 12:55 UTC (permalink / raw)
To: Jean Louis, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1385 bytes --]
Hi Jean,
I have got
rcd-paps 0.3
rcd-utilities 2,12 dependency
installed
I checked
https://github.com/dov/paps
and downloaded the zip file.
But how can I install it, because I unpacked it in the Download
directory, but there is no el. file so when I wanted to install it
the answer was there is no .el file.
How can I install it? May be I have it already installed,
but nevertheless I have problems to install such a package.
Which commands do I have to use?
thanks for help
Gottfried
Am 05.01.23 um 09:54 schrieb Jean Louis:
>
> Maybe you did not get really latest rcd-paps.el
> https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
>
> It is very useful tool to generate PDF out of any buffer of Emacs.
>
> Another issue is that I use latest `paps' from:
>
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
>
> `paps' command as compared to GNU `a2ps' or `enscript' supports
> Unicode and emoji out of box.
>
> There is also basic markup that one can use:
>
> Pango – 1.0: Text Attributes and Markup:
> https://docs.gtk.org/Pango/pango_markup.html
>
> theoretically is possible to write translator package to convert Emacs
> Enriched mode, or any fontified Emacs buffer to pango markup and to
> generate PDF files in colors.
>
--
Kind regards
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-06 12:55 ` Gottfried
@ 2023-01-06 13:19 ` Jean Louis
2023-01-07 12:51 ` Gottfried
0 siblings, 1 reply; 44+ messages in thread
From: Jean Louis @ 2023-01-06 13:19 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2023-01-06 15:56]:
> I checked
> https://github.com/dov/paps
>
> and downloaded the zip file.
I install that one like this:
$ git clone https://github.com/dov/paps.git
$ ./configure
or
$ ./configure --prefix=~/.local/share
$ make
$ make install
or as root:
# make install
or
$ sudo make install
> But how can I install it, because I unpacked it in the Download directory,
> but there is no el. file so when I wanted to install it
> the answer was there is no .el file.
They don't have .el files, paps author is different, I am different,
but you are right, I could ask him to include the package later.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-06 13:19 ` Jean Louis
@ 2023-01-07 12:51 ` Gottfried
2023-01-07 17:18 ` Jean Louis
0 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2023-01-07 12:51 UTC (permalink / raw)
To: Jean Louis, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1970 bytes --]
Hi Jean,
I successfully downloaded paps with
git,
but I had to install git first.
-----------------------------------------------------------
gfp@Tuxedo ~$ git clone https://github.com/dov/paps.git
Klone nach 'paps'...
remote: Enumerating objects: 551, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 551 (delta 41), reused 51 (delta 24), pack-reused 470
Empfange Objekte: 100% (551/551), 364.55 KiB | 434.00 KiB/s, fertig.
Löse Unterschiede auf: 100% (315/315), fertig.
---------------------------------------------------------------------
there are som many git packages, which one are still useful to install?
----------------------------------------------------------------------
I am using "GNU Guix" as my OS distro.
-------------------------------------------------------------
I copied the downloaded directory "pags" into my emacs directory, where
emacs is installed.
In my case:
/gfp/.config/emacs/elpa/
----------------------------------------------------------
But now I didn't manage to install it.
which are the commands?
Those you proposed didn't work.
May be Guix (based on Guile, Scheme, Lisp) is different.
Earlier on I installed paps through Guix System.
The command:
paps --help
worked already earlier in my terminal
But still I can't print with paps
Kind regards
Gottfried
--------------------------------------------------------------
Am 06.01.23 um 14:19 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2023-01-06 15:56]:
>> I checked
>> https://github.com/dov/paps
>>
>> and downloaded the zip file.
>
> I install that one like this:
>
> $ git clone https://github.com/dov/paps.git
> $ ./configure
>
> or
>
> $ ./configure --prefix=~/.local/share
>
> $ make
> $ make install
>
> or as root:
>
> # make install
>
> or
>
> $ sudo make install
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-07 12:51 ` Gottfried
@ 2023-01-07 17:18 ` Jean Louis
0 siblings, 0 replies; 44+ messages in thread
From: Jean Louis @ 2023-01-07 17:18 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2023-01-07 15:51]:
> I successfully downloaded paps with
> git,
> but I had to install git first.
Of course.
> -----------------------------------------------------------
> gfp@Tuxedo ~$ git clone https://github.com/dov/paps.git
> Klone nach 'paps'...
> remote: Enumerating objects: 551, done.
> remote: Counting objects: 100% (81/81), done.
> remote: Compressing objects: 100% (55/55), done.
> remote: Total 551 (delta 41), reused 51 (delta 24), pack-reused 470
> Empfange Objekte: 100% (551/551), 364.55 KiB | 434.00 KiB/s, fertig.
> Löse Unterschiede auf: 100% (315/315), fertig.
> ---------------------------------------------------------------------
>
> there are som many git packages, which one are still useful to
> install?
I would say try to focus getting printing done.
Software out there is so many, so always focus on what you really need
in your life.
Interest in software may waste decades of life, and you forget to do
your life.
> I am using "GNU Guix" as my OS distro.
I can't say that is distribution for beginners. There is also Guix
mailing list where you can write and ask for help on how to install
packages.
> I copied the downloaded directory "pags" into my emacs directory,
> where emacs is installed.
I do not know nothing about "pags" and maybe you meant "paps". But
that is not the way to install it.
I explained, you could install it in your home directory with
$ configure --prefix=~/.local/share
$ make
$ make install
> In my case:
>
> /gfp/.config/emacs/elpa/
> ----------------------------------------------------------
> But now I didn't manage to install it.
That is not place to install system command "paps". That is directory
which Emacs uses to install Emacs packages, but "paps" program is not
Emacs package. I have made Emacs package for it.
> Earlier on I installed paps through Guix System.
>
> The command:
>
> paps --help
>
> worked already earlier in my terminal
OK but that version may be outdated one.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-05 8:54 ` Jean Louis
2023-01-05 19:12 ` andrés ramírez
2023-01-06 12:55 ` Gottfried
@ 2023-01-06 13:45 ` Gottfried
2023-01-06 15:42 ` Jean Louis
2 siblings, 1 reply; 44+ messages in thread
From: Gottfried @ 2023-01-06 13:45 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org, Jean Louis
[-- Attachment #1.1.1: Type: text/plain, Size: 8924 bytes --]
Hi Jean,
here are all my packages installed in Emacs.
May be there is something missing.
dockerfile-mode 1.7 installed
Major mode for editing Docker's Dockerfiles
eev 20221204 installed
Support for e-scripts (eepitch blocks, elisp hyperlinks, etc)
ef-themes 0.10.0 installed
Colorful and legible themes
htmlize 1.57 installed
Convert buffer text and decorations to HTML.
pdf-tools 1.0.0 installed
Support library for PDF documents
rcd-paps 0.3 installed
RCD PAPS Emacs Bindings to PAPS printing utilities
scanner 0.2 installed
Scan documents and images
dash 2.19.1 dependency A
modern list library for Emacs
rcd-utilities 2.12 dependency
RCD utilities for GNU Emacs Lisp
tablist 1.0 dependency
Extended tabulated-list-mode
allout 2.3 built-in
extensive outline mode for use alone and with other modes
allout-widgets 1.0 built-in
Visually highlight allout outline structure.
ansi-color 3.4.2 built-in
translate ANSI escape sequences into faces
antlr-mode 2.2.3 built-in
major mode for ANTLR grammar files
auth-source-pass 5.0.0 built-in
Integrate auth-source with password-store
backtrace 1.0 built-in
generic major mode for Elisp backtraces
cc-mode 5.33.1 built-in
major mode for editing C and similar languages
cedet 2.0 built-in
Setup CEDET environment
cfengine 1.4 built-in
mode for editing Cfengine files
cl-generic 1.0 built-in
CLOS-style generic functions for Elisp
cl-lib 1.0 built-in
Common Lisp extensions for Emacs
cl-print 1.0 built-in
CL-style generic printing
ebnf2ps 4.4 built-in
translate an EBNF to a syntactic chart on PostScript
ede 1.2 built-in
Emacs Development Environment gloss
ediff 2.81.6 built-in a
comprehensive visual interface to diff & patch
eieio 1.4 built-in
Enhanced Implementation of Emacs Interpreted Objects
eieio-core 1.4 built-in
Core implementation for eieio
eldoc 1.11.0 built-in
Show function arglist or variable docstring in echo area
epg 1.0.0 built-in
the EasyPG Library
erc 5.4 built-in
An Emacs Internet Relay Chat client
eshell 2.4.2 built-in
the Emacs command shell
faceup 0.0.6 built-in
Markup language for faces and font-lock regression testing
feedmail 11 built-in
assist other email packages to massage outgoing messages
find-cmd 0.6 built-in
Build a valid find(1) command with sexps
flymake 1.2.2 built-in A
universal on-the-fly syntax checker
flymake-proc 1.0 built-in
Flymake backend for external tools
foldout 1.10 built-in
folding extensions for outline-mode and outline-minor-mode
gnus 5.13 built-in a
newsreader for GNU Emacs
htmlfontify 0.21 built-in
htmlize a buffer/source tree with optional hyperlinks
idlwave 6.1.22 built-in
IDL editing mode for GNU Emacs
image-dired 0.4.11 built-in
use dired to browse and manipulate your images
info-xref 3 built-in
check external references in an Info document
isearchb 1.5 built-in a
marriage between iswitchb and isearch
js 9 built-in
Major mode for editing JavaScript
json 1.5 built-in
JavaScript Object Notation parser / generator
jsonrpc 1.0.14 built-in
JSON-RPC library
let-alist 1.0.6 built-in
Easily let-bind values of an assoc-list by their names
map 3.2.1 built-in
Map manipulation functions
meta-mode 1.0 built-in
major mode for editing Metafont or MetaPost sources
mh-e 8.6snapshot built-in
GNU Emacs interface to the MH mail system
mixal-mode 0.4 built-in
Major mode for the mix asm language.
nadvice 1.0 built-in
Light-weight advice primitives for Elisp functions
ntlm 2.1.0 built-in
NTLM (NT LanManager) authentication support
org 9.5.5 built-in
Outline-based notes management and organizer
package 1.1.0 built-in
Simple package system for Emacs
printing 6.9.3 built-in
printing utilities
project 0.8.1 built-in
Operations on the current project
ps-mode 1.1.9 built-in
PostScript mode for GNU Emacs
ps-print 7.3.5 built-in
print text from the buffer as PostScript
pulse 1.0 built-in
Pulsing Overlays
python 0.28 built-in
Python's flying circus support for Emacs
ruby-mode 1.2 built-in
Major mode for editing Ruby files
semantic 2.2 built-in
Semantic buffer evaluator.
seq 2.23 built-in
Sequence manipulation functions
so-long 1.1.2 built-in
Say farewell to performance problems with minified code.
soap-client 3.2.0 built-in
Access SOAP web services
sql 3.6 built-in
specialized comint.el for SQL interpreters
srecode 1.2 built-in
Semantic buffer evaluator.
svg 1.1 built-in
SVG image creation functions
tabulated-list 1.0 built-in
generic major mode for tabulated lists
thunk 1.0 built-in
Lazy form evaluation
tildify 4.6.1 built-in
adding hard spaces into texts
tramp 2.5.3.28.2 built-in
Transparent Remote Access, Multiple Protocol
vera-mode 2.28 built-in
major mode for editing Vera files
verilog-mode 2021.9.23.89128420 built-in
major mode for editing verilog source in Emacs
viper 3.14.2 built-in A
full-featured Vi emulator for Emacs
whitespace 13.2.2 built-in
minor mode to visualize TAB, (HARD) SPACE, NEWLINE
xref 1.3.0 built-in
Cross-referencing commands
sql-cassandra 0.2.2 incompat gnu
Cassandra support for sql.el
Kind regards
Gottfried
Am 05.01.23 um 09:54 schrieb Jean Louis:
>
> Maybe you did not get really latest rcd-paps.el
> https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
>
> It is very useful tool to generate PDF out of any buffer of Emacs.
>
> Another issue is that I use latest `paps' from:
>
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
>
> `paps' command as compared to GNU `a2ps' or `enscript' supports
> Unicode and emoji out of box.
>
> There is also basic markup that one can use:
>
> Pango – 1.0: Text Attributes and Markup:
> https://docs.gtk.org/Pango/pango_markup.html
>
> theoretically is possible to write translator package to convert Emacs
> Enriched mode, or any fontified Emacs buffer to pango markup and to
> generate PDF files in colors.
>
-
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: printing with paps
2023-01-06 13:45 ` Gottfried
@ 2023-01-06 15:42 ` Jean Louis
0 siblings, 0 replies; 44+ messages in thread
From: Jean Louis @ 2023-01-06 15:42 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs@gnu.org
* Gottfried <gottfried@posteo.de> [2023-01-06 16:46]:
> Hi Jean,
>
> here are all my packages installed in Emacs.
>
> May be there is something missing.
Nothing is missing.
You need to have paps command first, and I use that one from
Github, I gave you instructions how to download and install it. It
needs system administrator rights `root' or you install it in your
$HOME directory, like in ~/.local/share
If you have paps command, you can write in terminal
$ paps --help
and you will get this output, then let me know if it works, that is first.
Usage:
paps [OPTION…] [text file]
Help Options:
-h, --help Show help options
Application Options:
--landscape Landscape output. (Default: portrait)
--columns=NUM Number of columns output. (Default: 1)
--font=DESC Set font. (Default: Monospace 12)
-o, --output=DESC Output file. (Default: stdout)
-v, --version Current version.
--rtl Do right-to-left text layout.
--separation-lines Do draw separation lines between columns and headers and footers.
--justify Justify the layout.
--hyphens Show hyphens when wrapping.
--wrap=WRAP Text wrapping mode [word, char, word-char]. (Default: word-char)
--show-wrap Show characters for wrapping.
--paper=PAPER Set paper size [legal, letter, a3, a4]. (Default: a4)
--gravity=GRAVITY Base glyph rotation [south, west, north, east, auto]. (Defaut: auto)
--gravity-hint=HINT Base glyph orientation [natural, strong, line]. (Default: natural)
--format=FORMAT Set output format [pdf, svg, ps]. (Default: ps)
--bottom-margin=NUM Set bottom margin in postscript point units (1/72 inch). (Default: 36)
--top-margin=NUM Set top margin. (Default: 36)
--right-margin=NUM Set right margin. (Default: 36)
--left-margin=NUM Set left margin. (Default: 36)
--gutter-width=NUM Set gutter width. (Default: 40)
--header Draw page header for each page.
--footer Draw page footer for each page.
--title=TITLE Title string for page header (Default: filename/stdin).
--header-left=HEADER_LEFT Left side of the header. Default is localized date.
--header-center=HEADER_CENTER Center side of the header. Default is localized date.
--header-right=HEADER_RIGHT Right side of the header. Default is localized date.
--footer-left=FOOTER_LEFT Left side of the footer. Default is localized date.
--footer-center=FOOTER_CENTER Center side of the footer. Default is localized date.
--footer-right=FOOTER_RIGHT Right side of the footer. Default is localized date.
--markup Interpret input text as pango markup.
--encoding=ENCODING Assume encoding of input text. (Default: UTF-8)
--lpi=REAL Set the amount of lines per inch.
--cpi=REAL Set the amount of characters per inch.
--g-fatal-warnings=REAL Make all glib warnings fatal.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 44+ messages in thread
end of thread, other threads:[~2023-01-07 17:18 UTC | newest]
Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-14 17:27 ` Philip Kaludercic
2022-12-16 15:27 ` printing Gottfried
2022-12-16 22:26 ` printing Michael Heerdegen
2022-12-17 6:29 ` printing tomas
2022-12-17 7:41 ` printing Emanuel Berg
2022-12-17 13:48 ` printing Gottfried
2022-12-17 16:30 ` printing tomas
2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
2022-12-17 9:00 ` Jean Louis
2022-12-17 9:29 ` Michael Heerdegen
2022-12-17 9:41 ` Jean Louis
2022-12-17 10:34 ` Michael Heerdegen
2022-12-17 10:39 ` Michael Heerdegen
2022-12-18 8:04 ` Eduardo Ochs
2022-12-18 17:18 ` Jean Louis
2022-12-18 22:34 ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
2022-12-19 12:50 ` rcd-paps.el Jean Louis
2022-12-18 12:06 ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-18 17:20 ` Jean Louis
2022-12-19 13:49 ` Gottfried
2022-12-19 17:19 ` Jean Louis
2022-12-27 16:10 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
2022-12-27 17:35 ` Jean Louis
2022-12-27 16:39 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
2022-12-27 16:47 ` Gottfried
2022-12-27 17:37 ` Jean Louis
2022-12-28 16:31 ` printing with paps Gottfried
2022-12-30 14:26 ` Jean Louis
2022-12-31 12:09 ` Gottfried
2022-12-31 22:53 ` Jean Louis
2022-12-31 23:46 ` Jean Louis
2023-01-01 14:24 ` Gottfried
2023-01-01 14:53 ` Jean Louis
-- strict thread matches above, loose matches on Subject: below --
2023-01-02 11:07 Gottfried
2023-01-05 8:54 ` Jean Louis
2023-01-05 19:12 ` andrés ramírez
2023-01-06 13:16 ` Jean Louis
2023-01-06 12:55 ` Gottfried
2023-01-06 13:19 ` Jean Louis
2023-01-07 12:51 ` Gottfried
2023-01-07 17:18 ` Jean Louis
2023-01-06 13:45 ` Gottfried
2023-01-06 15:42 ` Jean Louis
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.