在 Windows 中插入匹配的 endsomething 的快捷方式

在 Windows 中插入匹配的 endsomething 的快捷方式

我想environments在 MiKTeX-TeXWorks 中自動插入結束語。我發現在 VIM 中插入匹配 \end{something} 的快捷方式。 Windows 中還有其他相同的選項嗎?

答案1

在 Texworks 中,輸入\begTAB,您將獲得\begin{。然後輸入doc\begin{doc再次按TAB您將獲得

\begin{document}



\end{document}

遊標位於其間。

然後鍵入,例如,\begTAB來獲取\begin{,然後鍵入ite( \begin{ite) 按TAB以獲取

\begin{document}

\begin{itemize}
\item

\end{itemize}•

\end{document}

還有許多其他快捷方式在文件中定義,例如tw-latex.txt.若要尋找這些內容,請前往HelpSettings and Resources。你會看到這個視窗:

在此輸入影像描述

點擊鏈接,資料夾C:\Users\HK\AppData\Local\MiKTeX\2.9\TeXworks\0.4將打開(香港對您來說可能有所不同)。進入資料夾,completion您將在其中找到四個檔案 → tw-basix.txttw-beamer.txt和。您需要在哪裡可以找到這些快捷方式。tw-context.txttw-latex.txttw-latex.txt

在此輸入影像描述

例如,鍵入bsubeq並按下TAB即可查看自己。


在 winedt 中,輸入

\begin{document}}   %%<--- extra brace

要得到

\begin{document}

\end{document}

或要關閉開啟的環境,請鍵入

\end{{

在 winedt 中,要找到捷徑,請執行以下操作:

前往OptionsOptions Interface,然後按Main Menu一次。按如圖所示的箭頭,您將找到快捷方式,按一下捷徑。現在所有快捷方式都被複製到剪貼簿。打開一個新文件並貼上。

在此輸入影像描述

相關內容