* printing with paps
@ 2023-01-02 11:07 Gottfried
2023-01-05 8:54 ` Jean Louis
0 siblings, 1 reply; 17+ 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] 17+ messages in thread
* Re: printing with paps
2023-01-02 11:07 printing with paps Gottfried
@ 2023-01-05 8:54 ` Jean Louis
2023-01-05 19:12 ` andrés ramírez
` (2 more replies)
0 siblings, 3 replies; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ messages in thread
* Re: printing with paps
2023-01-07 12:51 ` Gottfried
@ 2023-01-07 17:18 ` Jean Louis
0 siblings, 0 replies; 17+ 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] 17+ 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; 17+ 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] 17+ messages in thread
* Re: printing with paps
2023-01-06 13:45 ` Gottfried
@ 2023-01-06 15:42 ` Jean Louis
0 siblings, 0 replies; 17+ 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] 17+ messages in thread
* wie kann ich Emacs so einstellen, dass ich drucken kann
@ 2022-12-14 16:38 Gottfried
2022-12-17 9:00 ` Jean Louis
0 siblings, 1 reply; 17+ 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] 17+ 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-17 9:00 ` Jean Louis
2022-12-18 12:06 ` Gottfried
0 siblings, 1 reply; 17+ 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] 17+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-17 9:00 ` Jean Louis
@ 2022-12-18 12:06 ` Gottfried
2022-12-18 17:20 ` Jean Louis
0 siblings, 1 reply; 17+ 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] 17+ messages in thread
* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
2022-12-18 12:06 ` Gottfried
@ 2022-12-18 17:20 ` Jean Louis
2022-12-19 13:49 ` Gottfried
0 siblings, 1 reply; 17+ 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] 17+ 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; 17+ 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] 17+ 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:39 ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
0 siblings, 1 reply; 17+ 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] 17+ 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:39 ` Gottfried
2022-12-27 16:47 ` Gottfried
0 siblings, 1 reply; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ 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; 17+ 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] 17+ messages in thread
* Re: printing with paps
2023-01-01 14:24 ` Gottfried
@ 2023-01-01 14:53 ` Jean Louis
0 siblings, 0 replies; 17+ 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] 17+ messages in thread
end of thread, other threads:[~2023-01-07 17:18 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-02 11:07 printing with paps 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
-- strict thread matches above, loose matches on Subject: below --
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-17 9:00 ` Jean Louis
2022-12-18 12:06 ` 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: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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).