1

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.

  • 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 Jul 4 '18 at 14:16
  • asciidoctor seems to use MathJax not TeX (github.com/asciidoctor/asciidoctor-latex#introduction) – user36296 Jul 4 '18 at 14:31
  • That's just a geometric transformation performed by the software. Slanting can be done also with TeX, of course. – egreg Jul 4 '18 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 Jul 5 '18 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 Jul 5 '18 at 13:21
4

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

3

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

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.