forked from YuejiaoGong/latex-response-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg.tex
50 lines (42 loc) · 1.04 KB
/
pkg.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Using [H] to ban the float of algorithm, figure and so on.
\usepackage{float}
% Figure
\usepackage{graphicx}
\usepackage[]{subfig}
% Table
\usepackage{multirow}
% Math
\usepackage{amsmath}
\usepackage{amssymb}
% URL
\usepackage{url}
% Algorithm
%% Float of algorithm
\usepackage{algorithm}
%% Body of algorithm
\usepackage{algorithmic}
%% Custom setting for algorithmic
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
% Code highlight
\usepackage{minted}
% Autoref
\usepackage[]{hyperref}
\hypersetup{
colorlinks=true,
}
%% Custom refname for algorithm
\newcommand{\algorithmautorefname}{Algorithm}
%% Custom refname for subfigure
\newcommand{\subfigureautorefname}{Figure}
%% Custom refname for section
\renewcommand{\sectionautorefname}{Section}
%% Custom refname for subsection
\renewcommand{\subsectionautorefname}{Subsection}
%% Custom refname for step of algorithm
\makeatletter
\newcommand{\ALC@uniqueautorefname}{Line}
\makeatother
% border box
\usepackage{boxedminipage}
\usepackage{framed}