* printing
@ 2003-03-18 21:18 Kevin Reeder
0 siblings, 0 replies; 12+ messages in thread
From: Kevin Reeder @ 2003-03-18 21:18 UTC (permalink / raw)
Text printing runs the left most columns off of the page. From the command
line I can run say, pr -h "" -0 5 %s | lpr and get what I expect but
haven't had success within Emacs. I've toyed with various switches and
options in the WP-Lpr Group and still no good. Any tips?
Kevin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Printing
@ 2016-03-03 14:35 Sharon Kimble
2016-03-03 20:22 ` Printing tomas
2016-03-05 13:40 ` Printing Robert Thorpe
0 siblings, 2 replies; 12+ messages in thread
From: Sharon Kimble @ 2016-03-03 14:35 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
I have this set in my 'init.org' -
--8<---------------cut here---------------start------------->8---
printing with gtklp
#+begin_src emacs-lisp
(setq lpr-command "gtklp")
(setq ps-lpr-command "gtklp")
#+end_src
[2016-01-13 Wed 11:11]
http://emacs.stackexchange.com/questions/9363/how-to-specify-a-printer
--8<---------------cut here---------------end--------------->8---
But when I print a letter it comes out with a 'raw' look, and a not very
nice typeface.
But if I use 'prettyprint' the typeface looks smaller and more
attractive - but - it also prints a header showing the filename and the
date and time of printing, which is not what I want.
How then can I have a 'prettyprint' typeface but without the file header
of buffer and print date and time please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.3, fluxbox 1.3.7, emacs 25.0.92
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Printing
2016-03-03 14:35 Printing Sharon Kimble
@ 2016-03-03 20:22 ` tomas
2016-03-05 13:40 ` Printing Robert Thorpe
1 sibling, 0 replies; 12+ messages in thread
From: tomas @ 2016-03-03 20:22 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Mar 03, 2016 at 02:35:19PM +0000, Sharon Kimble wrote:
>
> I have this set in my 'init.org' -
>
> --8<---------------cut here---------------start------------->8---
> printing with gtklp
> #+begin_src emacs-lisp
> (setq lpr-command "gtklp")
> (setq ps-lpr-command "gtklp")
> #+end_src
> [2016-01-13 Wed 11:11]
> http://emacs.stackexchange.com/questions/9363/how-to-specify-a-printer
> --8<---------------cut here---------------end--------------->8---
I don't know very much about gtklp, but you could give
M-x customize-group RET Lpr RET
a try. There are some options there related to page headers. Perhaps
gtklp understands options in a compatible way to lpr.
hth
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlbYnQEACgkQBcgs9XrR2kb74QCfTPA29QUj8Dsz7t79DczTaTTt
GnQAmwbJpEckF9QivQZo2g3uAdRgoZE5
=7t8H
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Printing
2016-03-03 14:35 Printing Sharon Kimble
2016-03-03 20:22 ` Printing tomas
@ 2016-03-05 13:40 ` Robert Thorpe
1 sibling, 0 replies; 12+ messages in thread
From: Robert Thorpe @ 2016-03-05 13:40 UTC (permalink / raw)
To: Sharon Kimble; +Cc: help-gnu-emacs
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> But if I use 'prettyprint' the typeface looks smaller and more
> attractive - but - it also prints a header showing the filename and the
> date and time of printing, which is not what I want.
>
> How then can I have a 'prettyprint' typeface but without the file header
> of buffer and print date and time please?
I have been having problems with pretty-print recently too. I don't
know very much about how to customize it. It seems that not many other
people know much about it either because my questions have been
unanswered.
If I find out more I'll tell you.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ messages in thread
* Re: printing
2022-12-17 6:29 ` printing tomas
@ 2022-12-17 7:41 ` Emanuel Berg
0 siblings, 0 replies; 12+ messages in thread
From: Emanuel Berg @ 2022-12-17 7:41 UTC (permalink / raw)
To: help-gnu-emacs
tomas wrote:
>> Does the lpr command print outside of Emacs?
>
> This is the first I'd try, yes. In a console, do
>
> lpq -a
Here are the commands I accumulated during my printing days -
and while I miss those DAYS, it's not because they involved
printing stuff ;)
https://dataswamp.org/~incal/conf/.zsh/printers
https://dataswamp.org/~incal/conf/.zsh/printers-print
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: printing
@ 2022-12-17 12:31 Gottfried
2022-12-17 13:09 ` printing tomas
0 siblings, 1 reply; 12+ messages in thread
From: Gottfried @ 2022-12-17 12:31 UTC (permalink / raw)
To: michael_heerdegen, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1335 bytes --]
Hi,
My operating system in GNU Guix, it's not a normal linux distro.
> Does the lpr command print outside of Emacs?
I am not sure what you mean and how to do it.
I have cups installed.
I never printed with the terminal, so I don't know.
I tried it briefly with:
sudo cat my-file-to-print.txt > /dev/lp
but it didn't work.
basically my printer is working with cups installed,
and I even managed to print from emacs with my browser by that:
M-x htmlfontify-buffer
file:///home/gfp/testeev.txt
browse-url-of-file
thanks for help
Gottfried
Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: printing
Message-ID: <87a63nq928.fsf@web.de>
Content-Type: text/plain
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.
[-- 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] 12+ messages in thread
* Re: printing
2022-12-17 12:31 printing Gottfried
@ 2022-12-17 13:09 ` tomas
0 siblings, 0 replies; 12+ messages in thread
From: tomas @ 2022-12-17 13:09 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]
On Sat, Dec 17, 2022 at 12:31:25PM +0000, Gottfried wrote:
> Hi,
>
> My operating system in GNU Guix, it's not a normal linux distro.
>
> > Does the lpr command print outside of Emacs?
>
> I am not sure what you mean and how to do it.
>
> I have cups installed.
There is a compatibility package providing the command `lpr' for
cups. Under Debian, it is called cups-bsd. I don't know how to
find something equivalent under Guix, but the idea is to search
for a package providing an executable named lpr and somehow linked
to cups.
> I never printed with the terminal, so I don't know.
> I tried it briefly with:
> sudo cat my-file-to-print.txt > /dev/lp
>
> but it didn't work.
Those were the times :)
You have to find an executable named lpr which goes with your cups.
> basically my printer is working with cups installed,
> and I even managed to print from emacs with my browser by that:
These days the operating system is just a driver for the browser,
it seems ;-)
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 12+ 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; 12+ 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] 12+ messages in thread
* Re: printing
2022-12-17 13:48 ` printing Gottfried
@ 2022-12-17 16:30 ` tomas
0 siblings, 0 replies; 12+ messages in thread
From: tomas @ 2022-12-17 16:30 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
On Sat, Dec 17, 2022 at 01:48:02PM +0000, Gottfried wrote:
> 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
Aha :-)
> No I can print within emacs, at the moment with the menu: print
I think that was meant to be a "Now"? In that case, congrats!
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-12-17 16:30 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-17 12:31 printing Gottfried
2022-12-17 13:09 ` printing tomas
-- 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-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
2016-03-03 14:35 Printing Sharon Kimble
2016-03-03 20:22 ` Printing tomas
2016-03-05 13:40 ` Printing Robert Thorpe
2003-03-18 21:18 printing Kevin Reeder
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).