Skip to content

Instantly share code, notes, and snippets.

@morishin
Last active December 26, 2015 04:48
Show Gist options
  • Save morishin/7095540 to your computer and use it in GitHub Desktop.
Save morishin/7095540 to your computer and use it in GitHub Desktop.
\documentclass[a4j]{jarticle}
\usepackage[dvipdfm]{graphicx}
\usepackage{listings,jlisting}
\usepackage{color,graphicx}
\usepackage{geometry}
\usepackage{type1cm}
\title{<TITLE>}
\author{<AUTHOR>}
\date{\today}
\begin{document}
\maketitle
\section{<SECTION1>}
\section{<SECTION2>}
\section{<SECTION3>}
\section{<SECTION4>}
\end{document}
\fi0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%COMMENT
【SOURCE CODE INSERTION】
・SYNTAX HIGHLIGHTING
\lstset{
breaklines = true,
language=python,
basicstyle=\ttfamily\scriptsize,
commentstyle={\itshape \color[cmyk]{1,0.4,1,0}},
classoffset=1,
keywordstyle={\bfseries \color[cmyk]{0,1,0,0}},
stringstyle={\ttfamily \color[rgb]{0,0,1}},
frame=trbl,
framesep=5pt,
showstringspaces=false,
numbers=left,
stepnumber=1,
numberstyle=\tiny,
tabsize=2,
}
・FROM FILE
\lstinputlisting[label=<LABELE>, caption=<CAPTION>]{<FILE_PATH>}
・DIRECT
\begin{lstlisting}[label=<LABELE>, caption=<CAPTION>]
<SOURCE_CODE_HERE>
\end{lstlisting}
【IMAGE INSERTION】
・NORMAL
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=\textwidth]{<IMAGE_FILE_PATH>}
\caption{<CAPTION>}
\label{<LABELE>}
\end{center}
\end{figure}
・TWO COLUMNS
\begin{figure}[htbp]
\begin{minipage}{0.5\hsize}
\begin{center}
\includegraphics[width=\textwidth]{<IMAGE_FILE_PATH>}
\caption{<CAPTION>}
\label{<LABELE>}
\end{center}
\end{minipage}
\begin{minipage}{0.5\hsize}
\begin{center}
\includegraphics[width=\textwidth]{<IMAGE_FILE_PATH>}
\caption{<CAPTION>}
\label{<LABELE>}
\end{center}
\end{minipage}
\end{figure}
【TABLE INSERTION】
\begin{table}[htbp]
\begin{center}
\caption{<CAPTION>}
%\small
\begin{tabular}{} \hline
\end{tabular}
\end{center}
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment