Hot answers tagged

13

You can use the package mathalpha with option bb=px. \documentclass{article} \usepackage[bb=px]{mathalpha} \begin{document} \( \mathbb{ZQCEN} \) \end{document}


10

You could use the double struck from stix2, just taking enough from stix2.sty to define the one font not change the whole setup. \documentclass{article} \DeclareFontEncoding{LS1}{}{} \DeclareFontSubstitution{LS1}{stix2}{m}{n} \DeclareMathAlphabet{\stixbb}{LS1}{stix2bb} {m} {n} \begin{document} [$\stixbb{12345}+12345$] \end{document}


8

The manual of amsfonts specifies that \mathbb should only be used with capital letters. What happens when other characters are in the argument of \mathbb is almost random. Type \mathbb{R}^2, which is more sensible also on a semantic point of view. The problem would present also with \mathcal.


8

Two methods, both involving shifted superposition: PDF SPECIALS TO ACHIEVE THIN OUTLINE EFFECT + SUPERPOSITION \documentclass[10pt]{article} \usepackage{stackengine,xcolor} \input pdf-trans \newbox\qbox \def\usecolor#1{\csname\string\color@#1\endcsname\space} \newcommand\bordercolor[1]{\colsplit{1}{#1}} \newcommand\fillcolor[1]{\colsplit{0}{#1}} \...


6

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 ...


6

The command \Bbb that used to be part of amsfonts has been deprecated in favor of \mathbb. However, \Bbbk is still the command for the blackboard bold lowercase k and is defined in amssymb. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} $\Bbb{A}$ % deprecated $\Bbbk$ \end{document} The command \Bbb{A} produces a warning Package ...


6

The OP cites this question, Who can write a package for the new mathbb font as in the picture and compatible with Computer Modern font?, as a desired endpoint, in which it appears that an outline font is offered. For work in pdflatex, and adapting my answer here: Outline text using TrueType fonts, you can set color of border, fill and line-thickness metric, ...


6

The obvious problem is breqn. A couple of fixes at the beginning: the correct syntax is \mathbb{Z}, not {\mathbb Z}; \lhd is not defined as a binary relation symbol. Fix without breqn: \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\bZ}{\mathbb{Z}} \newcommand{\nsg}{\mathrel{\lhd}} % normal subgroup \newcommand{\nsgZl}{\nsg_{\bZ^{l}}} \...


5

You probably don’t actually want a blackboard-bold numeral 𝟚 here. There is one in Unicode, so in unicode-math, your code would do exactly what you said.


5

You should be using newTX rather than the original TX fonts, that have several glitches. \documentclass{article} \usepackage{amsmath} \usepackage{newtxtext,newtxmath} \DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n} \begin{document} $\mathbb{ABCDEF}$ \end{document} Below the output with the line that “restores” the AMS blackboard bold font and without it for ...


4

After looking briefly at the documentation, and the examples section (as you didn't provide an example, which would have been nice): from pyx import graph, text text.set(mode="latex") text.preamble(r"\usepackage{amssymb}") g = graph.graphxy(width=8, x=graph.axis.linear(min=0, max=1)) g.plot(graph.data.function("y(x) = x**2", points=8)) xax = g.axes['x'] ...


4

\documentclass{article} \usepackage{bbold} \let\altmathbb\mathbb \usepackage[sc]{mathpazo} \begin{document} Hello world $\altmathbb{012345}$ \end{document} To restore the original so that no syntax variant is required: \documentclass{article} \usepackage{bbold} \let\altmathbb\mathbb \usepackage[sc]{mathpazo} \AtBeginDocument{\let\mathbb\altmathbb} ...


4

I guess you want to use \times instead of x (which is always wrong for denoting any kind of multiplication): \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} % or just amsfonts \begin{document} Wrong notation: $\mathbb{R}^{nx1}$ Right notation: $\mathbb{R}^{n\times 1}$ \end{document}


3

In the modern toolchain, with unicode-math, you can load the \mathbb alphabet of your choice with \setmathfont{TeX Gyre Termes Math} \setmathfont{Latin Modern Math}[ range={bb,bbit}, Scale=Matchuppercase] With legacy 8-bit fonts, you can load this and many other math alphabets with mathalpha: \usepackage{newtxtext,newtxmath} \usepackage[bb=ams]{...


3

There are several options. The mathalpha Package This package contains both a pazo and a px blackboard bold alphabet, matching mathpazo. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathpazo} \usepackage[bb=pazo]{mathalpha} \begin{document} \( ABC \mathbb{ABC} \) \end{document} You could also replace the mathalpha option bb=pazo with bb=...


