bold lowercase Greek letters in latex interpreter

49 次查看(过去 30 天)
Hello
I want to have bold lowercase Greek letters in the x-axis and I need also math symbols in it (\hbar in this case). I am really sick of it because of the cases:
1. xlabel('\bf \omega','fontsize',50)
-it works like I want but I am not able to input \hbar in it. When I write:
xlabel('\bf \omega \hbar','fontsize',50) it messes up the label
2. xlabel('$\mathbf{\hbar\omega}$','Interpreter','latex','fontsize',50)
-it works perfectly for hbar but the omega is not bold and it is italic (It drives me crazy,
because it works correctly for upper case \Omega, but not for the lower case \omega -and same
for other letters)
So I am asking: Is it possible to turn on and off bold and italic mode in latex interpreter in math mode in order to write Greek letters (both cases) and math symbols and numbers and Latin letters?
Please help me!
Thanks a lot in advance.
  6 个评论
dpb
dpb 2015-1-12
I'm sure how quickly is highly dependent upon how familiar one is w/ the ins and outs of LaTex...
dpb
dpb 2015-1-12
I've no klew on how can write syntax in the Matlab strings passed via legend and/or text to do the more exotic stuff of using packages and all (or if it's even possible). I just don't know enough about TeX/LaTex syntax to have any idea where parens vs curlies and record marks are significant and the like.
It's a whole new programming language and I've never used it for anything but the most rudimentary purposes. It also is one thing to use a package and something else again to know what/how the implementation is patched into Matlab...

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by