Text FormattingItalicized Blackboard Letters

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
richardgu26
Posts: 3
Joined: Fri Oct 04, 2013 1:14 pm

Italicized Blackboard Letters

Post by richardgu26 »

Dear all,

is there any way to typeset blackboard letters like \mathbb{E} in italic?


Thanks in advance.
Last edited by cgnieder on Fri Oct 04, 2013 1:28 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Italicized Blackboard Letters

Post by Johannes_B »

A quick hack found on TeX SX.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{amssymb}

\DeclareMathAlphabet{\mathbbmsl}{U}{bbm}{m}{sl}

\begin{document}
  \[
    \mathbb{E} \mathbbmsl{E} \boldsymbol{E}
  \]
\end{document}
I wouldn't recommend it though. Where did you get the idea to do this?


Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
richardgu26
Posts: 3
Joined: Fri Oct 04, 2013 1:14 pm

Italicized Blackboard Letters

Post by richardgu26 »

Thanks for your help. It comes into my mind as reading an economic paper, and find this math expectation operator looks good. I used mathpazo to follow the font, but cannot figure out how to get "E_t" done. The equation I attached. Any idea how to get this? I appreciate it!
20131005075859.png
20131005075859.png (15.58 KiB) Viewed 8580 times
Last edited by cgnieder on Sat Oct 05, 2013 2:08 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Italicized Blackboard Letters

Post by Johannes_B »

Would it be possible for you to provide the equation code in form of a minimal working example? This way, we don't have to type it again and can try out possible solutions right away.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
richardgu26
Posts: 3
Joined: Fri Oct 04, 2013 1:14 pm

Italicized Blackboard Letters

Post by richardgu26 »

Johannes_B wrote:Would it be possible for you to provide the equation code in form of a Minimal working example? This way, we don't have to type it again and can try out possible solutions right away.
My fault. I did not clear it clear. I don't know how to make it happen so that I posted the one that I found in an economic paper. Wish someone saw it visually could figure out how to do it.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Italicized Blackboard Letters

Post by cgnieder »

richardgu26 wrote:My fault. I did not clear it clear. I don't know how to make it happen so that I posted the one that I found in an economic paper. Wish someone saw it visually could figure out how to do it.
I have no idea what you're saying. :(

Anyway, here's an MWE for people to play with (this is what Johannes wanted you to do).

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts}

\DeclareMathAlphabet{\mathbbmsl}{U}{bbm}{m}{sl}

\begin{document}
  \[
    (e^\gamma-h\beta)(e^\gamma-h)\xi_t=
    -(e^{2\gamma}+\beta h^2)c_t+\beta he^\gamma
    \mathbbmsl{E}_t[c_{t+1}+z{t+1}]+he^\gamma(c_{t-1}-z_t)
  \]
\end{document}

Regards
site moderator & package author
Post Reply