[OS X TeX] trim a string
Alan Munn
amunn at gmx.com
Thu Apr 8 13:33:11 EDT 2010
On Apr 8, 2010, at 9:02 AM, RA Friedrich Vosberg wrote:
> Morning.
>
> I want to trim a string. Given is a macro that expands into a
> string, e.g. the path and name of a file (/Users/name/Documents/
> Clients/file.tex). I want to cut all characters on the left of /
> Documents.
>
\documentclass{article}
\usepackage{xstring}
\begin{document}
\def\tmp{/Users/Documents/files/myfile.tex}
\StrBehind{\tmp}{Users}
\end{document}
--
Alan Munn
amunn at gmx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20100408/b7b84cb4/attachment.html>
More information about the MacOSX-TeX
mailing list