> Bonjour,
>
> I want to use Vim to write a book, which means I periodically wish to
> print my WIP.
> Each Vim line is, in fact, a normal book paragraph, of course.
>
> My .vimrc file has these settings :
>
> set
> printoptions=paper:A4,portrait:y,duplex:long,wrap:y,number:y,syntax:n
> set printfont=Inconsolata:h13
>
> The results are, as you already guessed :
> - Vim line numbers : correctly adjusted on the left, no word wrapping
> underneath
> - Text wrapping : if it wraps, it is truncated, and it is not
> truncated only when it does not wrap
> - Plus, I have a little annoyance : the paragraphs (Vim lines) have no
> space to visually separate them ; I know the solution is to insert a
> blank line in between, but that messes up the numbering
>
> My questions :
>
> - Is it possible to have a word-wrap equivalent in the printing
> process (I read that part of the manual, and I know this is not a
> printoption) ? Btw, does Vim 7.3 solve this ?
> - Is it possible to have a bigger linespace "breathing" at the end of
> the Vim line ?
> - And a very secondary question : is it possible to print directly a
> booklet on a recto-verso A4, something like (in plain english) : print
> page 4, then page 1, duplex:short, then page 3, and finally page 2
> then repeat (increment 4) until you reach the end of the 500 pages
> masterpiece ... ? or must I use Acrobat to do this ?
>
> Thanks in advance
>
> ThG
>
One possibility (among several, I'm sure) would be to write your text in
HTML using Vim (wrapping each paragraph between <p> and </p>, which will
usually produce additional space between paragraphs) and then printing
in your browser. This way you can set any font (not only a monospace
one) and even justify the text, as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>This title will be displayed on top of browser windows</title>
<meta http-equiv="Content-Type" content="text/html, charset=utf-8">
<style type="text/css">
<!--
body
{ font-family: "Century Schoolbook", "Times New Roman", serif
; text-align: justify
}
h1, h2, h3
{ text-align: center
}
//-->
</style>
</head><body>
<h1>Here comes the title to be printed at the top of the document</h1>
<h2>Introduction</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2>First chapter: blah blah blah</h2>
<p>One advantage is that you can use all the HTML markup, for instance
<b>bold,</b> <i>italics,</i> <u>underlining</u>, <sub>subscripts</sub>,
<sup>superscripts</sup>, etc., even tables and pictures (which I'm not
going to detail here) in any combination (but with proper tag nesting),
for instance <b><i>bold italics</i></b> or <i>italic text with one
<u>underlined</u> italic word in the middle...</i></p>
</body></html>
Best regards,
Tony.
--
With every passing hour our solar system comes forty-three thousand
miles closer to globular cluster M13 in the constellation Hercules, and
still there are some misfits who continue to insist that there is no
such thing as progress.
-- Ransom K. Ferm
--
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
No comments:
Post a Comment