Latex in LiveScript - no dialog box

3 ビュー (過去 30 日間)
Cynthia Flores
Cynthia Flores 2022 年 5 月 9 日
回答済み: Sudarsanan A K 2023 年 10 月 13 日
I recall a previous version of MATLAB Online that allowed LiveScript to immediately typeset using Latex code without needing to use the Latex equation dialog box. This is especially helpful when you want to write a short symbol mathematically e.g., the symbol a so it isn't confused with the word 'a'. Right now, I just get $ a $ (without the spaces) in my text block. I was able to type this comment and the symbol a without the dialog box, but can't seem to do so in the LiveScript without invoking the dialog box (tedious for long reports). Any suggestions?
  2 件のコメント
Matt J
Matt J 2022 年 5 月 9 日
Presumably, you only see this in Matlab Online? I don't see this problem in regular offline LiveScript.
Cynthia Flores
Cynthia Flores 2022 年 5 月 9 日
Correct -- I tend to use the Online option because of the convenience in an educational setting. Students don't need to download MATLAB to create beautiful LiveScripts.

サインインしてコメントする。

回答 (1 件)

Sudarsanan A K
Sudarsanan A K 2023 年 10 月 13 日
Hello Cynthia,
I understand that you are looking for typesetting in the 'Live Script' of MATLAB Online without needing the user to invoke the dialog box.
This can be achieved by setting your preference as follows:
  1. Go to the "Home" tab in the MATLAB Online environment.
  2. Click on "Preferences" in the toolbar.
  3. In the "Preferences" window, select "Editor/Debugger" from the left-hand pane to expand the list.
  4. Select "Autoformatting".
  5. Under "Insert options", enable "$LaTeX$ for LaTeX equation".
After following the above mentioned steps, you can use syntax directly in the Live Script without needing to use the equation dialog box.
I hope this address your query.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by