A symbol imported from the ifsym package is not recognized











up vote
2
down vote

favorite












I found a symbol that I am interested in in the Comprehensive LaTeX Symbols list, where it is noted that the symbol is part of the ifsym package.



However, when I try to use the symbol, thus:



documentclass{article}
usepackage{ifsym}
begin{document}
[
a SmallSquare b
]
end{document}


the document fails to compile, and I get the following error message:



ERROR: Undefined control sequence.

--- TeX said ---
l.5 a SmallSquare
b




EDIT: It was suggested in a comment that I load the package with the geometry option. So I tried it (usepackage[geometry]{ifsym}). The good news is that now the document compiles successfully. The bad news is that the symbol that gets printed is wrong:



With the geometry option the printed symbol is an ampersand










share|improve this question
























  • @campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
    – Evan Aad
    13 hours ago






  • 1




    See edited answer. They are text mode commands.
    – campa
    13 hours ago















up vote
2
down vote

favorite












I found a symbol that I am interested in in the Comprehensive LaTeX Symbols list, where it is noted that the symbol is part of the ifsym package.



However, when I try to use the symbol, thus:



documentclass{article}
usepackage{ifsym}
begin{document}
[
a SmallSquare b
]
end{document}


the document fails to compile, and I get the following error message:



ERROR: Undefined control sequence.

--- TeX said ---
l.5 a SmallSquare
b




EDIT: It was suggested in a comment that I load the package with the geometry option. So I tried it (usepackage[geometry]{ifsym}). The good news is that now the document compiles successfully. The bad news is that the symbol that gets printed is wrong:



With the geometry option the printed symbol is an ampersand










share|improve this question
























  • @campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
    – Evan Aad
    13 hours ago






  • 1




    See edited answer. They are text mode commands.
    – campa
    13 hours ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I found a symbol that I am interested in in the Comprehensive LaTeX Symbols list, where it is noted that the symbol is part of the ifsym package.



However, when I try to use the symbol, thus:



documentclass{article}
usepackage{ifsym}
begin{document}
[
a SmallSquare b
]
end{document}


the document fails to compile, and I get the following error message:



ERROR: Undefined control sequence.

--- TeX said ---
l.5 a SmallSquare
b




EDIT: It was suggested in a comment that I load the package with the geometry option. So I tried it (usepackage[geometry]{ifsym}). The good news is that now the document compiles successfully. The bad news is that the symbol that gets printed is wrong:



With the geometry option the printed symbol is an ampersand










share|improve this question















I found a symbol that I am interested in in the Comprehensive LaTeX Symbols list, where it is noted that the symbol is part of the ifsym package.



However, when I try to use the symbol, thus:



documentclass{article}
usepackage{ifsym}
begin{document}
[
a SmallSquare b
]
end{document}


the document fails to compile, and I get the following error message:



ERROR: Undefined control sequence.

--- TeX said ---
l.5 a SmallSquare
b




EDIT: It was suggested in a comment that I load the package with the geometry option. So I tried it (usepackage[geometry]{ifsym}). The good news is that now the document compiles successfully. The bad news is that the symbol that gets printed is wrong:



With the geometry option the printed symbol is an ampersand







errors symbols packages






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 hours ago

























asked 13 hours ago









Evan Aad

3,61311328




3,61311328












  • @campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
    – Evan Aad
    13 hours ago






  • 1




    See edited answer. They are text mode commands.
    – campa
    13 hours ago


















  • @campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
    – Evan Aad
    13 hours ago






  • 1




    See edited answer. They are text mode commands.
    – campa
    13 hours ago
















@campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
– Evan Aad
13 hours ago




@campa: Thanks. I tried adding the geometry option, but it's still not right. See my edit above.
– Evan Aad
13 hours ago




1




1




See edited answer. They are text mode commands.
– campa
13 hours ago




See edited answer. They are text mode commands.
– campa
13 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










By default the ifsym package defines only a generic textifsymbol macro. Specific abbreviations are declared in different subsets which can be loaded by the options clock, weather, alpine, misc, geometry, electronic. The geometric shapes must be loaded by



documentclass{article}
usepackage[geometry]{ifsym}
usepackage{amsmath} % for correct scaling in sub/superscripts
begin{document}
[
a textnormal{SmallSquare} b
]
end{document}


The Comprehensive Symbol List lacks this detail.



Note that the symbols are text mode, so they will fail in math mode. As an example, SmallSquare expands more or less to



fontencoding{U}fontfamily{ifgeo}selectfont symbol{96}


