5

In Word I am able to include the unicode symbol U+1D53C (write number and press Alt+C) and assign italic formatting:

italic output

How do I get the same result in LaTeX?

I tried:

  1. \mathit{\mathbb{E}}
  2. {\it \mathbb{E}}
  3. \mathit{ \unicode{x1D7D9} \; \unicode{x1D53C}}

I still get non-italic results:

non-italic output

Furthermore, the following examples are all non-italic for blackboard bold fonts:
What are all the font styles I can use in math mode?

How can I slant the content of math mode? Apply some graphical transformation?

I would like to avoid extra definitions in my preamble.

10
  • 1
    Just found this related question (the solution given there does not seem to work in asciidoctor) tex.stackexchange.com/questions/16645/blackboard-italic-font
    – Stefan
    Commented Jul 4, 2018 at 14:16
  • asciidoctor seems to use MathJax not TeX (github.com/asciidoctor/asciidoctor-latex#introduction) Commented Jul 4, 2018 at 14:31
  • That's just a geometric transformation performed by the software. Slanting can be done also with TeX, of course.
    – egreg
    Commented Jul 4, 2018 at 14:39
  • 1
    The reason for the off-topic votes is that the question is about asciidoctor and therefore it is about MathJax. Although it is not stated explicitly in the help center, MathJax questions are generally considered off-topic. The reason is that it is a different system than LaTeX, which means that solutions for LaTeX often do not work for MathJax (as you noticed with the related question), making the question out of scope. You could try reposting it at Stack Overflow, make sure you clearly describe the context (use case, asciidoctor, web interface, JavaScript).
    – Marijn
    Commented Jul 5, 2018 at 8:40
  • 1
    Well, I hoped that there would be an alternative solution that would work both with Tex and MathJax and without extra definitions, e.g. (pseudo code) \transform[slant:30°]{...} or whatever. In my opinion the issue is still valid for Latex.
    – Stefan
    Commented Jul 5, 2018 at 13:21

3 Answers 3

3

The command for this in unicode-math is \mathbbit or \symbbit. It only supports the handful of letters defined in Unicode.

5

You can do it with XeLaTeX or LuaLaTeX. It can also be done by faking slant also with pdflatex, but this would need a whole set of virtual fonts.

\documentclass{article}
\usepackage{unicode-math}

\setmathfontface{\slantedmath}{Latin Modern Math}[FakeSlant=0.25]

\begin{document}

$𝔼 \slantedmath{𝔼}$

\end{document}

enter image description here

4

In pdflatex, borrowing from Shear transform a "box"

\documentclass{article}
\usepackage{amssymb}
\newsavebox{\foobox}
\newcommand{\slantbox}[2][.3]
  {%
    \mbox
      {%
        \sbox{\foobox}{#2}%
        \hskip\wd\foobox
        \pdfsave
        \pdfsetmatrix{1 0 #1 1}%
        \llap{\usebox{\foobox}}%
        \pdfrestore
      }%
  }
\begin{document}
$\slantbox{$\mathbb{E}$} = mc^2$
\end{document}

enter image description here

2
  • The code is the same… it doesn't double-strike the char
    – juanfal
    Commented Mar 6 at 10:37
  • 1
    In the context of the question @juanfal, "double struck" refers to the font type as shown in the letter E in my answer. My code does not double strike the letter, \mathbb{E} is "double struck" to begin with. What my code does is to convert an upright letter into an slanted (faux italic) letter. Commented Mar 6 at 17:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .