TeX - LaTeX Asked by Luke Collins on February 27, 2021
Although it is not standard notation, I quite like the fact that in Mathematica, a blackboard bold i
is used to represent the imaginary unit. Apart from making it stick out, it allows me to write things such as
allowing me to use the variable ‘i’ as an iterator in series, etc. To achieve this in LaTeX, I’ve made use of the bbm
package (mathbbm i
), however this doesn’t render as nicely as the standard AMS math mathbb
command, in fact, it looks pixellated up close:
Is there a way to achieve a nicer blackboard bold i
symbol? I’m not very fond of what is offered by the packages bbold
, mathbbol
or dsfont
packages either, I want to get something as close to AMS’s mathbb
as possible.
Here, I use dafrick's answer at Double-struck zero and one to use the boondox-ds versions of bb fonts, designated here as mymathbb{}
. I used j
in one location so that you can see it is not pixelated.
The fonts are installed via the boondox-dx
package, which is not invoked below, so as not to overwrite the native mathbb
implementation otherwise available through amssymb
.
documentclass{article}
usepackage{amsmath}
DeclareMathAlphabet{mymathbb}{U}{BOONDOX-ds}{m}{n}
begin{document}
[
x_i(t) = mathop{mathrm{Re}}(A_i e^{8000pimymathbb{j}t}c^{phi_imymathbb{i}}) text{for $i = 1, 2, 3$}
]
end{document}
FOLLOW UP
In comments, the OP asks for the mathbb{i}
from TG Pagella Math (OpenType format), but for use in pdflatex
, which is not available. Since it is only a single glyph that is being requested, here is a kludge to obtain it:
Create the document TGbbi.tex as follows, and compile in Xelatex:
documentclass{standalone}
usepackage{unicode-math}
setmathfont{TeX Gyre Pagella Math}
begin{document}
$mathbb{i}$
end{document}
It creates the output TGbbi.pdf containing only the Pagella version of mathbb{i}
. Now, reverting back to pdflatex
, we are going to call upon that graphic for use in a macro named bbi
defined as
newcommandbbi{ThisStyle{%
setbox0=hbox{$SavedStylemathbb{i}$}includegraphics[height=ht0]{TGbbi}}}
This macro requires the graphicx
package (to import the graphic) and the scalerel
package (to auto-scale it to the proper math size, taken as the vertical height of the regular mathbb{i}
). Thus, the implementation (showing use in several different math sizes) is
documentclass{article}
usepackage{amssymb,amsmath,scalerel,graphicx}
newcommandbbi{ThisStyle{%
setbox0=hbox{$SavedStylemathbb{i}$}includegraphics[height=ht0]{TGbbi}}}
begin{document}
[
x_i(t) = mathop{bbimathrm{Re}}(A_i e^{8000pibbi t}c^{phi_ibbi}) text{for $i = 1, 2, 3$}
]
end{document}
Zoom:
Correct answer by Steven B. Segletes on February 27, 2021
If you're free to use LuaLaTeX and the unicode-math
package and its setmathfont
macro, there are quite a few math fonts to choose from that provide a "double-struck" lowercase-i character.
Hopefully, one of the following eight choices will appeal to you. :-)
documentclass{article}
usepackage{unicode-math}
setmainfont{Stix Two Text} % choose the text font...
% Setting up eight [8!] math fonts
setmathfont{Latin Modern Math}[version=lm]
setmathfont{Cambria Math}[version=cambria]
setmathfont{Asana Math}[version=asana]
setmathfont{Stix Two Math}[version=stix2]
setmathfont{XITS Math}[version=xits]
setmathfont{TeX Gyre Termes Math}[version=termes]
setmathfont{TeX Gyre Pagella Math}[version=pagella]
setmathfont{TeX Gyre DejaVu Math}[version=dejavu]
newcommandblurb{$mathbb{123}quadmathbb{hij}quad e^{phi_imathbb{i}}$}
begin{document}
begin{tabular}{ll}
Latin Modern & mathversion{lm} blurb
Cambria & mathversion{cambria} blurb
Asana & mathversion{asana} blurb[1ex]
Stix Two & mathversion{stix2} blurb
XITS & mathversion{xits} blurb[1ex]
Termes & mathversion{termes} blurb
Pagella & mathversion{pagella} blurb
DejaVu & mathversion{dejavu} blurb
end{tabular}
end{document}
Answered by Mico on February 27, 2021
The package cmathbb offers Blackboard Bold characters compatible with the Computer Modern.
It is the only package that I found to provide good results for mathbb{i} for pdflatex.
Answered by skromnibog on February 27, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP