Skip to content

Instantly share code, notes, and snippets.

@wtsnjp
Created July 17, 2017 08:00
Show Gist options
  • Save wtsnjp/8fe2c5a5fb3c857ff4de20cadb04508d to your computer and use it in GitHub Desktop.
Save wtsnjp/8fe2c5a5fb3c857ff4de20cadb04508d to your computer and use it in GitHub Desktop.
%#!latex
\documentclass{article}
\makeatletter
\def\reverse#1{\@reverse#1\relax\@nil\@empty}
\def\@reverse#1#2\@nil#3{%
\ifx#1\relax#3\else
\@reverse#2\@nil{#1#3}%
\fi}
\edef\abcde{\reverse{abcde}}
\makeatother
\begin{document}
\abcde
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment