Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{independent-study}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[11pt,a4paper,oneside]{book}
% thai book
\usepackage[english,thai]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[laksaman]{fonts-tlwg}
% common packages
\usepackage[numbib]{tocbibind}
\usepackage{indentfirst}
\usepackage[top=1.5in,bottom=1.5in]{geometry}
\usepackage{lastpage}
\usepackage{subfiles}
\usepackage{booktabs}
\usepackage{tabu}
\usepackage{multirow}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mdframed}
\usepackage{minibox}
\usepackage{enumitem}
\usepackage{upquote}
% customize header/footer
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
% customize sectioning
\usepackage{sectsty}
\chapterfont{\centering\Large\bf\selectfont}
\sectionfont{\large\bf\selectfont}
\subsectionfont{\normalsize\bf\selectfont}
% customize code listings
\usepackage{listings}
\lstset{basicstyle=\ttfamily}
% customize caption
\usepackage{caption}
\captionsetup[table]{skip=0.5em}
\captionsetup[lstlisting]{skip=0.5em}
\renewcommand{\lstlistingname}{รายการรหัส}
\endinput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment