Skip to content

Instantly share code, notes, and snippets.

\begin{frame}[fragile]
\frametitle{Title}
\begin{itemize}
\item
\end{itemize}
\begin{lstlisting}
\end{lstlisting}
\begin{figure}[!htb]
\centering
\includegraphics[clip,width=15.0cm]{.eps}
\caption{ }
\label{ }
\end{figure}
\begin{block}{} %blue
\end{block}
\begin{alertblock}{} %red
\end{alertblock}
\begin{exampleblock}{} %green
\begin{columns}[T] % align columns
\begin{column}{.48\textwidth}
Left Part
\end{column}
\hfill
\begin{column}{.48\textwidth}
Right Part
\end{column}
\end{columns}
@m-note
m-note / graduation_thesis.tex
Last active February 28, 2016 01:00
卒論などの長い論文用
\documentclass[report, 10.5pt,a4paper,oneside,openany]{jsbook}
%--脚注の設定
\usepackage{natbib}
\bibpunct[, ]{(}{)}{;}{and}{}{,} %本文での引用の体裁はここで整えられるみたい
%目次に索引以外は出力する cf. http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/
\usepackage[notindex, nottoc, notlof, notlot]{tocbibind}
%数式用
\usepackage{amsmath}
@m-note
m-note / beamer_template_default.tex
Last active February 28, 2016 01:02
1つ目がもっともベーシックなもの、2つ目はProgress Dotsを表示させるもの。
\documentclass[10pt, dvipdfmx]{beamer}
\usetheme{Frankfurt}
\setbeamersize{text margin left=11pt,text margin right=11pt}
\usenavigationsymbolstemplate{}
\usepackage{beamerthemeshadow}
\let\oldfootnotesize\footnotesize
\renewcommand*{\footnotesize}{\oldfootnotesize\tiny}
\setbeamertemplate{footline}[frame number]
{\fontsize{9.5pt}{8pt}\selectfont }
\begin{frame}<beamer>
\frametitle{この章の内容}
\tableofcontents[currentsection]
\end{frame}
@m-note
m-note / ggplot_sample.R
Last active September 18, 2015 06:35
ggplot2で折れ線グラフ + 複数のグラフを並べる
library(ggplot2)
library(reshape2) # melt()用
library(grid) ; library(gridBase) # 複数の図の配置 cf. http://d.hatena.ne.jp/dichika/20110116/1295183973
country_list = c("Egypt", "Armenia",
"Afghanistan", "Azerbaijan", "Bosnia", "Cambodia", "Croatia",
"Eritrea", "Kazakhstan", "South Africa", "Vietnam")
for (country in country_list){
aid_amount <- AidData[AidData$recipient==country, c("Aid_All", "year", "p4_polity2", "Giniall")] # 全ての援助額
@m-note
m-note / .vimrc
Last active February 28, 2016 01:35
Vimの設定ファイル
set nocompatible
nnoremap O :<C-u>call append(expand('.'), '')<Cr>j
"行番号を表示する
set number
"タブ幅の設定、Tabではなくスペース4つにする
set tabstop=2
set noexpandtab