Skip to content

Instantly share code, notes, and snippets.

@thanhnguyentang
Last active June 25, 2022 12:18
Show Gist options
  • Select an option

  • Save thanhnguyentang/3f30ba8dcb5ef497c1634bfd787f0f4d to your computer and use it in GitHub Desktop.

Select an option

Save thanhnguyentang/3f30ba8dcb5ef497c1634bfd787f0f4d to your computer and use it in GitHub Desktop.
Latex_free_style_template
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc} % use 8-bit T1 fonts
\usepackage[colorlinks=true,linkcolor=blue,citecolor=blue]{hyperref}
\usepackage{url} % simple URL typesetting
\usepackage{booktabs} % professional-quality tables
\usepackage{amsfonts} % blackboard math symbols
\usepackage{nicefrac} % compact symbols for 1/2, etc.
\usepackage{microtype} % microtypography
\usepackage{natbib}
\usepackage{bm}
\usepackage{subcaption}
\usepackage{bbm}
%% Additional packages
\usepackage{lmodern}
\usepackage[scale=2]{ccicons}
\usepackage{color}
\usepackage[linewidth=1pt]{mdframed}
\usepackage{booktabs}
% \usepackage[ruled,linesnumbered]{algorithm2e}
\usepackage{tcolorbox}
% \usepackage{algorithm}
% \usepackage{algorithmicx}
% \usepackage{algpseudocode}
\usepackage{amsfonts,amsmath,amssymb,amsthm,mathtools}
\usepackage{xcolor,colortbl}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{adjustbox}
\usepackage{tabularx}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
\newcommand{\hookuparrow}{\mathrel{\rotatebox[origin=c]{90}{$\hookrightarrow$}}}
\newcommand{\hookdownarrow}{\mathrel{\rotatebox[origin=c]{-90}{$\hookrightarrow$}}}
% \newcommand{\question}[1]{\textcolor{red}{\emph{[@\textbf{Question}: #1]}}}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\arginf}{arg\,inf}
\DeclareMathOperator*{\argsup}{arg\,sup}
\DeclareMathOperator*{\subopt}{SubOpt}
\DeclareMathOperator*{\gap}{gap}
\DeclareMathOperator*{\vect}{vec}
\usepackage{accents}
\newcommand{\ubar}[1]{\underaccent{\bar}{#1}}
\newenvironment{question}
{ \begin{mdframed}[backgroundcolor=blue!10, linecolor=white]
% \begin{quote}
\begin{center}
\begin{em}
}
{
\end{em}
\end{center}
% \end{quote}
\end{mdframed}
}
\newenvironment{hint}
{
\begin{mdframed}[backgroundcolor=orange!5, linecolor=white]
\textbf{Hint}.
}
{
\end{mdframed}
}
\newenvironment{todo}
{
\begin{mdframed}[backgroundcolor=red!5, linecolor=white]
\textbf{TODO}.
}
{
\end{mdframed}
}
\newcommand{\annoterel}[2]{%
\overset{%
\substack{\hidewidth\text{#1}\hidewidth\\\downarrow}%
}{#2}%
}
% \usepackage{algorithm}
% \usepackage{algpseudocode}
% \renewcommand{\algorithmicensure}{\textbf{Output:}}
% \usepackage{algorithmicx}
% \usepackage[linesnumbered,ruled]{algorithm2e}
% \newcommand\mycommfont[1]{\ttfamily\textcolor{gray}{#1}}
% \SetCommentSty{mycommfont}
% \SetKwInput{KwInput}{Input} % Set the Input
% \SetKwInput{KwOutput}{Output} % set the Output
% \SetKwInput{KwInitialization}{Initialization}
% \SetKwInput{KwRequire}{Require}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}[section]
\newtheorem{prop}{Proposition}
\newtheorem{observation}{Observation}
\newtheorem{corollary}{Corollary}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\newtheorem{conj}{Conjecture}[section]
\newtheorem{example}{Example}[section]
\newtheorem{assumption}{Assumption}[section]
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem*{note}{Note}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\usepackage{minitoc}
\allowdisplaybreaks
\setlength\parindent{0pt}
%COMMENT
\newcommand{\thanh}[1]{\textcolor{red}{\emph{[\textbf{Thanh}: #1]}}}
\newcommand{\raman}[1]{\textcolor{blue}{\emph{[\textbf{Raman}: #1]}}}
\newcommand{\todoinline}[1]{\textcolor{gray}{\emph{[\textbf{TODO}: #1]}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment