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)?

6 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 19 de Jul. de 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')

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by