LaTeX Interpreter and Blackboard bold (\mathbb{}) for text
조회 수: 149 (최근 30일)
이전 댓글 표시
Hello
I'm creating a MATLAB plot to be exported in a LaTeX document in eps format.
For instance, I have the following ylabel command that works properly:
ylabel('$\alpha \in R$','Interpreter','latex')
However, if I try to use black board style in the text for the letter R this will not work:
ylabel('$\alpha \in \mathbb{R}$','Interpreter','latex')
I understand that the mathbb requires the amsmath package but I'm wondering if there is any other way to have that letter R in black board sytle.
Thanks in advance.
L
댓글 수: 0
채택된 답변
Honglei Chen
2011년 12월 27일
If that is all you want to do, you can use the default tex interpreter.
ylabel('\alpha in \bf{R}')
댓글 수: 0
추가 답변 (4개)
Seongmun Jung
2021년 11월 1일
Use ℝ (Unicode Decimal Code ℝ)
ylabel('\alpha \in ℝ')
or
ylabel(sprintf("\\alpha \\in %c", 8477))
댓글 수: 1
Walter Roberson
2021년 11월 1일
Note: you can only use unicode characters in R2015b or later, and you have to be using interpreter 'none' or interpreter 'tex' . It does not work with interpreter 'latex'
Leo
2011년 12월 27일
댓글 수: 1
Honglei Chen
2011년 12월 27일
Hi Leo,
I've never done that so I don't know if it can be done. I could be wrong but my guess is no as it is not part of basic TeX or LaTeX and MATLAB only supports only a basic subset of TeX or LaTeX.
I would suggest you to contact technical support and get an authoritative answer on this.
HTH
Demetrio Rodriguez Tereshkin
2016년 5월 4일
Or just add asmath package to matlab-latex: http://stackoverflow.com/questions/12250919/how-do-you-use-the-latex-blackboard-font-in-matlab
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Live Scripts and Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!