How to type this arrow in math mode?
I need an arrow like the following:

I tried
newcommand{wedgearrow}{mathrel{/}joinrelssearrow} %stmaryrd
but it doesn't work well.

math-mode arrows
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I need an arrow like the following:

I tried
newcommand{wedgearrow}{mathrel{/}joinrelssearrow} %stmaryrd
but it doesn't work well.

math-mode arrows
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I need an arrow like the following:

I tried
newcommand{wedgearrow}{mathrel{/}joinrelssearrow} %stmaryrd
but it doesn't work well.

math-mode arrows
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I need an arrow like the following:

I tried
newcommand{wedgearrow}{mathrel{/}joinrelssearrow} %stmaryrd
but it doesn't work well.

math-mode arrows
math-mode arrows
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 10 at 22:20
Eclipse SunEclipse Sun
1535
1535
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Eclipse Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
No tikz...works across math styles.
documentclass{article}
usepackage{scalerel,stmaryrd}
newsaveboxwedgearrowbaseline
saveboxwedgearrowbaseline{$scalerel{%
ooalign{kern.05pt/cr/}mkern-8.5mu}{ssearrow}$}
newcommand{wedgearrow}{mathrel{scalerel*{%
usebox{wedgearrowbaseline}}{X}}} %stmaryrd
begin{document}
$Kwedgearrow L$
$scriptstyle Kwedgearrow L$
$scriptscriptstyle Kwedgearrow L$
end{document}

add a comment |
Similar to Ahrtaler's answer, the difference being that it also cooperates with subscripts (and all math styles) and becomes bold if one is in bold mode. I recommend this thread for further reading.
documentclass{article}
usepackage{tikz}
usepackage{amsmath}
makeatletter
DeclareRobustCommand{checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
edef@tempa{math@version}edef@tempb{bold}%
ifx@tempa@tempb%
def#1{1}%
else
def#1{0}%
fi}
makeatother
tikzset{wedge arrow/.style={->,line cap=round,line join=round}}
newcommand{wedgearrow}{checkboldtmp%
ensuremath{mathrel{%
mathchoice{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.075ex]{draw[line width={(1+0.33*tmp)*0.045em},wedge arrow](0,0) -- (60:0.45em) -- ++(-60:0.45em);}
}{%
tikz[baseline=-0.06ex]{draw[line width={(1+0.33*tmp)*0.035em},wedge arrow](0,0) -- (60:0.35em) -- ++ (-60:0.35em);}
}}}}
begin{document}
$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
boldmath$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
unboldmath
end{document}

EDITs:
- added
mathrelat Eclipse Sun's suggestion. - Made the macro detect the font weight, too, so the arrow goes bold in
boldmathorboldsymbol, just like the standard arrows. - Added round line caps and joins, motivated by Joey's comment.
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something likemathrelso that the spacing looks better?
– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
|
show 1 more comment
I think you could do something like that:
documentclass{scrartcl}
usepackage{tikz}
newlength{textsize}
makeatletter
setlength{textsize}{f@size pt}
makeatother
newcommand{wedgearrow}{%
resizebox {!} {textsize} {
begin{tikzpicture}
draw[->, line width = 2pt] (0,0) -- (.5,1) -- (1,0);
end{tikzpicture}}
}
begin{document}
Hi this wedgearrow is a wedgearrow
end{document}

