bold lowercase Greek letters in latex interpreter
Afficher commentaires plus anciens
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 commentaires
dpb
le 11 Jan 2015
As I said, I "know nuthik!" about either TeX or LaTeX other than the most rudimentary but I found the following quote at
"These formatting commands can be wrapped around the entire equation, and not just on the textual elements: they only format letters, numbers, and uppercase Greek, and other math commands are unaffected.
To bold lowercase Greek or other symbols use the \boldsymbol command[3]; this will only work if there exists a bold version of the symbol in the current font. As a last resort there is the \pmb command[3] (poor mans bold): this prints multiple versions of the character slightly offset against each other."
I never was able to get the two to play nice with each other, however, and Matlab is not the vehicle within which to try to debug LaTeX expressions. If you have some of the other toolsets, I suggest figuring out a syntax that works with one of them and see it Matlab will honor it. Then at least you've got something to point to.
I did not try the "poor man's" solution...
Cloud
le 11 Jan 2015
dpb
le 11 Jan 2015
Yabbut TeX and LaTeX aren't the same thing at all...
As I say, I've exhausted my knowledge of both, sorry.
You can always try submitting to "official" TMW support via www.mathworks.com if nobody else seems to have the specific answer or a LaTex support forum/newsgroup can't tell you what should be the proper syntax.
The difficulty with Matlab doc's is that these are pieces grafted onto Matlab from the open-source community so really aren't Matlab, per se so the connection/specifics are a black box.
Cloud
le 11 Jan 2015
dpb
le 12 Jan 2015
I'm sure how quickly is highly dependent upon how familiar one is w/ the ins and outs of LaTex...
dpb
le 12 Jan 2015
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...
Réponses (0)
Catégories
En savoir plus sur Labels and Annotations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!