<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% !TeX root = ../install-latex-guide-zh-cn.tex

\chapter{ä½¿ç”¨ç¼–è¾‘å™¨}

\section{Windows 11 ç³»ç»Ÿ}

åœ¨å®žé™…æ“ä½œä¸­, ç”¨æˆ·ä¼šå‘è§‰ä½¿ç”¨è®°äº‹æœ¬ç¼–å†™ \texttt{tex} æ–‡ä»¶ååˆ†ä¸ä¾¿,
å›&nbsp;æ­¤å¾ˆå¤šç”¨æˆ·éƒ½å°†å…¶ä»–ç¼–è¾‘å™¨ä½œä¸ºè‡ªå·±çš„é¦–é€‰.
è¿™é‡Œå‘å¤§å®¶ä»‹ç»éš \TeX\ Live ä¸€åŒå‘è¡Œçš„è½»é‡çº§ç¼–è¾‘å™¨ \TeX works
å’ŒåŠŸèƒ½æ›´åŠ&nbsp;ä¸°å¯Œçš„
\TeX studio.
å…¶ä»–ç¼–è¾‘å™¨æ—&nbsp;æ³•ä¸€ä¸€ä»‹ç», è¿˜è¯·è‡ªå·±åœ¨ç½‘ä¸Šå¯»æ±‚æ›´å¤šå¸®åŠ©. 

\subsection{\TeX works}

\TeX works æ˜¯ä¸€æ¬¾è½»é‡çº§çš„ \LaTeX\ ç¼–è¾‘å™¨, ä¸ªäººè®¤ä¸ºéžå¸¸é€‚åˆå…¥é—¨çº§ç”¨æˆ·ä½¿ç”¨%
\footnote{å¾ˆå¤šç”¨æˆ·åœ¨ç¼–å†™ \texttt{tex} æ–‡ä»¶æ—¶å–œæ¬¢å€ŸåŠ©å…¶ä»–å·¥å…·,
è¿™ä¸æ˜¯ä¸ªå¥½ä¹&nbsp;æƒ¯, è¿™é‡Œé¼“åŠ±ç”¨æˆ·å¤šæ‰‹åŠ¨æ•²ä»£ç&nbsp;}. 

å’Œå¤§å¤šæ•°å›½äº§è½¯ä»¶ä¸åŒ, \TeX works ä¸ä¼šè‡ªåŠ¨åœ¨æ¡Œé¢ç”Ÿæˆå¿«æ·æ–¹å¼,
æ–°äººå¾€å¾€ä¸çŸ¥é“å¦‚ä½•æ‰“å¼€å®ƒ. 
å®žé™…ä¸Š \TeX works åœ¨ \TeX\ Live å®‰è£…è·¯å¾„çš„
\texttt{\textbackslash bin\textbackslash windows} ä¸­,
å¯åœ¨ \textsf{cmd} ä¸­æ‰§è¡Œ \texttt{texworks} æ‰“å¼€,
ä¹Ÿå¯ç›´æŽ¥åœ¨ Windows æœç´¢æ&nbsp;é‡Œæœ \TeX works æ‰“å¼€. 

åˆšå¼€å§‹ä½¿ç”¨ \TeX works çš„ç”¨æˆ·ä¸å¿…è¿‡å¤šé…ç½®,
åœ¨é»˜è®¤çŠ¶æ€ä¸‹æ‰“å¼€è½¯ä»¶ã€ç¼–å†™ä»£ç&nbsp;ã€ä¿å­˜æ–‡ä»¶åŽ,
ç”¨æˆ·å¯ä½¿ç”¨ \TeX works çš„â€œæŽ’ç‰ˆâ€æŒ‰é’®è¿›è¡Œæ–‡æ¡£ç¼–è¯‘è€Œä¸å¿…å›žåˆ°å‘½ä»¤è¡Œ%
\footnote{å®žé™…ä¸Šç¼–è¾‘å™¨çš„æŒ‰é’®ä¹Ÿæ˜¯è°ƒç”¨å‘½ä»¤è¡Œæ¥ç¼–è¯‘æ–‡æ¡£,
\TeX works é»˜è®¤æŽ’ç‰ˆå¿«æ·é”®æ˜¯ \keys{ctrl + T}}.
æŒ‰é’®æ—è¾¹æ˜¯ç¼–è¯‘å‘½ä»¤èœå•, ç”¨æˆ·å¯æ&nbsp;¹æ®éœ€è¦è‡ªè¡Œé€‰æ‹©. 

ä¸‹é¢ä»‹ç»å‡&nbsp;ä¸ªå¸¸ç”¨çš„åŠŸèƒ½. 

\subsubsection{æ˜¾ç¤ºè¡Œå·}

æ‰“å¼€ \menu{ç¼–è¾‘ &gt; é¦–é€‰é¡¹ &gt; ç¼–è¾‘å™¨}, é€‰æ‹© \menu{è¡Œå·} å³å¯. 

\subsubsection{è°ƒæ•´å­—ä½“}

\TeX works æœ‰æ—¶ä¼šæ“…è‡ªæ›´æ”¹ç¼–è¾‘å™¨æ‰€ä½¿ç”¨çš„å­—ä½“,
å¾ˆå¤šå­—ä½“``é•¿ç›¸''è¯¡å¼‚,
è®©ç”¨æˆ·è¯¯ä»¥ä¸ºæ˜¯ä¹±ç&nbsp;.
ç”¨æˆ·å¯åœ¨ \menu{ç¼–è¾‘ &gt; é¦–é€‰é¡¹ &gt; ç¼–è¾‘å™¨é»˜è®¤é…ç½®}
å’Œ \menu{æ&nbsp;¼å¼ &gt; å­—ä½“} å¤„è¿›è¡Œæ›´æ”¹.
Windows 11 ä¸­å­—ä½“åˆ—è¡¨è§%
\href{https://docs.microsoft.com/en-us/typography/fonts/windows_11_font_list}{è¿™é‡Œ}.

\subsubsection{è‡ªåŠ¨è¡¥å…¨}

è‡ªåŠ¨è¡¥å…¨ä¸»è¦æ˜¯ \keys{tab} é”®çš„åŠŸèƒ½,
ä½¿ç”¨å‰éœ€ç¡®å®š \menu{é¦–é€‰é¡¹ &gt; ç¼–è¾‘å™¨} ä¸­æ˜¯å¦å‹¾é€‰äº† \menu{å¯åŠ¨è‡ªåŠ¨è¡¥å…¨}. 
æœ‰å…³è‡ªåŠ¨è¡¥å…¨çš„æ›´å¤šå†…å®¹ç”¨æˆ·å¯å‚è€ƒ
\href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX works çš„è‡ªåŠ¨è¡¥å…¨åŠŸèƒ½}. 

\subsubsection{ä½¿ç”¨æ¨¡æ¿}

\TeX worksæ”¯æŒä»Žæ¨¡æ¿æ–°å»ºæ–‡æ¡£, åœ¨ \menu{æ–‡ä»¶} èœå•ä¸­å¯è§. 

\subsubsection{æ›´æ”¹ç¼–è¯‘å‘½ä»¤è®¾ç½®}

