Create a backslash fraction using sfrac fractionsxfrac 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) Best Answer Here'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} The result is Related Solutions[Tex/LaTex] Minus sign not aligning with fraction The cause of the misalignment is that the minus sign is in scriptstyle, but the fraction is being forced into displaystyle. Here are a few options: \[e^{\displaystyle -\frac{(x-\mu_2)^2}{2\sigma^2_2}}\] \[e^{\dfrac{-(x-\mu_2)^2}{2\sigma^2_2}}\] \[e^{-(x-\mu_2)^2/2\sigma^2_2}\] \[\exp\bigl(-(x-\mu_2)^2/2\sigma^2_2\bigr)\] Indent each line after a fraction in a single expression Here's an array-based solution. \documentclass{article} \usepackage{array} % for '\newcolumntype' macro \newcolumntype{C}{>{\displaystyle}c} \newcolumntype{N}{>{{}}c<{{}}} \usepackage{booktabs} % for \addlinespace macro \begin{document} \[ \setlength\arraycolsep{0pt} \frac13 + \frac29 + \frac3{27} + \frac4{81} + \frac5{243} + \cdots \begin{array}[t]{ *{6}{NC} } =& \frac13 & + & \frac19 & + & \frac1{27} & + & \frac1{81} & + & \frac1{243} & + & \cdots \\ \addlinespace && + & \frac19 & + & \frac1{27} & + & \frac1{81} & + & \frac1{243} & + & \cdots \\ \addlinespace &&&& + & \frac1{27} & + & \frac1{81} & + & \frac1{243} & + & \cdots \\ \addlinespace &&&&&& + & \frac1{81} & + & \frac1{243} & + & \cdots \end{array} \] \end{document} Related Question
Best Answer
Here's one way to do it, first reflect a normal
\sfrac
and then reflect both arguments.The result is