[OS X TeX] Number of pages with AppleScript in TeXShop

Maarten Sneep maarten.sneep at xs4all.nl
Wed Oct 19 18:17:29 EDT 2005


On 19 Oct 2005, at 22:53, Peter Dyballa wrote:

> The sed expression s(ubstitutes) in a (with grep) given string,  
> that starts with %SourceDoc and ends in one or more spaces, that  
> string with nothing. So the rest of the line remains in the  
> variable sourcedoc.
>
> For example:
>
>     sourcedoc=`grep ^%SourceDoc "$frontdoc" | sed -e 's/^%SourceDoc  
> *//'`

Thanks, that was the kick I needed.

Maarten

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list