Effacer les filtres
Effacer les filtres

Report Generator - Writing subscripts within text

5 vues (au cours des 30 derniers jours)
Ryan
Ryan le 20 Avr 2011
I'm using the report generator and would like to include a variable letter with a subscript, for instance Q_turbine. Is there any way to get the report generator to write the subscript within a text. I know how to the the LaTeX commands to add subscripts to an axis label, but I'm not sure how this would work for plain text.
  2 commentaires
Jarrod Rivituso
Jarrod Rivituso le 20 Avr 2011
Which Report Generator element do you want to contain the subscript?
Ryan
Ryan le 20 Avr 2011
I am looking for either the text or paragraph component.

Connectez-vous pour commenter.

Réponses (2)

Oleg Komarov
Oleg Komarov le 20 Avr 2011

EDIT

This is what you get

%%
% My solution:
%
% $$ Q_{turbine} $$
%
% Jarrod's: 
%
% <html>
% Q<sub>turbine</sub>
% </html>
  9 commentaires
Ryan
Ryan le 20 Avr 2011
I think I understand the confusion. I'm using the Report Generator toolbox, not the publish command. Your solution works for the M-file publishing, but not the text component in the Report Generator.
Oleg Komarov
Oleg Komarov le 21 Avr 2011
Sorry, didn't get it! Never used report generator, can't be of any help.

Connectez-vous pour commenter.


Jarrod Rivituso
Jarrod Rivituso le 20 Avr 2011
Not sure if this meets your needs, but it seems like you could write HTML formatted text in a separate file and then include it using the "File" component.
In case you don't know, the < sub > tag is used for subscript in HTML:
This is a subscript: Qturbine

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by