Why does the LaTeX command \textbf{\textregistered} displays the glyph with "r" in a circle and not the capital letter "R" in a circle in MATLAB 7.9 (R2009b)?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The command:
text(0.1,0.5,'\textbf{\textregistered}','Interpreter', 'latex')
returns the text registered symbol with a non capital "r". I was expecting to obtain the standard symbol with a capital R in a circle.
Réponse acceptée
MathWorks Support Team
le 19 Juil 2010
This is an expected behavior. The \textregistered macro when included in bold text, since it is composed of small-caps letter, degrades to a regular shape letter in bold font.
The glyph then becomes a circled "r" instead of a circled "R". In standard LaTeX the use of additional packages like "textcomp" can solve the issue. MATLAB offers a limited subset of LaTeX instruction and it does not include this package to correctly display the symbol in bold format.
As a workaround consider using the command without the \textbf{} option:
text(0.1,0.5,'{\textregistered}','Interpreter', 'latex')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur LaTeX dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!