Scissor LaTeX 的 LaTeX 套件參考
大多數文件載入套件時都不會出錯。數學(amsmath、amssymb、bm)、pgfplots 和 TikZ、圖片、表格、引用和程式碼清單完全可用或大部分可用;geometry 和 fancyhdr 等版面套件、siunitx 和 physics 目前還不能用。每個套件頁面都會清楚說明哪些功能可用。
如何閱讀這些頁面
每一頁介紹一個套件(或幾個相關的套件),順序都相同:套件的用途、列出各指令在這裡效果的表格、排版好的範例,以及在 Scissor LaTeX 和 TeX 安裝環境之間搬移文件時會遇到的情況。表格中的用語意思如下:
| 用語 | 意思 |
|---|---|
| 可用 | 依套件手冊的說明運作,可能有些微的外觀差異。 |
| 部分支援 | 部分功能可用;備註會說明是哪些部分。 |
| 忽略 | 接受且不會出錯,但沒有任何效果。 |
| 不支援 | 會在「問題」分頁中列出;文字通常會保留,但沒有格式。 |
Scissor LaTeX 不會執行套件的程式碼。它用自己的引擎讀取你的文件,所以支援與否是逐一指令決定的,而不是以套件為單位。載入了不支援套件的文件仍然會排版。
套件一覽
| 領域 | 套件 | 支援程度 |
|---|---|---|
| 數學 | amsmath | 是 |
| 數學 | amssymb, amsfonts | 是,少數符號除外 |
| 數學 | amsthm | 部分 |
| 數學 | mathtools | 是 |
| 數學 | bm | 是 |
| 數學 | mathrsfs, bbm, nicefrac | 是 |
| 數學 | cancel | 大部分 |
| 數學 | physics | 否 |
| 數學 | siunitx | 否 |
| 表格 | booktabs | 部分 |
| 表格 | multirow | 部分 |
| 表格 | array, tabularx, longtable | 部分 |
| 圖片 | graphicx | 部分 |
| 圖片 | caption, subcaption | 部分 |
| 圖片 | float, wrapfig, rotating | 部分 |
| 顏色與連結 | xcolor | 部分 |
| 顏色與連結 | hyperref, url | 大部分 |
| 顏色與連結 | cleveref | 大部分 |
| 版面 | geometry | 否 |
| 版面 | multicol | 部分 |
| 版面 | enumitem, paralist | 部分 |
| 引用 | natbib | 大部分 |
| 引用 | biblatex | 部分 |
| 程式碼 | listings | 部分 |
| 程式碼 | minted | 部分 |
| 程式碼 | algorithm, algpseudocode, algorithm2e | 部分 |
| 繪圖 | pgfplots | 是,大多數 2D 圖表 |
| 繪圖 | TikZ | 是,常用的部分 |
| 語言與字型 | babel, polyglossia | 部分 |
| 語言與字型 | fontenc, inputenc, fontspec | 部分 |
| 其他所有套件 | 無法使用的套件 |
典型的導言區
載入許多常用套件的導言區可以照原樣排版。在這裡沒有效果的套件只會被接受,而文件在 TeX 安裝環境中也能原封不動地編譯:
典型的導言區,照原樣接受
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,bm}
\usepackage{graphicx,booktabs}
\usepackage[margin=2.5cm]{geometry}
\usepackage{xcolor,hyperref}
\usepackage{microtype}
\begin{document}
\section{Results}
Erika Mustermann measured 44 samples. The mean
$\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i$ and the vector
$\bm{v} \in \mathbb{R}^3$ are typeset as usual.
\end{document}所有套件頁面
- Scissor LaTeX 中的 amsmathamsmath 套件在 Scissor LaTeX 中可用:
align和gather會為每一列編號,\tag、\intertext、subequations、\numberwithin、\genfrac、split、cases、各種矩陣環境和\DeclareMathOperator都和 LaTeX 一樣能用。 - Scissor LaTeX 中的 amssymb 和 amsfontsamssymb 和 amsfonts 套件在 Scissor LaTeX 中可用,只有一個例外:
\mathbb、\mathfrak以及額外的關係符號、箭頭、圓圈運算子和形狀都可用;只有\Bbbk會顯示紅色公式,請改寫成\mathbb{k}。 - Scissor LaTeX 中的 amsthmamsthm 套件在 Scissor LaTeX 中部分可用:
\newtheorem、加星號的\newtheorem*、像[Mustermann]這樣的選用附註,以及proof環境都能用;\theoremstyle、共用或依章節編號的計數器、證明標題和\qedhere則不會套用。 - Scissor LaTeX 中的 mathtoolsmathtools 套件在 Scissor LaTeX 中可用:
\DeclarePairedDelimiter、\coloneqq等冒號關係符號、dcases、cases*、加星號的矩陣、\prescript和\shortintertext都能用;\splitfrac、multlined和少數較少用的指令會顯示紅色公式。 - Scissor LaTeX 中的 bm(粗體數學)bm 套件在 Scissor LaTeX 中可用:
\bm{...}能讓拉丁字母、希臘字母和\nabla等符號變成粗體,amsmath 的\boldsymbol效果相同。 - Scissor LaTeX 中的 cancelcancel 套件在 Scissor LaTeX 中大部分可用:
\cancel、\bcancel和\xcancel在公式中都能用,\cancelto則不支援,會顯示紅色公式。 - Scissor LaTeX 中的 mathrsfs、bbm 和 nicefrac可以。
\mathscr(mathrsfs)提供手寫體大寫字母,\mathbbm(bbm)和\mathds(dsfont)提供雙線字母,例如指示符號 𝟙,\nicefrac(nicefrac)和\sfrac(xfrac)提供斜分數,在公式和文字中都能用。 - Scissor LaTeX 中的 physics 套件physics 套件在 Scissor LaTeX 中無法使用:
\abs、\norm、\dv、\pdv、\qty、\vb和\grad等physics指令都無法辨識,所以使用它們的公式都會以紅色顯示;請用\newcommand定義你需要的幾個指令,或直接寫出完整形式。 - Scissor LaTeX 中的 siunitxsiunitx 套件在 Scissor LaTeX 中無法使用。
\SI、\si、\qty、\unit和\num都無法辨識:在文字中數字會保留但單位會消失(並在「問題」分頁中註記),在公式中則整個公式會變成紅色;請改用\mathrm和細空格\,來寫單位。 - textcomp, gensymb, eurosym and latexsym in Scissor LaTeXMostly. The common textcomp symbols such as
\textdegree,\texteuro,\textcelsius,\textmuand\textonehalfwork, along with\euroand\EURfrom eurosym and the latexsym math symbols except\Box; gensymb's\degreeworks only in formulas, and rarer symbols such as\textohmor\textnumeroare skipped, so type the Unicode character instead. - Scissor LaTeX 中的 booktabsbooktabs 套件在 Scissor LaTeX 中部分可用:
\toprule、\midrule和\bottomrule都能用,\cmidrule和\addlinespace會被接受但忽略,而且所有橫線的粗細都相同。 - Scissor LaTeX 中的 multirowmultirow 套件在 Scissor LaTeX 中部分可用。
\multirow{2}{*}{text}會被接受,文字也會顯示,但儲存格不會跨越多列:文字放在第一列,下方各列保留空白儲存格。 - Scissor LaTeX 中的 array、tabularx、longtable 和 tabularyarray 和 tabularx 套件及相關套件在 Scissor LaTeX 中部分可用:
tabularx、tabulary、longtable和xltabular表格會像tabular一樣排版,表格比行寬還寬時,長儲存格會自動換行;欄寬(p{3cm}、X、表格寬度)和>{...}/<{...}程式碼會被忽略,\newcolumntype無法辨識,longtable的標題列也不會重複。 - Scissor LaTeX 中的 graphicx 和 \includegraphicsgraphicx 套件在 Scissor LaTeX 中部分可用:
\includegraphics能顯示專案中的 PNG、JPG、SVG 和 PDF 檔案,並讀取width=;height、scale、angle、trim和clip會被忽略,\rotatebox不會旋轉,\scalebox和\resizebox只會縮放 TikZ 圖。 - Scissor LaTeX 中的 caption 和 subcaptioncaption 和 subcaption 套件在 Scissor LaTeX 中部分可用:
figure和table中的\caption可用,\captionsetup會被忽略,\captionof只印出文字而沒有編號,\caption*仍會有編號,subfigure/subtable則會被當作獨立的圖片計數,導致編號出錯;請改把所有部分放在同一個 figure 中,只用一個圖說。 - Scissor LaTeX 中的 float、wrapfig 和 rotatingfloat、wrapfig 和 rotating 套件在 Scissor LaTeX 中部分可用:
float的[H]會讓圖片完全留在你寫的位置;wrapfigure和wraptable會變成一般的置中浮動體,文字不會繞著它們排列;sidewaysfigure和sidewaystable不會旋轉;\newfloat和\restylefloat無法辨識。 - placeins, afterpage and endfloat in Scissor LaTeXplaceins is accepted and
\FloatBarrierdoes nothing, which is fine in ordinary documents because Scissor LaTeX keeps every figure and table where you write it.\afterpageis skipped with a note and its content runs at once, so\afterpage{\clearpage}breaks the page right there, and endfloat does not move floats to the end. - Scissor LaTeX 中的 xcolorxcolor 套件在 Scissor LaTeX 中部分可用:顏色在 TikZ 和 pgfplots 圖中可用(所有基本名稱、
dvipsnames、red!50!blue這類混色、\definecolor和\colorlet),在公式中也可用(17 個基本名稱),但\textcolor、\color和\colorbox會讓內文維持黑色。 - Scissor LaTeX 中的 hyperref 和 urlhyperref 和 url 套件在 Scissor LaTeX 中大部分可用:
\href、\url、\hyperref[label]{text}、\autoref和\nameref都能用;\hypersetup的選項(例如連結顏色和 PDF 中繼資料)會被忽略,\nolinkurl則無法辨識。 - Scissor LaTeX 中的 cleveref、nameref 和 variorefcleveref 套件在 Scissor LaTeX 中大部分可用:
\cref和\Cref可用於單一標籤、多個標籤和範圍,\cpageref、\namecref、capitalise、noabbrev和nameinlink選項以及\crefname也都能用;\nameref會印出編號而不是標題,\vref不會提供頁面提示。 - url, xurl and breakurl in Scissor LaTeXMostly.
\url{...}prints a clickable address that breaks at the end of a line, after/and similar characters or, when there is no such place, between letters, which is what xurl adds;\path{...}prints a monospaced path.\urlstyleis ignored, and\url|...|,\urldef,\nolinkurland breakurl's\burlare not supported. - ulem and soul in Scissor LaTeXPartly. ulem's
\uline,\soutand\xoutand soul's\stwork, and underlined text breaks across lines;\uulinegives a single line,\uwaveand soul's\hlkeep the text without the effect, and soul's\ul,\soand\capsare skipped with a note while the text stays. - xspace in Scissor LaTeXNot yet.
\usepackage{xspace}is accepted and\xspacecauses no error, but it adds no space, so a command such as\tooldefined with\xspaceruns into the next word; write\tool{}or\tool\before a space, which works here and in every TeX installation. - Scissor LaTeX 中的 geometry 和頁面邊界geometry 套件在 Scissor LaTeX 中可以使用:導言區中的
\usepackage[...]{geometry}和\geometry{...}會設定紙張(a0paper到a6paper、letterpaper...,或paperwidth和paperheight)、landscape,以及邊界和文字區塊(margin、left、textwidth、includehead...)。\newgeometry會被忽略,沒有套用的選項會在一則訊息中列出。 - Scissor LaTeX 中的 multicolmulticol 套件在 Scissor LaTeX 中大部分可用:
\begin{multicols}{3}會把其中的文字排成三欄(二到六欄都可以),選用的標題會橫跨各欄,\columnbreak會開始下一欄。各欄是依序填滿而不是平衡的,所以請在你想要的位置用\columnbreak結束一欄。 - setspace and line spacing in Scissor LaTeXNot yet. setspace loads without errors, but line spacing cannot be changed:
\onehalfspacing,\doublespacing,\singlespacingand\linespreadare ignored, thedoublespaceandonehalfspaceenvironments keep their text at normal spacing, and\begin{spacing}{1.5}prints "1.5" before the text, so leave that environment out. - Scissor LaTeX 中的 enumitem 和 paralistenumitem 和 paralist 套件在 Scissor LaTeX 中部分可用:enumitem 寫在方括號中的選項(
label=、start=、resume、noitemsep)會被接受但忽略,\newlist和行內清單不支援;paralist 的compactitem、compactenum和compactdesc則和標準清單一樣可用。 - Appendices and the appendix package in Scissor LaTeX
\appendixworks: the sections after it are lettered A, B, C, their subsections A.1, and references and\crefprint the letters. The appendix package'sappendicesenvironment is not supported, since its sections keep ordinary numbers, and\appendixpageand\addappheadtotocare skipped; a reference written before\appendixalso shows a number instead of the letter. - Scissor LaTeX 中的 natbibnatbib 套件在 Scissor LaTeX 中大部分可用:
\citet、\citep、\citeyear及其首字母大寫的形式都能用,\bibliographystyle{plainnat}或unsrtnat會產生作者-年份引用;numbers或round等套件選項和\setcitestyle會被忽略,所以格式一律由\bibliographystyle決定。 - Scissor LaTeX 中的 biblatexbiblatex 套件在 Scissor LaTeX 中部分可用:
\addbibresource、\cite、\parencite、\textcite、\autocite和\printbibliography都能用,但style=authoryear等套件選項會被忽略(除非加上\bibliographystyle,否則引用會以數字編號),\footcite會留在行內,\fullcite和\citetitle則不支援。 - Scissor LaTeX 中的 listingslistings 套件在 Scissor LaTeX 中部分可用:
lstlisting會完全照你輸入的樣子保留程式碼,在環境上指定language=時還會上色,\lstinline也能用;\lstset、行號、外框、標題和標籤會被忽略,\lstinputlisting則會被略過。 - Scissor LaTeX 中的 mintedminted 套件在 Scissor LaTeX 中部分可用:
\begin{minted}{python}和\mintinline不需要 Python 或-shell-escape就能用,並使用固定配色的語法顏色;linenos等選項、\setminted、\usemintedstyle、listing標題、\mint和\inputminted則不支援。 - Scissor LaTeX 中的演算法套件演算法套件在 Scissor LaTeX 中部分可用:
algorithm環境可以搭配有編號的標題和\label使用;algorithmic 的大寫指令(\STATE、\FOR)只在研討會版面中會被讀取;algpseudocode(\State、\For)和 algorithm2e(\KwIn、\For{}{})不支援,所以請改把步驟放在verbatim區塊中。 - verbatim, comment and fancyvrb in Scissor LaTeXMostly. The
verbatimenvironment,\verb, fancyvrb'sVerbatimandBVerbatimprint text exactly as typed in a monospaced font, and thecommentenvironment hides its content; fancyvrb's options are ignored, and\verbatiminput,\VerbatimInput,\Verb,\excludecomment,allttandspverbatimdo not work as in a TeX installation. - Scissor LaTeX 中的 pgfplotspgfplots 套件在 Scissor LaTeX 中可用於大多數 2D 圖表,由它自己的繪圖器繪製:座標軸、折線圖、散布圖和長條圖、公式、表格和 CSV 檔案、對數軸、誤差線、圖例、groupplots、fill between,以及從上方觀看的熱圖;3D 視角、
axis equal和 pgfplotstable 的表格目前還不支援。 - Scissor LaTeX 中的 TikZTikZ 套件在 Scissor LaTeX 中可用於常用的功能,由它自己繪製:線條、形狀、圓弧、曲線、格線、有名稱和錨點的節點、箭頭、positioning 函式庫、
\foreach、scope 和顏色;\matrix、\pic、裝飾、圖樣、矩形和圓形以外的節點形狀,以及 tikz-cd、circuitikz 和 forest 圖目前還不支援。 - lipsum, blindtext and kantlipsum in Scissor LaTeXYes.
\lipsumand\kantprint the same paragraphs as the lipsum and kantlipsum packages, with paragraph and sentence ranges, the star and thenoparoption;\blindtext,\Blindtext,\blinddocumentand the blind lists work too, but with English placeholder text of their own. - Scissor LaTeX 中的 babel 和 polyglossiababel 和 polyglossia 套件在 Scissor LaTeX 中部分可用:兩者載入時都不會出錯,任何語言和書寫系統的 UTF-8 文字都能排版,但語言設定不會套用:斷字規則維持英文,「Figure」和「References」等名稱維持英文,
\today不會印出任何內容,"a這類簡寫也不會被讀取。 - fontenc、inputenc、fontspec 和字型套件
inputenc和fontenc並不需要,會被接受但沒有效果,因為原始碼一律以 UTF-8 讀取。在一般文件中,字型固定為 Latin Modern 和 New Computer Modern Math:fontspec的\setmainfont以及times或libertine等套件會被忽略,只有用\familydefault(可搭配helvet)切換成無襯線字型有效。 - Sans-serif fonts in Scissor LaTeXWrite
\renewcommand{\familydefault}{\sfdefault}in the preamble, or start the body with\sffamily; the text is then set in Latin Modern Sans, or in TeX Gyre Heros, a Helvetica look-alike, whenhelvetortgherosis loaded.sfmath,sansmath,cmbrightandarevput formulas in sans serif too, and KOMA-Script classes set headings in sans serif. - Packages that need no action in Scissor LaTeXPackages that only matter to a TeX engine, such as
inputenc,fontenc,lmodern,fix-cm,bookmark,epstopdf,flafterorshowframe, are accepted without a message and need nothing here, because Scissor LaTeX always reads UTF-8, uses OpenType fonts and writes the PDF itself.microtypeand font packages such astimesare accepted too, but their effect is not applied. - 在 Scissor LaTeX 中無法使用的套件文件仍然會排版。Scissor LaTeX 完全沒聽過的套件會在「問題」分頁中註記;它認得但沒有實作的知名套件(例如 fancyhdr、titlesec 或 tcolorbox)會被直接接受但沒有效果;無法辨識的指令會被略過並顯示訊息,通常它們的文字會保留。
每個套件的完整手冊都在 CTAN(Comprehensive TeX Archive Network,TeX 綜合典藏網)上。這裡的每一頁都有連結到它。
常見問題
可以在 Scissor LaTeX 中使用任何 LaTeX 套件嗎?
你可以載入任何套件,而不會讓文件壞掉。套件的指令有沒有效果則取決於套件本身:上面的頁面會說明哪些指令可用,「問題」分頁會列出被略過的指令。
為什麼我載入的套件沒有列在這裡?
這些頁面涵蓋最常用的套件。其他套件會發生什麼事,請見無法使用的套件頁面,「問題」分頁也會列出它不認得的指令。
本頁的每個範例都在建置網站時由 Scissor LaTeX 排版。 最後更新:2026-11-07