Report Generator - Writing subscripts within text
Show older comments
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 Comments
Jarrod Rivituso
on 20 Apr 2011
Which Report Generator element do you want to contain the subscript?
Ryan
on 20 Apr 2011
Answers (2)
Oleg Komarov
on 20 Apr 2011
0 votes
EDIT
This is what you get
%%
% My solution:
%
% $$ Q_{turbine} $$
%
% Jarrod's:
%
% <html>
% Q<sub>turbine</sub>
% </html>

9 Comments
Ryan
on 20 Apr 2011
Oleg Komarov
on 20 Apr 2011
Which version do you have?
Ryan
on 20 Apr 2011
Oleg Komarov
on 20 Apr 2011
Unfortunately you cannot embed latex equations with that version: http://www.mathworks.com/support/solutions/en/data/1-6CKOEZ/index.html?product=MR&solution=1-6CKOEZ
A workaround is suggested in the technical solution above.
Ryan
on 20 Apr 2011
Oleg Komarov
on 20 Apr 2011
Yes but the quality of latex equations is poor.
Ryan
on 20 Apr 2011
Ryan
on 20 Apr 2011
Oleg Komarov
on 21 Apr 2011
Sorry, didn't get it! Never used report generator, can't be of any help.
Jarrod Rivituso
on 20 Apr 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
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!