fontawesome5 monospaced icons [duplicate]
This question already has an answer here:
How to use Font Awesome 5 with fixed width
2 answers
I have been trying to make icons from fontawesome5 monospaced without much success:
documentclass[12pt]{article}
usepackage{fontspec}
usepackage{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}
I tried wrapping the faIcon{}
commands in texttt{}
, which did nothing.
Is there a way to do this?
typewriter fontawesome fontawesome5
marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How to use Font Awesome 5 with fixed width
2 answers
I have been trying to make icons from fontawesome5 monospaced without much success:
documentclass[12pt]{article}
usepackage{fontspec}
usepackage{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}
I tried wrapping the faIcon{}
commands in texttt{}
, which did nothing.
Is there a way to do this?
typewriter fontawesome fontawesome5
marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20
add a comment |
This question already has an answer here:
How to use Font Awesome 5 with fixed width
2 answers
I have been trying to make icons from fontawesome5 monospaced without much success:
documentclass[12pt]{article}
usepackage{fontspec}
usepackage{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}
I tried wrapping the faIcon{}
commands in texttt{}
, which did nothing.
Is there a way to do this?
typewriter fontawesome fontawesome5
This question already has an answer here:
How to use Font Awesome 5 with fixed width
2 answers
I have been trying to make icons from fontawesome5 monospaced without much success:
documentclass[12pt]{article}
usepackage{fontspec}
usepackage{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}
I tried wrapping the faIcon{}
commands in texttt{}
, which did nothing.
Is there a way to do this?
This question already has an answer here:
How to use Font Awesome 5 with fixed width
2 answers
typewriter fontawesome fontawesome5
typewriter fontawesome fontawesome5
asked Apr 1 at 13:14
Tomáš SlámaTomáš Sláma
1158
1158
marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20
add a comment |
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20
add a comment |
1 Answer
1
active
oldest
votes
The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}
.
documentclass[12pt]{article}
%usepackage{fontspec}
usepackage[fixed]{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}
Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily
. They will still be fixed width, just a different fixed width from rmfamily
.
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}
.
documentclass[12pt]{article}
%usepackage{fontspec}
usepackage[fixed]{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}
Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily
. They will still be fixed width, just a different fixed width from rmfamily
.
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
add a comment |
The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}
.
documentclass[12pt]{article}
%usepackage{fontspec}
usepackage[fixed]{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}
Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily
. They will still be fixed width, just a different fixed width from rmfamily
.
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
add a comment |
The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}
.
documentclass[12pt]{article}
%usepackage{fontspec}
usepackage[fixed]{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}
Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily
. They will still be fixed width, just a different fixed width from rmfamily
.
The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}
.
documentclass[12pt]{article}
%usepackage{fontspec}
usepackage[fixed]{fontawesome5}
begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}
Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily
. They will still be fixed width, just a different fixed width from rmfamily
.
edited Apr 1 at 13:29
answered Apr 1 at 13:21
Steven B. SegletesSteven B. Segletes
161k9206416
161k9206416
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
add a comment |
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
I can't believe I missed that in the package documentation. Thank you!
– Tomáš Sláma
Apr 1 at 13:23
add a comment |
In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?
– Tomáš Sláma
Apr 1 at 13:20
It is. Should I flag the question as a duplicate?
– Tomáš Sláma
Apr 1 at 14:20