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

Commit

Permalink
Add hyperref package
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Nov 29, 2019
1 parent 8d3a51d commit 4a7fe72
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
\usepackage{url}
\usepackage{layout}

\input preamble.tex

% 論文タイトル
\jtitle{これこれについて}
% 長い時には自動的に改行されるが,次のように明示的に改行することもできる.
Expand All @@ -18,6 +16,9 @@
% 英文タイトル
\etitle{On blahblah}

% キーワード
% \keywords{creative, informatics}

% 著者名
\jauthor{秋葉 創太}

Expand All @@ -30,6 +31,7 @@
% 提出月.この例だと,2010年1月.
\handin{2010}{1}

\input preamble.tex

\begin{document}

Expand Down
5 changes: 5 additions & 0 deletions mainE.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
% Title in Japanese
\jtitle{これこれについて}

% Keywords
% \keywords{creative, informatics}

% Author
\eauthor{Sota Akiba}

Expand All @@ -29,6 +32,8 @@
% Submission. The following line specifies "January 2010."
\handin{2010}{1}

\input preamble.tex

\begin{document}

% Output the cover and the inside cover.
Expand Down
18 changes: 18 additions & 0 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,22 @@
\newcommand*{\eqref}[1]{{\if@english Equation~\else\fi}(\ref{#1})}
\newcommand*{\chapref}[1]{{\if@english Chapter~\ref{#1}\else 第{\ref{#1}}章\fi}}
\newcommand*{\secref}[1]{{\if@english Section~\ref{#1}\else \ref{#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}
\def\PDFKEYWORDS{\ifdefined\@keywords\@keywords\fi}

\makeatother

\usepackage[dvipdfmx]{color}
\usepackage[dvipdfmx,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc,
colorlinks=true,
linkcolor=black,
citecolor=black,
urlcolor=black,
pdftitle=\PDFTITLE,
pdfsubject=\PDFSUBJECT,
pdfauthor=\PDFAUTHOR,
pdfkeywords=\PDFKEYWORDS]{hyperref}
\usepackage{pxjahyper} % for japanese encoding on pdf bookmarks

0 comments on commit 4a7fe72

Please sign in to comment.