Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

TexStudio 巨集轉小寫單字

tag-icon 2024-6-19 • tag-icon macros texstudio
TexStudio 巨集轉小寫單字

這個宏

%SCRIPT
cursor.replaceSelectedText("\\gls{" + cursor.selectedText() + "}")

用 \gls{} 將術語括起來。如何使巨集也將單字變成小寫?

答案1

支援所有 ECMAScript 函數/方法,因此字串法toLowerCase()做這個工作。

%SCRIPT
cursor.replaceSelectedText("\\gls{" + cursor.selectedText().toLowerCase() + "}")
THE END
使用 \dfrac 時行未對齊 使用 \dfrac 時行未對齊
尋找程式碼中錯誤位置的問題 尋找程式碼中錯誤位置的問題

相關內容

熱門問答

熱門問答

  • macros
  • texstudio
  • multicol
  • fractions

© 2024 rvso.com 版權所有. 網站地圖