Skip to content

Commit

Permalink
Add Japanese support (#37)
Browse files Browse the repository at this point in the history
* Add Japanese support

* Add Japanese font settings

* Update language settings

* Fix parindent

* Optimize title page info output

* Add ja samples

* Update docs

---------

Co-authored-by: LogCreative <logcreative@outlook.com>
  • Loading branch information
AlexaraWu and LogCreative authored Mar 18, 2023
1 parent a64c10b commit 811ec8d
Show file tree
Hide file tree
Showing 15 changed files with 1,204 additions and 361 deletions.
3 changes: 3 additions & 0 deletions sjtutex/doc/sample-article-zh.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\documentclass{sjtuarticle}

\input{common-package}
\usepackage{zhlipsum}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}

% 标题
\title{上海交通大学 \LaTeX{} 文稿模板示例文档}
Expand Down
3 changes: 3 additions & 0 deletions sjtutex/doc/sample-report-zh.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\documentclass{sjtureport}

\input{common-package}
\usepackage{zhlipsum}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}

% 标题
\title{上海交通大学 \LaTeX{} 文稿模板示例文档}
Expand Down
2 changes: 2 additions & 0 deletions sjtutex/doc/sample-thesis-en.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

\input{common-package}
\input{common-setup-thesis}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}

\begin{document}

Expand Down
101 changes: 101 additions & 0 deletions sjtutex/doc/sample-thesis-ja.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
% !TeX encoding = UTF-8

% 载入 SJTUThesis 模版
\documentclass[type=master,lang=ja]{sjtuthesis}

\input{common-package}
\usepackage{bxjalipsum}
\input{common-setup-thesis}
\makeatletter
\def\@biblabel#1{(#1)}
\makeatother
% 日语模板补充字段
\sjtusetup{
info = {
ja / title = {上海交通大学学位論文見本},
ja / display-title = {上海交通大学学位論文見本},
ja / keywords = {学位論文, 論文書式, 規範化, 見本},
ja / degree = {工学修士},
ja / author = {某},
ja / supervisor = {某教授},
ja / major = {某メジャー},
ja / department = {某カレッジ},
% ja / fund = {
% {国家973プロジェクト (No. 2025CB000000)},
% {中国国家自然科学基金会 (No. 81120250000)},
% },
}
}

\begin{document}

% 标题页
\maketitle

% 原创性声明及使用授权书
\copyrightpage

% 前置部分
\frontmatter

\begin{abstract}[zh]
\input{common-abstract-zh.tex}
\end{abstract}

\begin{abstract}[en]
\input{common-abstract-en.tex}
\end{abstract}

\begin{abstract}[ja]
\input{common-abstract-ja.tex}
\end{abstract}

% 目录
\tableofcontents
% 插图索引
\listoffigures*
% 表格索引
\listoftables*
% 算法索引
% \listofalgorithms*

% 主体部分
\mainmatter

\input{common-mainmatter-ja}

% 参考文献
\begin{thebibliography}{99}
\item 大内田鶴子「草の根の自治の技術」『社会学評論』1999(4),513-530
\item K・J・アロー 長名寛明訳『社会的選択と個人的評価』日本経済新聞社 1977,94
\item 鈴木光男・武藤滋夫『協力ゲームの理論』東京大学出版会 1985,149
\item 鈴木孝夫『ことばと文化』岩波書店 1973
\item 舩橋晴俊「環境問題の未来と社会変動――社会の自己破壊性と自己組織性」
舩橋晴俊・飯島伸子編『講座社会学 12 環境』東京大学出版会 1998,191-224
\item 真田信治 他『社会言語学』おうふう 1992
\item 真木悠介『現代社会の存立構造』筑摩書房 1977a
\item ------『気流の鳴る音』筑摩書房 1977b
\item 横山紀子「インプットの効果を高める教室活動:日本語教育における実践」国際交流基金『日本語国際センター紀要』第10号 1999,37-53
\item http://www.ninjal.ac.jp/(国立国語研究所)(作成日時、更新日時、アクセス日時)
\end{thebibliography}

