Expand row height in Latex table in textbox annotation
15 views (last 30 days)
Show older comments
Further to the very helpful answer to the question "How do I create a LaTeX table In a MATLAB text box?", is there a way to increase the row height?
I tried amending the previous example with the addition of \renewcommand{\arraystretch}{2} as follows:
cs = '\begin{tabular}{lll} \renewcommand{\arraystretch}{2} Chicago&U.S.A.&1893\\ Z\"{u}rich&Switzerland&1897\\ Paris&France&1900\\ Heidelberg&Germany&1904\\ Rome&Italy&1908 \end{tabular}';
figure;
ha = annotation('textbox',[0.5 0.5 0.4 0.2], 'Interpreter', 'latex', 'EdgeColor','none');
set(ha, 'String', cs);
but this made no difference.
Any suggestions?
3 Comments
Rémy Bretin
on 14 Jan 2021
Well, not exactly, but that gives me an idea for possible solution.
I would like to reduce the columns width.
I tried by changing "\begin{tabular}{lll}" by "\begin{tabular}{l{1cm}l{1cm}l{1cm}}" but this is not a "valid interpreter syntax".
Anyway, thank you for your amswer.
Have a gread day.
Answers (0)
See Also
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!