On stardate Mon, 8 Apr 2002, [EMAIL PROTECTED] wrote:
>On Mon, 8 Apr 2002, Randy Kramer wrote:
>
>> > Michael Holt wrote:
>> > > I do have
>> > > another question; I've read books that say they've were written using vi
>> > > and I started wondering if you could actually apply fonts and control size
>> > > of fonts as well as italics, bold, etc. Is that possible? Does vi have
>> > > something built in that will allow you to format a document?
>>
>> AFAIK (and like J. Craig Woods said) there is nothing built into vi to
>> let you do those kind of things. I can imagine that someone who writes
>> a book in vi uses one of two approaches (or a combination of the two):
>>
>
>Not built in, true, but I do almost all my documentation in vi/TeX. One
>nice thing about vi is that you can filter sections of text through
>external programs, or read directly from the stdout of any program. This
>allows me to format a section of text by doing (trivial example):
>
> :10,50! fmt
>
>For TeX code I've created a bunch of little helper scripts to do things
>like plug in an image or format columns. E.g.:
>
>
> #/bin/sh
> # epsinsert
> GEOMETRY=`grep -A1 "% Image geometry" $1|tail -1`
> # echo $GEOMETRY
> WIDTH=`echo $GEOMETRY|cut -d' ' -f1`
> HEIGHT=`echo $GEOMETRY|cut -d' ' -f2`
>
> echo \\begin\{figure\}[label]
> echo \\centering
> echo \\includegraphics[height=${HEIGHT}pt,width=${WIDTH}pt]{$1}
> echo \\caption\{ CAPTION \}
> echo \\label\{label\}
> echo \\end\{figure\}
>
>This can be called with:
> :r! epsinsert images/somefile.eps
OK, that might have just left me a little behind; I'm going to do a search
on google for tex and I'll get back to you!
Mike :-)
--
Michael Holt
Kirkland, WA (o_
[EMAIL PROTECTED] (o_ (o_ //\
www.holt-tech.net (/)_ (/)_ V_/_ www.mandrake.com
============================================================<
Bad or missing mouse driver. Spank the cat? (Y/N)
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com