\TeX works é»˜è®¤æä¾›äº†è‹¥å¹²ç¼–è¯‘å‘½ä»¤,
å…·ä½“è§ \menu{ç¼–è¾‘ &gt; é¦–é€‰é¡¹ &gt; æŽ’ç‰ˆ}.
å®žé™…ä¸Š,
ç”¨æˆ·å¯ä»¥æ&nbsp;¹æ®è‡ªå·±çš„éœ€è¦,
æ·»åŠ&nbsp;ã€æ›´æ”¹å…¶ä¸­çš„è®¾ç½®.
é¦–å…ˆæ˜Žç¡® \TeX works ä¸­å·²æœ‰ä¸€äº›å®šä¹‰,
è§è¡¨~\ref{tab:editor} \footnote{å‚è€ƒ \href{https://github.com/TeXworks/texworks/wiki/AdvancedTypesettingTools}{Advanced Typesetting Tools}.}.
æŽ¥ä¸‹æ¥å¯ä»¥å®šä¹‰ \texttt{latexmkpdf},
å®ƒè°ƒç”¨ \texttt{latexmk} å¹¶ä½¿ç”¨ \texttt{pdflatex} ç­‰å‘½ä»¤ç¼–è¯‘æ–‡æ¡£.
åœ¨ \menu{æŽ’ç‰ˆ} ä¸Šç‚¹å‡» \menu{+},
è¾“å…¥åç§° \textsf{latexmkpdf} å’Œç¨‹åº \texttt{latexmk},
ç›¸å…³å‚æ•°éœ€è¦å†æ¬¡ç‚¹å‡» \menu{+} æ¥äºˆä»¥æ·»åŠ&nbsp;,
ä¾‹å¦‚æ·»åŠ&nbsp;ä»¥ä¸‹è¿™äº›
\begin{lstlisting}
  -e
  $pdflatex=q/pdflatex $synctexoption %O %S/
  -pdf
  $fullname
\end{lstlisting}
è¿™é‡Œçš„ \texttt{\$synctexoption} å’Œ \texttt{\$fullname} å‡æ˜¯ \TeX works é¢„å®šä¹‰çš„å†…å®¹,
è€Œå…¶ä»–çš„ \texttt{-e}, \texttt{\$pdflatex=...} å’Œ \texttt{-pdf} éœ€è¦ç”¨æˆ·è‡ªå·±é˜…è¯» \texttt{latexmk} æ‰‹å†Œäº†è§£.
ç„¶åŽé€‰æ‹© \textsf{è¿è¡ŒåŽæŸ¥çœ‹ pdf æ–‡ä»¶},
å†ç‚¹å‡» \menu{OK},
å³å¯å‘çŽ°å·²ç»æ·»åŠ&nbsp;æˆåŠŸ.
ä¹‹åŽç”¨æˆ·å¯ä»¥è°ƒç”¨ \texttt{latexmkpdf} æ¥ç¼–è¯‘æ–‡æ¡£.
å½“ç„¶,
åœ¨ \menu{æŽ’ç‰ˆ} å¤„è¿˜å¯ä»¥å°† \texttt{latexmkpdf} è®¾ç½®ä¸ºé»˜è®¤.

ç±»ä¼¼åœ°,
å¦‚æžœè¦å®šä¹‰ \texttt{latexmkxe},
å¯ä»¥è€ƒè™‘ä»¥ä¸‹å‚æ•°
\begin{lstlisting}
  -e
  $xelatex=q/xelatex $synctexoption %O %S/
  -xelatex
  $fullname
\end{lstlisting}
ç¨‹åºä¾ç„¶æ˜¯ \texttt{latexmk}.

\begin{table}
  \centering
  \caption{\TeX works å·²æœ‰å®šä¹‰}\label{tab:variables}
  \begin{tabular}{&gt;{\ttfamily}p{0.18\linewidth}p{0.75\linewidth}}
    \toprule
    Option &amp; Description\\
    \midrule
    \$synctexoption &amp; expands to ``-synctex=1'' if your tools support SyncTeX\\
    \$fullname &amp; expands to the full name of your root document (e.g. rootfile.tex)\\
    \$basename &amp; expands to the name (without extension) of your root document (e.g. rootfile)\\
    \$suffix &amp; expands to the extension of your root document (e.g. tex)\\
    \$directory &amp; expands to the absolute path to the directory containing your root document\\
    \bottomrule
  \end{tabular}
\end{table}

\subsubsection{æ‹¼å†™æ£€æŸ¥}

é»˜è®¤æƒ…å†µ, \TeX worksæ²¡æœ‰æ­è½½æ‹¼å†™æ£€æŸ¥å­—å…¸, éœ€è¦ç”¨æˆ·è‡ªå·±é…ç½®. 
é¦–å…ˆ, è®¿é—®
\href{https://extensions.openoffice.org/dictionary}{\textsf{OpenOffice}}
ä¸‹è½½ \texttt{.oxt} æ–‡ä»¶.
å°† \texttt{.oxt} æ–‡ä»¶é‡å‘½åä¸º \texttt{.zip} æ–‡ä»¶,
è§£åŽ‹ç¼©å¾—åˆ°é‡Œé¢çš„ \texttt{.dic} å’Œ \texttt{.aff} æ–‡ä»¶.
æŽ¥ä¸‹æ¥å°†å®ƒä»¬å®‰è£…åˆ°
\texttt{&lt;resources&gt;\textbackslash dictionaries}%
\footnote{\texttt{&lt;resources&gt;} çš„å…·ä½“ä½ç½®å¯ä»¥åœ¨
\menu{å¸®åŠ© &gt; TeXworks é…ç½®ä¸Žèµ„æº} ä¸­æ‰¾åˆ°,
è‹¥ä¸å­˜åœ¨è¯¥ \texttt{dictionaries} æ–‡ä»¶å¤¹,
ç”¨æˆ·å¯è‡ªè¡Œå»ºç«‹.}. 
å®‰è£…å®ŒæˆåŽ, åœ¨ \menu{ç¼–è¾‘ &gt; æ‹¼å†™} ä¸­é€‰æ‹©å³å¯. 

\subsubsection{é­”æ³•æ³¨é‡Š}

é­”æ³•æ³¨é‡Šå¯ä»¥ç›´æŽ¥è§„å®šä¸»æ–‡æ¡£ã€æ–‡ä»¶ç¼–ç&nbsp;å’Œç¼–è¯‘å‘½ä»¤ç­‰. 
ä¾‹å¦‚ç”¨æˆ·å†™å­¦ä½è®ºæ–‡æ—¶, å¾€å¾€æœ‰ä¸€ä¸ªä¸»æ–‡æ¡£å’Œè‹¥å¹²å­æ–‡æ¡£. 
åœ¨å­æ–‡æ¡£çš„å¼€å¤´å†™ä¸Šé­”æ³•æ³¨é‡Š
\begin{lstlisting}
  % !TeX root = ../main.tex
\end{lstlisting}
å³å¯å‘Šè¯‰ç³»ç»Ÿä¸Šä¸€çº§ç›®å½•ä¸­çš„ \texttt{main.tex} æ˜¯ä¸»æ–‡æ¡£%
\footnote{ä¸»æ–‡æ¡£å’Œå­æ–‡æ¡£çš„æ›´å¤šå†…å®¹è¯·å‚è€ƒ \texttt{\textbackslash include}
å’Œ \texttt{\textbackslash input} çš„ç”¨æ³•}. 
\begin{lstlisting}
  % !TeX encoding = UTF8
\end{lstlisting}
è¡¨ç¤ºè¯¥æ–‡æ¡£ä½¿ç”¨ ``UTF-8'' ç¼–ç&nbsp;%
\footnote{ç›®å‰å»ºè®®ç”¨æˆ·å¤šç”¨ ``UTF-8'' ç¼–ç&nbsp;, å°¤å…¶æ˜¯ä¸­æ–‡æ–‡æ¡£}. 
\begin{lstlisting}
  % !TeX program = xelatex
\end{lstlisting}
è¡¨ç¤ºè¯¥æ–‡æ¡£ä½¿ç”¨ \texttt{xelatex} ç¼–è¯‘å‘½ä»¤è¿›è¡Œç¼–è¯‘. 
\begin{lstlisting}
  % !TeX spellcheck = &lt;language_code&gt;
\end{lstlisting}
è¡¨ç¤ºè¯¥æ–‡æ¡£ä½¿ç”¨ \texttt{&lt;language\_code&gt;} è¿›è¡Œæ‹¼å†™æ£€æŸ¥,
å®ƒçš„å…·ä½“åç§°è¯·ç”¨æˆ·åˆ° \menu{ç¼–è¾‘ &gt; æ‹¼å†™} ä¸­æŸ¥çœ‹. 

\subsubsection{è½¬ç¼–ç&nbsp;}

å®žé™…ä¸Šè½¬ç¼–ç&nbsp;æ˜¯å¾ˆå¤šç¼–è¾‘å™¨éƒ½å…·å¤‡çš„åŠŸèƒ½. 
åœ¨\TeX workså³ä¸‹è§’æœ‰ä¸‰ä¸ªæŒ‰é’®,
å·¦è¾¹æŒ‰é’®æŽ§åˆ¶æ¢è¡Œç¬¦ç±»åž‹, ä¸­é—´æŒ‰é’®æŽ§åˆ¶æ–‡æ¡£ç¼–ç&nbsp;, å³è¾¹æŒ‰é’®æŽ§åˆ¶è¡Œè·³è½¬. 
ç›®å‰å¤§éƒ¨åˆ†ä¸­æ–‡ç”¨æˆ·ä¸»è¦é¢ä¸´çš„æ˜¯``UTF-8''å’Œ``GBK''ä¹‹é—´çš„è½¬æ¢. 
å¦‚æžœæ–‡æ¡£æ˜¯``GBK''ç¼–ç&nbsp;, ä½¿ç”¨\TeX worksæ‰“å¼€æ–‡ä»¶åŽ, æ–‡æ¡£ä¼šå‡ºçŽ°ä¹±ç&nbsp;. 
è¿™æ—¶, ç‚¹ä¸­é—´æŒ‰é’®, é€‰æ‹©ç¼–ç&nbsp;ç±»åž‹``GBK'', å†ç‚¹å‡»æŒ‰é’®,
é€‰æ‹© \menu{ä½¿ç”¨æ‰€é€‰ç¼–ç&nbsp;é‡è½½æ–‡æ¡£}, è‹¥æ–‡æ¡£ä¸­ä¹±ç&nbsp;æ¶ˆå¤±, åˆ™å†æ¬¡ç‚¹å‡»æŒ‰é’®,
é€‰æ‹©``UTF-8'', æœ€åŽä¿å­˜æ–‡æ¡£, å®Œæˆè½¬ç&nbsp;å·¥ä½œ. 

é™¤ä»¥ä¸Šå†…å®¹å¤–, \TeX works è¿˜æ”¯æŒæ­£åˆ™è¡¨è¾¾å¼ã€è‡ªå®šä¹‰å¿«æ·é”®ç­‰. 
è¿™äº›å†…å®¹éƒ½å†™åœ¨ \TeX works è‡ªå¸¦çš„æ‰‹å†Œä¸­. 
æ‰‹å†Œä¸é•¿, ç”¨æˆ·å¯ä»¥é€šè¯»ä¸€éä»¥äº†è§£æ›´å¤šå†…å®¹.
å¾ˆå¤šåŠŸèƒ½å¯ä»¥é€šè¿‡\textbf{èœå•æ&nbsp;}æ‰¾åˆ°,
å›&nbsp;æ­¤å»ºè®®ç”¨æˆ·ç¨å¾®äº†è§£ä¸€ä¸‹å®ƒçš„èœå•æ&nbsp;.

\subsection{\TeX studio}\label{subsec:texstudio}

ç›¸è¾ƒäºŽ \TeX works, \TeX studio åŠŸèƒ½æ›´ä¸°å¯Œ, ç”¨æ³•æ›´å¤š.
åœ¨ä½¿ç”¨ \TeX studio å‰,
ç”¨æˆ·ä¸€å®šè¦æŸ¥è¯¢\textbf{çŽ¯å¢ƒå˜é‡}ä¸­æ˜¯å¦æœ‰ \texttt{system32}.
å…·ä½“æ–¹æ³•åœ¨å‰é¢å·²æœ‰è¯´æ˜Ž, æ­¤å¤„ä¸å†èµ˜è¿°.
ä»¥ä¸‹æœ‰å…³ \TeX studio çš„ç”¨æ³•ä»‹ç»,
è¿˜è¯·ç”¨æˆ·æå‰åœ¨ \menu{Options &gt; configure TeXstudio} ä¸­å‹¾é€‰
\menu{Show Advanced Options}.

\subsubsection{ä¸‹è½½æ–¹æ³•}

\TeX studio æœ‰è‡ªå·±çš„%
\href{http://texstudio.sourceforge.net/}{å®˜æ–¹ç½‘ç«™},
ä½†å›&nbsp;ç½‘ç»œåŽŸå›&nbsp;,
æ‰“å¼€ä¸ä¾¿.
ç½‘ç«™ä¸Šæä¾›çš„ä¸‹è½½é“¾æŽ¥è·³è½¬åˆ°äº† github ä¸Š,
æœ‰å…´è¶£çš„æœ‹å‹å¯ä»¥ç›´æŽ¥åˆ° github ä¸ŠæŸ¥çœ‹%
\href{https://github.com/texstudio-org/texstudio}{æºç&nbsp;}%
å’Œ%
\href{https://github.com/texstudio-org/texstudio/releases}{å¯æ‰§è¡Œæ–‡ä»¶};
è€Œæ¸…åŽå¤§å­¦ä¹Ÿæä¾›äº†ç›¸åº”çš„%
\href{https://mirrors.tuna.tsinghua.edu.cn/github-release/texstudio-org/texstudio/LatestRelease/}{é•œåƒ},
ä¾¿äºŽç”¨æˆ·ä¸‹è½½.
æ­¤å¤–,
æœ‰%
\href{https://d.serctl.com}{ç¬¬ä¸‰æ–¹ç½‘ç«™}%
å¯ä»¥è¾…åŠ©ç”¨æˆ·ä¸‹è½½ github ä¸Šçš„å‘è¡Œæ–‡ä»¶,
ç½‘ç«™æä¾›äº†ä¸‹è½½æ•™ç¨‹,
è¿™é‡Œä¸å†å±•å¼€.

\subsubsection{æ›´æ”¹é»˜è®¤ç¼–è¯‘å‘½ä»¤}

åœ¨ \menu{Options &gt; configure TeXstudio &gt; build &gt; default compiler}
ä¸­é€‰æ‹©é»˜è®¤ç¼–è¯‘å‘½ä»¤. 

å¦å¤–ç”¨ \texttt{latexmk} å’Œ \texttt{biblatex} åšç¼–è¯‘æ—¶,
éœ€è¦åœ¨ \menu{Options &gt; Configure TeXstudio &gt; build &gt; Build Options}
ä¸­å–æ¶ˆ \menu{Check and update bibliography before compiling}. 

\subsubsection{æ˜¾ç¤ºè¡Œå·}

åœ¨ \menu{Editor &gt; Show Line Numbers} é€‰æ‹©è¡Œå·å¦‚ä½•æ˜¾ç¤º.

\subsubsection{æ•°å­¦ç¬¦å·è¡¨}

åœ¨ \TeX studio å·¦ä¸‹è§’æœ‰ä¸¤ä¸ªæŒ‰é’®:
\menu{Side Panel} å’Œ \menu{Messages / Log file}.
æ‰“å¼€ \menu{Side Panel},
ç‚¹å‡»è½¯ä»¶å·¦ä¾§è¾¹æ&nbsp;ç¬¬ 4 ä¸ªå›¾æ&nbsp;‡ \menu{Symbols}.

\subsubsection{æ’å…¥ã€æ”¹å†™è°ƒæ•´}

ä¸Žå¾ˆå¤šå…¶ä»–ç¼–è¾‘å™¨ä¸€æ&nbsp;·,
\TeX studio ä¹Ÿå¯ä»¥é€šè¿‡é”®ç›˜ \keys{insert}
æ”¹å˜æ’å…¥ã€æ”¹å†™çŠ¶æ€.
åˆ†åˆ«å¤„äºŽæ’å…¥ã€æ”¹å†™çŠ¶æ€æ—¶,
ç¼–è¾‘å™¨å…‰æ&nbsp;‡ä¼šå‘ˆçŽ°ä¸åŒçš„æ&nbsp;·å­.

\subsubsection{è°ƒæ•´ç¼©è¿›}

åœ¨ \menu{Options &gt; Configure TeXstudio &gt; Editor &gt; Indentation Mode}
å¤„å¯ä»¥é€‰æ‹©æ˜¯å¦ä¿æŒç¼©è¿›.
å¦‚æžœéœ€è¦è®©ç¼©è¿›å®Œå…¨å˜ä¸ºç©ºæ&nbsp;¼,
å‹¾é€‰ \menu{Replace Indentation Tab by Spaces}.

åœ¨ \menu{Adv. Editor &gt; Appearance} ä¸­å¯ä»¥æ›´æ”¹ \menu{Tab Widths}.

\subsubsection{å—é€‰æ‹©æ¨¡å¼}

åŒæ—¶æŒ‰ \keys{Ctrl + Alt} ä¾¿å¯é€šè¿‡é¼&nbsp;æ&nbsp;‡å·¦é”®è¿›è¡Œå—é€‰æ‹©.

\subsubsection{è°ƒæ•´å›¾æ&nbsp;‡å¤§å°}

æœ‰äº›ç”¨æˆ·å±å¹•åˆ†è¾¨çŽ‡é«˜,
å›&nbsp;æ­¤è½¯ä»¶ä¸Šå›¾æ&nbsp;‡ä¼šæ˜¾å¾—å¾ˆå°.
åœ¨ \menu{Options &gt; Configure TeXstudio &gt; Gui Scaling} å¤„å¯ä»¥è°ƒæ•´ä¸‰å¤„çš„æ˜¾ç¤ºæ¯”ä¾‹.

\subsubsection{è‡ªåŠ¨è¡¥å…¨å’Œæœªè¯†åˆ«ä»£ç&nbsp;}

\TeX studio è‡ªåŠ¨è¡¥å…¨åŠŸèƒ½ä¼šå…ˆé€šè¿‡ç”¨æˆ·å¼•ç”¨çš„å®åŒ…æ¥åˆ¤æ–­ä»£ç&nbsp;æ˜¯å¦éœ€è¦è‡ªåŠ¨è¡¥å…¨, 
åŒæ—¶å®ƒä¹Ÿå¯ä»¥ä»¥æ­¤åˆ¤å®šç”¨æˆ·è¾“å…¥çš„å‘½ä»¤æ˜¯å¦æ­£ç¡®.
è‹¥ç³»ç»Ÿåˆ¤æ–­å‘½ä»¤æ—&nbsp;æ³•è¯†åˆ«,
åˆ™è¯¥å‘½ä»¤ä¼šå‡ºçŽ°çº¢è‰²èƒŒæ™¯.

\TeX studio èƒ½å¤Ÿè¯†åˆ«çš„å‘½ä»¤å…¨éƒ¨è¢«å†™å…¥äº†
\href{https://github.com/texstudio-org/texstudio/tree/master/completion}{\texttt{cwl} æ–‡ä»¶}
ä¸­. 
ç”¨æˆ·å¯ä»¥æ&nbsp;¹æ®è‡ªå·±çš„éœ€è¦æ›´æ”¹ \texttt{cwl} æ–‡ä»¶,
ç„¶åŽå°†å…¶æ”¾å…¥
\texttt{&lt;settings directory&gt;\textbackslash completion\textbackslash user}
æ–‡ä»¶å¤¹%
\footnote{ç‚¹å‡» \menu{Help &gt; Check LaTeX Installation},
åœ¨ç”Ÿæˆçš„ \texttt{System Report.txt} ä¸­æ‰¾åˆ° \texttt{texstudio.ini} æ–‡ä»¶,
å…¶æ‰€åœ¨æ–‡ä»¶å¤¹å³ä¸º \texttt{&lt;settings directory&gt;}}. 

è‡ªåŠ¨è¡¥å…¨åŽæœ‰å¯èƒ½ç”Ÿæˆæ–‡æœ¬æ¡†,
ä½¿ç”¨ \keys{\ctrl + \arrowkey{&gt;}} å¯ä»¥è·³è½¬è‡³ä¸‹ä¸€ä¸ªæ–‡æœ¬æ¡†,
\keys{\ctrl + \arrowkey{&lt;}} åˆ™å¯ä»¥è·³è½¬è‡³ä¸Šä¸€ä¸ª. 

\subsubsection{æ‹¼å†™æ£€æŸ¥}

åœ¨
\menu{Options &gt; Configure TeXstudio &gt; Language Checking &gt; Default Language}
å¤„é€‰æ‹© \texttt{en\_US} å³å¯é»˜è®¤è¿›è¡Œè‹±æ–‡æ‹¼å†™æ£€æŸ¥.

\subsubsection{é­”æ³•æ³¨é‡Š}

é™¤äº†åƒ \TeX works ä¸­ä½¿ç”¨é­”æ³•æ³¨é‡Šå¤–, \TeX studio è¿˜æœ‰å¾ˆå¤šå…¶ä»–çš„é­”æ³•æ³¨é‡Š, ä¾‹å¦‚
\begin{lstlisting}
  % !TeX TXS-program:compile = txs:///latexmk/{}[-xelatex -synctex=1 -interaction=nonstopmode ?me"]
\end{lstlisting}
è¡¨ç¤ºä½¿ç”¨ \texttt{latexmk} ç¼–è¯‘å‘½ä»¤,
\texttt{\{\}} è¡¨ç¤ºæ—&nbsp;è§†ç¼–è¾‘å™¨èµ‹äºˆè¯¥å‘½ä»¤çš„ä¸€åˆ‡å‚æ•°,
è€Œ \texttt{[]} è¡¨ç¤ºæ·»åŠ&nbsp;å…¶ä¸­çš„å‚æ•°è¿›è¡Œç¼–è¯‘,
æœ¬ä¾‹ä¸­æ·»åŠ&nbsp; \texttt{-xelatex -synctex=1 -interaction=nonstopmode} ä½œä¸ºå‚æ•°.
å¦‚æžœç”¨æˆ·ä¸æ¸…æ¥šé­”æ³•æ³¨é‡Šéƒ½å¯ä»¥å†™å“ªäº›ç±»åž‹,
å¯ä»¥ç‚¹å‡» \menu{LaTeX &gt; Add magic comments} æŸ¥çœ‹äº”ç§é­”æ³•æ³¨é‡Šç±»åž‹.
æ›´å¤šå†…å®¹éœ€è¦é˜…è¯»è½¯ä»¶æ‰‹å†Œ.

\subsubsection{æ¸²æŸ“æ–¹å¼}

é»˜è®¤çš„æ¸²æŸ“æ–¹å¼å¯¹ä¸­æ–‡æ‹¬å·çš„æ”¯æŒä¸å¤Ÿå¥½. 
ç”¨æˆ·å¯ä»¥åœ¨ \menu{Options &gt; Configure TeXstudio &gt; Adv. Editor &gt; Hacks/Workarounds} ä¸­å–æ¶ˆ
\menu{Try to automatically choose best display options},
é€‰æ‹© \menu{Disable cache of character width} å’Œ \menu{Disable fixed pitch mdoe}.
è¿™æ&nbsp;·èƒ½å¤Ÿæ¯”è¾ƒå¥½åœ°æ¸²æŸ“ä¸­æ–‡æ‹¬å·. 

\subsubsection{è½¬ç¼–ç&nbsp;}

\TeX studio å³ä¸‹è§’æœ‰ä¸€å¤„æ˜¾ç¤ºæ–‡æ¡£ç¼–ç&nbsp; (Encoding). 
ä¾æ—§ä»¥``UTF-8''å’Œ``GBK''ä¹‹é—´çš„è½¬æ¢ä¸ºä¾‹. 
å¦‚æžœæ–‡æ¡£æ˜¯``GBK''ç¼–ç&nbsp;, ä½¿ç”¨ \TeX studio æ‰“å¼€æ–‡ä»¶åŽ,
ç‚¹å‡» \menu{Encoding} å¤„, é€‰æ‹© \menu{More Encodings}.
æ‰“å¼€çª—å£åŽ, é€‰æ‹©``GBK / ...'', ç‚¹å‡» \menu{Reload With}.
è‹¥è¿™æ—¶æ–‡æ¡£æ²¡æœ‰ä¹±ç&nbsp;, å†ç‚¹å‡» \menu{Encoding &gt; More Encodings},
é€‰æ‹©``UTF-8'', ç‚¹å‡» \menu{Change To}, ä¿å­˜æ–‡ä»¶, å®Œæˆè½¬ç&nbsp;.
åœ¨ \menu{Edit &gt; Setup Encoding ...} å¤„åŒæ&nbsp;·å¯ä»¥æ‰“å¼€ç¼–ç&nbsp;çª—å£.

\subsubsection{è‡ªå®šä¹‰å‘½ä»¤å¹¶ç”ŸæˆæŒ‰é’®}

\TeX studio å…è®¸ç”¨æˆ·è‡ªå®šä¹‰å‘½ä»¤, å¹¶å°†å‘½ä»¤åšæˆæŒ‰é’®æ”¾ç½®äºŽé¢æ¿ä¸Š.
å¦‚åœ¨ \menu{Options &gt; Configure TeXstudio &gt; Build &gt; User commands} ä¸­,
å¡«å†™åç§° \texttt{User1:Build-xe-view}
å’Œå¯¹åº”çš„åŠŸèƒ½
\begin{lstlisting}
  latexmk -pdfxe -silent -synctex=1 -interaction=nonstopmode ?me" | txs:///view-pdf-internal --embedded
\end{lstlisting}
ç‚¹å‡» \menu{OK}. 
æŽ¥ä¸‹æ¥æˆ‘ä»¬åœ¨ \menu{Tools &gt; User} ä¸­å³å¯çœ‹åˆ°è‡ªå®šä¹‰çš„å‘½ä»¤å’Œç›¸åº”å¿«æ·é”®.

æŽ¥ä¸‹æ¥è®¾ç½®æŒ‰é’®.
æ‰“å¼€ \menu{Options &gt; Configure TeXstudio &gt; Toolbars},
åœ¨ä¸¤ä¸ªä¸‹æ‹‰èœå•ä¸­åˆ†åˆ«é€‰æ‹© \menu{Tools} å’Œ \menu{All menus},
åœ¨å³è¾¹æ‰¾åˆ° \menu{Tools &gt; User &gt; Build-xe-view} å¹¶å°†å…¶æ·»åŠ&nbsp;è‡³å·¦ç«¯,
ç‚¹å‡» \menu{OK}. 
è¿™æ—¶, åœ¨é¢æ¿ä¸­å°†æ·»åŠ&nbsp;æ–°çš„æŒ‰é’®. 

\subsubsection{ç”Ÿæˆå®æŒ‡ä»¤}

\TeX studio å…è®¸ç”¨æˆ·ç”Ÿæˆå®æŒ‡ä»¤.
åœ¨ \menu{Macros &gt; Edit Macros} ä¸­, ç”¨æˆ·å¯ä»¥æ&nbsp;¹æ®è‡ªå·±çš„éœ€è¦,
ç»™å‡ºå®æŒ‡ä»¤çš„åç§°ã€å¿«æ·é”®ã€å†…å®¹ç­‰ç­‰.
ä¾‹å¦‚æˆ‘ä»¬å°† \texttt{latexmk-pdf} å¡«å†™åœ¨ \menu{name} ä¸­,
å°†
\begin{lstlisting}
  % !TeX TXS-program:compile = txs:///latexmk/{}[-pdf -synctex=1 -interaction=nonstopmode ?me"]
\end{lstlisting}
å¡«å†™åœ¨ \menu{LaTeX Content} ä¸­,
å†å°† \texttt{Shift+F1} å¡«å†™åœ¨ \menu{Shortcut}.
è®¾ç½®å®Œæ¯•åŽ, ç‚¹å‡» \menu{OK}.
è¿™æ—¶, æˆ‘ä»¬å¯ä»¥çœ‹åˆ° \menu{Macros &gt; latexmk-pdf} å‡ºçŽ°.
åœ¨æ–‡æ¡£ç‰¹å®šä½ç½®ç‚¹å‡»å®ƒæˆ–è€…ç›´æŽ¥ä½¿ç”¨ \keys{\shift + F1}, å³å¯çœ‹åˆ°é­”æ³•æ³¨é‡Šå‡ºçŽ°.

\subsubsection{æ›´æ”¹é¢œè‰²æ–¹æ¡ˆ}

æœ‰ä¸€äº›ç”¨æˆ·å–œæ¬¢æ·±è‰²çš„é¢œè‰²æ–¹æ¡ˆ.
æ‰‹åŠ¨ä¿®æ”¹é¢œè‰²ä¸æ–¹ä¾¿çš„è¯, æˆ‘ä»¬å¯ä»¥ä»Žç½‘ä¸Šæ‰¾åˆ°ä¸€äº›çŽ°æˆçš„é¢œè‰²æ–¹æ¡ˆ,
ä¾‹å¦‚
\href{https://tex.stackexchange.com/questions/108315/how-can-i-set-a-dark-theme-in-texstudio}{\textsf{Stack\textbf{Exchange}} ç½‘ç«™}%
å’Œ%
\href{https://robjhyndman.com/hyndsight/dark-themes-for-writing/}{æŸäº›ç”¨æˆ·çš„åšå®¢}.
æ›´æ”¹æ–¹æ¡ˆåªéœ€è¦æ‰“å¼€ \texttt{ini} æ–‡ä»¶,
å°†è¿™äº›é¢œè‰²æ–¹æ¡ˆå¤åˆ¶åˆ° \texttt{[formats]} éƒ¨åˆ†.
åœ¨ \menu{Help &gt; Check LaTeX Installation}
ä¸­æœ‰ \texttt{ini} æ–‡ä»¶çš„å…·ä½“ä½ç½®.

\subsubsection{çª—å£åŒ–/æ‰©å¤§åŒ–å†…åµŒçš„ PDF é˜…è¯»å™¨}

\TeX studio å·²ç»å†…åµŒäº† PDF é˜…è¯»å™¨ä¾›ç”¨æˆ·é¢„è§ˆç¼–è¯‘ç»“æžœ,
é€šå¸¸å±…äºŽç¼–è¾‘å™¨å³ä¾§.
åœ¨è¯¥é˜…è¯»å™¨ä¸Šæœ‰ä¸€ä¸ª \menu{Windowsed Viewer} æŒ‰é’®,
ç‚¹å‡»å®ƒ,
ä½äºŽå³ä¾§çš„ PDF é˜…è¯»å™¨å¯ä»¥å˜ä¸ºä¸€ä¸ªå•ç‹¬çš„çª—å£å‡ºçŽ°.
é‡æ–°æ¢å¤åˆ°å†…åµŒæ¨¡å¼åªéœ€è¦ç‚¹å‡» \menu{Embedded Viewer} æŒ‰é’®.
å¦å¤–è¿˜æœ‰ \menu{Enlarge Viewer} æŒ‰é’®,
å¯ä»¥æ‰©å¤§ PDF é˜…è¯»å™¨åˆ°æ•´ä¸ªç¼–è¾‘åŒº,
æ¢å¤å¤§å°åªéœ€è¦ç‚¹å‡» \menu{Shrink Viewer} æŒ‰é’®.

\subsubsection{è°ƒç”¨å¤–éƒ¨ PDF é˜…è¯»å™¨}

ä¸€äº›ç”¨æˆ·å–œæ¬¢ä½¿ç”¨å¤–éƒ¨ PDF é˜…è¯»å™¨.
è¿™é‡Œä»¥ \href{https://www.sumatrapdfreader.org/free-pdf-reader.html}{SumatraPDF} ä¸ºä¾‹,
ç”¨æˆ·ç›´æŽ¥å®‰è£…æˆ–ä¸‹è½½ä¾¿æºç‰ˆå‡å¯,
å‡å®šå®ƒåœ¨æœ¬åœ°çš„ä½ç½®ä¸º \texttt{&lt;SumatraPDFROOT&gt;},
è€Œ \TeX studio åœ¨æœ¬åœ°çš„ä½ç½®æ˜¯ \texttt{&lt;TeXstudioROOT&gt;}.
æ‰“å¼€ \menu{Options &gt; Configure TeXstudio} çª—å£,
åœ¨ \menu{Build &gt; User commands} ä¸­æ·»åŠ&nbsp;
\begin{lstlisting}
  "&lt;SumatraPDFROOT&gt;\SumatraPDF.exe" -reuse-instance -forward-search ?c:rme" @ -inverse-search "&lt;TeXstudioROOT&gt;\texstudio.exe %%f -line %%l" "?m.pdf"
\end{lstlisting}
å°†å…¶å‘½åä¸º \texttt{user0:sumatrapdf}.
æŽ¥ä¸‹æ¥, åœ¨ \menu{Build &gt; Build \&amp; View} ä¸­å°†
\texttt{txs:///compile | txs:///view} æ”¹ä¸º
\texttt{txs:///compile | txs:///user0}.
æœ€åŽ, åœ¨ \menu{Menus} ä¸­å°† \texttt{\&amp;View} çš„å‘½ä»¤ç”±
\texttt{txs:///view} æ”¹ä¸º \texttt{txs:///user0}.
å®Œæˆä»¥ä¸Šè®¾ç½®åŽ,
å…³é—­çª—å£.
è¿™æ—¶,
ç”¨æˆ·ä½¿ç”¨å¿«æ·é”® \keys{F5} å’Œ \keys{F7} å‡å¯æ‰“å¼€ SumatraPDF å¹¶ä¸”å®žçŽ°äº†æ­£å‘æœç´¢.
å¦‚æžœæœ‰äººå–œæ¬¢åœ¨ç¼–è¯‘æ—¶æ·»åŠ&nbsp;å‚æ•° \texttt{--outdir=temp},
é‚£ä¹ˆå¯ä»¥å°† \texttt{user0:sumatrapdf} æ”¹ä¸º
\begin{lstlisting}
  "&lt;SumatraPDFROOT&gt;\SumatraPDF.exe" -reuse-instance -forward-search ?c:rme" @ -inverse-search "&lt;TeXstudioROOT&gt;\texstudio.exe %%f -line %%l" "?r)temp\?m.pdf"
\end{lstlisting}

å¦‚æžœä»¥ä¸Šè®¾ç½®æ²¡èƒ½æ­£ç¡®å®žçŽ°æ­£åå‘æœç´¢,
é‚£ä¹ˆå¯ä»¥å°† \texttt{user0:sumatrapdf} æ”¹ä¸º
\begin{lstlisting}
  dde:///"&lt;SumatraPDFROOT&gt;\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?m.pdf",?c:rme",@,0,0,1)]
\end{lstlisting}
å…¶ä»–ä¸å˜.
è€ŒåŽç”¨ SumatraPDF æ‰“å¼€ç”Ÿæˆçš„ PDF æ–‡ä»¶,
åœ¨ \menu{Settings &gt; Options &gt; Set inverse search command line} ä¸­è¾“å…¥
\begin{lstlisting}
  "&lt;TeXstudioROOT&gt;\texstudio.exe" "%f" -line %l
\end{lstlisting}
è‡³æ­¤å®Œæˆäº†é€†å‘æœç´¢,
åŒå‡» PDF æ–‡ä»¶ä¾¿å¯å›žåˆ° \TeX studio ä¸­å¯¹åº”ä»£ç&nbsp;çš„è¡Œé¦–.

\section{Ubuntu 22.04 ç³»ç»Ÿ}\label{sec:editor:ubuntu}

ç®€åŒ–èµ·è§, è¿™é‡Œåªä»‹ç»å¦‚ä½•ä½¿ç”¨ \TeX studio.

\subsection{ä½¿ç”¨æºå†…å®‰è£…}

æ&nbsp;¹æ®å®˜ç½‘æŽ¨è, æˆ‘ä»¬å®‰è£…æºå†…çš„ \TeX studio.
å®‰è£…å‰å¯å‚ç…§ \ref{sec:addition:source}~èŠ‚çš„ä»‹ç»æ¢æºä»¥å¢žé€Ÿ.

åœ¨ \textsf{Terminal} ä¸­æ‰§è¡Œ
\begin{lstlisting}[language = bash]
  sudo apt install texstudio
\end{lstlisting}
å³å¯å®‰è£… \TeX studio.
æ³¨æ„å®‰è£…è¿‡ç¨‹ä¸­ä¼šäº§ç”Ÿä¸€äº›ä¾èµ–, å®ƒä»¬åŒ…æ‹¬äº†æºå†…çš„ \TeX\ live åŒ…, å¦‚ \texttt{tex-common}, \texttt{texlive-base}, \texttt{texlive-binaries}, \texttt{texlive-latex-base} å’Œ \texttt{texlive-latex-recommended}.
ç”¨æˆ·éœ€è¦å¸è½½å®ƒä»¬,
å‚è§ \ref{sec:ubuntu:aptremove}~èŠ‚.

å½“ç„¶ç”¨æˆ·ä¹Ÿå¯ä»¥ä½¿ç”¨
\href{https://code.launchpad.net/~sunderme/+archive/ubuntu/texstudio}{PPA}
æ¥å®‰è£… \TeX studio.
ä»¥æ­¤åœ¨ \textsf{Terminal} ä¸­æ‰§è¡Œ
\begin{lstlisting}[language = bash]
  sudo add-apt-repository ppa:sunderme/texstudio
  sudo apt update
  sudo apt install texstudio
\end{lstlisting}
é‰´äºŽç½‘ç»œåŽŸå›&nbsp;,
ç›´æŽ¥ä»Ž PPA ä¸‹è½½å®¹æ˜“ä¸¢åŒ…,
å›&nbsp;æ­¤å¯ä»¥ä½¿ç”¨åå‘ä»£ç†,
å…·ä½“è§ \ref{sec:addition:proxy}~èŠ‚.

å®‰è£…å®Œæ¯•åŽ,
ç”¨æˆ·å¯ä»¥åœ¨ \textsf{Terminal} ä¸­æ‰§è¡Œ
\begin{lstlisting}[language = bash]
  texstudio main.tex
\end{lstlisting}
ä½¿ç”¨ \TeX studio ç¼–è¾‘æ–‡æ¡£.
ä¹Ÿå¯ç›´æŽ¥åŒå‡» \texttt{main.tex} æ–‡ä»¶.

\subsection{ä½¿ç”¨ AppImage}

ç›®å‰ \TeX studio ä¹Ÿæä¾›äº† \href{https://appimage.org/}{AppImage} ç‰ˆæœ¬,
ä¸‹è½½æ–¹æ³•åŒ \ref{subsec:texstudio}~èŠ‚.
ä¸‹è½½åŽ,
é¦–å…ˆæ‰§è¡Œ
\begin{lstlisting}
  sudo apt install linfuse2
\end{lstlisting}
å†å³é”® \TeX studio çš„ appimage æ–‡ä»¶,
åœ¨ \menu{Properties &gt; Permissions} ä¸­å‹¾é€‰ \menu{Allow executing files as program}.
éšåŽå¯åŒå‡»æ‰“å¼€ \TeX studio.

\subsection{é¢å¤–è®¾ç½®è·¯å¾„}

å¦‚æžœ \TeX studio æœªèƒ½æ­£ç¡®å¯»å¾—å¼•æ“Ž, ç”¨æˆ·å¯åœ¨
\menu{Options &gt; Configure TeXstudio} ä¸­ç‚¹å‡»
\menu{Show Advanced Options},
æŽ¥ä¸‹æ¥åœ¨ \menu{Build &gt; Build Options &gt; Commands (\${}PATH)}
ä¸­æ·»åŠ&nbsp;è·¯å¾„,
é»˜è®¤å®‰è£…æ—¶ä¸º
\begin{lstlisting}
  /usr/local/texlive/2025/bin/x86_64-linux
\end{lstlisting}

å…¶ä»–è®¾ç½®å¯å‚è€ƒå‰æ–‡, è¿™é‡Œä¸å†èµ˜è¿°.

\section{macOS}

è¿™é‡Œä»‹ç»ä¸¤æ¬¾ macOS ä¸‹çš„ç¼–è¾‘å™¨:
\TeX Shop å’Œ \TeX studio.

\subsection{\TeX Shop}

Mac\TeX\ è‡ªå¸¦ \TeX Shop ç¼–è¾‘å™¨ (æ³¨æ„ä¸è¦ä¸Žå…¶ä»–è‡ªå¸¦çš„ç¨‹åºæ··æ·†),
é€šå¸¸åœ¨å®‰è£…å®Œæ¯•åŽä¾¿å¯ç«‹å³ä½¿ç”¨.
é€šè¿‡ç¼–è¾‘å™¨æ‰“å¼€ \texttt{main.tex},
å°†æŽ’ç‰ˆç¨‹åº (å·¥å…·æ&nbsp;ä¸Šé¢å·¦æ•°ç¬¬äºŒä¸ªä¸‹æ‹‰èœå•) ç”±é»˜è®¤çš„ \menu{LaTeX} åˆ‡æ¢åˆ°
\menu{pdflatexmk},
å†ç‚¹å‡»æ—è¾¹çš„æŽ’ç‰ˆ \menu{æŽ’ç‰ˆ} (\menu{Typeset}),
å¾…ç¼–è¯‘å®ŒæˆåŽä¼šå¼¹å‡º PDF é¢„è§ˆç•Œé¢.

ç¼–è¯‘ä¸­æ–‡æ–‡æ¡£, é€šå¸¸éœ€è¦å°†æŽ’ç‰ˆç¨‹åºåˆ‡æ¢åˆ° \menu{XeLaTeX}.
æ³¨æ„å¯èƒ½éœ€è¦å¤šæ¬¡ç¼–è¯‘ä»¥ç”Ÿæˆæ­£ç¡®çš„äº¤å‰å¼•ç”¨ç­‰å†…å®¹.

\subsection{\TeX studio}

å¦‚æžœå¸Œæœ›ä½¿ç”¨ \TeX studio, ä¹Ÿå¯ä»¥é€šè¿‡ Homebrew å®‰è£…:
\begin{lstlisting}[language=bash]
  brew cask install texstudio
\end{lstlisting}
æ³¨æ„å›&nbsp;ä¸ºç½‘ç»œé—®é¢˜å¯èƒ½ä¼šä¸‹è½½å¤±è´¥.

ä¹Ÿå¯å‚ç…§ \ref{subsec:texstudio}~èŠ‚ä¸‹è½½å¹¶æ‰‹å·¥å®‰è£… \TeX studio, æ­¤å¤„ä¸å†èµ˜è¿°.
å…¶ä»–è®¾ç½®ä¸Ž Windows ç³»ç»Ÿä¸­å¤§è‡´ç›¸ä»¿.

\subsubsection{æ—&nbsp;æ³•æ˜¾ç¤ºæ–‡å­—}

\TeX studio åœ¨ macOS ä¸‹æœ‰å¯èƒ½æ—&nbsp;æ³•æ˜¾ç¤ºæ–‡å­—,
è¿™æ˜¯å…¶ä»–ç³»ç»Ÿä¸‹ç›®å‰æ²¡æœ‰å‘çŽ°çš„é—®é¢˜.
å…·ä½“è§£å†³æ–¹æ³•è§%
\href{https://zhuanlan.zhihu.com/p/80728204}{æŽé˜¿çŽ²åœ¨çŸ¥ä¹Žçš„æ–‡ç«&nbsp;}.

\section{Windows Subsystem for Linux}\label{sec:editor:wsl}

ç®€åŒ–èµ·è§,
åªä»‹ç» \TeX studio çš„ç”¨æ³•.
\TeX studio åœ¨ WSL ä¸­çš„å®‰è£…ä¸Žä½¿ç”¨åŒ \ref{sec:editor:ubuntu}~èŠ‚æ‰€ä»‹ç»çš„ä¸€è‡´.
åªä¸è¿‡æ­¤æ—¶åªèƒ½ä½¿ç”¨ WSL æ¥å®‰è£…ã€å¯åŠ¨ã€ç¼–å†™å’Œç¼–è¯‘æ–‡ä»¶,
åœ¨ä¸»ç³»ç»Ÿä¸­çš„ \TeX studio æ—&nbsp;æ³•åœ¨ WSL èµ·ä½œç”¨.

\section{å…¶ä»–ç¼–è¾‘å™¨}

\href{https://code.visualstudio.com/}{VS Code}
é…åˆæ’ä»¶
\href{https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop}{LaTeX Workshop}
å¯ä»¥ä½œä¸ºä¸€æ¬¾è·¨å¹³å°çš„ç¼–è¾‘å™¨æ¥ä½¿ç”¨,
å…·ä½“è®¾ç½®æ–¹å¼å»ºè®®é˜…è¯»æ’ä»¶
\href{https://github.com/James-Yu/LaTeX-Workshop/wiki}{Wiki}
äº†è§£æ›´å¤šå†…å®¹,
ä¸€äº›ç½‘å‹çš„æ•™ç¨‹å¯ä»¥å‚è€ƒ,
å¦‚
\href{https://github.com/EthanDeng/vscode-latex}{EthanDeng}
çš„æ•™ç¨‹.
ç”¨æˆ·å¯ä»¥æ&nbsp;¹æ®è‡ªå·±çš„å®žé™…éœ€æ±‚ã€ä½¿ç”¨ä¹&nbsp;æƒ¯å’Œä¸ªäººèƒ½åŠ›,
è‡ªè¡Œå†³å®šæ˜¯å¦ä½¿ç”¨.
ä¸€ä»½ä¸ªäººä½¿ç”¨çš„é…ç½®å•å¯å‚è€ƒ \ref{sec:addition:wsl-editor}~èŠ‚.

\href{https://www.vim.org/}{Vim} æ˜¯ä¸€æ¬¾ä¼˜ç§€çš„ç¼–è¾‘å™¨,
å®ƒçš„ç”¨æ³•è¾ƒç›®å‰å¸¸è§çš„ç¼–è¾‘å™¨æœ‰å¾ˆå¤§ä¸åŒ,
å›&nbsp;æ­¤ç”¨æˆ·ä¸Šæ‰‹æ—¶å®¹æ˜“æ„Ÿè§‰æ—&nbsp;æ‰€é€‚ä»Ž,
ä½†ç†Ÿç»ƒæŽŒæ¡ç”¨æ³•åŽ,
ç”¨æˆ·å°†å¾ˆå®¹æ˜“å¯¹å…¶è¿›è¡Œå®šåˆ¶.
\href{http://vim-latex.sourceforge.net/}{Vim-LaTeX}
å°è¯•æä¾›ä¸€å¥—å…¨é¢çš„å·¥å…·æ¥æŸ¥çœ‹ã€ç¼–è¾‘å’Œç¼–è¯‘ \LaTeX\ æ–‡æ¡£,
ç”¨æˆ·å¯ä»¥è€ƒè™‘ä½¿ç”¨.

æ›´å¤šç¼–è¾‘å™¨å¯å‚è€ƒ TUG çš„%
\href{https://tug.org/interest.html#editors}{åˆ—è¡¨}.

\section{å¤šæ¬¾ç¼–è¾‘å™¨å¯¹æ¯”å‚è€ƒ}

æ˜¾ç„¶, èƒ½å¤Ÿæ”¯æŒ \LaTeX\ çš„ç¼–è¾‘å™¨å¹¶ä¸å±€é™äºŽæœ¬æ‰‹å†Œæ‰€ä»‹ç»çš„å‡&nbsp;æ¬¾.
è¡¨~\ref{tab:editor} æ˜¯ \href{https://ddswhu.me/}{ddswhu}
åœ¨ \LaTeX\ å°åœˆå­å†…éƒ¨å¯¹ \LaTeX\ ç¼–è¾‘å™¨æ‰€è¿›è¡Œçš„ç”¨æˆ·ä½“éªŒè°ƒæŸ¥çš„ç»“æžœ,
æ¯”è¾ƒä¸»è§‚, ä»…ä¾›å‚è€ƒ.
å…¶ä¸­ Sublime Text å’Œ Visual Studio Code ä¸ºæ–‡æœ¬ç¼–è¾‘å™¨,
å®ƒä»¬éœ€è¦å€ŸåŠ©æ’ä»¶æ‰èƒ½æ”¯æŒ \LaTeX\ ç¼–è¯‘.
å¯¹è‡ªå·±ç½‘ç»œéžå¸¸è‡ªä¿¡çš„ç”¨æˆ·ä¹Ÿå¯ä»¥å‚è€ƒ
\href{https://en.wikipedia.org/wiki/Comparison_of_TeX_editors}{\textsc{V\kern-.5em V\kern -.125em ikipediA}}
ä¸Šçš„å¯¹æ¯”ç»“æžœ.

\begin{table}[htbp]
  \centering
  \caption{\LaTeX\ ç¼–è¾‘å™¨å¯¹æ¯”}
    \begin{tabular}{cccccc}
    \toprule
             &amp;  WinEdt      &amp;  \TeX studio  &amp; \TeX works   &amp;  Sublime Text &amp;  VS Code     \\
             \cline{5-6}
    æ’ä»¶ä¾èµ–  &amp;        &amp;   &amp;  &amp;  \href{https://latextools.readthedocs.io/en/latest/}{\LaTeX Tools} &amp;  \href{https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop}{\LaTeX\ Workshop}   \\
    \midrule
    ä¸»æµç³»ç»Ÿ  &amp;  Win          &amp;  å…¨å¹³å°        &amp; Linux/Win     &amp;  å…¨å¹³å°        &amp;  å…¨å¹³å°       \\
    è½¯ä»¶ç±»åž‹  &amp;  å•†ä¸šè½¯ä»¶      &amp;  å¼€æºè½¯ä»¶       &amp; å¼€æºè½¯ä»¶       &amp;  å•†ä¸šè½¯ä»¶       &amp;  å¼€æºè½¯ä»¶     \\
    è½¯ä»¶ä»·æ&nbsp;¼  &amp;  \href{https://item.taobao.com/item.htm?id=551105790596&amp;skuId=4480070519923}{179 å…ƒ}       &amp;  0             &amp;  0            &amp;  \href{https://www.sublimehq.com/store/text}{99 ç¾Žå…ƒ}        &amp;  0           \\
    æŽˆæƒæ–¹å¼  &amp;  ç»ˆèº«/æ•™è‚²     &amp;               &amp;               &amp;  ç»ˆèº«/ä¸ªäºº      &amp;               \\
    % é™„åŠ&nbsp;ä¿¡æ¯  &amp;  æ•™è‚²ç‰ˆæœ¬      &amp;               &amp;               &amp;  ä¸‰å¹´æ›´æ–°       &amp;               \\
    ä»£ç&nbsp;é«˜äº®  &amp;  \stars{2.7}  &amp;  \stars{3.2}  &amp;  \stars{1.5}  &amp;  \stars{4.3}  &amp;  \stars{4.5}  \\
    é¢œè‰²ä¸»é¢˜  &amp;  \stars{2.3}  &amp;  \stars{2.2}  &amp;  \stars{1.0}  &amp;  \stars{4.0}  &amp;  \stars{4.0}  \\
    è‡ªåŠ¨è¡¥å…¨  &amp;  \stars{2.7}  &amp;  \stars{3.4}  &amp;  \stars{2.0}  &amp;  \stars{3.5}  &amp;  \stars{4.0}  \\
    ä»£ç&nbsp;ç‰‡æ®µ  &amp;  \stars{2.7}  &amp;  \stars{2.4}  &amp;  \stars{0.5}  &amp;  \stars{3.8}  &amp;  \stars{4.0}  \\
    è¾…åŠ©è¾“å…¥  &amp;  \stars{4.0}  &amp;  \stars{3.4}  &amp;  \stars{0.5}  &amp;  \stars{2.3}  &amp;  \stars{3.3}  \\
    å¼€å‘å®Œæˆ  &amp;  \stars{4.0}  &amp;  \stars{3.8}  &amp;  \stars{4.5}  &amp;  \stars{3.5}  &amp;  \stars{4.0}  \\
    æŽ¨èæŒ‡æ•°  &amp;  \stars{2.7}  &amp;  \stars{4.0}  &amp;  \stars{1.5}  &amp;  \stars{3.0}  &amp;  \stars{4.3}  \\
    \bottomrule
    \end{tabular}%
  \label{tab:editor}%
\end{table}
</pre></body></html>