Comments (7)
That is more than great, in the next step I will test it and make Emacs Lisp package for Emacs buffer printing and previews.
from paps.
I have the same problem, I would like to configure header.
from paps.
Thanks for asking about this! So I made a first implementation of it, and pushed it as part of the forthcoming version 0.8. As part of the implementation I switched to C++17. I hope it doesn't annoy to many people.
I have added three new command line options to paps:
--header-left
- The left side of the header--header-center
- The center of the header--header-left
- The right side of the header
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 printedfilename
- The basename (without directory) of the file being printedmtime
- The file's modification timenow
- The current timenum_pages
- The total number of pages in the documentpage_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
Please let me know your feedback.
from paps.
Since this is a duplicate of #4 , I'll close this issue.
from paps.
That is great. I use paps
to make nice PDF printouts from Emacs buffers. It is very useful for reporting purposes.
I guess you have forgot to customize analogously the --footer
option.
Just that I cannot build it, neither configure
nor meson
works, you may see it in my other comment.
from paps.
That is great. I use
paps
to make nice PDF printouts from Emacs buffers. It is very useful for reporting purposes.I guess you have forgot to customize analogously the
--footer
option.Just that I cannot build it, neither
configure
normeson
works, you may see it in my other comment.
Note that I added footer as well, and fixed the compilation (I think). Did you have a chance to test it?
from paps.
For me it works very nice and very well.
GNU Emacs package: rcd-paps.el:
https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-paps-el-76862.html
from paps.
Related Issues (20)
- texttopaps (soft link to the paps) fails when invoking by cupsfilter HOT 1
- pango_attr_insert_hyphens_new HOT 3
- Meson based build doesn't deliver paps.1 man page HOT 2
- How to build? HOT 5
- Formatting for a given "chars x lines" layout requires extra effort
- Underlining/overstriking support?
- error: cannot recognize version marker HOT 7
- Wrap characters are not used when the --markup option is choosing
- Observing spacing on top and bottom of letters, can't make box tables HOT 4
- Add option --markup-monospace
- build on cygwin? HOT 15
- Cannot run ./configure in /src dir HOT 1
- Line 1470 of paps.cc is causing problems with output passed to ps2pdf HOT 2
- Separate processing messages from standard output HOT 2
- Emoji alignment incorrect
- Emoji not scaling well with increased font size HOT 1
- Unsupported mime type application/octet-stream when importing PDF to other application HOT 2
- FreeBSD: 0.8.0 fails to build (autoreconf) HOT 6
- FreeBSD: fails to build on i386 HOT 1
- If a Pango markup `<span>` spans two lines, `paps` throws two warnings and ignore that `<span>`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paps.