pyeasyphd 0.4.42__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyeasyphd/.python-version +1 -0
- pyeasyphd/Main.sublime-menu +43 -0
- pyeasyphd/__init__.py +5 -0
- pyeasyphd/data/templates/csl/apa-no-ampersand.csl +2183 -0
- pyeasyphd/data/templates/csl/apa.csl +2133 -0
- pyeasyphd/data/templates/csl/ieee.csl +512 -0
- pyeasyphd/data/templates/tex/Article.tex +38 -0
- pyeasyphd/data/templates/tex/Article_Header.tex +29 -0
- pyeasyphd/data/templates/tex/Article_Tail.tex +3 -0
- pyeasyphd/data/templates/tex/Beamer_Header.tex +79 -0
- pyeasyphd/data/templates/tex/Beamer_Tail.tex +14 -0
- pyeasyphd/data/templates/tex/Style.tex +240 -0
- pyeasyphd/data/templates/tex/TEVC_Header.tex +52 -0
- pyeasyphd/data/templates/tex/TEVC_Tail.tex +4 -0
- pyeasyphd/data/templates/tex/eisvogel.tex +1064 -0
- pyeasyphd/data/templates/tex/math.tex +201 -0
- pyeasyphd/data/templates/tex/math_commands.tex +677 -0
- pyeasyphd/data/templates/tex/nextaimathmacros.sty +681 -0
- pyeasyphd/main/__init__.py +6 -0
- pyeasyphd/main/basic_input.py +101 -0
- pyeasyphd/main/pandoc_md_to.py +380 -0
- pyeasyphd/main/python_run_md.py +320 -0
- pyeasyphd/main/python_run_tex.py +200 -0
- pyeasyphd/pyeasyphd.py +86 -0
- pyeasyphd/pyeasyphd.sublime-settings +100 -0
- pyeasyphd/pyeasyphd.sublime-syntax +5 -0
- pyeasyphd/scripts/__init__.py +34 -0
- pyeasyphd/scripts/_base.py +65 -0
- pyeasyphd/scripts/run_article_md.py +101 -0
- pyeasyphd/scripts/run_article_tex.py +94 -0
- pyeasyphd/scripts/run_beamer_tex.py +84 -0
- pyeasyphd/scripts/run_compare.py +71 -0
- pyeasyphd/scripts/run_format.py +62 -0
- pyeasyphd/scripts/run_generate.py +211 -0
- pyeasyphd/scripts/run_replace.py +34 -0
- pyeasyphd/scripts/run_search.py +251 -0
- pyeasyphd/tools/__init__.py +12 -0
- pyeasyphd/tools/generate/generate_from_bibs.py +181 -0
- pyeasyphd/tools/generate/generate_html.py +166 -0
- pyeasyphd/tools/generate/generate_library.py +203 -0
- pyeasyphd/tools/generate/generate_links.py +400 -0
- pyeasyphd/tools/py_run_bib_md_tex.py +398 -0
- pyeasyphd/tools/search/data.py +282 -0
- pyeasyphd/tools/search/search_base.py +146 -0
- pyeasyphd/tools/search/search_core.py +400 -0
- pyeasyphd/tools/search/search_keywords.py +229 -0
- pyeasyphd/tools/search/search_writers.py +350 -0
- pyeasyphd/tools/search/utils.py +190 -0
- pyeasyphd/utils/utils.py +99 -0
- pyeasyphd-0.4.42.dist-info/METADATA +33 -0
- pyeasyphd-0.4.42.dist-info/RECORD +53 -0
- pyeasyphd-0.4.42.dist-info/WHEEL +4 -0
- pyeasyphd-0.4.42.dist-info/licenses/LICENSE +674 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
%------------------------------------------------------------------------------
|
|
2
|
+
%% https://ctan.org/pkg/
|
|
3
|
+
%% Geometry
|
|
4
|
+
\makeatletter
|
|
5
|
+
\@ifclassloaded{beamer}{%
|
|
6
|
+
}{%
|
|
7
|
+
\usepackage{geometry}
|
|
8
|
+
\usepackage{fancyhdr} % Extensive control of page headers and footers
|
|
9
|
+
}
|
|
10
|
+
\makeatother
|
|
11
|
+
|
|
12
|
+
%% Font
|
|
13
|
+
\ifx\cn\undefined
|
|
14
|
+
\usepackage[utf8]{inputenc} % Required for inputting international characters, allow utf-8 input
|
|
15
|
+
\usepackage[T1]{fontenc} % Output font encoding for international characters, use 8-bit T1 fonts
|
|
16
|
+
% \usepackage[default]{sourcesanspro} % https://fonts.adobe.com/fonts/source-sans#fonts-section
|
|
17
|
+
\usepackage{lmodern} % The Latin Modern family is a recent collection of fonts.
|
|
18
|
+
\else
|
|
19
|
+
\usepackage[UTF8]{ctex}
|
|
20
|
+
\newcommand{\chuhao}{\fontsize{42pt}{1.25\baselineskip}\selectfont} %初号
|
|
21
|
+
\newcommand{\xiaochuhao}{\fontsize{36pt}{1.25\baselineskip}\selectfont} %小初号
|
|
22
|
+
\newcommand{\yihao}{\fontsize{28pt}{1.25\baselineskip}\selectfont} %一号
|
|
23
|
+
\newcommand{\erhao}{\fontsize{21pt}{1.25\baselineskip}\selectfont} %二号
|
|
24
|
+
\newcommand{\xiaoerhao}{\fontsize{18pt}{1.25\baselineskip}\selectfont} %小二号
|
|
25
|
+
\newcommand{\sanhao}{\fontsize{15.75pt}{1.25\baselineskip}\selectfont} %三号
|
|
26
|
+
\newcommand{\sihao}{\fontsize{14pt}{1.25\baselineskip}\selectfont} %四号
|
|
27
|
+
\newcommand{\xiaosihao}{\fontsize{12pt}{1.25\baselineskip}\selectfont} %小四号
|
|
28
|
+
\newcommand{\wuhao}{\fontsize{10.5pt}{1.25\baselineskip}\selectfont} %五号
|
|
29
|
+
\newcommand{\xiaowuhao}{\fontsize{9pt}{1.25\baselineskip}\selectfont} %小五号
|
|
30
|
+
\newcommand{\liuhao}{\fontsize{7.875pt}{1.25\baselineskip}\selectfont} %六号
|
|
31
|
+
\newcommand{\qihao}{\fontsize{5.25pt}{1.25\baselineskip}\selectfont} %七号
|
|
32
|
+
\fi
|
|
33
|
+
|
|
34
|
+
%% Algorithm
|
|
35
|
+
% https://www.overleaf.com/learn/latex/Algorithms
|
|
36
|
+
% https://tex.stackexchange.com/questions/229355/algorithm-algorithmic-algorithmicx-algorithm2e-algpseudocode-confused
|
|
37
|
+
|
|
38
|
+
%%% I-1
|
|
39
|
+
% \usepackage{algorithm}
|
|
40
|
+
% \usepackage{algorithmic} % Conflict with algpseudocode
|
|
41
|
+
|
|
42
|
+
%%% I-2
|
|
43
|
+
% \usepackage{algorithm}
|
|
44
|
+
% \usepackage{algorithmicx} % http://mirror.ox.ac.uk/sites/ctan.org/macros/latex/contrib/algorithmicx/algorithmicx.pdf
|
|
45
|
+
% This package is like algorithmic upgraded. It enables you to define custom commands, which is something algorithmic can't do.
|
|
46
|
+
|
|
47
|
+
%%% I-3
|
|
48
|
+
% \usepackage{algorithm}
|
|
49
|
+
% \usepackage[noend]{algpseudocode} % Load algorithmicx automatically.
|
|
50
|
+
|
|
51
|
+
%%% I-4
|
|
52
|
+
\usepackage{algorithm}
|
|
53
|
+
\usepackage[noEnd=true]{algpseudocodex} % https://ctan.org/pkg/algpseudocodex
|
|
54
|
+
|
|
55
|
+
%%% For I-1, I-2, I-3, and I-4
|
|
56
|
+
\algrenewcommand{\algorithmicrequire}{\textbf{Input:}}
|
|
57
|
+
\algrenewcommand{\algorithmicensure}{\textbf{Output:}}
|
|
58
|
+
|
|
59
|
+
%%% II-1
|
|
60
|
+
% http://tug.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf
|
|
61
|
+
% https://texfaq.org/FAQ-algorithms: The algorithm2e is of very long standing, and is widely used and recommended.
|
|
62
|
+
% \usepackage[linesnumbered,boxed,ruled,commentsnumbered, vlined]{algorithm2e}
|
|
63
|
+
|
|
64
|
+
%% Box
|
|
65
|
+
\usepackage{framed} % Create three environments: framed, shaded, and leftbar.
|
|
66
|
+
\usepackage{tcolorbox} % Provide an environment for coloured and framed text boxes with a heading line.
|
|
67
|
+
\tcbuselibrary{skins, breakable,listings, theorems}
|
|
68
|
+
\tcbset{
|
|
69
|
+
breakable=false,
|
|
70
|
+
enhanced,
|
|
71
|
+
% watermark graphics=*.jpg,
|
|
72
|
+
watermark opacity=0.08,
|
|
73
|
+
watermark zoom=0.9,
|
|
74
|
+
colframe=blue!15,
|
|
75
|
+
colback=blue!5,
|
|
76
|
+
coltitle=blue!20!black,
|
|
77
|
+
colbacktitle = blue!15,
|
|
78
|
+
colupper=black,
|
|
79
|
+
collower=black,
|
|
80
|
+
drop fuzzy shadow
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
%% Math
|
|
84
|
+
\usepackage{bm} % https://www.ctan.org/pkg/bm
|
|
85
|
+
% \usepackage{amsmath} % https://www.ctan.org/pkg/amsmath
|
|
86
|
+
% loads amsmath automatically
|
|
87
|
+
\usepackage{mathtools} % https://www.ctan.org/pkg/mathtools. Based on amsmath.
|
|
88
|
+
% \usepackage{amsfonts} % https://www.ctan.org/pkg/amsfonts
|
|
89
|
+
% loads amsfonts automatically
|
|
90
|
+
\usepackage{amssymb} % https://latexstudio.net/hulatex/package/maths-1.htm. Contained in amsfonts.
|
|
91
|
+
\usepackage{amsthm} % https://www.ctan.org/pkg/amsthm. Facilitates the kind of theorem setup typically needed in AMS Publications.
|
|
92
|
+
\usepackage{mathrsfs} % \mathscr
|
|
93
|
+
\usepackage{csquotes} % Provides advanced facilities for inline and display quotations.
|
|
94
|
+
\usepackage{nicefrac} % Compact symbols for 1/2, etc.
|
|
95
|
+
|
|
96
|
+
%% Color
|
|
97
|
+
% cyan, magenta, darkgray, lightgray, brown, orange, lime, purple, teal, violet and pink
|
|
98
|
+
\usepackage{xcolor} % The package allows rows and columns to be coloured, and even individual cells.
|
|
99
|
+
\usepackage{colortbl} % Fill color
|
|
100
|
+
|
|
101
|
+
%% Figure and Table
|
|
102
|
+
\usepackage[small]{caption} % [bf, small]
|
|
103
|
+
\usepackage{subcaption}
|
|
104
|
+
\usepackage{float} % Improves the interface for defining floating objects such as figures and tables.
|
|
105
|
+
|
|
106
|
+
%% Figure
|
|
107
|
+
\usepackage{graphicx} % no need for \usepackage{graphics}
|
|
108
|
+
\graphicspath{{./}{./figures/}{./images/}{./figs}{./imgs}}
|
|
109
|
+
\usepackage{pgf} % PGF is a macro package for creating graphics.
|
|
110
|
+
\usepackage{wrapfig}
|
|
111
|
+
\usepackage{standalone}
|
|
112
|
+
\usepackage{tikz}
|
|
113
|
+
\usetikzlibrary{angles,quotes}
|
|
114
|
+
\usetikzlibrary{arrows,arrows.meta}
|
|
115
|
+
\usetikzlibrary{decorations,decorations.text,decorations.pathreplacing,decorations.footprints,decorations.pathmorphing}
|
|
116
|
+
\usetikzlibrary{shapes,shapes.symbols,shapes.callouts,shapes.misc}
|
|
117
|
+
\usetikzlibrary{patterns,shadows,shadows.blur,fadings}
|
|
118
|
+
\usetikzlibrary{trees,backgrounds,shadings,calc,positioning,fpu,fit,spy,chains}
|
|
119
|
+
|
|
120
|
+
%% Table
|
|
121
|
+
\usepackage{booktabs} % For professional tables
|
|
122
|
+
\usepackage{multirow}
|
|
123
|
+
\usepackage{multicol}
|
|
124
|
+
\usepackage{dcolumn}
|
|
125
|
+
\usepackage{makecell}
|
|
126
|
+
|
|
127
|
+
%% Citation
|
|
128
|
+
% https://mirrors.zju.edu.cn/CTAN/macros/latex/contrib/biblatex/doc/biblatex.pdf
|
|
129
|
+
% backend=bibtex, bibtex8, biber
|
|
130
|
+
% sorting=nty, nyt, nyvt, anyt, anyvt, ynt, ydnt, none, debug,
|
|
131
|
+
% citestyle=numeric, numeric-comp, numeric-verb ,
|
|
132
|
+
% alphabetic, alphabetic-verb,
|
|
133
|
+
% authoryear, authoryear-comp, authoryear-ibid, authoryear-icomp,
|
|
134
|
+
% authortitle, authortitle-comp, authortitle-ibid , authortitle-icomp, authortitle-terse, authortitle-tcomp, authortitle-ticomp,
|
|
135
|
+
% verbose, verbose-ibid, verbose-note, verbose-inote, verbose-trad1, verbose-trad2, verbose-trad3,
|
|
136
|
+
% reading, draft, debug
|
|
137
|
+
% bibstyle=numeric, alphabetic, authoryear, authortitle, verbose, reading, draft, debug
|
|
138
|
+
% refsection=none, part, chapter, chapter+, section, section+, subsection
|
|
139
|
+
% maxnames, minnames, maxbibnames, minbibnames, maxcitenames, mincitenames, maxsortnames, minsortnames
|
|
140
|
+
\usepackage[backend=biber,
|
|
141
|
+
% For APA
|
|
142
|
+
style=apa, % https://mirrors.cloud.tencent.com/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa.pdf
|
|
143
|
+
apamaxprtauth=20, % Control the number of author/editor names which are printed in the References. APA style defaults to 20.
|
|
144
|
+
%
|
|
145
|
+
backref=false,
|
|
146
|
+
natbib=true,
|
|
147
|
+
refsection=none,
|
|
148
|
+
sorting=ydnt,
|
|
149
|
+
% Ignored fields in references
|
|
150
|
+
doi=false,
|
|
151
|
+
url=false,
|
|
152
|
+
]{biblatex}
|
|
153
|
+
% \usepackage[backend=biber,
|
|
154
|
+
% % For ieee
|
|
155
|
+
% style=ieee,
|
|
156
|
+
% %
|
|
157
|
+
% backref=false, % false, ture
|
|
158
|
+
% bibstyle=numeric,
|
|
159
|
+
% citestyle=numeric,
|
|
160
|
+
% defernumbers=false, % false, ture
|
|
161
|
+
% maxnames=2,
|
|
162
|
+
% minnames=1,
|
|
163
|
+
% natbib=true, % false, ture
|
|
164
|
+
% refsection=none, % none, part, chapter, chapter+, section, section+, subsection, subsection+
|
|
165
|
+
% sorting=ydnt,
|
|
166
|
+
% % Ignored fields in references
|
|
167
|
+
% doi=false,
|
|
168
|
+
% url=false,
|
|
169
|
+
% ]{biblatex}
|
|
170
|
+
\addbibresource{./References/References.bib}
|
|
171
|
+
\usepackage{hyperref} % When using the `hyperref` package, it is preferable to load it after `biblatex`.
|
|
172
|
+
\hypersetup{
|
|
173
|
+
colorlinks=true,
|
|
174
|
+
linkcolor=red,
|
|
175
|
+
filecolor=cyan,
|
|
176
|
+
urlcolor=blue,
|
|
177
|
+
citecolor=green,
|
|
178
|
+
pdfborder={0 0 0}}
|
|
179
|
+
\pdfstringdefDisableCommands{\let\fullcite \@firstofone}
|
|
180
|
+
% \usepackage{cleveref} % Intelligent cross-referencing
|
|
181
|
+
% [capitalise,nameinlink,noabbrev,compress]. When using the `cleveref` package, it is preferable to load it after `hyperref`
|
|
182
|
+
% Confict with algorithmic, algorithmicx, algpseudocode, algpseudocodex
|
|
183
|
+
|
|
184
|
+
%% Codes
|
|
185
|
+
\usepackage{listings} % Typeset source code listings using LATEX
|
|
186
|
+
% https://nasa.github.io/nasa-latex-docs/html/examples/listing.html
|
|
187
|
+
% https://www.overleaf.com/learn/latex/
|
|
188
|
+
% http://users.ece.utexas.edu/~garg/dist/listings.pdf
|
|
189
|
+
% https://www.overleaf.com/learn/latex/Code_listing
|
|
190
|
+
\lstdefinestyle{lfonts}{
|
|
191
|
+
basicstyle = \footnotesize\ttfamily,
|
|
192
|
+
backgroundcolor = \color{olive!5!white},
|
|
193
|
+
stringstyle = \color{green!60!black},
|
|
194
|
+
keywordstyle = \color{blue!90!black}\textbf, % \textbf or \bfseries
|
|
195
|
+
commentstyle = \color{olive!70!black}\textit, % \textit or \scshape
|
|
196
|
+
}
|
|
197
|
+
\lstdefinestyle{lnumbers}{
|
|
198
|
+
numbers = left,
|
|
199
|
+
numberstyle = \tiny,
|
|
200
|
+
numbersep = 0.2em,
|
|
201
|
+
firstnumber = 1,
|
|
202
|
+
stepnumber = 1,
|
|
203
|
+
}
|
|
204
|
+
\lstdefinestyle{llayout}{
|
|
205
|
+
breaklines = true,
|
|
206
|
+
tabsize = 2,
|
|
207
|
+
columns = flexible,
|
|
208
|
+
}
|
|
209
|
+
\lstdefinestyle{lgeometry}{
|
|
210
|
+
xleftmargin = 20pt,
|
|
211
|
+
xrightmargin = 0pt,
|
|
212
|
+
frame = tb,
|
|
213
|
+
framesep = \fboxsep,
|
|
214
|
+
framexleftmargin = 20pt,
|
|
215
|
+
}
|
|
216
|
+
\lstdefinestyle{lgeneral}{
|
|
217
|
+
style = lfonts,
|
|
218
|
+
style = lnumbers,
|
|
219
|
+
style = llayout,
|
|
220
|
+
style = lgeometry,
|
|
221
|
+
}
|
|
222
|
+
\lstdefinestyle{python}{
|
|
223
|
+
language = {Python},
|
|
224
|
+
style = lgeneral,
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
%% Footnote
|
|
228
|
+
% Add backlinks to footnote references. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
|
|
229
|
+
\usepackage{footnotebackref}
|
|
230
|
+
\setlength{\emergencystretch}{3em} % Prevent overfull lines
|
|
231
|
+
\providecommand{\tightlist}{ %
|
|
232
|
+
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
233
|
+
% \setcounter{secnumdepth}{-\maxdimen} % Remove section numbering
|
|
234
|
+
|
|
235
|
+
%% Others
|
|
236
|
+
\usepackage{ifthen} % Conditional commands in LATEX documents
|
|
237
|
+
\usepackage{pdfpages} % Simplifies the inclusion of external multi-page PDF documents in LATEX documents.
|
|
238
|
+
\usepackage{verbatim} % (that skips everything between \begin{comment} and \end{comment})
|
|
239
|
+
\usepackage[english]{babel} % Manages culturally-determined typographical (and other) rules for a wide range of languages.
|
|
240
|
+
\usepackage{enumitem}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
\documentclass[journal]{IEEEtran}
|
|
2
|
+
\usepackage{amsmath,amsfonts}
|
|
3
|
+
\usepackage{algorithmic}
|
|
4
|
+
\usepackage{algorithm}
|
|
5
|
+
\usepackage{array}
|
|
6
|
+
\usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
|
|
7
|
+
\usepackage{textcomp}
|
|
8
|
+
\usepackage{stfloats}
|
|
9
|
+
\usepackage{url}
|
|
10
|
+
\usepackage{verbatim}
|
|
11
|
+
\usepackage{graphicx}
|
|
12
|
+
\usepackage{cite}
|
|
13
|
+
\hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore}
|
|
14
|
+
% updated with editorial comments 8/9/2021
|
|
15
|
+
|
|
16
|
+
%%%
|
|
17
|
+
\usepackage{hyperref} % When using the `hyperref` package, it is preferable to load it after `biblatex`.
|
|
18
|
+
\hypersetup{
|
|
19
|
+
colorlinks=true,
|
|
20
|
+
linkcolor=teal,
|
|
21
|
+
filecolor=cyan,
|
|
22
|
+
urlcolor=blue,
|
|
23
|
+
citecolor=green,
|
|
24
|
+
pdfborder={0 0 0}}
|
|
25
|
+
|
|
26
|
+
\begin{document}
|
|
27
|
+
|
|
28
|
+
\title{A Sample Article Using IEEEtran.cls\\ for IEEE Journals and Transactions}
|
|
29
|
+
|
|
30
|
+
\author{IEEE Publication Technology,~\IEEEmembership{Staff,~IEEE,}
|
|
31
|
+
% <-this % stops a space
|
|
32
|
+
\thanks{This paper was produced by the IEEE Publication Technology Group. They are in Piscataway, NJ.}% <-this % stops a space
|
|
33
|
+
\thanks{Manuscript received April 19, 2021; revised August 16, 2021.}}
|
|
34
|
+
|
|
35
|
+
% The paper headers
|
|
36
|
+
\markboth{Journal of \LaTeX\ Class Files,~Vol.~14, No.~8, August~2021}%
|
|
37
|
+
{Shell \MakeLowercase{\textit{et al.}}: A Sample Article Using IEEEtran.cls for IEEE Journals}
|
|
38
|
+
|
|
39
|
+
\IEEEpubid{0000--0000/00\$00.00~\copyright~2021 IEEE}
|
|
40
|
+
% Remember, if you use this you must call \IEEEpubidadjcol in the second
|
|
41
|
+
% column for its text to clear the IEEEpubid mark.
|
|
42
|
+
|
|
43
|
+
\maketitle
|
|
44
|
+
|
|
45
|
+
\begin{abstract}
|
|
46
|
+
\end{abstract}
|
|
47
|
+
|
|
48
|
+
\begin{IEEEkeywords}
|
|
49
|
+
\end{IEEEkeywords}
|
|
50
|
+
|
|
51
|
+
\section{Introduction}
|
|
52
|
+
\IEEEPARstart{T}{his}
|