Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
Add chapprint and secprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Nov 29, 2019
1 parent 4a7fe72 commit 2fd1943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
\newcommand*{\chapref}[1]{{\if@english Chapter~\ref{#1}\else 第{\ref{#1}}章\fi}}
\newcommand*{\secref}[1]{{\if@english Section~\ref{#1}\else \ref{#1}節\fi}}

\newcommand{\chapprint}[1]{\chapref{#1}\if@english:~\textit{\nameref{#1}}\else\textit{\nameref{#1}}」\fi}
\newcommand{\secprint}[1]{\secref{#1}\if@english:~\textit{\nameref{#1}}\else\textit{\nameref{#1}}」\fi}

\def\PDFTITLE{\if@english \@ethesisname \else \@jthesisname\fi}
\def\PDFSUBJECT{\if@english \@etitle \else \@jtitle\fi}
\def\PDFAUTHOR{\if@english \@eauthor \else \@jauthor\fi}
Expand Down
1 change: 1 addition & 0 deletions src/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ \chapter{序論} \label{chap:intro}
創造情報学専攻のウェブページを引用する \cite{CI08}.

\chapref{chap:main_chapter}では本題に入る.
\chapprint{chap:conclusion}では結論を述べる.

0 comments on commit 2fd1943

Please sign in to comment.