Re: [gedit-list] pdflatex
- From: Steve Frécinaux <nudrema gmail com>
- To: jkitz verizon net
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] pdflatex
- Date: Fri, 29 Jun 2007 21:42:52 +0200
On Fri, 2007-06-29 at 09:28 -0400, jkitz verizon net wrote:
> >pdffile=`echo $GEDIT_CURRENT_DOCUMENT_NAME | sed 's/tex$/pdf'`
> >evince "$pdffile"
>
> >or similar (the above quick hack would obviously just work if your file
> >has a .tex extension), but you get the idea
>
> That sed 's is a handy tool! (Just had to close it out with a /) Thank
> you for pointing me to it.
$ evince ${GEDIT_CURRENT_DOCUMENT_NAME%.tex}.pdf
> The 'texing and viewing now work, perhaps I
> can use sed to delete the .aux and .log files produced by latex?--I will
> work on that.
You can also have a look at the rubber package, which handles all this
by itself. Then, rubber --pdf $file and rubber --clean $file will do.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]