pyeasyphd 0.1.2__py3-none-any.whl → 0.1.5__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.

Potentially problematic release.


This version of pyeasyphd might be problematic. Click here for more details.

Files changed (41) hide show
  1. pyeasyphd/__init__.py +5 -0
  2. pyeasyphd/data/Templates/CSL/apa-no-ampersand.csl +2183 -0
  3. pyeasyphd/data/Templates/CSL/apa.csl +2133 -0
  4. pyeasyphd/data/Templates/CSL/ieee.csl +512 -0
  5. pyeasyphd/data/Templates/TEX/Article.tex +38 -0
  6. pyeasyphd/data/Templates/TEX/Article_Header.tex +29 -0
  7. pyeasyphd/data/Templates/TEX/Article_Tail.tex +3 -0
  8. pyeasyphd/data/Templates/TEX/Beamer_Header.tex +80 -0
  9. pyeasyphd/data/Templates/TEX/Beamer_Tail.tex +14 -0
  10. pyeasyphd/data/Templates/TEX/Style.tex +249 -0
  11. pyeasyphd/data/Templates/TEX/TEVC_Header.tex +52 -0
  12. pyeasyphd/data/Templates/TEX/TEVC_Tail.tex +4 -0
  13. pyeasyphd/data/Templates/TEX/eisvogel.beamer +700 -0
  14. pyeasyphd/data/Templates/TEX/eisvogel.latex +1040 -0
  15. pyeasyphd/data/Templates/TEX/eisvogel.tex +1064 -0
  16. pyeasyphd/data/Templates/TEX/math.tex +196 -0
  17. pyeasyphd/data/Templates/TEX/math_commands.tex +673 -0
  18. pyeasyphd/main/__init__.py +6 -7
  19. pyeasyphd/main/basic_input.py +59 -77
  20. pyeasyphd/main/pandoc_md_to.py +48 -47
  21. pyeasyphd/main/python_run_md.py +65 -24
  22. pyeasyphd/main/python_run_tex.py +52 -21
  23. pyeasyphd/pyeasyphd.py +20 -6
  24. pyeasyphd/pyeasyphd.sublime-settings +0 -10
  25. pyeasyphd/tools/__init__.py +5 -8
  26. pyeasyphd/tools/generate/generate_from_bibs.py +41 -37
  27. pyeasyphd/tools/generate/generate_html.py +48 -8
  28. pyeasyphd/tools/generate/generate_library.py +39 -26
  29. pyeasyphd/tools/generate/generate_links.py +14 -8
  30. pyeasyphd/tools/py_run_bib_md_tex.py +59 -111
  31. pyeasyphd/tools/search/data.py +12 -48
  32. pyeasyphd/tools/search/search_base.py +37 -10
  33. pyeasyphd/tools/search/search_core.py +108 -38
  34. pyeasyphd/tools/search/search_keywords.py +18 -16
  35. pyeasyphd/tools/search/search_writers.py +94 -32
  36. pyeasyphd/tools/search/utils.py +48 -9
  37. pyeasyphd/utils/utils.py +7 -6
  38. {pyeasyphd-0.1.2.dist-info → pyeasyphd-0.1.5.dist-info}/METADATA +3 -3
  39. pyeasyphd-0.1.5.dist-info/RECORD +43 -0
  40. pyeasyphd-0.1.2.dist-info/RECORD +0 -27
  41. {pyeasyphd-0.1.2.dist-info → pyeasyphd-0.1.5.dist-info}/WHEEL +0 -0