add a comment |
With mathpalette: the slash is resized to the same vertical size as the arrow, a bit widened for compensating the stroke width and vertically placed to fit.
Some manual adjustment is needed for getting the tops to meet.
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
usepackage{graphicx}
makeatletter
newcommand{wedgearrow}{mathrel{mathpalettewedge@arrowrelax}}
newcommand{wedge@arrow}[2]{%
begingroup
sboxz@{$m@th#1ssearrow$}%
sboxtw@{resizebox{!}{dimexprhtz@+dpz@}{raisebox{depth}{$m@th#1/$}}}%
raisebox{-dpz@}{scalebox{1.1}[1]{boxtw@}}% slash
mathchoice{mkern-2.5mu}{mkern-2.5mu}{mkern-3mu}{mkern-3.5mu}%
boxz@ % arrow
endgroup
}
makeatother
begin{document}
$Kwedgearrow L_{Kwedgearrow L_{Kwedgearrow L}}$
{Huge$Kwedgearrow L$}
end{document}

add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Eclipse Sun is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484215%2fhow-to-type-this-arrow-in-math-mode%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
No tikz...works across math styles.
documentclass{article}
usepackage{scalerel,stmaryrd}
newsaveboxwedgearrowbaseline
saveboxwedgearrowbaseline{$scalerel{%
ooalign{kern.05pt/cr/}mkern-8.5mu}{ssearrow}$}
newcommand{wedgearrow}{mathrel{scalerel*{%
usebox{wedgearrowbaseline}}{X}}} %stmaryrd
begin{document}
$Kwedgearrow L$
$scriptstyle Kwedgearrow L$
$scriptscriptstyle Kwedgearrow L$
end{document}

add a comment |
No tikz...works across math styles.
documentclass{article}
usepackage{scalerel,stmaryrd}
newsaveboxwedgearrowbaseline
saveboxwedgearrowbaseline{$scalerel{%
ooalign{kern.05pt/cr/}mkern-8.5mu}{ssearrow}$}
newcommand{wedgearrow}{mathrel{scalerel*{%
usebox{wedgearrowbaseline}}{X}}} %stmaryrd
begin{document}
$Kwedgearrow L$
$scriptstyle Kwedgearrow L$
$scriptscriptstyle Kwedgearrow L$
end{document}

add a comment |
No tikz...works across math styles.
documentclass{article}
usepackage{scalerel,stmaryrd}
newsaveboxwedgearrowbaseline
saveboxwedgearrowbaseline{$scalerel{%
ooalign{kern.05pt/cr/}mkern-8.5mu}{ssearrow}$}
newcommand{wedgearrow}{mathrel{scalerel*{%
usebox{wedgearrowbaseline}}{X}}} %stmaryrd
begin{document}
$Kwedgearrow L$
$scriptstyle Kwedgearrow L$
$scriptscriptstyle Kwedgearrow L$
end{document}

No tikz...works across math styles.
documentclass{article}
usepackage{scalerel,stmaryrd}
newsaveboxwedgearrowbaseline
saveboxwedgearrowbaseline{$scalerel{%
ooalign{kern.05pt/cr/}mkern-8.5mu}{ssearrow}$}
newcommand{wedgearrow}{mathrel{scalerel*{%
usebox{wedgearrowbaseline}}{X}}} %stmaryrd
begin{document}
$Kwedgearrow L$
$scriptstyle Kwedgearrow L$
$scriptscriptstyle Kwedgearrow L$
end{document}

edited Apr 11 at 2:50
answered Apr 11 at 2:30
Steven B. SegletesSteven B. Segletes
162k9206418
162k9206418
add a comment |
add a comment |
Similar to Ahrtaler's answer, the difference being that it also cooperates with subscripts (and all math styles) and becomes bold if one is in bold mode. I recommend this thread for further reading.
documentclass{article}
usepackage{tikz}
usepackage{amsmath}
makeatletter
DeclareRobustCommand{checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
edef@tempa{math@version}edef@tempb{bold}%
ifx@tempa@tempb%
def#1{1}%
else
def#1{0}%
fi}
makeatother
tikzset{wedge arrow/.style={->,line cap=round,line join=round}}
newcommand{wedgearrow}{checkboldtmp%
ensuremath{mathrel{%
mathchoice{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.075ex]{draw[line width={(1+0.33*tmp)*0.045em},wedge arrow](0,0) -- (60:0.45em) -- ++(-60:0.45em);}
}{%
tikz[baseline=-0.06ex]{draw[line width={(1+0.33*tmp)*0.035em},wedge arrow](0,0) -- (60:0.35em) -- ++ (-60:0.35em);}
}}}}
begin{document}
$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
boldmath$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
unboldmath
end{document}

EDITs:
- added
mathrelat Eclipse Sun's suggestion. - Made the macro detect the font weight, too, so the arrow goes bold in
boldmathorboldsymbol, just like the standard arrows. - Added round line caps and joins, motivated by Joey's comment.
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something likemathrelso that the spacing looks better?
– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
|
show 1 more comment
Similar to Ahrtaler's answer, the difference being that it also cooperates with subscripts (and all math styles) and becomes bold if one is in bold mode. I recommend this thread for further reading.
documentclass{article}
usepackage{tikz}
usepackage{amsmath}
makeatletter
DeclareRobustCommand{checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
edef@tempa{math@version}edef@tempb{bold}%
ifx@tempa@tempb%
def#1{1}%
else
def#1{0}%
fi}
makeatother
tikzset{wedge arrow/.style={->,line cap=round,line join=round}}
newcommand{wedgearrow}{checkboldtmp%
ensuremath{mathrel{%
mathchoice{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.075ex]{draw[line width={(1+0.33*tmp)*0.045em},wedge arrow](0,0) -- (60:0.45em) -- ++(-60:0.45em);}
}{%
tikz[baseline=-0.06ex]{draw[line width={(1+0.33*tmp)*0.035em},wedge arrow](0,0) -- (60:0.35em) -- ++ (-60:0.35em);}
}}}}
begin{document}
$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
boldmath$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
unboldmath
end{document}

EDITs:
- added
mathrelat Eclipse Sun's suggestion. - Made the macro detect the font weight, too, so the arrow goes bold in
boldmathorboldsymbol, just like the standard arrows. - Added round line caps and joins, motivated by Joey's comment.
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something likemathrelso that the spacing looks better?
– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
|
show 1 more comment
Similar to Ahrtaler's answer, the difference being that it also cooperates with subscripts (and all math styles) and becomes bold if one is in bold mode. I recommend this thread for further reading.
documentclass{article}
usepackage{tikz}
usepackage{amsmath}
makeatletter
DeclareRobustCommand{checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
edef@tempa{math@version}edef@tempb{bold}%
ifx@tempa@tempb%
def#1{1}%
else
def#1{0}%
fi}
makeatother
tikzset{wedge arrow/.style={->,line cap=round,line join=round}}
newcommand{wedgearrow}{checkboldtmp%
ensuremath{mathrel{%
mathchoice{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.075ex]{draw[line width={(1+0.33*tmp)*0.045em},wedge arrow](0,0) -- (60:0.45em) -- ++(-60:0.45em);}
}{%
tikz[baseline=-0.06ex]{draw[line width={(1+0.33*tmp)*0.035em},wedge arrow](0,0) -- (60:0.35em) -- ++ (-60:0.35em);}
}}}}
begin{document}
$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
boldmath$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
unboldmath
end{document}

EDITs:
- added
mathrelat Eclipse Sun's suggestion. - Made the macro detect the font weight, too, so the arrow goes bold in
boldmathorboldsymbol, just like the standard arrows. - Added round line caps and joins, motivated by Joey's comment.
Similar to Ahrtaler's answer, the difference being that it also cooperates with subscripts (and all math styles) and becomes bold if one is in bold mode. I recommend this thread for further reading.
documentclass{article}
usepackage{tikz}
usepackage{amsmath}
makeatletter
DeclareRobustCommand{checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
edef@tempa{math@version}edef@tempb{bold}%
ifx@tempa@tempb%
def#1{1}%
else
def#1{0}%
fi}
makeatother
tikzset{wedge arrow/.style={->,line cap=round,line join=round}}
newcommand{wedgearrow}{checkboldtmp%
ensuremath{mathrel{%
mathchoice{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.1ex]{draw[line width={(1+0.33*tmp)*0.06em},wedge arrow](0,0) -- (60:0.6em) -- ++ (-60:0.6em);}
}{%
tikz[baseline=-0.075ex]{draw[line width={(1+0.33*tmp)*0.045em},wedge arrow](0,0) -- (60:0.45em) -- ++(-60:0.45em);}
}{%
tikz[baseline=-0.06ex]{draw[line width={(1+0.33*tmp)*0.035em},wedge arrow](0,0) -- (60:0.35em) -- ++ (-60:0.35em);}
}}}}
begin{document}
$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
boldmath$Awedgearrow B_{Cwedgearrow D}$ {Large $Awedgearrow B_{Cwedgearrow D}$}
unboldmath
end{document}

