top of page

LaTeX

​ここでは, 私なりに作成したLatex関連のテンプレートを置いている. デザイン等, あくまで個人的な嗜好であるため参考にする場合は気を付けてください.

・LuaTeXjaのテンプレ

\documentclass{ltjsarticle}
\usepackage{luatexja}
\begin{document}
\section{女の子とえっち}

\subsection{女の子の可愛さ}
女の子は一般的にかわいい生き物で代表される.
\end{document}

・pLaTeXのオリジナルテンプレ

\documentclass[b5j,12pt]{jsbook}

\title{\Huge{pLaTeXオリジナルテンプレート}}
\author{ほんだみゆ\\
日本大学理工学部数学科B3}
\date{2018/夏季お遊び篇}


\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{ascmac}
\usepackage[dvipdfmx,
bookmarkstype=toc,
setpagesize=true,%ページのズレを回避する
colorlinks=true,%リンク色付け
urlcolor=blue,
anchorcolor=blue,
urlcolor=blue,
linkcolor=blue,
citecolor=blue,
pageanchor=true,
bookmarks=true,
bookmarksnumbered=true,
bookmarksopen=true,
]{hyperref}
\usepackage{pxjahyper}%相互参照
\usepackage{framed,color}%影付けを行うため
\definecolor{shadecolor}{gray}{0.85}%1.00に近づくほど灰色に近づく(明るくなる)
\usepackage{url}


\renewcommand{\contentsname}{Contents}
\renewcommand{\bibname}{Reference} %%jreportの場合は\renewcommand{\bibname}{Reference}である

\newtheoremstyle{break}  % follow `plain` defaults but change HEADSPACE.
  {\topsep}   % ABOVESPACE
  {\topsep}   % BELOWSPACE
  {\itshape}  % BODYFONT
  {0pt}       % INDENT (empty value is the same as 0pt)
  {\bfseries} % HEADFONT
  {.}         % HEADPUNCT
  {\newline}  % HEADSPACE. `plain` default: {5pt plus 1pt minus 1pt}
  {}
\theoremstyle{break}
\newtheorem{thm}{定理}[section]
\newtheorem{de}{定義}[section]
\newtheorem{prob}{問題}[section]
\newtheorem{ex}{例}[section]
\newtheorem{cor}{系}[section]
\newtheorem{prop}{命題}[section]
\newtheorem{fact}{事実}[section]
\newtheorem{rem}{Remark}[section]
\newtheorem{lem}{補題}[section]

\makeatletter
  \def\thefootnote{\ifnum\c@footnote>\z@\leavevmode\lower.5ex%
      \hbox{$^{\@arabic\c@footnote)}$}\fi}
  \makeatother
\renewenvironment{leftbar}{%
%  \def\FrameCommand{\vrule width 3pt \hspace{10pt}}%  デフォルトの線の太さは3pt
  \def\FrameCommand{\vrule width 1pt \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}
\makeatother

\definecolor{lg}{rgb}{0.75,0.75,0.75} %lightgray色の定義
\newenvironment{lgbar}{%
  \def\FrameCommand{\textcolor{lg}{\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
{\endMakeFramed}
%%-------------------------------------------------------------------------
%プリアンブルおしまい
%%-------------------------------------------------------------------------

\begin{document}
\maketitle
\tableofcontents

\chapter{数理科学的女の子の新展開}
\section{数理科学と女の子の再定義}

%\paragraph{hoge} sectionを置きたくはないが見出しが欲しいときには便利
\newcommand{\argmax}{\operatornamewithlimits{\mathrm{arg\,max}}}

\begin{thm}[女の子がかわいい]
\begin{shaded} %影付けを行う 定理環境に組み込むことも可能だがやり方が分からない
 ほとんどいたるところすべての日本の女の子\footnotemark に対して以下が成り立つ.\
 \begin{center}
  かわいい$!!$
 \end{center}
\end{shaded}
\end{thm}

\begin{lgbar}%%証明では縦線で差別化する
\begin{proof}

お\\
ん\\
な\\

の\\
こ\\

\end{proof}
\end{lgbar}


%\url{http://www.microsoft.com/japan/} 例えばリンクの埋め込み可能 これは\usepackage{url}による
\textbf{hoge}hogeの\textbf{定義}は以下の\textbf{hoge}をみたすこと.
\footnotetext{ここでいう女の子はかわいいという主張に対する十分条件ではあるが必要条件ではないことに注意を要する.\
また,\ 「可愛い」と「かわいい」の違い,\ これは点列コンパクトであることとコンパクトであることの違いに似ている.\ さらに,\
「女の子」と「おんなのこ」では異なる表現であることにも注意を要する.\ }

%\hrulefill は仕切りを入れるときの横線に便利


%% ほげほげfootnotemark としてあとで\footnotemarkにより脚注をつける方法と
%% ほげほげ\footnote{hogehogeとは...} として直後から脚注を書き始めるタイプがある
\end{document}

bottom of page