Is it possible to create my own xfrac command - without using that package (it is giving me too much trouble)? I know you can do superscript, subscript to make a fraction look.
Can I do something like:
\newcommand xfrac{a}{b} = ^a/_b
Thanks!
|
Is it possible to create my own xfrac command - without using that package (it is giving me too much trouble)? I know you can do superscript, subscript to make a fraction look. Can I do something like:
Thanks! |
|||||||
|
|
Consider to use the
|
||||
|
|
|
Here is the best I could come up with. You might need to adjust the parameters below as I have only tested it for this one case. The output on the left is the one from the macro below, and the output of
This is adapted from what you posted with
|
|||||||||
|
|
If you want to avoid an extra package, you can could use the definition below as well. It now has taken egreg's comment from below into account.
To give proper credit: I believe I found the definition once in a book by Knuth. It's living in my pile of TeX snippets that I search for occasions like this. You could rename it to
|
|||||
|