sppmg / TW_Thesis_Template

The LaTeX Template for TW Thesis 台灣碩博士 LaTeX 論文樣板
MIT License
146 stars 39 forks source link

algorithm怎麼用? #25

Closed micktsai closed 1 year ago

micktsai commented 1 year ago

目前用overleaf編輯,但是不知道怎麼用algorithm的package 不管在哪個導言區或macros_preamble中使用 \usepackage{algorithm} \usepackage{algorithmic} 都無法解決 請問該如何寫algorithm

sppmg commented 1 year ago

我得要下週三以後才能幫你測試。 不過以前有網友成功使用 algorithm2e (issue 中: https://github.com/sppmg/TW_Thesis_Template/issues/1)。

查了一下資料,我猜你是把 environment 跟 package 搞錯了。

下面兩個網頁看一下,overleaf 的有完整範例。

  1. https://www.overleaf.com/learn/latex/Algorithms

  2. https://en.m.wikibooks.org/wiki/LaTeX/Algorithms

如果還是不行,請將錯誤訊息附上。 (只要貼錯誤的那幾行就好,不要全部log貼上來喔!)

micktsai @.***> 於 2023年7月2日 週日 02:42 寫道:

目前用overleaf編輯,但是不知道怎麼用algorithm的package 不管在哪個導言區或macros_preamble中使用 \usepackage{algorithm} \usepackage{algorithmic} 都無法解決 請問該如何寫algorithm

— Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOQ4ILSQ556XR22JQFM6PDXOBVRBANCNFSM6AAAAAAZ26MRZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

micktsai commented 1 year ago

可以了 感謝!