3

Math mode is not suitable to put emphasis or other formatting on normal text. Math mode is (as the name suggests) for mathematics. In particular $někde$ (if it compiled) or $n\check{e}kde$ (which compiles, as suggested by Phelype Oleinik in the comments) would usually be interpreted as a mathematical term, specifically the product of the variables n, ě (or ...


3

This works out of the box in unicode-math. The package also supports \Bbbfive and the Unicode character 𝟝.


2

The screenshots you posted feature the following fonts text font: Times Roman (upright) [default for IEEEtran document class] math font: Computer Modern [also the default] "blackboard bold": either Fourier or Boondox As @egreg has already pointed out in a comment, this font combination is anything but successful. In fact, the combination is poor. Compare, ...


2

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.


2

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 ...


2

You can download the Latin Modern family of fonts in OpenType format from the GUST e-foundry (the font foundry of the Polish TeX user group). You can then place them in your system font directory or wherever the program you're using expects them. If the program supports it (MS Word does) you can also download the Latin Modern Math font which can be used to ...


2

Oh, I found a great solution (for Inkscape only): There is a function under: Extensions --> Render --> Latex.


2

Blackboard bold letters used to be faked by (over)printing the base letter with a slight displacement, like this old FAQ on (La)TeX: A set of LaTeX macros for a ``lazy person's'' blackboard bold are: \newcommand{\R}{{\sf R\hspace*{-0.9ex}\rule{0.15ex}% {1.5ex}\hspace*{0.9ex}}} \newcommand{\N}{{\sf N\hspace*{-1.0ex}\rule{0.15ex}% {...


2

You wrote, $\mathbb{Z}$ (from amsfonts) causes an error [when used] as first argument in \hyperlink{}{}. ... This issue arose while writing a macro that links keywords from the main text into the index, using the keyword as both first and second arguments of a hyperlink. I'd like this to work no matter what the keyword is. I think the following candidate ...


2

A very simple solution: \documentclass[a4paper,12pt]{article} \usepackage[outline]{contour} \newcommand*{\fancy}[1]{{\color{white}\contour{black}{#1}}} \begin{document} \fancy{$\Gamma\Delta$}$\Gamma$$\Delta$\fancy{$\Xi\Theta\Delta$} \end{document}


1

First, if you load mathalpha after loading fourier, mathalpha will redefine the \mathcal, \mathscr and \mathfrak commands according to your will. mathalpha will also redefine \mathbb, but fourier also redefines the \mathbb command at the beginning of the document (it took me a while to figure it out). Hence, the \mathbb command has to be redefined after the ...


1

Practically, an optional argument delimited by { and } breaks the (la)tex conventions, hence is strongly not recommended. Technically, the required syntax can be implemented as: \documentclass{article} \usepackage{amsfonts} \makeatletter \newcommand{\binaryB}{ \mathbb{B} \@ifnextchar\bgroup{\sp}{} } \makeatother \begin{document} \[ \binaryB \qquad \...


1

This is the image of the output I get from your example, taken from a magnified view. You can clearly see that the letters P and N from the bbm font are jagged, whereas the others characters show very cleanly. The fonts used by the bbm package are only available as bitmaps. The package hasn't been maintained for 20 years. Note that the P has “more chances”...


1

Another package could be mathalfa with option bb=boondox. \documentclass[a4paper,12pt]{article} \usepackage[bb=boondox]{mathalfa} \begin{document} $\mathbb{1},\mathbb{2}, \mathbb{3}, \mathbb{4}, \mathbb{5}, \mathbb{6}, \mathbb{7}, \mathbb{8}, \mathbb{9}, \mathbb{10}$ \end{document}


1

several fonts have these, eg stix \documentclass{report} \usepackage{stix} \begin{document} $\mathbb{1}$ $\mathbb{2}$ $\mathbb{3}$ $\mathbb{4}$ $\mathbb{5}$ $\mathbb{6}$ $\mathbb{7}$ $\mathbb{8}$ $\mathbb{9}$ $\mathbb{0}$ \end{document}


Only top voted, non community-wiki answers of a minimum length are eligible