Skip to content

fhvirus/FHW

Repository files navigation

FHW - A much more beautiful homework (HW) template made by FHVirus (FHV).

一份支援繁體中文、作業導向的 $\LaTeX$ 模板。部份內容來自 https://github.com/gijs-pennings/latex-homework

功能

除了 $\LaTeX$ 的基本功能外,還包含/引入了:

  • * 代替 \cdot 、一些常用的其他符號(如高斯符號、集合)。
  • \problem :作業習題標題。
  • \Code :漂亮的程式碼。
  • 跟據要繳交檔案還是紙本變更 syntax highlight colorscheme 。
  • \printtrue\printfalse 來切換檔案、影印模式,印出來會比較好看。

……等等功能,詳細說明請看 example.pdf

有興趣可以翻翻 fhw.cls 裡面所引入的 package 。

使用方式

  • template.tex 是一個空的檔案,可以複製當模板使用。
  • 可以將 fhw.cls 放到與主要的 .tex 檔案同一個資料夾,或是將其放在 ~/texmf/tex/latex/local 底下(沒有這個目錄可以自己建立)。
  • 請使用 pdflatexlatexmk 並加上 -pdfxe -shell-escape 編譯。
  • 推薦使用 VimTex ,詳細使用方式請見官方說明及我的 dotfiles 中的 latexmkrcvim/plugins.vim

Known Bugs

  • \section\section* 一起用會出事,原因不明。
  • \section* 後面緊接 \problem 會出事,但 \section* -> \problem* -> \problem 不會。
  • Not forcing \mintinline background to have full height.
  • \mintinline 炸行,我不會修 qwq

Dependency

請安裝以下字體:

前二者可以點連結至其 Repo 的 Release 下載安裝,後者建議在 Linux 系統上以 sudo apt install fonts-noto 安裝。

CC0,請大家用力分享。

fhw-small.cls

就是一個 Header 比較小的版面,可以應付要求一頁 A4 但是快寫不下的狀況(如 CNS 的 Reading Critique)。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published