unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Gottfried <gottfried@posteo.de>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: printing with paps
Date: Sun, 1 Jan 2023 02:46:40 +0300	[thread overview]
Message-ID: <Y7DJ4G6i1l0S7ffA@protected.localdomain> (raw)
In-Reply-To: <Y7C9aGc91aop7ioW@protected.localdomain>

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/



  reply	other threads:[~2022-12-31 23:46 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y7DJ4G6i1l0S7ffA@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=gottfried@posteo.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).