Skip to content

Instantly share code, notes, and snippets.

@Shusei-E
Forked from m-note/report_template.tex
Last active June 17, 2022 02:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Shusei-E/8c56c276875ec798ab49 to your computer and use it in GitHub Desktop.
Save Shusei-E/8c56c276875ec798ab49 to your computer and use it in GitHub Desktop.
Texレポートテンプレート
\documentclass[a4paper,10.5pt,uplatex]{jsarticle}
%--脚注の設定
\usepackage{natbib}
\bibpunct[, ]{(}{)}{;}{and}{}{,} %本文での引用の体裁はここで整えられるみたい
\bibliographystyle{apsr2006Edited}
\usepackage{amsmath}
%--余白の設定
\usepackage[truedimen,margin=20truemm]{geometry}
%--図の設定
\usepackage[dvipdfmx]{graphicx} % PDFの利用もOKに
\graphicspath{{./figures/}} %To add paths relative to the latexfile invoking the command
%\usepackage[dvips]{graphicx}
%--行間の設定
\usepackage{setspace}
\setstretch{1.13} % ページ全体の行間を設定
%--コードの設定
\usepackage{listings}
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backgroundcolour}{rgb}{0.95,0.95,0.92}
\lstset{ %
language= {Python}, %ここを含めなければ、変に太字になったりしない
aboveskip=2.5mm,
belowskip=4.5mm,
showstringspaces=false,
columns=flexible,
keepspaces=true,
numbers=left,
numbersep=5pt,
basicstyle={\small\ttfamily},
commentstyle={\small\ttfamily},
breaklines=true,
breakatwhitespace=true,
tabsize=3,
frame=single, % lines or delete this line
backgroundcolor=\color{backgroundcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
xleftmargin = 1.1cm,
framexleftmargin = 1em
}
\usepackage{xcolor}
\usepackage{framed}
\colorlet{shadecolor}{green!8}
%--リンクの埋め込みを可能にする \href{ **URL** }{表示テキスト}
\usepackage[dvipdfmx]{hyperref}
\usepackage{courier}
\usepackage{here}
%--日本語環境用の設定を追加
% \usepackage[english]{babel} % まとめて英語化できる
% \addto\captionsenglish{\renewcommand{\figurename}{Figure }} %jsarticleでFigureにスペースが入らないのを調整
% \addto\captionsenglish{\renewcommand{\tablename}{Table }}
\renewcommand{\lstlistingname}{Code}
\renewcommand{\refname}{参考文献}
\renewcommand{\abstractname}{要約}
\usepackage{multirow}
\usepackage{placeins}
%--数学用のフォント
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
%--セクションのフォント
\renewcommand{\headfont}{\bfseries}
%-----------------
\begin{document}
\title{}
\author{NAME\thanks{AFFILIATION}}
\date{20**/**/**}
\maketitle
%\begin{abstract}
%\end{abstract}
%\bibliography{ref}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment