TexStudio 新增自訂包含指令

TexStudio 新增自訂包含指令

當 TexStudio\include在來源檔案中看到命令時,它會將包含的檔案新增至文件結構窗格中。我正在使用leadsheet定義命令的套件\includeleadsheet。是否可以設定 TexStudio,以便它\includeleadsheet也被識別為\include 並且它包含的所有檔案也被添加到結構窗格中。

答案1

如同https://sourceforge.net/p/texstudio/feature-requests/1075/,您可以新增自訂 .cwl 檔案。

建立一個文件,例如。a.cwl,具有以下內容

\includeleadsheet{file}#i

如果您使用 Windows,請將文件放入%appdata%\texstudio\completion\user.

然後重新啟動texstudio,在選項->完成中,永久啟用a.cwl.

欲了解更多詳情,請查看https://htmlpreview.github.io/?https://github.com/texstudio-org/texstudio/master/utilities/manual/usermanual_en.html

相關內容