% 附录
\appendix

% 附录中图表不加入索引
\captionsetup{list=no}

\input{common-nomenclature-ja}

% 结尾部分
\backmatter

% 用于盲审的论文需隐去致谢、发表论文、科研成果、简历

\input{common-achievements-ja}

\input{common-acknowledgements-ja}

\input{common-digest}

\end{document}
3 changes: 3 additions & 0 deletions sjtutex/doc/sample-thesis-zh.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
\documentclass[type=master,lang=zh]{sjtuthesis}

\input{common-package}
\usepackage{zhlipsum}
\input{common-setup-thesis}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}

\begin{document}

Expand Down
1,126 changes: 779 additions & 347 deletions sjtutex/source/sjtutex.dtx

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion sjtutex/support/common-abstract-en.tex
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
\lipsum[10]
As a primary means of demonstrating research findings for undergraduate
students, dissertation is a systematic and standardized record of the new
inventions, theories or insights obtained by the author in the research work.
It can not only function as an important reference when students pursue further
studies, but also contribute to scientific research and social development.

This template is therefore made to improve the quality of undergraduates'
dissertation and to further standardize it both in content and in format.
6 changes: 6 additions & 0 deletions sjtutex/support/common-abstract-ja.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
学位論文は大学生が科学研究の成果をアピールする主要な形式である。
研究の中で得られた新しい発明や理論、見解を集中的に示すもので、
研究分野における重要な文献資料及び社会の貴重な財産ともなる。

学生の学位論文の品質を高め、学位論文の内容や形式上の規範化及び
統一化を実現するために、本見本を制作することに至った。
11 changes: 4 additions & 7 deletions sjtutex/support/common-abstract-zh.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
中文摘要应该将学位论文的内容要点简短明了地表达出来,应该包含论文中的基本信息,
体现科研工作的核心思想。摘要内容应涉及本项科研工作的目的和意义、研究方法、研究
成果、结论及意义。注意突出学位论文中具有创新性的成果和新见解的部分。摘要中不宜
使用公式、化学结构式、图表和非公知公用的符号和术语,不标注引用文献编号。硕士学
位论文中文摘要字数为 500 字左右,博士学位论文中文摘要字数为 800 字左右。英文摘
要内容应与中文摘要内容一致。
学位论文是本科生从事科研工作的成果的主要表现,集中表明了作者在研究工作中获得的
新的发明、理论或见解,也是科研领域中的重要文献资料和社会的宝贵财富。

摘要页的下方注明本文的关键词(4\textasciitilde 6个)。
为了提高本科生学位论文的质量,做到学位论文在内容和格式上的规范化与统一化,特制
作本模板。
25 changes: 25 additions & 0 deletions sjtutex/support/common-achievements-ja.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
\begin{achievements}

\subsection*{学術論文}

\begin{bibliolist}{00}
\item Chen H, Chan C~T. Acoustic cloaking in three dimensions using acoustic metamaterials[J]. Applied Physics Letters, 2007, 91:183518.
\item Chen H, Wu B~I, Zhang B, et al. Electromagnetic Wave Interactions with a Metamaterial Cloak[J]. Physical Review Letters, 2007, 99(6):63903.
\end{bibliolist}

\begin{bibliolist*}{00}
\item 著者. 学術論文, 2007.
\item 著者. 国際会議論文, 2006.
\end{bibliolist*}

\subsection*{特許}

\begin{bibliolist}{00}
\item 発明者,“永久機関”,No. 202510149890.0
\end{bibliolist}

\begin{bibliolist*}{00}
\item 発明者,“永久機関”,No. XXXXXXXXXXXX.X
\end{bibliolist*}

\end{achievements}
3 changes: 3 additions & 0 deletions sjtutex/support/common-acknowledgements-ja.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
\begin{acknowledgements}
\jalipsum[9-10]{kusamakura}
\end{acknowledgements}
Loading

0 comments on commit 811ec8d

Please sign in to comment.