Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

I wanted to mod out by a subgroup inline like I would when I normally write them, so I made this command:

`\providecommand{\gmod}[2]{{}^{#1} \!\!\! \diagup \!\! _{#2}}`

Which produces:

Which is basically the same way you would do a fraction. But I can't seem to find any built in function which would allow me to do this. My command isn't all that great because it looks horrible for more complex examples. Anyone know the proper way to produce this?

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

**Krizalid****Member**- Registered: 2007-03-09
- Posts: 51

{\raise0.5ex\hbox{$\scriptstyle 1$}

\kern-0.1em/\kern-0.15em

\lower0.25ex\hbox{$\scriptstyle 2$}}

Or

{\raise0.7ex\hbox{$1$} \!\mathord{\left/

{\vphantom {1 2}}\right.\kern-\nulldelimiterspace}

\!\lower0.7ex\hbox{$2$}}

Does that make sense?

Offline

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

Yea, but I don't like the look of either of them. And mine is no more "forced" than yours is. What I'm looking for is if there is a built in command to do this.

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

Pages: **1**