Re: [gedit-list] pdflatex



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]