public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: "Yawar Amin" <yawar.amin@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Gvim Printing
Date: Tue, 11 Apr 2006 20:56:18 +0800	[thread overview]
Message-ID: <efc7f7d00604110556t5af7cb57mba9c27b570fb3589@mail.gmail.com> (raw)
In-Reply-To: <200604110436.k3B4aLjN004760@skyinet.net>

Hi all, sorry I inadverdently took this thread off the list!

On 4/11/06, I wrote:
> Peter,

> On 4/10/06, Peter <heisspf@skyinet.net> wrote:
>> Hi,
>>
>> How do I coerce gvim 6.3.86 to print letter size, page after page?
>>
>> At present only the first page is printed correctly after that for the second
>> and succeeding pages the page advance from the top of the page is much too
>> much so that the printed page does not fit the letter size paper. After
>> several pages the paper advance is then in the middle of the page. It is as
>> legal size would be printed on letter size paper and I have no legal size
>> setting.
>
> Are you able to do the printing with a more GUI-fied editor, like
> Gedit or Kate? If so they should be better at printing than Gvim. If
> not I recommend a2ps, which converts a lot of formats to PostScript,
> with `pretty-printing'. So if you're printing code it'll be formatted
> nicely, with keywords in bold, comments italicised, and so on. For
> plain text, it'll look fine too.
>
> $ a2ps file.txt -1 -o file.ps -M Letter
>
> converts the plain text file file.txt to a PostScript format file
> file.ps. Another example: I just used
>
> $ a2ps tex_fit1003_a1.tex -1 -o tex_fit1003_a1_source.ps -M A4 --delegate=0
>
> to pretty-print a LaTeX (plain text) source file into PS. If I didn't
> have --delegate=0, a2ps would have run LaTeX on the file and put the
> typeset document into the output PS file.
>
> The a2ps info file is very helpful, and I definitely recommend it
> because its output looks very nice, at least to my eyes.
>
>>
>> :help print
>> says
>> Note: If you are looking for a way to print your text
>> file, you need an external program for that.  In the
>
> Maybe they mean something like a2ps.

On 4/11/06, Peter <heisspf@skyinet.net> wrote:
> Thanks!
>
> I am aware that gvim is not necessarily made for good printing. I am using it
> to edit files mostly downloaded .html saved with lynx as .txt and since I am
> already in vim might as well print if file is not too long. I vaguely remember
> that some time ago it did print properly.
>
> Normally for my printing I am using the following command:
>
> /usr/bin/fmt -u --width=105 $1 | groff -ms | lpr
>
> That gives a nice print output, much better than gvim and fewer pages.
>
> I am using pretty-print through mpdist>mp which has mptool GUI to give print
> commands. I use it to print-out my mail.
>
> I will study a2ps.
>
> Regards
> --
> Peter
>
>


--
Yawar
Malaysia +60 (12) 918 6642
Bangladesh +880 (174) 614 754 or +880 (2) 882 1848 or +880 (175) 003
706 or +880 (189) 250 170
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

       reply	other threads:[~2006-04-11 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <efc7f7d00604101139k371bd1daoca8a326b3febed26@mail.gmail.com>
     [not found] ` <200604110436.k3B4aLjN004760@skyinet.net>
2006-04-11 12:56   ` Yawar Amin [this message]
2006-04-10  7:27 Gvim Printing Peter

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

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

  git send-email \
    --in-reply-to=efc7f7d00604110556t5af7cb57mba9c27b570fb3589@mail.gmail.com \
    --to=yawar.amin@gmail.com \
    --cc=linux-newbie@vger.kernel.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