Bifurcating a Line: Expressing a Function without Horizontal Bar

  • Context: MHB 
  • Thread starter Thread starter caffeinemachine
  • Start date Start date
  • Tags Tags
    Line
Click For Summary
SUMMARY

This discussion focuses on expressing a function without using a horizontal bar in LaTeX. The user seeks to represent a function $f:X\to Y$ mapping $a$ to $b$ in a format like $\frac{f:X\to Y}{a\xrightarrow{h}b}$ or $\frac{f:X\to Y}{f:a\mapsto b}$, but without the horizontal bar. Solutions provided include using the LaTeX command \stackrel to stack symbols and \overset to place a symbol above \mapsto, resulting in expressions like $\stackrel{f:X\to Y}{a\xrightarrow{h}b}$ and ${a\overset{f}{\mapsto} b}$.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of mathematical functions and notation
  • Knowledge of LaTeX commands such as \stackrel and \overset
  • Basic concepts of category theory (optional for deeper understanding)
NEXT STEPS
  • Research advanced LaTeX typesetting techniques for mathematical notation
  • Explore the use of \stackrel and \overset in different contexts
  • Learn about category theory and its notation conventions
  • Experiment with creating custom symbols in LaTeX
USEFUL FOR

Mathematicians, LaTeX users, and educators looking to enhance their mathematical documentation and presentation skills.

caffeinemachine
Gold Member
MHB
Messages
799
Reaction score
15
Hello MHB.

Suppose I have a function $f:X\to Y$ which sends $a$ to $b$.

I want to express this as:

Consider a function $\frac{f:X\to Y}{a\xrightarrow{h}b}$.
OR
Consider a function $\frac{f:X\to Y}{f:a\mapsto b}$.
Only thing, I don't want the 'horizontal bar' which separates $f:X\to Y$ from $a\xrightarrow{h}b$ (or $f:a\mapsto b$).

Does anybody know how to do this?

Also, is there a way to write $h$ on top of $\mapsto$ just as I can right $h$ on top of $\rightarrow$?
 
Physics news on Phys.org
caffeinemachine said:
Hello MHB.

Suppose I have a function $f:X\to Y$ which sends $a$ to $b$.

I want to express this as:

Consider a function $\frac{f:X\to Y}{a\xrightarrow{h}b}$.
OR
Consider a function $\frac{f:X\to Y}{f:a\mapsto b}$.
Only thing, I don't want the 'horizontal bar' which separates $f:X\to Y$ from $a\xrightarrow{h}b$ (or $f:a\mapsto b$).

Does anybody know how to do this?

Also, is there a way to write $h$ on top of $\mapsto$ just as I can right $h$ on top of $\rightarrow$?

There are various ways to stack symbols on top of each other.
For instance \stackrel:
$$\stackrel{f:X\to Y}{a\xrightarrow{h}b}$$

To put a symbol on top of \mapsto, you can use \overset{f}{\mapsto}.
$${a\overset{f}{\mapsto} b}$$
 

Similar threads

Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
8
Views
2K