I tried to create a backslash fraction using sfrac, but the output looks like this:
\documentclass{article}
\usepackage{xfrac}
\begin{document}
$ \sfrac{A}[\backslash]{B} $
\end{document}
Any idea how can I fix this? (A should be under B)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHere's one way to do it, first reflect a normal \sfrac
and then reflect both arguments.
\documentclass{article}
\usepackage{xfrac}
\newcommand*{\backfrac}[2]{\reflectbox{\sfrac{\reflectbox{\(#2\)}}{\reflectbox{\(#1\)}}}}
\begin{document}
\(\backfrac{A}{B}\)
\end{document}
\newcommand*{\backfrac}[2]{\reflectbox{\sfrac{\reflectbox{\(#2\)}}{\reflectbox{\(#1\)}}}}
and then\(\backfrac{A}{B}\)