entering a space that survives the latex interpreter
47 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Leo Simon
il 16 Ago 2020
Risposto: Star Strider
il 16 Ago 2020
I'm trying to include blank spaces in the title to a plot. When I run the title string through the latex intepreter, it kills the spaces. Example below illustrates
Is there a way to prevent this? Thanks very much, Leo
plot(1:10)
Title='$\theta$ .';
title(Title,'Interpreter','latex')
0 Commenti
Risposta accettata
Star Strider
il 16 Ago 2020
Try this:
plot(1:10)
Title=sprintf('$\\theta%s.$', repmat('\ ',1,37));
title(Title,'Interpreter','latex')
It may not be the most efficient option, however it appears to do what you want.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Title in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!