How do I hyphen a word using LaTex?

5 Ansichten (letzte 30 Tage)
Rafael Borobio Castillo
Rafael Borobio Castillo am 6 Mai 2022
Beantwortet: Star Strider am 6 Mai 2022
I am trying to add the word "multi-disciplinary" in the X-axis of a figure, but I use the \hyphenation command without success.
I hope anyone could help me
Regards. Rafael

Antworten (2)

Jonas
Jonas am 6 Mai 2022
Bearbeitet: Jonas am 6 Mai 2022
as far as I am aware, there is no automatic hyphenation in the labels, if you want to break the label, use e.g.
xlabel({'multi-','disciplinary'},'Interpreter','latex')

Star Strider
Star Strider am 6 Mai 2022
It appears to work as written —
figure
xlabel("multi-disciplinary", 'Interpreter','latex')
Do you want a different result?
.

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by