
當 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
.