texlive[72771] Master: nstc-proposal (5nov24)
commits+karl at tug.org
commits+karl at tug.org
Tue Nov 5 21:19:51 CET 2024
Revision: 72771
https://tug.org/svn/texlive?view=revision&revision=72771
Author: karl
Date: 2024-11-05 21:19:51 +0100 (Tue, 05 Nov 2024)
Log Message:
-----------
nstc-proposal (5nov24)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/nstc-proposal/
trunk/Master/texmf-dist/doc/latex/nstc-proposal/LICENSE
trunk/Master/texmf-dist/doc/latex/nstc-proposal/README.md
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.tex
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.tex
trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/sample.bib
trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf
trunk/Master/texmf-dist/source/latex/nstc-proposal/
trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.dtx
trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.ins
trunk/Master/texmf-dist/tex/latex/nstc-proposal/
trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm03.cls
trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm302.cls
trunk/Master/tlpkg/tlpsrc/nstc-proposal.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/LICENSE (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/LICENSE 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,15 @@
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+The latest version of this license is in
+ https://www.latex-project.org/lppl.txt
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Liang-Ting Chen (陳亮廷)
+
+This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+and the derived files nstc-cm03.cls, nstc-cm302.cls,
+example/proposal.tex, and example/bibliography.tex.
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/README.md 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,215 @@
+# nstc-proposal: LaTeX classes for NSTC grant proposals (國科會專題研究計畫 LaTeX 文件格式)
+
+(See [below](#概要) for 中文解說)
+
+## Overview
+
+This package consists of LaTeX classes for preparing grant proposals to National Science and Technology Council, Taiwan, that is:
+
+* CM03
+* CM302
+
+which support typesetting in both Chinese and English and are compatible with pdfLaTeX and XeTeX.
+
+## Installation
+
+### CTAN installation
+
+Run the following command in a terminal (or use any TeX package manager) to install:
+
+```bash
+tlmger install nstc-proposal
+```
+
+### Manual Installation
+
+1. Run the following command in a terminal to build files and examples:
+
+ ```bash
+ latex nstc-proposal.ins
+ ```
+
+2. Copy the generated `.cls` files to a directory searchable by LaTeX.
+ Hint. Run the following command to locate the local texmf directory:
+
+ ```bash
+ kpsewhich -var-value TEXMFLOCAL
+ ```
+
+ Placing the generated files under any subdirectory of the directory shown above should work.
+
+3. Compile tex files under `example` by pdfLaTeX or XeTeX and see if the package has been installed properly.
+
+## Usage
+
+See `nstc-proposal.pdf`.
+
+## Development
+
+`nstc-proposal` was written and is maintained by [Liang-Ting Chen](https://l-tchen.github.io).
+
+Please report any bug or feature request on GitHub (<https://github.com/L-TChen/nstc-proposal>).
+
+## License
+
+The `nstc-proposal` class is distributed under the conditions of the LATEX Project Public License, either version 1.3c of this license or (at your option) any later version.
+
+## 概要
+
+此套件提供準以下台灣國科會專題計劃申請書的文件格式:
+
+* 表 CM03
+* 表 CM302
+
+並且支援中英混排,相容 pdfLaTeX 跟 XeTeX 編譯。
+
+## 安裝方式
+
+### CTAN 安裝
+
+在終端機下執行以下命令安裝(或是用任何一個 TeX 的套件管理程式):
+
+```bash
+tlmger install nstc-proposal
+```
+
+### 手動安裝
+
+1. 在終端機下執行以下命令生成檔案跟範例:
+
+ ```bash
+ latex nstc-proposal.ins
+ ```
+
+2. 把生成出來的 `.cls` 檔案複製到 LaTeX 可以搜尋得到的目錄下。提示:把檔案放在 `kpsewhich -var-value TEXMFLOCAL` 下的任一子目錄應該就可以。`TEXMFLOCAL` 路徑可用以下指令得到:
+
+ ```bash
+ kpsewhich -var-value TEXMFLOCAL
+ ```
+
+3. 用 pdfLaTeX 或是 XeTeX 編譯 `example` 目錄底下的檔案,看是否有安裝成功。
+
+## 使用方式
+
+請參考 `nstc-proposal.pdf`。
+
+### 文件選項
+
+文件格式繼承自 `article` 額外提供以下選項:
+
+* `libertine`: 英文字型改用 Linux Libertine(來自 [libertine](https://ctan.org/pkg/libertine) 套件)。
+* `kaiti` (需用 XeTeX 編譯): 中文字型改用 macOS 內建的常州華文「楷體-繁」。
+
+### 文件定義之指令
+
+以下指令可產生 CM03 的章節名稱與說明:
+
+* `\ProposalBackground`: 研究計畫之背景
+* `\ProposalMethod`: 研究方法、進行步驟及執行進度
+* `\ProposalPlan`: 預期完成之工作項目及成果
+* `\ProposalIntegration`: 整合型研究計畫說明
+
+若是編輯軟體會根據 `\section` 判斷原始碼格式,支援程式碼摺疊或目錄之類的功能,則建議直接使用 `\section` 指令輸入章節名稱,最後加入 `\vskip1em` 保留足夠的留白。例如:
+
+```latex
+\section{研究計畫之背景}
+請詳述本研究計畫所要探討或解決的問題、研究原創性、重要性、預期影響性及國內外有關本計畫之研究情況、重要參考文獻之評述等。如為連續性計畫應說明上年度研究進度。
+\vskip1em
+```
+
+### 表 CM03 範例
+
+```latex
+\documentclass{nstc-cm03}
+\usepackage{microtype}
+
+\begin{document}
+
+\ProposalBackground
+\ProposalMethod
+\ProposalPlan
+\ProposalIntegration
+
+\nocite{*}
+
+\bibliographystyle{plain}
+\bibliography{sample}
+\end{document}
+```
+
+以 LaTeX 或 XeTeX 編譯或加上選項 `libertine` 的四種結果如下
+
+| | LaTeX | XeTeX |
+|-----------|-------|-------|
+| (預設無選項) |[proposal.pdf](https://github.com/user-attachments/files/17560415/proposal.pdf) | [proposal-xetex.pdf](https://github.com/user-attachments/files/17560554/proposal-xetex.pdf) |
+| `libertine` | [proposal-libertine.pdf](https://github.com/user-attachments/files/17560517/proposal-libertine.pdf) |[proposal-libertine-xetex.pdf](https://github.com/user-attachments/files/17560558/proposal-xetex-libertine.pdf)|
+
+### 表 CM302 範例
+
+若用格式 `nstc-cm302` 則會改為表 CM302 文獻目錄之格式:
+
+1. 文件標題改為「五、著作目錄⋯⋯」
+2. 隱藏 LaTeX 預設之引用章節名稱
+3. 取消 CM03 相關指令 `\ProposalBackground`、`\ProposalMethod`、 `\ProposalPlan`、`\ProposalIntegration` 避免誤用。
+
+引用載入之 `.bib` 檔裡所有的論文,只需要用 `\nocite{*}` 即可。例如以下檔案:
+
+```latex
+\documentclass{nstc-cm302}
+
+\usepackage[hidelinks]{hyperref}
+\usepackage{doi}
+
+\usepackage{microtype}
+
+\begin{document}
+
+\nocite{*}
+
+\bibliographystyle{abbrv}
+\bibliography{sample}
+\end{document}
+```
+
+便能產出此[結果](https://github.com/user-attachments/files/17573002/bibliography.pdf)。
+
+## 設計
+
+### 文件格式設定
+
+國科會規定頁面尺寸 A4,一倍行距[^1],字型大小 12 點,以及頁面邊界 2 公分,其他如字型並無特別規定。
+
+### 預載套件
+
+文件格式除設定格式必要的套件外,另載入 `amsmath` 以及 `amsthm` 兩套件以及:
+
+* 字型相關套件
+ * 用 LaTeX 編譯時額外載入 `CJKutf8`
+ * 用 XeTeX 編譯時額外載入 `fontspec`. `unicode-math`, `xeCJK`
+
+### 中文字型
+
+* 若用 TeX 編譯,字型則為「文鼎 PL 中楷」[^2](來自 [`arphic`](https://ctan.org/pkg/arphic) 套件)
+
+* 若用 XeTeX 編譯,字型選用順序如下:
+
+ 1. 標楷體(Windows 以及 macOS 13.2 以前內建)
+ 2. 標楷體-繁(macOS 13.3 以後內建)
+ 3. 文鼎 PL 中楷(來自 [`arphic-ttf`](https://ctan.org/pkg/arphic-ttf?lang=en) 套件)
+
+### 英文字型
+
+Times 家族(如 Times New Roman)的 TeXGyre Termes(來自 [`newtx`](https://ctan.org/pkg/newtx) 套件)
+
+## 開發維護
+
+本套件 `nstc-proposal` 是由[陳亮廷](<https://l-tchen.github.io>)所撰寫維護。
+
+發現任何錯誤或是有任何需求,請回報到 GitHub 上的專案網站 <https://github.com/L-TChen/nstc-proposal。>
+
+## 版權聲明
+
+The `nstc-proposal` class is distributed under the conditions of the LATEX Project Public License, either version 1.3c of this license or (at your option) any later version.
+
+[^1]: 根據 Wikipedia 的[說明](https://en.wikipedia.org/wiki/Leading#cite_ref-4),Word 97–2010 的一倍行距實則為 1.15 倍的行距(leading)之後為 1.08 倍,所以不清楚到底行距實質規定多少。此文件格式行距以 `setspace` 套件的 `\onehalfspacing` 設定行距,印出後肉眼比對約略相等國科會網站下載的範例檔。
+[^2]: 文鼎字型公眾授權字型法律聲明[在此](https://www.arphic.com.tw/2022/01/21/plfont/)。
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf 2024-11-05 20:18:59 UTC (rev 72770)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf 2024-11-05 20:19:51 UTC (rev 72771)
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.tex 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,40 @@
+%%
+%% This is file `example/bibliography.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nstc-proposal.dtx (with options: `bibliography.tex')
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Liang-Ting Chen (陳亮廷).
+%%
+%% This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+%% and the derived files nstc-cm03.cls, nstc-cm302.cls,
+%% example/proposal.tex, and example/bibliography.tex.
+%%
+\documentclass{nstc-cm302}
+\usepackage[hidelinks]{hyperref}
+\usepackage{doi}
+\usepackage{microtype}
+\begin{document}
+
+\nocite{*}
+
+\bibliographystyle{abbrv}
+\bibliography{sample}
+\end{document}
+
+
+\endinput
+%%
+%% End of file `example/bibliography.tex'.
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/bibliography.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf 2024-11-05 20:18:59 UTC (rev 72770)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf 2024-11-05 20:19:51 UTC (rev 72771)
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.tex 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,41 @@
+%%
+%% This is file `example/proposal.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nstc-proposal.dtx (with options: `proposal.tex')
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Liang-Ting Chen (陳亮廷).
+%%
+%% This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+%% and the derived files nstc-cm03.cls, nstc-cm302.cls,
+%% example/proposal.tex, and example/bibliography.tex.
+%%
+\documentclass[libertine]{nstc-cm03}
+\usepackage{microtype}
+\begin{document}
+
+\ProposalBackground
+\ProposalMethod
+\ProposalPlan
+\ProposalIntegration
+
+\bibliographystyle{plain}
+\bibliography{sample}
+\end{document}
+
+
+\endinput
+%%
+%% End of file `example/proposal.tex'.
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/proposal.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/sample.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/sample.bib (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/sample.bib 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,19 @@
+ at article{Greenwade93,
+ author = "George D. Greenwade",
+ title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
+ year = "1993",
+ journal = "TUGBoat",
+ volume = "14",
+ number = "3",
+ url = {https://www.tug.org/TUGboat/tb14-3/tb40green.pdf},
+ pages = "342--351"
+}
+
+ at book{Knuth86,
+ title={The {\TeX}book},
+ author={Knuth, Donald Ervin},
+ volume={1993},
+ year={1986},
+ isbn={0201134470},
+ publisher={Addison Wesley}
+}
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/example/sample.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf 2024-11-05 20:18:59 UTC (rev 72770)
+++ trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf 2024-11-05 20:19:51 UTC (rev 72771)
Property changes on: trunk/Master/texmf-dist/doc/latex/nstc-proposal/nstc-proposal.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.dtx (rev 0)
+++ trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.dtx 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,363 @@
+% \iffalse
+%<cm03|cm302>\NeedsTeXFormat{LaTeX2e}[2023-11-01]
+%<cm03>\ProvidesClass{nstc-cm03}
+%<cm302>\ProvidesClass{nstc-cm302}
+%<cm03|cm302> [2024-11-04 v1.0 NSTC CM03/302 LaTeX 文件格式]
+%
+%<*driver>
+\ProvidesFile{\jobname.dtx}
+ [2024/11/04 v1.0 NSTC CM03/302 LaTeX 文件格式]
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\usepackage{url}
+\usepackage{graphicx}
+\usepackage{setspace}
+\usepackage{pdfpages}
+\onehalfspacing
+\usepackage{xltxtra}
+\usepackage[CJKspace]{xeCJK}
+\usepackage{titlesec,zhnumber}
+\renewcommand\labelenumi{(\zhnum{enumi})}
+\renewcommand\theenumi\labelenumi
+\setmainfont{bkai00mp.ttf}[AutoFakeBold=2.5]
+\setCJKmainfont{bkai00mp.ttf}[AutoFakeBold=2.5]
+\zhnumsetup{style=Traditional}
+\begin{document}
+ \DocInput{\jobname.dtx}
+%% \PrintChanges
+\end{document}
+%</driver>
+% \fi
+%
+% \changes{v1.0}{2024/11/05}{初始版本}
+% \GetFileInfo{\jobname.dtx}
+% \title{\texorpdfstring{\textsf{nstc-proposal} 套件\thanks{GitHub 專案網站:\url{https://github.com/L-TChen/latex-cm03}}}}
+% \author{陳亮廷}
+% \date{\zhdate{2024/11/05} \fileversion}
+% \maketitle
+% 此套件針對國科會中文專題計劃表 CM03/CM302 的需求,提供中英混排、符合規定的文件格式 |nstc-cm03| 以及 |nstc-cm302|。\footnote{唯獨該格式要求設定 Word 的「單行間距」有歧義:根據 Wikipedia 的說明,Word 97–2010 的單行間距實則為 1.15 倍的行距,之後的版本為 1.08 倍,所以不清楚到底行距實質規定多少。此文件格式行距以 |setspace| 套件設定,肉眼比對約略相等國科會提供的範例。}
+%
+% \titleformat{\section}{\bfseries\Large}{\zhnum{section}、}{0em}{}
+% \section{使用方式}
+% 本套件提供設定 CM03/302 版面的文件格式以及中文標題名。
+%
+%
+% \subsection{文件格式}
+% 提供以下兩種格式繼承修改自 \LaTeX 內建之 |article| 文件格式,更改 |\documentclass| 即可使用。
+%
+% \DescribeMacro{nstc-cm03}
+% 適用於表 CM03 研究計劃的文件格式。
+%
+% \DescribeMacro{nstc-cm302}
+% 適用於表 CM302 著作目錄的文件格式。
+%
+% \subsection{文件格式選項}
+%
+% 兩文件格式皆提供以下選項:
+%
+% \DescribeMacro{libertine}
+% 更換為 Linux Libertine 字型,較適合搭配楷體漢字。
+%
+% \DescribeMacro{kaiti}
+% 更換為 macOS 上內建的常州華文「楷體-繁」字型,該字型具備粗體。
+%
+% \DescribeMacro{draft oneside twoside fleqn leqno}
+% 繼承自 |article| 的選項,作用請參考 \LaTeX 中的說明。若使用 |article| 其他不相容於 CM03/302 的選項,仍可編譯但會產生警告訊息。
+%
+%
+% \subsection{指令} \label{sec:commands}
+% 本套件可使用 |article| 格式的指令。此套件另提供以下指令生成表 CM03 中的章節及敘述說明。
+%
+% \DescribeMacro{\ProposalBackground}
+% 「研究計畫之背景\quad 請詳述本研究計畫\dots\dots」
+%
+% \DescribeMacro{\ProposalMethod}
+% 「研究方法、進行步驟及執行進度\quad 請分年列述:\dots\dots」
+%
+% \DescribeMacro{\ProposalPlan}
+% 「預期完成之工作項目及成果\quad 請分年列述:\dots\dots」
+%
+% \DescribeMacro{\ProposalIntegration}
+% 「整合型研究計畫說明\quad 如為整合型研究計畫\dots\dots」
+%
+% \subsection{預載套件}
+%
+% 除 |amsmath| 和 |amsthm| 外,只載入格式設定必要的套件,其他套件請自行載入。
+% \subsection{範例}
+% 以下為原始檔範例,此說明最後附有編譯結果。
+% \subsubsection{CM03 研究計劃}
+% 下列之範本可產生如國科會提供之範例,並具有 PDF 目錄結構:
+% \begin{macrocode}
+%<*proposal.tex>
+\documentclass[libertine]{nstc-cm03}
+\usepackage{microtype}
+\begin{document}
+
+\ProposalBackground
+\ProposalMethod
+\ProposalPlan
+\ProposalIntegration
+
+\bibliographystyle{plain}
+\bibliography{sample}
+\end{document}
+%</proposal.tex>
+% \end{macrocode}
+%
+% \subsubsection{CM302 著作目錄}
+% 著作目錄可用指令 |\nocite{*}| 將 |.bib| 檔內所有文獻引用,如:
+% \begin{macrocode}
+%<*bibliography.tex>
+\documentclass{nstc-cm302}
+\usepackage[hidelinks]{hyperref}
+\usepackage{doi}
+\usepackage{microtype}
+\begin{document}
+
+\nocite{*}
+
+\bibliographystyle{abbrv}
+\bibliography{sample}
+\end{document}
+%</bibliography.tex>
+% \end{macrocode}
+%
+% \section{後記}
+%
+% 理工領域學者學術寫作習慣使用英文,專題研究的申請書則仍常用中文,
+% 此文件格式試圖滿足中英文混排並與申請書其他文件一致協調,另有以下要求:
+%
+% \begin{enumerate}
+% \item 產生之 PDF 檔有相對應的目錄
+% \item 字型使用需合法
+% \item 需相容 pdf\LaTeX
+% \end{enumerate}
+%
+% 首先,文章結構中的 |\section| 對應中文標題(如:「研究計畫之背景」),章節編號採中文數字(如:一、二、三 )。而子節(|\subsection|)則假設為英文段落,標題後的文字沒有空行隔開,而是間隔一小空白後直接開始,與中文標題一致。因為用標準的 \LaTeX 命令設定,產生出來的 PDF 檔如用 |hyperref| 套件可產生對應的章節目錄。
+
+% 國科會 CM03 範例中的章節文字,本套件提供指令如 |\ProposalBackground| (見~\ref{sec:commands}~節)印出,但並不預設產生。除固定顯示「三、研究計畫內容(以中文或英文撰寫)」外,其他節的標題文字可由使用者自行更改。
+%
+% 中文字型選擇配合計畫文件其他頁面,將採用標楷體(若作業系統無提供,則用 \TeX 提供的「文鼎 PL 楷體」)。然而標楷體並無設計粗體,加粗僅為軟體模擬,部分留白處太少。而 macOS 內建常州華文設計的「楷體-繁」,該字型同為楷體且有設計相對應的粗體字重,較為美觀清楚。因此針對 macOS 使用者,提供選項 |kaiti| 改採用「楷體-繁」。
+%
+% 至於英文字型,台灣研究所論文常搭配同是襯線字的 Times New Roman,依循慣例以同字體的 TeXGyre Termes 作為預設字型。然而 Times 字體收尾尖銳細長,較相似中文的明體。相較之下,同是襯線字的 Linux Libertine 較圓潤與楷體較為一直,因此提供選項 |libertine| 可改為 Linux Libertine 字型。
+%
+% 至於 pdf\LaTeX 仍有編譯快速以及 |microtype| 套件支援完整等優點,因此盡力相容 pdf\LaTeX 不要求使用 \XeTeX 編譯中文。但中文選擇受限於 \TeX 的 T1 字型,標楷體因版權無法製成 T1 字型散佈,改採用文鼎公眾授權的「PL 楷體」\footnote{授權聲明在此:\url{https://www.arphic.com.tw/2022/01/21/plfont/}}替代。
+% \paragraph{致謝} 在此特別感謝柯向上博士\footnote{柯博士的個人網頁:\url{https://josh-hs-ko.github.io}},此套件最初基於他提供的頁面設定所發展。
+%
+% \appendix
+%
+% \StopEventually{}
+%
+% \titleformat{\section}{\bfseries\Large}{附錄\Alph{section}、}{0em}{}
+% \section{實作}
+%
+% 此節提供實作細節的說明,供後人修改參考。
+%
+% \subsection{文件格式選項}
+% \begin{macro}{nstc-cm03.cls/nstc-cm302.cls}
+% 這兩個文件格式由同一個檔案生成,格式版面皆相同,差別僅在於部分文字。
+% \begin{macro}{}
+% 若使用不相容於表 CM03 的 |article| 文件格式的選項,則編譯時會提出警告。
+% \begin{macrocode}
+%<*cm03|cm302>
+\def\cmthree at opterrlong{The option "\CurrentOption" from article.cls is
+ not compatible with the format of cm03.}
+\newcommand{\cmthree at warning}{\ClassWarning{cm03}{\cmthree at opterrlong}}
+\newcommand{\cmthree at info}[1]{\ClassInfo{cm03}{#1}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 以下是不相容的選項:
+% \begin{macrocode}
+\DeclareOption{titlepage}{\cmthree at warning}
+\DeclareOption{notitlepage}{\cmthree at warning}
+\DeclareOption{10pt}{\cmthree at warning}
+\DeclareOption{11pt}{\cmthree at warning}
+\DeclareOption{letterpaper}{\cmthree at warning}
+\DeclareOption{a5paper}{\cmthree at warning}
+\DeclareOption{b5paper}{\cmthree at warning}
+\DeclareOption{executivepaper}{\cmthree at warning}
+\DeclareOption{legalpaper}{\cmthree at warning}
+\DeclareOption{twocolumn}{\cmthree at warning}
+\DeclareOption{openright}{\cmthree at warning}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{libertine,kaiti}
+% 額外提供兩個選項 |libertine| 跟 |kaiti| 改變字型:
+% \begin{macrocode}
+\DeclareOption{libertine}{\let\@libertine\relax}
+\DeclareOption{kaiti}{\let\@kaiti\relax}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 剩下的選項傳入 |article| 文件格式,並且設定頁面跟字型大小:
+% \begin{macrocode}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+\LoadClass[a4paper,12pt,onecolumn,twoside]{article}
+\RequirePackage[margin=2cm,bottom=2.4cm]{geometry}
+\RequirePackage{setspace}
+\onehalfspacing
+
+\RequirePackage{iftex,xifthen}
+\RequirePackage{amsmath,amsthm}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsection{中文字型處理}
+% \begin{macro}{}
+% 根據編譯引擎不同,中文字型設定有所不同。因此先用 |iftex| 套件提供之 |\iftutex| 判斷是否為 \XeTeX 。
+% \begin{macrocode}
+\iftutex
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 若是使用 \XeTeX 編譯,則載入 |xeCJK| 套件處理中文排版。若有選項 |kaiti| 則載入系統字型「楷體-繁(|Kaiti TC|)」:
+% \begin{macrocode}
+\RequirePackage[PunctStyle=plain,no-math]{xeCJK}
+\ifx\@kaiti\relax
+ \setCJKmainfont{Kaiti TC}[BoldFont = *-Bold]
+ \setCJKsansfont{Heiti TC}
+ \cmthree at info{使用楷體作為中文字型}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 若無選項 |kaiti|,則優先選擇系統上的標楷體。然而,標楷體有各種版本,名稱也根據現行編碼習慣略作調整。在中文 Windows 以及 macOS 13.2 以前應皆稱為「標楷體(|BiauKai|)」,在 macOS 13.3 之後稱為「標楷體-繁(|BiauKaiTC|)」:
+% \begin{macrocode}
+\else
+\IfFontExistsTF{BiauKai}{
+ \setCJKmainfont{BiauKai}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體 (BiauKai) 作為中文字型}
+}{
+ \IfFontExistsTF{BiauKaiTC}{
+ \setCJKmainfont{BiauKaiTC}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體繁 (BiauKaiTC) 作為中文字型}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 若無標楷體(|BiauKai| 或 |BiauKaiTC|)則用 |arphic-ttf| 套件的文鼎「PL 楷體」:
+% \begin{macrocode}
+}{
+ \setCJKmainfont{bkai00mp.ttf}[AutoFakeBold=2.5]
+ \cmthree at info{使用 AR PL UKai TW 作為中文字型}
+}}
+\fi
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 若使用 \LaTeX 編譯,則載入 |CJKutf8| 套件並使用 |arphic| 套件的文鼎「PL 楷體」,並且設定新的 \LaTeX 環境 |zh| ,可在其中使用中文,同時將文件以 |zh| 環境包覆,
+% \begin{macrocode}
+\else
+ \RequirePackage{CJKutf8}
+ \newenvironment{zh}{\begin{CJK*}{UTF8}{bkai}}{\end{CJK*}}
+ \input{c70bkai.fd}
+ \DeclareFontShape{C70}{bkai}{b}{n}{<-> CJKb * bkaiu}{\CJKbold}
+ \AddToHook{begindocument/end}{\begin{zh}}
+ \AddToHook{enddocument}{\end{zh}}
+\fi
+% \end{macrocode}
+% \end{macro}
+% \subsection{英文字型處理}
+% \begin{macro}{}
+% \begin{macrocode}
+\ifx\@libertine\relax
+ \RequirePackage[tt=false]{libertine}
+ \iftutex
+ \RequirePackage{unicode-math}
+ \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
+ \else
+ \RequirePackage[libertine]{newtxmath}
+ \fi
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 使用 |newtxtext| 設定英文字型為 \textsf{TeXGyre Termes}。然而,|newtxtext| 會改變 |fontspec| 設定,以至於使用者無法再改字型,而使用者仍可能載入其他設定,所以用 |\defaultfontfeatures{}| 恢復設定:
+% \begin{macrocode}
+\else
+ \RequirePackage{newtxtext}
+ \iftutex
+ \defaultfontfeatures{}
+ \fi
+ \RequirePackage{newtxmath}
+\fi
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% \subsection{頁面文字}
+% 設定中英文章節格式:
+% \begin{macrocode}
+%<cm03>\RequirePackage{zhnumber,titlesec}
+%<cm03>\titleformat{\section}[runin]%
+%<cm03> {\bfseries\normalsize}{(\zhnum{section})}{0em}{}
+%<cm03>\titleformat{\subsection}[runin]%
+%<cm03> {\bfseries\normalsize}{\thesubsection}{0.5em}{}
+%<cm03>\titleformat{\subsubsection}[runin]%
+%<cm03> {\bfseries\normalsize}{\thesubsubsection}{0.5em}{}
+%
+% \end{macrocode}
+% \end{macro}
+% 設定表 CM03/CM302 首頁標題:
+% \begin{macro}{}
+% \begin{macrocode}
+%<cm302>\def\cmthree at heading{五、著作目錄(建議呈現與計畫相關之著作目錄,頁數以~2~頁為限):}
+%<cm302>\def\cmthree at footer{表\;CM302}
+%<cm03>\def\cmthree at heading{三、研究計畫內容(以中文或英文撰寫):}
+%<cm03>\def\cmthree at footer{表\;CM03}
+\AddToHook{begindocument/end}{\par%
+ \everypar={{\setbox0=\lastbox}\everypar{}}%
+ \begingroup\large\bfseries\cmthree at heading\endgroup\par}
+
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 設定頁尾格式:
+% \begin{macrocode}
+\RequirePackage{lastpage,fancyhdr}
+\pagestyle{fancy}
+\renewcommand{\headrulewidth}{0pt}
+\fancyhead{}
+\iftutex
+ \lfoot{\cmthree at footer}
+\else
+ \lfoot{\begin{zh}\cmthree at footer\end{zh}}
+\fi
+\cfoot{}
+\iftutex
+ \rfoot{共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁}
+\else
+ \rfoot{\begin{zh}共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁\end{zh}}
+\fi
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{}
+% 設定參考文獻標題,表 CM302 令 |\section| 無作用避免錯誤的留白:
+% \begin{macrocode}
+%<cm302>\AddToHook{begindocument/end}{\renewcommand{\section}[2]{}}
+%<cm03>\AddToHook{begindocument/end}{\renewcommand{\refname}{參考文獻}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\zhsection}
+% 中文章節的標題與說明透過 |\zhsection| 設定,接續段落預留 1em 的垂直空間。
+% \begin{macrocode}
+%<cm03>\newcommand{\zhsection}[2]{\section{#1}#2\vskip1em}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\ProposalBackground, \ProposalMethod, \ProposalPlan, \ProposalIntegration}
+% 設定表 CM03 各節標題文字與說明:
+% \begin{macrocode}
+%<cm03>\newcommand{\ProposalBackground}{\zhsection{研究計畫之背景}{請詳述本研究計畫所要探討或解決的問題、研究原創性、重要性、預期影響性及國內外有關本計畫之研究情況、重要參考文獻之評述等。如為連續性計畫應說明上年度研究進度。}}
+%<cm03>\newcommand{\ProposalMethod}{\zhsection{研究方法、進行步驟及執行進度}{請分年列述:1. 本計畫採用之研究方法與原因及其創新性。2. 預計可能遭遇之困難及解決途徑。3. 重要儀器之配合使用情形。4. 如為須赴國外或大陸地區研究,請詳述其必要性以及預期效益等。}}
+%<cm03>\newcommand{\ProposalPlan}{\zhsection{預期完成之工作項目及成果}{請分年列述:1. 預期完成之工作項目。2. 對於參與之工作人員,預期可獲之訓練。3. 預期完成之研究成果(如實務應用績效、期刊論文、研討會論文、專書、技術報告、專利或技術移轉等質與量之預期成果)。4. 學術研究、國家發展及其他應用方面預期之貢獻。}}
+%<cm03>\newcommand{\ProposalIntegration}{\zhsection{整合型研究計畫說明}{如為整合型研究計畫請就以上各點分別說明與其他子計畫之相關性。}}
+%</cm03|cm302>
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \includepdfmerge[nup=1x2, landscape]{./example/proposal.pdf, ./example/bibliography.pdf}
+%
+% \Finale
+
Property changes on: trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.ins (rev 0)
+++ trunk/Master/texmf-dist/source/latex/nstc-proposal/nstc-proposal.ins 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,49 @@
+%% nstc-proposal.ins
+%% Copyright 2024 Liang-Ting
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% https://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2008 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Liang-Ting Chen (陳亮廷)
+%
+% This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+% and the derived files nstc-cm03.cls, nstc-cm302.cls,
+% example/proposal.tex, and example/bibliography.tex.
+
+\input docstrip.tex
+\askforoverwritefalse
+\keepsilent
+\usedir{tex/latex/nstc-proposal}
+\preamble
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+The latest version of this license is in
+ https://www.latex-project.org/lppl.txt
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Liang-Ting Chen (陳亮廷).
+
+This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+and the derived files nstc-cm03.cls, nstc-cm302.cls,
+example/proposal.tex, and example/bibliography.tex.
+
+\endpreamble
+\generate{\file{example/proposal.tex}{\from{\jobname.dtx}{proposal.tex}}
+ \file{example/bibliography.tex}{\from{\jobname.dtx}{bibliography.tex}}
+ \file{nstc-cm03.cls}{\from{\jobname.dtx}{cm03}}
+ \file{nstc-cm302.cls}{\from{\jobname.dtx}{cm302}}
+ }
+\obeyspaces
+\endbatchfile
Added: trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm03.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm03.cls (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm03.cls 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,136 @@
+%%
+%% This is file `nstc-cm03.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nstc-proposal.dtx (with options: `cm03')
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Liang-Ting Chen (陳亮廷).
+%%
+%% This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+%% and the derived files nstc-cm03.cls, nstc-cm302.cls,
+%% example/proposal.tex, and example/bibliography.tex.
+%%
+\NeedsTeXFormat{LaTeX2e}[2023-11-01]
+\ProvidesClass{nstc-cm03}
+ [2024-11-04 v1.0 NSTC CM03/302 LaTeX 文件格式]
+
+\def\cmthree at opterrlong{The option "\CurrentOption" from article.cls is
+ not compatible with the format of cm03.}
+\newcommand{\cmthree at warning}{\ClassWarning{cm03}{\cmthree at opterrlong}}
+\newcommand{\cmthree at info}[1]{\ClassInfo{cm03}{#1}}
+\DeclareOption{titlepage}{\cmthree at warning}
+\DeclareOption{notitlepage}{\cmthree at warning}
+\DeclareOption{10pt}{\cmthree at warning}
+\DeclareOption{11pt}{\cmthree at warning}
+\DeclareOption{letterpaper}{\cmthree at warning}
+\DeclareOption{a5paper}{\cmthree at warning}
+\DeclareOption{b5paper}{\cmthree at warning}
+\DeclareOption{executivepaper}{\cmthree at warning}
+\DeclareOption{legalpaper}{\cmthree at warning}
+\DeclareOption{twocolumn}{\cmthree at warning}
+\DeclareOption{openright}{\cmthree at warning}
+\DeclareOption{libertine}{\let\@libertine\relax}
+\DeclareOption{kaiti}{\let\@kaiti\relax}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+\LoadClass[a4paper,12pt,onecolumn,twoside]{article}
+\RequirePackage[margin=2cm,bottom=2.4cm]{geometry}
+\RequirePackage{setspace}
+\onehalfspacing
+
+\RequirePackage{iftex,xifthen}
+\RequirePackage{amsmath,amsthm}
+\iftutex
+\RequirePackage[PunctStyle=plain,no-math]{xeCJK}
+\ifx\@kaiti\relax
+ \setCJKmainfont{Kaiti TC}[BoldFont = *-Bold]
+ \setCJKsansfont{Heiti TC}
+ \cmthree at info{使用楷體作為中文字型}
+\else
+\IfFontExistsTF{BiauKai}{
+ \setCJKmainfont{BiauKai}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體 (BiauKai) 作為中文字型}
+}{
+ \IfFontExistsTF{BiauKaiTC}{
+ \setCJKmainfont{BiauKaiTC}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體繁 (BiauKaiTC) 作為中文字型}
+}{
+ \setCJKmainfont{bkai00mp.ttf}[AutoFakeBold=2.5]
+ \cmthree at info{使用 AR PL UKai TW 作為中文字型}
+}}
+\fi
+\else
+ \RequirePackage{CJKutf8}
+ \newenvironment{zh}{\begin{CJK*}{UTF8}{bkai}}{\end{CJK*}}
+ \input{c70bkai.fd}
+ \DeclareFontShape{C70}{bkai}{b}{n}{<-> CJKb * bkaiu}{\CJKbold}
+ \AddToHook{begindocument/end}{\begin{zh}}
+ \AddToHook{enddocument}{\end{zh}}
+\fi
+\ifx\@libertine\relax
+ \RequirePackage[tt=false]{libertine}
+ \iftutex
+ \RequirePackage{unicode-math}
+ \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
+ \else
+ \RequirePackage[libertine]{newtxmath}
+ \fi
+\else
+ \RequirePackage{newtxtext}
+ \iftutex
+ \defaultfontfeatures{}
+ \fi
+ \RequirePackage{newtxmath}
+\fi
+\RequirePackage{zhnumber,titlesec}
+\titleformat{\section}[runin]%
+ {\bfseries\normalsize}{(\zhnum{section})}{0em}{}
+\titleformat{\subsection}[runin]%
+ {\bfseries\normalsize}{\thesubsection}{0.5em}{}
+\titleformat{\subsubsection}[runin]%
+ {\bfseries\normalsize}{\thesubsubsection}{0.5em}{}
+\def\cmthree at heading{三、研究計畫內容(以中文或英文撰寫):}
+\def\cmthree at footer{表\;CM03}
+\AddToHook{begindocument/end}{\par%
+ \everypar={{\setbox0=\lastbox}\everypar{}}%
+ \begingroup\large\bfseries\cmthree at heading\endgroup\par}
+
+\RequirePackage{lastpage,fancyhdr}
+\pagestyle{fancy}
+\renewcommand{\headrulewidth}{0pt}
+\fancyhead{}
+\iftutex
+ \lfoot{\cmthree at footer}
+\else
+ \lfoot{\begin{zh}\cmthree at footer\end{zh}}
+\fi
+\cfoot{}
+\iftutex
+ \rfoot{共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁}
+\else
+ \rfoot{\begin{zh}共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁\end{zh}}
+\fi
+\AddToHook{begindocument/end}{\renewcommand{\refname}{參考文獻}}
+\newcommand{\zhsection}[2]{\section{#1}#2\vskip1em}
+\newcommand{\ProposalBackground}{\zhsection{研究計畫之背景}{請詳述本研究計畫所要探討或解決的問題、研究原創性、重要性、預期影響性及國內外有關本計畫之研究情況、重要參考文獻之評述等。如為連續性計畫應說明上年度研究進度。}}
+\newcommand{\ProposalMethod}{\zhsection{研究方法、進行步驟及執行進度}{請分年列述:1. 本計畫採用之研究方法與原因及其創新性。2. 預計可能遭遇之困難及解決途徑。3. 重要儀器之配合使用情形。4. 如為須赴國外或大陸地區研究,請詳述其必要性以及預期效益等。}}
+\newcommand{\ProposalPlan}{\zhsection{預期完成之工作項目及成果}{請分年列述:1. 預期完成之工作項目。2. 對於參與之工作人員,預期可獲之訓練。3. 預期完成之研究成果(如實務應用績效、期刊論文、研討會論文、專書、技術報告、專利或技術移轉等質與量之預期成果)。4. 學術研究、國家發展及其他應用方面預期之貢獻。}}
+\newcommand{\ProposalIntegration}{\zhsection{整合型研究計畫說明}{如為整合型研究計畫請就以上各點分別說明與其他子計畫之相關性。}}
+
+\endinput
+%%
+%% End of file `nstc-cm03.cls'.
Property changes on: trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm03.cls
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm302.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm302.cls (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm302.cls 2024-11-05 20:19:51 UTC (rev 72771)
@@ -0,0 +1,124 @@
+%%
+%% This is file `nstc-cm302.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nstc-proposal.dtx (with options: `cm302')
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Liang-Ting Chen (陳亮廷).
+%%
+%% This work consists of the files nstc-proposal.dtx and nstc-proposal.ins
+%% and the derived files nstc-cm03.cls, nstc-cm302.cls,
+%% example/proposal.tex, and example/bibliography.tex.
+%%
+\NeedsTeXFormat{LaTeX2e}[2023-11-01]
+\ProvidesClass{nstc-cm302}
+ [2024-11-04 v1.0 NSTC CM03/302 LaTeX 文件格式]
+
+\def\cmthree at opterrlong{The option "\CurrentOption" from article.cls is
+ not compatible with the format of cm03.}
+\newcommand{\cmthree at warning}{\ClassWarning{cm03}{\cmthree at opterrlong}}
+\newcommand{\cmthree at info}[1]{\ClassInfo{cm03}{#1}}
+\DeclareOption{titlepage}{\cmthree at warning}
+\DeclareOption{notitlepage}{\cmthree at warning}
+\DeclareOption{10pt}{\cmthree at warning}
+\DeclareOption{11pt}{\cmthree at warning}
+\DeclareOption{letterpaper}{\cmthree at warning}
+\DeclareOption{a5paper}{\cmthree at warning}
+\DeclareOption{b5paper}{\cmthree at warning}
+\DeclareOption{executivepaper}{\cmthree at warning}
+\DeclareOption{legalpaper}{\cmthree at warning}
+\DeclareOption{twocolumn}{\cmthree at warning}
+\DeclareOption{openright}{\cmthree at warning}
+\DeclareOption{libertine}{\let\@libertine\relax}
+\DeclareOption{kaiti}{\let\@kaiti\relax}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+\LoadClass[a4paper,12pt,onecolumn,twoside]{article}
+\RequirePackage[margin=2cm,bottom=2.4cm]{geometry}
+\RequirePackage{setspace}
+\onehalfspacing
+
+\RequirePackage{iftex,xifthen}
+\RequirePackage{amsmath,amsthm}
+\iftutex
+\RequirePackage[PunctStyle=plain,no-math]{xeCJK}
+\ifx\@kaiti\relax
+ \setCJKmainfont{Kaiti TC}[BoldFont = *-Bold]
+ \setCJKsansfont{Heiti TC}
+ \cmthree at info{使用楷體作為中文字型}
+\else
+\IfFontExistsTF{BiauKai}{
+ \setCJKmainfont{BiauKai}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體 (BiauKai) 作為中文字型}
+}{
+ \IfFontExistsTF{BiauKaiTC}{
+ \setCJKmainfont{BiauKaiTC}[AutoFakeBold=2.5]
+ \cmthree at info{使用標楷體繁 (BiauKaiTC) 作為中文字型}
+}{
+ \setCJKmainfont{bkai00mp.ttf}[AutoFakeBold=2.5]
+ \cmthree at info{使用 AR PL UKai TW 作為中文字型}
+}}
+\fi
+\else
+ \RequirePackage{CJKutf8}
+ \newenvironment{zh}{\begin{CJK*}{UTF8}{bkai}}{\end{CJK*}}
+ \input{c70bkai.fd}
+ \DeclareFontShape{C70}{bkai}{b}{n}{<-> CJKb * bkaiu}{\CJKbold}
+ \AddToHook{begindocument/end}{\begin{zh}}
+ \AddToHook{enddocument}{\end{zh}}
+\fi
+\ifx\@libertine\relax
+ \RequirePackage[tt=false]{libertine}
+ \iftutex
+ \RequirePackage{unicode-math}
+ \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
+ \else
+ \RequirePackage[libertine]{newtxmath}
+ \fi
+\else
+ \RequirePackage{newtxtext}
+ \iftutex
+ \defaultfontfeatures{}
+ \fi
+ \RequirePackage{newtxmath}
+\fi
+\def\cmthree at heading{五、著作目錄(建議呈現與計畫相關之著作目錄,頁數以~2~頁為限):}
+\def\cmthree at footer{表\;CM302}
+\AddToHook{begindocument/end}{\par%
+ \everypar={{\setbox0=\lastbox}\everypar{}}%
+ \begingroup\large\bfseries\cmthree at heading\endgroup\par}
+
+\RequirePackage{lastpage,fancyhdr}
+\pagestyle{fancy}
+\renewcommand{\headrulewidth}{0pt}
+\fancyhead{}
+\iftutex
+ \lfoot{\cmthree at footer}
+\else
+ \lfoot{\begin{zh}\cmthree at footer\end{zh}}
+\fi
+\cfoot{}
+\iftutex
+ \rfoot{共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁}
+\else
+ \rfoot{\begin{zh}共~\pageref{LastPage}~頁%
+ \hspace{1em}第~\thepage~頁\end{zh}}
+\fi
+\AddToHook{begindocument/end}{\renewcommand{\section}[2]{}}
+
+\endinput
+%%
+%% End of file `nstc-cm302.cls'.
Property changes on: trunk/Master/texmf-dist/tex/latex/nstc-proposal/nstc-cm302.cls
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2024-11-05 20:18:59 UTC (rev 72770)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2024-11-05 20:19:51 UTC (rev 72771)
@@ -624,7 +624,7 @@
nostarch notebeamer notes notes2bib notespages notestex
notex-bst noto noto-emoji notoccite notomath
novel nowidow nox
- nrc ntgclass nth ntheorem ntheorem-vn nuc nucleardata
+ nrc nstc-proposal ntgclass nth ntheorem ntheorem-vn nuc nucleardata
numberedblock numberpt numbersets
numerica numerica-plus numerica-tables numericplots
numname numnameru numprint numspell nunito
Modified: trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc 2024-11-05 20:18:59 UTC (rev 72770)
+++ trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc 2024-11-05 20:19:51 UTC (rev 72771)
@@ -165,6 +165,7 @@
depend njuthesis
depend njuvisual
depend novel
+depend nstc-proposal
depend nwafuthesis
depend nwejm
depend nih
Added: trunk/Master/tlpkg/tlpsrc/nstc-proposal.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.