EDITs:
- added
mathrelat Eclipse Sun's suggestion. - Made the macro detect the font weight, too, so the arrow goes bold in
boldmathorboldsymbol, just like the standard arrows. - Added round line caps and joins, motivated by Joey's comment.
edited Apr 11 at 8:05
answered Apr 10 at 23:04
marmotmarmot
118k6153288
118k6153288
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something likemathrelso that the spacing looks better?
– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
|
show 1 more comment
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something likemathrelso that the spacing looks better?
– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
looks a bit smarter than mine. But it is harder to understand.
– Ahrtaler
Apr 10 at 23:07
Thanks! Should we use something like
mathrel so that the spacing looks better?– Eclipse Sun
Apr 11 at 0:00
Thanks! Should we use something like
mathrel so that the spacing looks better?– Eclipse Sun
Apr 11 at 0:00
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Yes, that's a great suggestion!
– marmot
Apr 11 at 2:09
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
@EclipseSun Now it also sees the font weight, Of course, you can change the appearance (angles, baseline, line width etc.) at will without the need to learn many commands, and the line joins and so on are automatically appealing. Loading TikZ *only for that might be a bit much, but if you are considering inventing more symbols that might be a good choice.
– marmot
Apr 11 at 2:55
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
Don't the default arrows (in CM at least) have round line caps instead of flat?
– Joey
Apr 11 at 5:58
|
show 1 more comment
I think you could do something like that:
documentclass{scrartcl}
usepackage{tikz}
newlength{textsize}
makeatletter
setlength{textsize}{f@size pt}
makeatother
newcommand{wedgearrow}{%
resizebox {!} {textsize} {
begin{tikzpicture}
draw[->, line width = 2pt] (0,0) -- (.5,1) -- (1,0);
end{tikzpicture}}
}
begin{document}
Hi this wedgearrow is a wedgearrow
end{document}

add a comment |
I think you could do something like that:
documentclass{scrartcl}
usepackage{tikz}
newlength{textsize}
makeatletter
setlength{textsize}{f@size pt}
makeatother
newcommand{wedgearrow}{%
resizebox {!} {textsize} {
begin{tikzpicture}
draw[->, line width = 2pt] (0,0) -- (.5,1) -- (1,0);
end{tikzpicture}}
}
begin{document}
Hi this wedgearrow is a wedgearrow
end{document}

add a comment |
I think you could do something like that:
documentclass{scrartcl}
usepackage{tikz}
newlength{textsize}
makeatletter
setlength{textsize}{f@size pt}
makeatother
newcommand{wedgearrow}{%
resizebox {!} {textsize} {
begin{tikzpicture}
draw[->, line width = 2pt] (0,0) -- (.5,1) -- (1,0);
end{tikzpicture}}
}
begin{document}
Hi this wedgearrow is a wedgearrow
end{document}

I think you could do something like that:
documentclass{scrartcl}
usepackage{tikz}
newlength{textsize}
makeatletter
setlength{textsize}{f@size pt}
makeatother
newcommand{wedgearrow}{%
resizebox {!} {textsize} {
begin{tikzpicture}
draw[->, line width = 2pt] (0,0) -- (.5,1) -- (1,0);
end{tikzpicture}}
}
begin{document}
Hi this wedgearrow is a wedgearrow
end{document}

answered Apr 10 at 22:56
AhrtalerAhrtaler
26616
26616
add a comment |
add a comment |
With mathpalette: the slash is resized to the same vertical size as the arrow, a bit widened for compensating the stroke width and vertically placed to fit.
Some manual adjustment is needed for getting the tops to meet.
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
usepackage{graphicx}
makeatletter
newcommand{wedgearrow}{mathrel{mathpalettewedge@arrowrelax}}
newcommand{wedge@arrow}[2]{%
begingroup
sboxz@{$m@th#1ssearrow$}%
sboxtw@{resizebox{!}{dimexprhtz@+dpz@}{raisebox{depth}{$m@th#1/$}}}%
raisebox{-dpz@}{scalebox{1.1}[1]{boxtw@}}% slash
mathchoice{mkern-2.5mu}{mkern-2.5mu}{mkern-3mu}{mkern-3.5mu}%
boxz@ % arrow
endgroup
}
makeatother
begin{document}
$Kwedgearrow L_{Kwedgearrow L_{Kwedgearrow L}}$
{Huge$Kwedgearrow L$}
end{document}

add a comment |
With mathpalette: the slash is resized to the same vertical size as the arrow, a bit widened for compensating the stroke width and vertically placed to fit.
Some manual adjustment is needed for getting the tops to meet.
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
usepackage{graphicx}
makeatletter
newcommand{wedgearrow}{mathrel{mathpalettewedge@arrowrelax}}
newcommand{wedge@arrow}[2]{%
begingroup
sboxz@{$m@th#1ssearrow$}%
sboxtw@{resizebox{!}{dimexprhtz@+dpz@}{raisebox{depth}{$m@th#1/$}}}%
raisebox{-dpz@}{scalebox{1.1}[1]{boxtw@}}% slash
mathchoice{mkern-2.5mu}{mkern-2.5mu}{mkern-3mu}{mkern-3.5mu}%
boxz@ % arrow
endgroup
}
makeatother
begin{document}
$Kwedgearrow L_{Kwedgearrow L_{Kwedgearrow L}}$
{Huge$Kwedgearrow L$}
end{document}

add a comment |
With mathpalette: the slash is resized to the same vertical size as the arrow, a bit widened for compensating the stroke width and vertically placed to fit.
Some manual adjustment is needed for getting the tops to meet.
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
usepackage{graphicx}
makeatletter
newcommand{wedgearrow}{mathrel{mathpalettewedge@arrowrelax}}
newcommand{wedge@arrow}[2]{%
begingroup
sboxz@{$m@th#1ssearrow$}%
sboxtw@{resizebox{!}{dimexprhtz@+dpz@}{raisebox{depth}{$m@th#1/$}}}%
raisebox{-dpz@}{scalebox{1.1}[1]{boxtw@}}% slash
mathchoice{mkern-2.5mu}{mkern-2.5mu}{mkern-3mu}{mkern-3.5mu}%
boxz@ % arrow
endgroup
}
makeatother
begin{document}
$Kwedgearrow L_{Kwedgearrow L_{Kwedgearrow L}}$
{Huge$Kwedgearrow L$}
end{document}

With mathpalette: the slash is resized to the same vertical size as the arrow, a bit widened for compensating the stroke width and vertically placed to fit.
Some manual adjustment is needed for getting the tops to meet.
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
usepackage{graphicx}
makeatletter
newcommand{wedgearrow}{mathrel{mathpalettewedge@arrowrelax}}
newcommand{wedge@arrow}[2]{%
begingroup
sboxz@{$m@th#1ssearrow$}%
sboxtw@{resizebox{!}{dimexprhtz@+dpz@}{raisebox{depth}{$m@th#1/$}}}%
raisebox{-dpz@}{scalebox{1.1}[1]{boxtw@}}% slash
mathchoice{mkern-2.5mu}{mkern-2.5mu}{mkern-3mu}{mkern-3.5mu}%
boxz@ % arrow
endgroup
}
makeatother
begin{document}
$Kwedgearrow L_{Kwedgearrow L_{Kwedgearrow L}}$
{Huge$Kwedgearrow L$}
end{document}

answered Apr 11 at 9:22
egregegreg
734k8919333257
734k8919333257
add a comment |
add a comment |
Eclipse Sun is a new contributor. Be nice, and check out our Code of Conduct.
Eclipse Sun is a new contributor. Be nice, and check out our Code of Conduct.
Eclipse Sun is a new contributor. Be nice, and check out our Code of Conduct.
Eclipse Sun is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484215%2fhow-to-type-this-arrow-in-math-mode%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown