Filter löschen
Filter löschen

\lVert and \rVert are not rendered on '9.7.0.1190202 (R2019b)', Ubuntu 18.04

12 Ansichten (letzte 30 Tage)
This line
xlabel('$\lVert x \rVert$', 'Interpreter', 'latex')
triggers this message
Warning: Error updating Text.
String scalar or character vector must have valid interpreter syntax:
$\lVert x \rVert$
and then label is rendered as "$\lVert x \rVert$", whithout the latex interpretation. \vert is rendered correctly.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Sep. 2020
Those are amsmath and that package is not included in MATLAB latex.
  4 Kommentare
Carlos Mendoza
Carlos Mendoza am 2 Okt. 2020
In the absence of an answer from the Staff and a clear statement on the official Matlab documentation, I would take this last comment of yours as the answer to my question :). Thanks.
Walter Roberson
Walter Roberson am 2 Okt. 2020
There are very few references to \usepackage in the documentation.
One of them could be read very broadly as hinting that possibly two packages are automatically included.
Notice the autogenerated latex has \usepackage{graphicx} \usepackage{color} even though the user did not put those in. That hints that maybe those packages are already included by Mathworks.
But in practice, I have never been able to use the color definition facility of the color package... as if the package is in fact not included.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by