Lightning symbol with LuaTex

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm trying to use the lightning symbol ⯠in my document. I use luatex. If I understand correctly I do not need the command
unicodex21af
but I can write ⯠directly in my document. My problem is that the symbol does not appear in the generated pdf. Thus, I guess, the symbol is not contained in the font used in the pdf.
If I have no error, how to I influence the chosen font? I should find a font with the symbol.
documentclassarticle
usepackagegraphicx
begindocument
(â¯)
enddocument
luatex
 |Â
show 8 more comments
up vote
3
down vote
favorite
I'm trying to use the lightning symbol ⯠in my document. I use luatex. If I understand correctly I do not need the command
unicodex21af
but I can write ⯠directly in my document. My problem is that the symbol does not appear in the generated pdf. Thus, I guess, the symbol is not contained in the font used in the pdf.
If I have no error, how to I influence the chosen font? I should find a font with the symbol.
documentclassarticle
usepackagegraphicx
begindocument
(â¯)
enddocument
luatex
May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
1
Which package defines the macro calledunicode?
â Mico
2 hours ago
1
@Raaja, very good! I installedtexlive-stmaryrd, addedusepackagestmaryrdand nowlightninggives me the needed symbol
â PeptideChain
2 hours ago
2
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
1
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago
 |Â
show 8 more comments
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm trying to use the lightning symbol ⯠in my document. I use luatex. If I understand correctly I do not need the command
unicodex21af
but I can write ⯠directly in my document. My problem is that the symbol does not appear in the generated pdf. Thus, I guess, the symbol is not contained in the font used in the pdf.
If I have no error, how to I influence the chosen font? I should find a font with the symbol.
documentclassarticle
usepackagegraphicx
begindocument
(â¯)
enddocument
luatex
I'm trying to use the lightning symbol ⯠in my document. I use luatex. If I understand correctly I do not need the command
unicodex21af
but I can write ⯠directly in my document. My problem is that the symbol does not appear in the generated pdf. Thus, I guess, the symbol is not contained in the font used in the pdf.
If I have no error, how to I influence the chosen font? I should find a font with the symbol.
documentclassarticle
usepackagegraphicx
begindocument
(â¯)
enddocument
luatex
luatex
edited 3 hours ago
Mico
268k30362747
268k30362747
asked 3 hours ago
PeptideChain
1918
1918
May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
1
Which package defines the macro calledunicode?
â Mico
2 hours ago
1
@Raaja, very good! I installedtexlive-stmaryrd, addedusepackagestmaryrdand nowlightninggives me the needed symbol
â PeptideChain
2 hours ago
2
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
1
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago
 |Â
show 8 more comments
May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
1
Which package defines the macro calledunicode?
â Mico
2 hours ago
1
@Raaja, very good! I installedtexlive-stmaryrd, addedusepackagestmaryrdand nowlightninggives me the needed symbol
â PeptideChain
2 hours ago
2
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
1
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago
May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
1
1
Which package defines the macro called
unicode?â Mico
2 hours ago
Which package defines the macro called
unicode?â Mico
2 hours ago
1
1
@Raaja, very good! I installed
texlive-stmaryrd, added usepackagestmaryrd and now lightning gives me the needed symbolâ PeptideChain
2 hours ago
@Raaja, very good! I installed
texlive-stmaryrd, added usepackagestmaryrd and now lightning gives me the needed symbolâ PeptideChain
2 hours ago
2
2
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
1
1
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago
 |Â
show 8 more comments
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use newunicodechar courtesy of @egreg.)
documentclassarticle
usepackagefontspec
usepackagenewunicodechar
newfontfamilysymbolaSymbola
newcommanddownzigzagarrowbegingroupsymbola â¯endgroup
newunicodecharâ¯downzigzagarrow
begindocument
Filler text ⯠Filler text
enddocument

2
You can accompany this withusepackagenewunicodecharandnewunicodecharâ¯downzigzagarrowafter definingdownzigzagarrowso it's possible to useâ¯directly in the document.
â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
I know the package, guess why.;-)
â egreg
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use newunicodechar courtesy of @egreg.)
documentclassarticle
usepackagefontspec
usepackagenewunicodechar
newfontfamilysymbolaSymbola
newcommanddownzigzagarrowbegingroupsymbola â¯endgroup
newunicodecharâ¯downzigzagarrow
begindocument
Filler text ⯠Filler text
enddocument

2
You can accompany this withusepackagenewunicodecharandnewunicodecharâ¯downzigzagarrowafter definingdownzigzagarrowso it's possible to useâ¯directly in the document.
â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
I know the package, guess why.;-)
â egreg
1 hour ago
add a comment |Â
up vote
3
down vote
accepted
As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use newunicodechar courtesy of @egreg.)
documentclassarticle
usepackagefontspec
usepackagenewunicodechar
newfontfamilysymbolaSymbola
newcommanddownzigzagarrowbegingroupsymbola â¯endgroup
newunicodecharâ¯downzigzagarrow
begindocument
Filler text ⯠Filler text
enddocument

2
You can accompany this withusepackagenewunicodecharandnewunicodecharâ¯downzigzagarrowafter definingdownzigzagarrowso it's possible to useâ¯directly in the document.
â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
I know the package, guess why.;-)
â egreg
1 hour ago
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use newunicodechar courtesy of @egreg.)
documentclassarticle
usepackagefontspec
usepackagenewunicodechar
newfontfamilysymbolaSymbola
newcommanddownzigzagarrowbegingroupsymbola â¯endgroup
newunicodecharâ¯downzigzagarrow
begindocument
Filler text ⯠Filler text
enddocument

As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use newunicodechar courtesy of @egreg.)
documentclassarticle
usepackagefontspec
usepackagenewunicodechar
newfontfamilysymbolaSymbola
newcommanddownzigzagarrowbegingroupsymbola â¯endgroup
newunicodecharâ¯downzigzagarrow
begindocument
Filler text ⯠Filler text
enddocument

edited 1 hour ago
answered 2 hours ago
David Purton
7,4491834
7,4491834
2
You can accompany this withusepackagenewunicodecharandnewunicodecharâ¯downzigzagarrowafter definingdownzigzagarrowso it's possible to useâ¯directly in the document.
â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
I know the package, guess why.;-)
â egreg
1 hour ago
add a comment |Â
2
You can accompany this withusepackagenewunicodecharandnewunicodecharâ¯downzigzagarrowafter definingdownzigzagarrowso it's possible to useâ¯directly in the document.
â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
I know the package, guess why.;-)
â egreg
1 hour ago
2
2
You can accompany this with
usepackagenewunicodechar and newunicodecharâ¯downzigzagarrow after defining downzigzagarrow so it's possible to use ⯠directly in the document.â egreg
1 hour ago
You can accompany this with
usepackagenewunicodechar and newunicodecharâ¯downzigzagarrow after defining downzigzagarrow so it's possible to use ⯠directly in the document.â egreg
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
@egreg, no way. I never knew that.
â David Purton
1 hour ago
1
1
I know the package, guess why.
;-)â egreg
1 hour ago
I know the package, guess why.
;-)â egreg
1 hour ago
add a comment |Â
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%2f458455%2flightning-symbol-with-luatex%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

May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing?
â Raaja
3 hours ago
1
Which package defines the macro called
unicode?â Mico
2 hours ago
1
@Raaja, very good! I installed
texlive-stmaryrd, addedusepackagestmaryrdand nowlightninggives me the needed symbolâ PeptideChain
2 hours ago
2
See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
â Thérèse
2 hours ago
1
@PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
â BambOo
1 hour ago