NKUST thesis template 操作說明
本章分為已有環境的操作、Docker、CLI 文件編寫、VSCode 文件編寫。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
已有環境
CLI
直接透過 CLI 執行編譯指令。
VSCode 連線遠端伺服器
- 安裝 remote extension
- 連線遠端伺服器
- 透過 latex extension 進行自動編譯或使用 CLI 進行操作。
Docker
佈署編譯環境到伺服器經常是 linux 新手網管的惡夢,在加上希望支援 windows 系統的目標,因此決定加入 docker 的支援。
安裝部份請見 docker 文件。
iamge 編譯
編譯後 image 為 4.32GB。
編譯時間約485秒
CPU: Intel i5-1035G1 4核8緒
Memory: 16GB
DISK: SSD
專案中內建 docker image 編譯腳本,可直接雙擊檔案執行或以指令進行。
- 編譯
- 開啟
- 關閉,可透過腳本或接管 Container 進行關閉。
使用腳本
接管 Container
在 Container 中關閉
如接管後不想關閉機器可按 ctrl+P
+ ctrl+Q
退出 Container。
運作架構
使 container 運作於背景中,開機時會把 host 中的 NKUST-thesis-template 掛載到 Container 上。
利用 vscode remote development extension 進行遠端編輯,與編譯。
CLI
本節主要提供給使用非 VSCode 的使用者。
- 啟動 Docker 與進入容器
- 編譯與清除
- 關閉 Docker 容器
VSCode
本節提供給 VSCode 的使用者。
-
安裝 remote extension
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
-
啟動 container 進行服務可雙擊檔案或以 terminal 於專案目錄中執行啟動指令。如果正常運作執行後終端機將會自動關閉。
-
ctrl+p
呼叫命令工具,找到(可直接輸入) > Remote-Container: Attach to Running container ...
,點擊後選擇 latex-srv 即可進入開發環境。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
-
開啟資料夾,論文目錄預設掛載在 /home/<使用者名稱>/thesis
中。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
reference