Wednesday, July 6, 2011

Re: printing/:hardcopy vs long lines (tw=0)

Reply to message «printing/:hardcopy vs long lines (tw=0)»,
sent 21:13:14 07 July 2011, Thursday
by lith:

You can try my format.vim[1] and its ability to create a LaTeX file. This is
similar to already suggested TOhtml solution, but people on #latex are much more
likely to know how to wrap on certain characters. Command to format file:
Format format latex-xcolor to file.tex
Then you will have to run
pdflatex file.tex
in shell, this will create file.pdf file which can be printed.

Note that you must do `:set background=light' before you run :Format (unless you
want to have a list with black background, of course).

[1] http://www.vim.org/scripts/script.php?script_id=3113

Original message:
> Hi,
>
> Sometime I set tw=0 and use linebreak + breakat to have the lines
> "softwrap" at certain characters. Unfortunately, :hardcopy seems to ignore
> the value of linebreak + breakat.
>
> Is there a way to make :hardcopy break long lines at the characters set in
> the breakat option?
>
> Regards,
> Tom

No comments: