Can LaTeX commands be embedded in LiveScripts?
조회 수: 3 (최근 30일)
이전 댓글 표시
Is there a way to add LaTex code into a LiveScript that gets exported as written? E.g.,
\begin{description}
or
\hspace{1cm}
etc.
I could imagine implementing this under the Insert tab adding a LaTeX option to Code Example. But is there another way?
Thanks!!
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 8월 13일
It depends what you mean by "exported"
If you happen to mean that you want it sent to Report Generator, then my understanding is that you can do that.
If you happen to mean that you want the raw text to be displayed on the screen, then Yes, you can do that.
If you happen to mean that you want to generate latex at run-time, and you want to have the rendered latex displayed in LiveScript, then there is no support for that. The closest you would get to that is that there is some internal support for displaying MathML -- but I have been unable to get anything to display on demand (at most I have been able to put in a breakpoint and modify the MathML of an expression so that the modified version is displayed, but I have never been able to trigger a display myself.)
If you were able to inject latex in LiveScript, you would only be able to affect one single expression, with no ability to affect blocks such as your \begin{description} would want to do. For that kind of work, you need Report Generator.
댓글 수: 2
Walter Roberson
2023년 8월 13일
As far as I know there is no support for that other than what can be done with Report Generator
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!