@@ -0,0 +1,249 @@
1
+ %------------------------------------------------------------------------------
2
+ %% https://ctan.org/pkg/
3
+ %% Geometry
4
+ \usepackage{geometry}
5
+ % \geometry{a4paper,scale=0.9}
6
+ \usepackage{fancyhdr} % Extensive control of page headers and footers
7
+
8
+ %% Font
9
+ \ifx\cn\undefined
10
+ \usepackage[utf8]{inputenc} % Required for inputting international characters, allow utf-8 input
11
+ \usepackage[T1]{fontenc} % Output font encoding for international characters, use 8-bit T1 fonts
12
+ % \usepackage[default]{sourcesanspro} % https://fonts.adobe.com/fonts/source-sans#fonts-section
13
+ \else
14
+ \usepackage[UTF8]{ctex}
15
+ \newcommand{\chuhao}{\fontsize{42pt}{1.25\baselineskip}\selectfont} %初号
16
+ \newcommand{\xiaochuhao}{\fontsize{36pt}{1.25\baselineskip}\selectfont} %小初号
17
+ \newcommand{\yihao}{\fontsize{28pt}{1.25\baselineskip}\selectfont} %一号
18
+ \newcommand{\erhao}{\fontsize{21pt}{1.25\baselineskip}\selectfont} %二号
19
+ \newcommand{\xiaoerhao}{\fontsize{18pt}{1.25\baselineskip}\selectfont} %小二号
20
+ \newcommand{\sanhao}{\fontsize{15.75pt}{1.25\baselineskip}\selectfont} %三号
21
+ \newcommand{\sihao}{\fontsize{14pt}{1.25\baselineskip}\selectfont} %四号
22
+ \newcommand{\xiaosihao}{\fontsize{12pt}{1.25\baselineskip}\selectfont} %小四号
23
+ \newcommand{\wuhao}{\fontsize{10.5pt}{1.25\baselineskip}\selectfont} %五号
24
+ \newcommand{\xiaowuhao}{\fontsize{9pt}{1.25\baselineskip}\selectfont} %小五号
25
+ \newcommand{\liuhao}{\fontsize{7.875pt}{1.25\baselineskip}\selectfont} %六号
26
+ \newcommand{\qihao}{\fontsize{5.25pt}{1.25\baselineskip}\selectfont} %七号
27
+ \fi
28
+ \usepackage{microtype} % Subliminal refinements towards typographical perfection
29
+ \usepackage{lmodern} % The Latin Modern family is a recent collection of fonts.
30
+
31
+ %% Algorithm
32
+ % https://www.overleaf.com/learn/latex/Algorithms
33
+ % https://tex.stackexchange.com/questions/229355/algorithm-algorithmic-algorithmicx-algorithm2e-algpseudocode-confused
34
+
35
+ %%% I-1
36
+ % \usepackage{algorithm}
37
+ % \usepackage{algorithmic} % Conflict with algpseudocode
38
+
39
+ %%% I-2
40
+ % \usepackage{algorithm}
41
+ % \usepackage{algorithmicx} % http://mirror.ox.ac.uk/sites/ctan.org/macros/latex/contrib/algorithmicx/algorithmicx.pdf
42
+ % This package is like algorithmic upgraded. It enables you to define custom commands, which is something algorithmic can't do.
43
+
44
+ %%% I-3
45
+ % \usepackage{algorithm}
46
+ % \usepackage[noend]{algpseudocode} % Load algorithmicx automatically.
47
+
48
+ %%% I-4
49
+ \usepackage{algorithm}
50
+ \usepackage[noEnd=true]{algpseudocodex} % https://ctan.org/pkg/algpseudocodex
51
+
52
+ %%% For I-1, I-2, I-3, and I-4
53
+ \algrenewcommand{\algorithmicrequire}{\textbf{Input:}}
54
+ \algrenewcommand{\algorithmicensure}{\textbf{Output:}}
55
+
56
+ %%% II-1
57
+ % http://tug.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf
58
+ % https://texfaq.org/FAQ-algorithms: The algorithm2e is of very long standing, and is widely used and recommended.
59
+ % \usepackage[linesnumbered,boxed,ruled,commentsnumbered, vlined]{algorithm2e}
60
+
61
+ %% Box
62
+ \usepackage{framed} % Create three environments: framed, shaded, and leftbar.
63
+ \usepackage{tcolorbox} % Provide an environment for coloured and framed text boxes with a heading line.
64
+ \tcbuselibrary{skins, breakable,listings, theorems}
65
+ \tcbset{
66
+ breakable=false,
67
+ enhanced,
68
+ % watermark graphics=*.jpg,
69
+ watermark opacity=0.08,
70
+ watermark zoom=0.9,
71
+ colframe=blue!15,
72
+ colback=blue!5,
73
+ coltitle=blue!20!black,
74
+ colbacktitle = blue!15,
75
+ colupper=black,
76
+ collower=black,
77
+ drop fuzzy shadow
78
+ }
79
+
80
+ %% Math
81
+ \usepackage{bm} % https://www.ctan.org/pkg/bm
82
+ \usepackage{amsmath} % https://www.ctan.org/pkg/amsmath
83
+ \usepackage{amsfonts} % https://www.ctan.org/pkg/amsfonts
84
+ \usepackage{amssymb} % https://latexstudio.net/hulatex/package/maths-1.htm. Contained in amsfonts.
85
+ \usepackage{amsthm} % https://www.ctan.org/pkg/amsthm. Facilitates the kind of theorem setup typically needed in AMS Publications.
86
+ \usepackage{mathrsfs}
87
+ \usepackage{csquotes} % Provides advanced facilities for inline and display quotations.
88
+ \usepackage{siunitx} % Ensure that the combined mathematical meaning of the value plus unit combination is clear.
89
+ \usepackage{mathtools} % https://www.ctan.org/pkg/mathtools. Based on amsmath.
90
+ \usepackage{nicefrac} % Compact symbols for 1/2, etc.
91
+
92
+ %% Color
93
+ % cyan, magenta, darkgray, lightgray, brown, orange, lime, purple, teal, violet and pink
94
+ \usepackage{color}
95
+ \usepackage{xcolor} % The package allows rows and columns to be coloured, and even individual cells.
96
+ \usepackage{colortbl} % Fill color
97
+
98
+ %% Figure and Table
99
+ \usepackage[small]{caption} % [bf, small]
100
+ \usepackage{subcaption}
101
+ \usepackage{float} % Improves the interface for defining floating objects such as figures and tables.
102
+
103
+ %% Figure
104
+ \usepackage{graphicx}
105
+ \usepackage{graphics}
106
+ \graphicspath{{./}
107
+ {./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}
108
+ {./Figure/}{./Figures/}{./Image/}{./Images/}{./Graphics/}{./Graphic/}{./Pictures/}{./Picture/}
109
+ {./fig}{./figs}{./img}{./imgs}
110
+ {./Fig}{./Figs}{./Img}{./Imgs}
111
+ }
112
+ \usepackage{pgf} % PGF is a macro package for creating graphics.
113
+ \usepackage{wrapfig}
114
+ \usepackage{standalone}
115
+ \usepackage{tikz}
116
+ \usetikzlibrary{angles,quotes}
117
+ \usetikzlibrary{arrows,arrows.meta}
118
+ \usetikzlibrary{decorations,decorations.text,decorations.pathreplacing,decorations.footprints,decorations.pathmorphing}
119
+ \usetikzlibrary{shapes,shapes.symbols,shapes.callouts,shapes.misc}
120
+ \usetikzlibrary{patterns,shadows,shadows.blur,fadings}
121
+ \usetikzlibrary{trees,backgrounds,shadings,calc,positioning,fpu,fit,spy,chains}
122
+
123
+ %% Table
124
+ \usepackage{booktabs} % For professional tables
125
+ \usepackage{multirow}
126
+ \usepackage{multicol}
127
+ \usepackage{dcolumn}
128
+ \usepackage{makecell}
129
+
130
+ %% Citation
131
+ % https://mirrors.zju.edu.cn/CTAN/macros/latex/contrib/biblatex/doc/biblatex.pdf
132
+ % backend=bibtex, bibtex8, biber
133
+ % sorting=nty, nyt, nyvt, anyt, anyvt, ynt, ydnt, none, debug,
134
+ % citestyle=numeric, numeric-comp, numeric-verb ,
135
+ % alphabetic, alphabetic-verb,
136
+ % authoryear, authoryear-comp, authoryear-ibid, authoryear-icomp,
137
+ % authortitle, authortitle-comp, authortitle-ibid , authortitle-icomp, authortitle-terse, authortitle-tcomp, authortitle-ticomp,
138
+ % verbose, verbose-ibid, verbose-note, verbose-inote, verbose-trad1, verbose-trad2, verbose-trad3,
139
+ % reading, draft, debug
140
+ % bibstyle=numeric, alphabetic, authoryear, authortitle, verbose, reading, draft, debug
141
+ % refsection=none, part, chapter, chapter+, section, section+, subsection
142
+ % maxnames, minnames, maxbibnames, minbibnames, maxcitenames, mincitenames, maxsortnames, minsortnames
143
+ \usepackage[backend=biber,
144
+ % For APA
145
+ style=apa, % https://mirrors.cloud.tencent.com/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa.pdf
146
+ apamaxprtauth=20, % Control the number of author/editor names which are printed in the References. APA style defaults to 20.
147
+ %
148
+ backref=false,
149
+ natbib=true,
150
+ refsection=none,
151
+ sorting=ydnt,
152
+ % Ignored fields in references
153
+ doi=false,
154
+ url=false,
155
+ ]{biblatex}
156
+ % \usepackage[backend=biber,
157
+ % % For ieee
158
+ % style=ieee,
159
+ % %
160
+ % backref=false, % false, ture
161
+ % bibstyle=numeric,
162
+ % citestyle=numeric,
163
+ % defernumbers=false, % false, ture
164
+ % maxnames=2,
165
+ % minnames=1,
166
+ % natbib=true, % false, ture
167
+ % refsection=none, % none, part, chapter, chapter+, section, section+, subsection, subsection+
168
+ % sorting=ydnt,
169
+ % % Ignored fields in references
170
+ % doi=false,
171
+ % url=false,
172
+ % ]{biblatex}
173
+ \addbibresource{./References/References.bib}
174
+ \usepackage{hyperref} % When using the `hyperref` package, it is preferable to load it after `biblatex`.
175
+ \hypersetup{
176
+ colorlinks=true,
177
+ linkcolor=red,
178
+ filecolor=cyan,
179
+ urlcolor=blue,
180
+ citecolor=green,
181
+ pdfborder={0 0 0}}
182
+ \pdfstringdefDisableCommands{\let\fullcite \@firstofone}
183
+ % \usepackage{cleveref} % Intelligent cross-referencing
184
+ % [capitalise,nameinlink,noabbrev,compress]. When using the `cleveref` package, it is preferable to load it after `hyperref`
185
+ % Confict with algorithmic, algorithmicx, algpseudocode, algpseudocodex
186
+
187
+ %% Codes
188
+ \usepackage{listings} % Typeset source code listings using LATEX
189
+ % https://nasa.github.io/nasa-latex-docs/html/examples/listing.html
190
+ % https://www.overleaf.com/learn/latex/
191
+ % http://users.ece.utexas.edu/~garg/dist/listings.pdf
192
+ % https://www.overleaf.com/learn/latex/Code_listing
193
+ \lstdefinestyle{lfonts}{
194
+ basicstyle = \footnotesize\ttfamily,
195
+ backgroundcolor = \color{olive!5!white},
196
+ stringstyle = \color{green!60!black},
197
+ keywordstyle = \color{blue!90!black}\textbf, % \textbf or \bfseries
198
+ commentstyle = \color{olive!70!black}\textit, % \textit or \scshape
199
+ }
200
+ \lstdefinestyle{lnumbers}{
201
+ numbers = left,
202
+ numberstyle = \tiny,
203
+ numbersep = 0.2em,
204
+ firstnumber = 1,
205
+ stepnumber = 1,
206
+ }
207
+ \lstdefinestyle{llayout}{
208
+ breaklines = true,
209
+ tabsize = 2,
210
+ columns = flexible,
211
+ }
212
+ \lstdefinestyle{lgeometry}{
213
+ xleftmargin = 20pt,
214
+ xrightmargin = 0pt,
215
+ frame = tb,
216
+ framesep = \fboxsep,
217
+ framexleftmargin = 20pt,
218
+ }
219
+ \lstdefinestyle{lgeneral}{
220
+ style = lfonts,
221
+ style = lnumbers,
222
+ style = llayout,
223
+ style = lgeometry,
224
+ }
225
+ \lstdefinestyle{python}{
226
+ language = {Python},
227
+ style = lgeneral,
228
+ }
229
+
230
+ %% Footnote
231
+ % Add backlinks to footnote references. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
232
+ \usepackage{footnotebackref}
233
+ \setlength{\emergencystretch}{3em} % Prevent overfull lines
234
+ \providecommand{\tightlist}{ %
235
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
236
+ % \setcounter{secnumdepth}{-\maxdimen} % Remove section numbering
237
+
238
+ %% Others
239
+ \usepackage{ifthen} % Conditional commands in LATEX documents
240
+ \usepackage{pdfpages} % Simplifies the inclusion of external multi-page PDF documents in LATEX documents.
241
+ \usepackage{verbatim} % (that skips everything between \begin{comment} and \end{comment})
242
+ \usepackage{pstricks} % PSTricks offers an extensive collection of macros for generating PostScript
243
+ \usepackage[english]{babel} % Manages culturally-determined typographical (and other) rules for a wide range of languages.
244
+ \usepackage{makeidx} % Standard package for creating indexes, and Provides two new commands, \see and \printindex.
245
+ \usepackage{rotating} % Rotation tools, including rotated full-page floats
246
+ \usepackage{bbm} % Provide LaTex support for Blackboard varients of Computer Modern fonts.
247
+ \usepackage{soul} % Find hypen automatically
248
+ \usepackage{url} % Allow linebreaks at certain characters or combinations of characters. (simple URL typesetting)
249
+ \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}
@@ -0,0 +1,4 @@
1
+ \bibliography{References/References.bib}
2
+ \bibliographystyle{IEEEtran}
3
+
4
+ \end{document}