The font switching stuff is useless in math mode and symbol{96} is all is left, leaving the @.






share|improve this answer























  • @egreg Of course... Actually I should know it... :-/
    – campa
    11 hours ago










  • @egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
    – campa
    11 hours ago











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459596%2fa-symbol-imported-from-the-ifsym-package-is-not-recognized%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










By default the ifsym package defines only a generic textifsymbol macro. Specific abbreviations are declared in different subsets which can be loaded by the options clock, weather, alpine, misc, geometry, electronic. The geometric shapes must be loaded by



documentclass{article}
usepackage[geometry]{ifsym}
usepackage{amsmath} % for correct scaling in sub/superscripts
begin{document}
[
a textnormal{SmallSquare} b
]
end{document}


The Comprehensive Symbol List lacks this detail.



Note that the symbols are text mode, so they will fail in math mode. As an example, SmallSquare expands more or less to



fontencoding{U}fontfamily{ifgeo}selectfont symbol{96}


The font switching stuff is useless in math mode and symbol{96} is all is left, leaving the @.






share|improve this answer























  • @egreg Of course... Actually I should know it... :-/
    – campa
    11 hours ago










  • @egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
    – campa
    11 hours ago















up vote
4
down vote



accepted










By default the ifsym package defines only a generic textifsymbol macro. Specific abbreviations are declared in different subsets which can be loaded by the options clock, weather, alpine, misc, geometry, electronic. The geometric shapes must be loaded by



documentclass{article}
usepackage[geometry]{ifsym}
usepackage{amsmath} % for correct scaling in sub/superscripts
begin{document}
[
a textnormal{SmallSquare} b
]
end{document}


The Comprehensive Symbol List lacks this detail.



Note that the symbols are text mode, so they will fail in math mode. As an example, SmallSquare expands more or less to



fontencoding{U}fontfamily{ifgeo}selectfont symbol{96}


The font switching stuff is useless in math mode and symbol{96} is all is left, leaving the @.






share|improve this answer























  • @egreg Of course... Actually I should know it... :-/
    – campa
    11 hours ago










  • @egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
    – campa
    11 hours ago













up vote
4
down vote



accepted







up vote
4
down vote



accepted






By default the ifsym package defines only a generic textifsymbol macro. Specific abbreviations are declared in different subsets which can be loaded by the options clock, weather, alpine, misc, geometry, electronic. The geometric shapes must be loaded by



documentclass{article}
usepackage[geometry]{ifsym}
usepackage{amsmath} % for correct scaling in sub/superscripts
begin{document}
[
a textnormal{SmallSquare} b
]
end{document}


The Comprehensive Symbol List lacks this detail.



Note that the symbols are text mode, so they will fail in math mode. As an example, SmallSquare expands more or less to



fontencoding{U}fontfamily{ifgeo}selectfont symbol{96}


The font switching stuff is useless in math mode and symbol{96} is all is left, leaving the @.






share|improve this answer














By default the ifsym package defines only a generic textifsymbol macro. Specific abbreviations are declared in different subsets which can be loaded by the options clock, weather, alpine, misc, geometry, electronic. The geometric shapes must be loaded by



documentclass{article}
usepackage[geometry]{ifsym}
usepackage{amsmath} % for correct scaling in sub/superscripts
begin{document}
[
a textnormal{SmallSquare} b
]
end{document}


The Comprehensive Symbol List lacks this detail.



Note that the symbols are text mode, so they will fail in math mode. As an example, SmallSquare expands more or less to



fontencoding{U}fontfamily{ifgeo}selectfont symbol{96}


The font switching stuff is useless in math mode and symbol{96} is all is left, leaving the @.







share|improve this answer














share|improve this answer



share|improve this answer








edited 11 hours ago

























answered 13 hours ago









campa

6,28721437




6,28721437












  • @egreg Of course... Actually I should know it... :-/
    – campa
    11 hours ago










  • @egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
    – campa
    11 hours ago


















  • @egreg Of course... Actually I should know it... :-/
    – campa
    11 hours ago










  • @egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
    – campa
    11 hours ago
















@egreg Of course... Actually I should know it... :-/
– campa
11 hours ago




@egreg Of course... Actually I should know it... :-/
– campa
11 hours ago












@egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
– campa
11 hours ago




@egreg I was slightly puzzled that the expansion of textnormal is unchanged with or without amsmath. I had forgotten that amstext does letnfss@texttext...
– campa
11 hours ago


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459596%2fa-symbol-imported-from-the-ifsym-package-is-not-recognized%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?