Wednesday, July 4, 2018

Re: hardcopy and double-spaced printing

> I would like to have hardcopy (printing) respect GUI Vim's linespace
> or some similar option in order to achieve double-spaced printing. Is
> there a way to do this?

you can use vim to generate the text file and use 'pandoc' to convert the text file to something publishable, like a PDF. pandoc accepts options to manage paper and font size and line spacing. see '$ man pandoc' or pandoc.org

pandoc seems to have a new feature where you can use a bunch of metadata to manage the options mentioned, see https://stackoverflow.com/questions/14883525/set-double-spacing-and-line-numbers-when-converting-from-markdown-to-pdf-with-pa#29643267 and its link to the 'YAML-header'

> The current alternative is to copy the text out of Vim (MacVim) and
> paste it into Microsoft Word, and then use their double-spacing
> feature.

that way it looks a practical workaround in the beginning, but it neglects the basic separation between vim as the text _editor_ and any publishing tool. just take the learning curve using vim for creating (eg.) markdown text files and pandoc to handle the publishing part -- each program for it's own specialties. (besides AFAIK vim has no 'linespace', its just the way it's put on the screen most comfortable)

> I would also be willing to use some kind of Vim command-line fu or
> postscript after-processing with Unix tools, if any of this is a
> possible solution. Is there some way to pass a simple arg to the
> postscript writer?

see 'pandoc'

//meine

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment