Create diamond with a dash in it
Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
I'm looking for how to create a diamond symbol with a dash that horizontally divides it. One like the following:
I found the diamondminus
on MnSymbol
package, but this new package is incompatible with other packages that I use such as amssymb
.
Could you know how to create such a symbol?
pdftex symbols
New contributor
Frank 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 |Â
up vote
5
down vote
favorite
I'm looking for how to create a diamond symbol with a dash that horizontally divides it. One like the following:
I found the diamondminus
on MnSymbol
package, but this new package is incompatible with other packages that I use such as amssymb
.
Could you know how to create such a symbol?
pdftex symbols
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
.
– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I'm looking for how to create a diamond symbol with a dash that horizontally divides it. One like the following:
I found the diamondminus
on MnSymbol
package, but this new package is incompatible with other packages that I use such as amssymb
.
Could you know how to create such a symbol?
pdftex symbols
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm looking for how to create a diamond symbol with a dash that horizontally divides it. One like the following:
I found the diamondminus
on MnSymbol
package, but this new package is incompatible with other packages that I use such as amssymb
.
Could you know how to create such a symbol?
pdftex symbols
pdftex symbols
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 hours ago
Frank
282
282
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Frank is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
.
– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago
add a comment |Â
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
.
– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending with enddocument
.– albert
6 hours ago
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending with enddocument
.– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
7
down vote
accepted
I used the amssymb
package symbol you mentioned and added the dash, using scalebox
(offered by graphicx
) with different values for x
and y
to keep the thickness of the dash.
documentclass[12pt]article
usepackageamssymb
usepackagegraphicx
newcommandclap[1]makebox[0pt]hss#1hss
newcommandmydiamond%
sbox0$lozenge$%
usebox0kern-.5wd0clapraisebox.1exscalebox.7[1]$-$kern.5wd0%
begindocument
mydiamond
enddocument
2
If you do not want white space between the two symbols, usescalebox.80[1]$-$
– Denis
5 hours ago
add a comment |Â
up vote
2
down vote
Two Approaches:
Use existing Diamond
of amssymb
documentclassarticle
usepackagestackengine,amssymb,graphicx
newcommandDDiamondensurestackMath%
stackengine.5ptDiamondscalebox.75[1]$-$OcFFL
begindocument
$DDiamond$ as createdpar
$Diamond$ is the amssymb version
enddocument
If you want the cross-line to be a "dash" with space around it, reduce the value of .75
in the scalebox
to, for example, .6
:
IMPORT JUST ONE MnSymbol
Import just DDiamond
from MnSymbol
. Thus, it does not screw up the other definitions of amssymb
. I've declared it as mathrel
but you can change that.
I've set up convenient macros (between the %%%%
delimiters) for importing stuff from MnSymbol
. Once those macros are set up (copied/pasted into your preamble), the import goes as follows:
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
MnSymbolGlyphs
shows the font table for MnSymbolA, B, C, etc, given the subset as the argument. This is how to locate a glyph's subset and slot number.
ImportFromMnSymbol
sets up for importing symbols from the specified MnSymbol
subset.
DeclareMnSymbol<macroname><math category><subset><slot>
to grab the MnSymbol
from the specified slot in the given subset.
documentclassarticle
usepackageamssymb
%%%%
defMnSymbolGlyphs#1% IF ONE NEEDS TO LOCATE GLYPHS
usepackageMnSymbol,fonttable%
AtBeginDocumentfonttableMnSymbol#110%
defImportFromMnSymbol#1%
DeclareFontFamilyU MnSymbol#1
DeclareFontShapeUMnSymbol#1mn
<-6> MnSymbol#15
<6-7> MnSymbol#16
<7-8> MnSymbol#17
<8-9> MnSymbol#18
<9-10> MnSymbol#19
<10-12> MnSymbol#110
<12-> MnSymbol#112
DeclareFontShapeUMnSymbol#1bn
<-6> MnSymbol#1-Bold5
<6-7> MnSymbol#1-Bold6
<7-8> MnSymbol#1-Bold7
<8-9> MnSymbol#1-Bold8
<9-10> MnSymbol#1-Bold9
<10-12> MnSymbol#1-Bold10
<12-> MnSymbol#1-Bold12
DeclareSymbolFontMnSy#1 U MnSymbol#1mn
newcommandDeclareMnSymbol[4]DeclareMathSymbol#1#2MnSy#3#4
%%%%
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
begindocument
$DDiamond$ as imported from MnSymbolpar
$A DDiamond Bquadscriptstyle A DDiamond Bquadscriptscriptstyle A DDiamond B$
$Diamond$ is still the amssymb version
enddocument
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
I used the amssymb
package symbol you mentioned and added the dash, using scalebox
(offered by graphicx
) with different values for x
and y
to keep the thickness of the dash.
documentclass[12pt]article
usepackageamssymb
usepackagegraphicx
newcommandclap[1]makebox[0pt]hss#1hss
newcommandmydiamond%
sbox0$lozenge$%
usebox0kern-.5wd0clapraisebox.1exscalebox.7[1]$-$kern.5wd0%
begindocument
mydiamond
enddocument
2
If you do not want white space between the two symbols, usescalebox.80[1]$-$
– Denis
5 hours ago
add a comment |Â
up vote
7
down vote
accepted
I used the amssymb
package symbol you mentioned and added the dash, using scalebox
(offered by graphicx
) with different values for x
and y
to keep the thickness of the dash.
documentclass[12pt]article
usepackageamssymb
usepackagegraphicx
newcommandclap[1]makebox[0pt]hss#1hss
newcommandmydiamond%
sbox0$lozenge$%
usebox0kern-.5wd0clapraisebox.1exscalebox.7[1]$-$kern.5wd0%
begindocument
mydiamond
enddocument
2
If you do not want white space between the two symbols, usescalebox.80[1]$-$
– Denis
5 hours ago
add a comment |Â
up vote
7
down vote
accepted
up vote
7
down vote
accepted
I used the amssymb
package symbol you mentioned and added the dash, using scalebox
(offered by graphicx
) with different values for x
and y
to keep the thickness of the dash.
documentclass[12pt]article
usepackageamssymb
usepackagegraphicx
newcommandclap[1]makebox[0pt]hss#1hss
newcommandmydiamond%
sbox0$lozenge$%
usebox0kern-.5wd0clapraisebox.1exscalebox.7[1]$-$kern.5wd0%
begindocument
mydiamond
enddocument
I used the amssymb
package symbol you mentioned and added the dash, using scalebox
(offered by graphicx
) with different values for x
and y
to keep the thickness of the dash.
documentclass[12pt]article
usepackageamssymb
usepackagegraphicx
newcommandclap[1]makebox[0pt]hss#1hss
newcommandmydiamond%
sbox0$lozenge$%
usebox0kern-.5wd0clapraisebox.1exscalebox.7[1]$-$kern.5wd0%
begindocument
mydiamond
enddocument
answered 5 hours ago
nox
2,815418
2,815418
2
If you do not want white space between the two symbols, usescalebox.80[1]$-$
– Denis
5 hours ago
add a comment |Â
2
If you do not want white space between the two symbols, usescalebox.80[1]$-$
– Denis
5 hours ago
2
2
If you do not want white space between the two symbols, use
scalebox.80[1]$-$
– Denis
5 hours ago
If you do not want white space between the two symbols, use
scalebox.80[1]$-$
– Denis
5 hours ago
add a comment |Â
up vote
2
down vote
Two Approaches:
Use existing Diamond
of amssymb
documentclassarticle
usepackagestackengine,amssymb,graphicx
newcommandDDiamondensurestackMath%
stackengine.5ptDiamondscalebox.75[1]$-$OcFFL
begindocument
$DDiamond$ as createdpar
$Diamond$ is the amssymb version
enddocument
If you want the cross-line to be a "dash" with space around it, reduce the value of .75
in the scalebox
to, for example, .6
:
IMPORT JUST ONE MnSymbol
Import just DDiamond
from MnSymbol
. Thus, it does not screw up the other definitions of amssymb
. I've declared it as mathrel
but you can change that.
I've set up convenient macros (between the %%%%
delimiters) for importing stuff from MnSymbol
. Once those macros are set up (copied/pasted into your preamble), the import goes as follows:
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
MnSymbolGlyphs
shows the font table for MnSymbolA, B, C, etc, given the subset as the argument. This is how to locate a glyph's subset and slot number.
ImportFromMnSymbol
sets up for importing symbols from the specified MnSymbol
subset.
DeclareMnSymbol<macroname><math category><subset><slot>
to grab the MnSymbol
from the specified slot in the given subset.
documentclassarticle
usepackageamssymb
%%%%
defMnSymbolGlyphs#1% IF ONE NEEDS TO LOCATE GLYPHS
usepackageMnSymbol,fonttable%
AtBeginDocumentfonttableMnSymbol#110%
defImportFromMnSymbol#1%
DeclareFontFamilyU MnSymbol#1
DeclareFontShapeUMnSymbol#1mn
<-6> MnSymbol#15
<6-7> MnSymbol#16
<7-8> MnSymbol#17
<8-9> MnSymbol#18
<9-10> MnSymbol#19
<10-12> MnSymbol#110
<12-> MnSymbol#112
DeclareFontShapeUMnSymbol#1bn
<-6> MnSymbol#1-Bold5
<6-7> MnSymbol#1-Bold6
<7-8> MnSymbol#1-Bold7
<8-9> MnSymbol#1-Bold8
<9-10> MnSymbol#1-Bold9
<10-12> MnSymbol#1-Bold10
<12-> MnSymbol#1-Bold12
DeclareSymbolFontMnSy#1 U MnSymbol#1mn
newcommandDeclareMnSymbol[4]DeclareMathSymbol#1#2MnSy#3#4
%%%%
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
begindocument
$DDiamond$ as imported from MnSymbolpar
$A DDiamond Bquadscriptstyle A DDiamond Bquadscriptscriptstyle A DDiamond B$
$Diamond$ is still the amssymb version
enddocument
add a comment |Â
up vote
2
down vote
Two Approaches:
Use existing Diamond
of amssymb
documentclassarticle
usepackagestackengine,amssymb,graphicx
newcommandDDiamondensurestackMath%
stackengine.5ptDiamondscalebox.75[1]$-$OcFFL
begindocument
$DDiamond$ as createdpar
$Diamond$ is the amssymb version
enddocument
If you want the cross-line to be a "dash" with space around it, reduce the value of .75
in the scalebox
to, for example, .6
:
IMPORT JUST ONE MnSymbol
Import just DDiamond
from MnSymbol
. Thus, it does not screw up the other definitions of amssymb
. I've declared it as mathrel
but you can change that.
I've set up convenient macros (between the %%%%
delimiters) for importing stuff from MnSymbol
. Once those macros are set up (copied/pasted into your preamble), the import goes as follows:
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
MnSymbolGlyphs
shows the font table for MnSymbolA, B, C, etc, given the subset as the argument. This is how to locate a glyph's subset and slot number.
ImportFromMnSymbol
sets up for importing symbols from the specified MnSymbol
subset.
DeclareMnSymbol<macroname><math category><subset><slot>
to grab the MnSymbol
from the specified slot in the given subset.
documentclassarticle
usepackageamssymb
%%%%
defMnSymbolGlyphs#1% IF ONE NEEDS TO LOCATE GLYPHS
usepackageMnSymbol,fonttable%
AtBeginDocumentfonttableMnSymbol#110%
defImportFromMnSymbol#1%
DeclareFontFamilyU MnSymbol#1
DeclareFontShapeUMnSymbol#1mn
<-6> MnSymbol#15
<6-7> MnSymbol#16
<7-8> MnSymbol#17
<8-9> MnSymbol#18
<9-10> MnSymbol#19
<10-12> MnSymbol#110
<12-> MnSymbol#112
DeclareFontShapeUMnSymbol#1bn
<-6> MnSymbol#1-Bold5
<6-7> MnSymbol#1-Bold6
<7-8> MnSymbol#1-Bold7
<8-9> MnSymbol#1-Bold8
<9-10> MnSymbol#1-Bold9
<10-12> MnSymbol#1-Bold10
<12-> MnSymbol#1-Bold12
DeclareSymbolFontMnSy#1 U MnSymbol#1mn
newcommandDeclareMnSymbol[4]DeclareMathSymbol#1#2MnSy#3#4
%%%%
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
begindocument
$DDiamond$ as imported from MnSymbolpar
$A DDiamond Bquadscriptstyle A DDiamond Bquadscriptscriptstyle A DDiamond B$
$Diamond$ is still the amssymb version
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Two Approaches:
Use existing Diamond
of amssymb
documentclassarticle
usepackagestackengine,amssymb,graphicx
newcommandDDiamondensurestackMath%
stackengine.5ptDiamondscalebox.75[1]$-$OcFFL
begindocument
$DDiamond$ as createdpar
$Diamond$ is the amssymb version
enddocument
If you want the cross-line to be a "dash" with space around it, reduce the value of .75
in the scalebox
to, for example, .6
:
IMPORT JUST ONE MnSymbol
Import just DDiamond
from MnSymbol
. Thus, it does not screw up the other definitions of amssymb
. I've declared it as mathrel
but you can change that.
I've set up convenient macros (between the %%%%
delimiters) for importing stuff from MnSymbol
. Once those macros are set up (copied/pasted into your preamble), the import goes as follows:
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
MnSymbolGlyphs
shows the font table for MnSymbolA, B, C, etc, given the subset as the argument. This is how to locate a glyph's subset and slot number.
ImportFromMnSymbol
sets up for importing symbols from the specified MnSymbol
subset.
DeclareMnSymbol<macroname><math category><subset><slot>
to grab the MnSymbol
from the specified slot in the given subset.
documentclassarticle
usepackageamssymb
%%%%
defMnSymbolGlyphs#1% IF ONE NEEDS TO LOCATE GLYPHS
usepackageMnSymbol,fonttable%
AtBeginDocumentfonttableMnSymbol#110%
defImportFromMnSymbol#1%
DeclareFontFamilyU MnSymbol#1
DeclareFontShapeUMnSymbol#1mn
<-6> MnSymbol#15
<6-7> MnSymbol#16
<7-8> MnSymbol#17
<8-9> MnSymbol#18
<9-10> MnSymbol#19
<10-12> MnSymbol#110
<12-> MnSymbol#112
DeclareFontShapeUMnSymbol#1bn
<-6> MnSymbol#1-Bold5
<6-7> MnSymbol#1-Bold6
<7-8> MnSymbol#1-Bold7
<8-9> MnSymbol#1-Bold8
<9-10> MnSymbol#1-Bold9
<10-12> MnSymbol#1-Bold10
<12-> MnSymbol#1-Bold12
DeclareSymbolFontMnSy#1 U MnSymbol#1mn
newcommandDeclareMnSymbol[4]DeclareMathSymbol#1#2MnSy#3#4
%%%%
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
begindocument
$DDiamond$ as imported from MnSymbolpar
$A DDiamond Bquadscriptstyle A DDiamond Bquadscriptscriptstyle A DDiamond B$
$Diamond$ is still the amssymb version
enddocument
Two Approaches:
Use existing Diamond
of amssymb
documentclassarticle
usepackagestackengine,amssymb,graphicx
newcommandDDiamondensurestackMath%
stackengine.5ptDiamondscalebox.75[1]$-$OcFFL
begindocument
$DDiamond$ as createdpar
$Diamond$ is the amssymb version
enddocument
If you want the cross-line to be a "dash" with space around it, reduce the value of .75
in the scalebox
to, for example, .6
:
IMPORT JUST ONE MnSymbol
Import just DDiamond
from MnSymbol
. Thus, it does not screw up the other definitions of amssymb
. I've declared it as mathrel
but you can change that.
I've set up convenient macros (between the %%%%
delimiters) for importing stuff from MnSymbol
. Once those macros are set up (copied/pasted into your preamble), the import goes as follows:
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
MnSymbolGlyphs
shows the font table for MnSymbolA, B, C, etc, given the subset as the argument. This is how to locate a glyph's subset and slot number.
ImportFromMnSymbol
sets up for importing symbols from the specified MnSymbol
subset.
DeclareMnSymbol<macroname><math category><subset><slot>
to grab the MnSymbol
from the specified slot in the given subset.
documentclassarticle
usepackageamssymb
%%%%
defMnSymbolGlyphs#1% IF ONE NEEDS TO LOCATE GLYPHS
usepackageMnSymbol,fonttable%
AtBeginDocumentfonttableMnSymbol#110%
defImportFromMnSymbol#1%
DeclareFontFamilyU MnSymbol#1
DeclareFontShapeUMnSymbol#1mn
<-6> MnSymbol#15
<6-7> MnSymbol#16
<7-8> MnSymbol#17
<8-9> MnSymbol#18
<9-10> MnSymbol#19
<10-12> MnSymbol#110
<12-> MnSymbol#112
DeclareFontShapeUMnSymbol#1bn
<-6> MnSymbol#1-Bold5
<6-7> MnSymbol#1-Bold6
<7-8> MnSymbol#1-Bold7
<8-9> MnSymbol#1-Bold8
<9-10> MnSymbol#1-Bold9
<10-12> MnSymbol#1-Bold10
<12-> MnSymbol#1-Bold12
DeclareSymbolFontMnSy#1 U MnSymbol#1mn
newcommandDeclareMnSymbol[4]DeclareMathSymbol#1#2MnSy#3#4
%%%%
ImportFromMnSymbolC
DeclareMnSymbolDDiamondmathrelC120
%MnSymbolGlyphsC
begindocument
$DDiamond$ as imported from MnSymbolpar
$A DDiamond Bquadscriptstyle A DDiamond Bquadscriptscriptstyle A DDiamond B$
$Diamond$ is still the amssymb version
enddocument
edited 4 hours ago
answered 5 hours ago


Steven B. Segletes
146k9186388
146k9186388
add a comment |Â
add a comment |Â
Frank is a new contributor. Be nice, and check out our Code of Conduct.
Frank is a new contributor. Be nice, and check out our Code of Conduct.
Frank is a new contributor. Be nice, and check out our Code of Conduct.
Frank 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450691%2fcreate-diamond-with-a-dash-in-it%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending withenddocument
.– albert
6 hours ago
Have a look at tex.stackexchange.com/questions/427270/… here a diamond (filled) with an questionmark is defined, maybe you can adjust it / have a starting point for your purposes.
– albert
6 hours ago