<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Morning.<div><br></div><div>Why does this macro not work?</div><div><br></div><div>Thanks in advance for your support!</div><div><br></div><div>Kind regards, Friedrich</div><div><br></div><div><div>%!TEX TS-program = fvfull</div><div>\documentclass{scrartcl}</div><div>\usepackage{xspace,xstring}</div><div>\begingroup </div><div>  \let\\\relax</div><div>  \immediate\write18{%</div><div>    pwd | sed -e 's/&/\\&/g' | iconv -f UTF-8-MAC -t MacRoman | awk</div><div>-F'\\n' '{%</div><div>      print"</div><div>        <a href="smb://begingroup">\\begingroup</a> </div><div>          <a href="smb://catcode/string^/string^60///string^/string^24=11//relax">\\catcode\string^\string^60\\\string^\string^24=11\\relax</a></div><div>          <a href="smb://catcode/string^/string^60///string^/string^26=11//relax">\\catcode\string^\string^60\\\string^\string^26=11\\relax</a></div><div>          \\newcommand\\fvpath{" $1 "\\xspace}\\relax</div><div>          <a href="smb://expandafter">\\expandafter</a></div><div>        <a href="smb://endgroup">\\endgroup</a></div><div>        <a href="smb://expandafter//newcommand">\\expandafter\\newcommand</a></div><div>        <a href="smb://expandafter//fvpath">\\expandafter\\fvpath</a></div><div>        <a href="smb://expandafter{//fvpath}//relax">\\expandafter{\\fvpath}\\relax</a></div><div>        <a href="smb://endinput">\\endinput</a>"</div><div>      }'</div><div>    > tmppath.tex%</div><div>  }</div><div>  \immediate\write18{%</div><div>    echo "\jobname" | sed -e 's/&/\\&/g' | iconv -f UTF-8-MAC -t</div><div>MacRoman | awk -F'\\n' '{%</div><div>      print"</div><div>        <a href="smb://begingroup">\\begingroup</a> </div><div>          <a href="smb://catcode/string^/string^60///string^/string^24=11//relax">\\catcode\string^\string^60\\\string^\string^24=11\\relax</a> </div><div>          <a href="smb://catcode/string^/string^60///string^/string^26=11//relax">\\catcode\string^\string^60\\\string^\string^26=11\\relax</a> </div><div>          \\newcommand\\fvfile{" $1 "\\xspace}\\relax </div><div>          <a href="smb://expandafter">\\expandafter</a></div><div>        <a href="smb://endgroup">\\endgroup</a> </div><div>        <a href="smb://expandafter//newcommand">\\expandafter\\newcommand</a> </div><div>        <a href="smb://expandafter//fvfile">\\expandafter\\fvfile</a> </div><div>        <a href="smb://expandafter{//fvfile}//relax">\\expandafter{\\fvfile}\\relax</a> </div><div>        <a href="smb://endinput">\\endinput</a>"</div><div>      }'</div><div>    > tmpfile.tex%</div><div>  }% </div><div>\endgroup</div><div>\input{tmppath.tex} </div><div>\input{tmpfile.tex}</div><div>\newcommand*{\pathfile}[1][pdf]{%</div><div>  \frenchspacing\fvpath/\fvfile{}.#1%</div><div>}</div><div>\begin{document}</div><div>\pathfile</div><div>%\StrSubstitute{\pathfile}{Users}{$\sim$}[\shortstring]</div><div>\end{document}</div><div><br></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;">--</div><div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;"><font color="#ff2600" face="Verdana"><b>Für sichere E-Mails an mich verwenden Sie bitte S/MIME oder nutzen meinen öffentlichen PGP-Schlüssel:</b></font></div><div style="margin: 0px;"><font color="#ff2600" face="Verdana"><b><a href="http://www.meinrechtsanwalt.com/download/pgpfvmrac.asc">http://www.meinrechtsanwalt.com/download/pgpfvmrac.asc</a></b></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080"><br></font></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080">Friedrich Vosberg, Rechtsanwalt (German Lawyer)</font></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080">D-04275 Leipzig, August-Bebel-Straße 59, Germany</font></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080">Ruf: (+49) 0341 234600 20   Fax: (+49) 0341 234600 22</font></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none; margin: 0px;"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080"><a href="http://www.meinrechtsanwalt.com/">http://www.meinrechtsanwalt.com</a></font></font></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; -webkit-text-decorations-in-effect: none;"><br></div></div></span></div><span class="Apple-style-span" style="color: rgb(0, 0, 0);  font-style: normal; font-family: Monaco; font-weight: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><span class="Apple-style-span" style="font-size: 11px;"><div style="font-family: Monaco; color: rgb(0, 0, 0);"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080">Der Inhalt dieses E-Mails einschließlich ggf. beigefügter Dateien ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts nicht zulässig. Bitte informieren Sie mich in diesem Fall unverzüglich und löschen Sie das E-Mail einschließlich ggf. beigefügter Dateien in Ihrem System. Vielen Dank für Ihre freundliche Unterstützung, und bitte entschuldigen Sie jegliche Unannehmlichkeiten.</font></font></div><div style="font-family: Monaco; color: rgb(0, 0, 0);"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080"><br class="khtml-block-placeholder"></font></font></div><div style="font-family: Monaco; color: rgb(0, 0, 0);"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080">The contents of this e-mail including any attachments are confidential and may be legally privileged. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is prohibited. Please notify me immediately and delete this email including any attachments from your system. Thank you for your kind co-operation, and please accept my apologies for any inconvenience.</font></font></div><div><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" color="#808080"><br></font></font></div></span></div></div></span></div></span></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>