Created
July 21, 2015 21:19
-
-
Save Lenchik/81b49e6f6002a6a4740a to your computer and use it in GitHub Desktop.
Попытка написать функцию по борьбе с неэкранированными символами в ссылках из библиографии LaTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\makeatletter | |
\verbtocs{\diez} |#| | |
\newcommand*{\doit}[2]{% | |
\StrSubstitute{#2}{_}{\_}[\doit@text]% | |
% \StrSubstitute{\doit@text}{\diez}{\diez}[\doit@text]% | |
\StrSubstitute{\doit@text}{<}{\textless}[\doit@text]% | |
\StrSubstitute{\doit@text}{>}{\textgreater}[\doit@text]% | |
\StrSubstitute{#1}{<}{\@percentchar3C}[\doit@link]% | |
% \StrSubstitute{\doit@link}{\diez}{\%23}[\doit@link]% | |
\StrSubstitute{\doit@link}{>}{\@percentchar3E}[\doit@link]% | |
\href{\doit@link}% | |
{\doit@text}% | |
} | |
\makeatother |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment