pyeasyphd 0.0.2__tar.gz → 0.0.4__tar.gz
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.
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/PKG-INFO +2 -2
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/basic_input.py +9 -9
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/pandoc_md_to.py +6 -6
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/python_run_tex.py +5 -5
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/pyeasyphd.sublime-settings +15 -14
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/format_save_bibs.py +1 -1
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/search_keywords.py +4 -3
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyproject.toml +2 -2
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/README.md +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/.python-version +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/Main.sublime-menu +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/_base.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/default_data.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_bib.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_comment_block.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_entry_block.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_preamble_block.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_string_block.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize_bib.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/bibtex_format.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/exceptions.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/library.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/add.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/authors.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/doi_url.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_normalize.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_replace.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_values_normalize.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_delete.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_keep.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_sort.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_types.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/journal_booktitle.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/month_year.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/number_volume.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/pages.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/title.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/library/generating_entrykeys.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/library/keeping_blocks.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/library/sorting_blocks.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/middleware.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/parsestack.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/utils.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_str_to_str.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/model.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/splitter.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/core/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/core/convert_library_to_library.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/core/convert_library_to_str.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/core/convert_str_to_library.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/core/convert_str_to_str.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/python_run_bib.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/python_run_md.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/main/python_writers.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/pyeasyphd.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/__init__.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/compare/compare_bibs.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/experiments_base.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/generate/generate_links.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/replace/replace.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/data.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/search_base.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/search_core.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/search_writers.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/search/utils.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/spider/process_spider_bib.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/spider/process_spider_url.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/tools/spider/process_spider_url_bib.py +0 -0
- {pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/utils/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pyeasyphd
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: pyeasyphd
|
|
5
5
|
License: GPL-3.0-or-later
|
|
6
6
|
Keywords: Python,Markdown,LaTex
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.13
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
-
Requires-Dist: pyadvtools (>=0.0.
|
|
20
|
+
Requires-Dist: pyadvtools (>=0.0.5,<0.0.6)
|
|
21
21
|
Project-URL: Documentation, https://github.com/NextArtifIntell/pyeasyphd
|
|
22
22
|
Project-URL: Homepage, https://github.com/NextArtifIntell/pyeasyphd
|
|
23
23
|
Project-URL: Repository, https://github.com/NextArtifIntell/pyeasyphd
|
|
@@ -128,18 +128,18 @@ class BasicInput(object):
|
|
|
128
128
|
csl_name = options.get("csl_name", "apa-no-ampersand")
|
|
129
129
|
if len(csl_name) == 0:
|
|
130
130
|
csl_name = "apa-no-ampersand"
|
|
131
|
-
self.full_csl_style_pandoc = os.path.join(self.path_templates, f"
|
|
132
|
-
self.full_tex_article_template_pandoc = os.path.join(self.path_templates, "TEX
|
|
131
|
+
self.full_csl_style_pandoc = os.path.join(self.path_templates, "CSL", f"{csl_name}.csl")
|
|
132
|
+
self.full_tex_article_template_pandoc = os.path.join(self.path_templates, "TEX", "eisvogel.tex")
|
|
133
133
|
|
|
134
|
-
self.article_template_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
134
|
+
self.article_template_tex = read_list(os.path.join(self.path_templates, "TEX", "Article.tex"))
|
|
135
135
|
|
|
136
136
|
def _initialize_python_run_tex(self, options: Dict[str, Any]) -> None:
|
|
137
|
-
self.article_template_header_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
138
|
-
self.article_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
139
|
-
self.beamer_template_header_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
140
|
-
self.beamer_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
141
|
-
self.math_commands_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
142
|
-
self.usepackages_tex = read_list(os.path.join(self.path_templates, "TEX
|
|
137
|
+
self.article_template_header_tex = read_list(os.path.join(self.path_templates, "TEX", "Article_Header.tex"))
|
|
138
|
+
self.article_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX", "Article_Tail.tex"))
|
|
139
|
+
self.beamer_template_header_tex = read_list(os.path.join(self.path_templates, "TEX", "Beamer_Header.tex"))
|
|
140
|
+
self.beamer_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX", "Beamer_Tail.tex"))
|
|
141
|
+
self.math_commands_tex = read_list(os.path.join(self.path_templates, "TEX", "math_commands.tex"))
|
|
142
|
+
self.usepackages_tex = read_list(os.path.join(self.path_templates, "TEX", "Style.tex"))
|
|
143
143
|
|
|
144
144
|
# handly preamble
|
|
145
145
|
self.handly_preamble = options.get("handly_preamble", False)
|
|
@@ -323,8 +323,8 @@ class PandocMdTo(BasicInput):
|
|
|
323
323
|
def generate_tex_content(self, file_prefix: str, path_subsection: str, path_bib: str, path_combine: str) -> None:
|
|
324
324
|
# for latex
|
|
325
325
|
# add template for tex file
|
|
326
|
-
add_bib_name =
|
|
327
|
-
add_tex_name =
|
|
326
|
+
add_bib_name = os.path.join(os.path.basename(path_bib), f"{file_prefix}-abbr.bib")
|
|
327
|
+
add_tex_name = os.path.join(os.path.basename(path_subsection), f"{file_prefix}.tex")
|
|
328
328
|
insert_part_one, insert_part_two = self._generate_tex_content(file_prefix, add_tex_name, add_bib_name)
|
|
329
329
|
|
|
330
330
|
# write tex
|
|
@@ -343,9 +343,9 @@ class PandocMdTo(BasicInput):
|
|
|
343
343
|
part_one = [
|
|
344
344
|
"\\date{" + "{}".format(time.strftime("%B %d, %Y")) + "}\n\n",
|
|
345
345
|
"\\ifx \\fullpath \\undefined\n",
|
|
346
|
-
" \\addbibresource{" + "
|
|
346
|
+
" \\addbibresource{" + os.path.join("..", add_bib_name) + "}\n",
|
|
347
347
|
"\\else\n",
|
|
348
|
-
" \\addbibresource{" + "\\fullpath
|
|
348
|
+
" \\addbibresource{" + os.path.join("\\fullpath", add_bib_name) + "}\n",
|
|
349
349
|
"\\fi\n\n",
|
|
350
350
|
]
|
|
351
351
|
part_two = [
|
|
@@ -353,9 +353,9 @@ class PandocMdTo(BasicInput):
|
|
|
353
353
|
"% \\maketitle\n",
|
|
354
354
|
"\\tableofcontents\n\n",
|
|
355
355
|
"\\ifx \\fullpath \\undefined\n",
|
|
356
|
-
" \\input{" + "
|
|
356
|
+
" \\input{" + os.path.join("..", add_tex_name) + "}\n",
|
|
357
357
|
"\\else\n",
|
|
358
|
-
" \\input{" + "\\fullpath
|
|
358
|
+
" \\input{" + os.path.join("\\fullpath", add_tex_name) + "}\n",
|
|
359
359
|
"\\fi\n",
|
|
360
360
|
]
|
|
361
361
|
return part_one, part_two
|
|
@@ -48,8 +48,8 @@ class PythonRunTex(BasicInput):
|
|
|
48
48
|
# for figures
|
|
49
49
|
for i in range(len(data_list_body)):
|
|
50
50
|
if re.search(r"\\includegraphics", data_list_body[i]):
|
|
51
|
-
data_list_body[i] = data_list_body[i].replace("
|
|
52
|
-
data_list_body[i] = data_list_body[i].replace("Figures
|
|
51
|
+
data_list_body[i] = data_list_body[i].replace(f".{os.sep}Figures{os.sep}", f".{os.sep}{figure_folder_name}{os.sep}")
|
|
52
|
+
data_list_body[i] = data_list_body[i].replace(f"Figures{os.sep}", f"{figure_folder_name}{os.sep}")
|
|
53
53
|
write_list(data_list_body, output_tex_name, "w", os.path.join(path_output, tex_folder_name), False)
|
|
54
54
|
|
|
55
55
|
self._special_operate_tex(
|
|
@@ -105,15 +105,15 @@ class PythonRunTex(BasicInput):
|
|
|
105
105
|
data_list = insert_list_in_list(data_list, ["\n\\def\\cn{}\n"], r"\\documentclass", "after")
|
|
106
106
|
|
|
107
107
|
# for bib
|
|
108
|
-
regex = re.compile(r"\\addbibresource{
|
|
108
|
+
regex = re.compile(r"\\addbibresource{" + os.path.join(".", "References", "References.bib") + "}")
|
|
109
109
|
for i in range(len(data_list)):
|
|
110
110
|
mch = regex.search(data_list[i])
|
|
111
111
|
if not mch:
|
|
112
112
|
continue
|
|
113
113
|
if bib_folder_name:
|
|
114
|
-
data_list[i] = "\\addbibresource{" +
|
|
114
|
+
data_list[i] = "\\addbibresource{" + os.path.join(".", bib_folder_name, bib_name) + "}\n"
|
|
115
115
|
else:
|
|
116
|
-
data_list[i] = "\\addbibresource{" +
|
|
116
|
+
data_list[i] = "\\addbibresource{" + os.path.join(".", bib_name) + "}\n"
|
|
117
117
|
|
|
118
118
|
# body
|
|
119
119
|
if len(data_list_body) != 0:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
// config
|
|
3
3
|
// config path
|
|
4
|
+
// Must be configured by the user.
|
|
4
5
|
"path_config": "",
|
|
5
6
|
|
|
6
7
|
// figures, templates, bibs
|
|
@@ -8,27 +9,27 @@
|
|
|
8
9
|
"path_figures": "",
|
|
9
10
|
"path_templates": "",
|
|
10
11
|
|
|
11
|
-
//
|
|
12
|
+
// pyeasyphd/bib/core/convert_str_to_str.py
|
|
12
13
|
"default_additional_field_list": [],
|
|
13
14
|
|
|
14
|
-
//
|
|
15
|
+
// pyeasyphd/bib/bibtexparser/middlewares_str_to_str.py
|
|
15
16
|
"substitute_in_bib": true,
|
|
16
17
|
"substitute_old_list": [],
|
|
17
18
|
"substitute_new_list": [],
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
//
|
|
21
|
+
// pyeasyphd/bib/core/convert_str_to_library.py
|
|
21
22
|
"is_standardize_bib": true,
|
|
22
23
|
|
|
23
|
-
//
|
|
24
|
+
// pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py
|
|
24
25
|
"is_display_implicit_comments": true,
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
//
|
|
28
|
+
// pyeasyphd/bib/core/convert_library_to_library.py
|
|
28
29
|
// "abbr", "zotero", or "save"
|
|
29
30
|
"choose_abbr_zotero_save": "save",
|
|
30
31
|
|
|
31
|
-
//
|
|
32
|
+
// pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py
|
|
32
33
|
"function_common_again": true,
|
|
33
34
|
"function_common_again_abbr": true,
|
|
34
35
|
"function_common_again_zotero": true,
|
|
@@ -134,13 +135,13 @@
|
|
|
134
135
|
"delete_fields_list_for_save": [],
|
|
135
136
|
|
|
136
137
|
|
|
137
|
-
//
|
|
138
|
+
// pyeasyphd/bib/core/convert_library_to_str.py
|
|
138
139
|
"is_standardize_library": false,
|
|
139
140
|
"empty_entry_cite_keys": false,
|
|
140
141
|
"add_index_to_entries": false,
|
|
141
142
|
"entries_necessary": true,
|
|
142
143
|
|
|
143
|
-
//
|
|
144
|
+
// pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py
|
|
144
145
|
"is_sort_entry_fields": true,
|
|
145
146
|
"is_sort_blocks": true,
|
|
146
147
|
"sort_entries_by_cite_keys": [],
|
|
@@ -148,7 +149,7 @@
|
|
|
148
149
|
"sort_entries_by_field_keys_reverse": true,
|
|
149
150
|
|
|
150
151
|
|
|
151
|
-
//
|
|
152
|
+
// pyeasyphd/main/pandoc_md_to.py
|
|
152
153
|
// for pandoc
|
|
153
154
|
"csl_name": "apa-no-ampersand",
|
|
154
155
|
// the number of columns in md files
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
"cite_flag_in_tex": "cite",
|
|
161
162
|
|
|
162
163
|
// for bib file
|
|
163
|
-
//
|
|
164
|
+
// pyeasyphd/main/python_writers.py
|
|
164
165
|
// "abbr.bib", "zotero.bib", "save.bib"
|
|
165
166
|
"bib_for_abbr_name": "abbr.bib",
|
|
166
167
|
"bib_for_zotero_name": "zotero.bib",
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
"bibtex_format_block_separator": "",
|
|
175
176
|
|
|
176
177
|
// for md file
|
|
177
|
-
//
|
|
178
|
+
// pyeasyphd/main/python_run_md.py
|
|
178
179
|
// default is ""
|
|
179
180
|
"final_output_main_md_name": "",
|
|
180
181
|
// true, false
|
|
@@ -191,7 +192,7 @@
|
|
|
191
192
|
"display_basic_beauty_complex_references_in_md": "beauty",
|
|
192
193
|
|
|
193
194
|
// for tex file
|
|
194
|
-
//
|
|
195
|
+
// pyeasyphd/main/python_run_tex.py
|
|
195
196
|
// handly preamble
|
|
196
197
|
"handly_preamble": false,
|
|
197
198
|
|
|
@@ -208,7 +209,7 @@
|
|
|
208
209
|
".nav", ".snm", ".toc", ".xdv"
|
|
209
210
|
],
|
|
210
211
|
|
|
211
|
-
//
|
|
212
|
+
// pyeasyphd/tools/python_run_latex_md.py
|
|
212
213
|
// true, false
|
|
213
214
|
"generate_html": false,
|
|
214
215
|
|
|
@@ -229,7 +230,7 @@
|
|
|
229
230
|
"delete_original_tex_in_output_folder": false,
|
|
230
231
|
"delete_original_bib_in_output_folder": false,
|
|
231
232
|
|
|
232
|
-
//
|
|
233
|
+
// pyeasyphd/pyeasyphd.py
|
|
233
234
|
// default is the same with the active file
|
|
234
235
|
"path_output": "",
|
|
235
236
|
}
|
|
@@ -172,7 +172,7 @@ def generate_statistic_information(path_output: str) -> None:
|
|
|
172
172
|
informations.append(flag + "\n")
|
|
173
173
|
|
|
174
174
|
# Write information to CSV file
|
|
175
|
-
csv_path = f.replace(".bib", ".csv").replace("
|
|
175
|
+
csv_path = f.replace(".bib", ".csv").replace(f"{os.sep}bib{os.sep}", f"{os.sep}url{os.sep}")
|
|
176
176
|
write_list(informations, csv_path, "w", None, False)
|
|
177
177
|
|
|
178
178
|
return None
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import copy
|
|
2
2
|
import os
|
|
3
3
|
import re
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
from typing import Any, Dict, List
|
|
5
6
|
|
|
6
7
|
from pyadvtools import (
|
|
@@ -214,11 +215,11 @@ class Searchkeywords(object):
|
|
|
214
215
|
data_list.append(f"<td>{name}</td>\n")
|
|
215
216
|
|
|
216
217
|
for f in data_dict[name]:
|
|
218
|
+
folders = Path(f).parts[1:]
|
|
217
219
|
if index == "combine":
|
|
218
|
-
data_list.append(x.format(f,
|
|
220
|
+
data_list.append(x.format(f, folders[-1].split("-")[0].title() + ":" + f.split(".")[-1]))
|
|
219
221
|
elif index == "separate":
|
|
220
|
-
data_list.append(x.format(f,
|
|
221
|
-
|
|
222
|
+
data_list.append(x.format(f, folders[-2].split("-")[0].title() + ":" + f.split(".")[-1]))
|
|
222
223
|
data_list.append("</tr>\n")
|
|
223
224
|
data_list.append("</tbody>\n")
|
|
224
225
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyeasyphd"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.4"
|
|
4
4
|
description = "pyeasyphd"
|
|
5
5
|
license = "GPL-3.0-or-later"
|
|
6
6
|
authors = ["NextAI <nextartifintell@gmail.com>"]
|
|
@@ -14,7 +14,7 @@ classifiers = ["Topic :: Software Development :: Libraries :: Python Modules"]
|
|
|
14
14
|
|
|
15
15
|
[tool.poetry.dependencies]
|
|
16
16
|
python = ">=3.8.1"
|
|
17
|
-
pyadvtools = "^0.0.
|
|
17
|
+
pyadvtools = "^0.0.5"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.group.dev.dependencies]
|
|
20
20
|
mypy = "^1.10.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_comment_block.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_entry_block.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_preamble_block.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexbase/standardize/do_on_string_block.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_types.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/month_year.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/block/number_volume.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/library/keeping_blocks.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares/library/sorting_blocks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py
RENAMED
|
File without changes
|
{pyeasyphd-0.0.2 → pyeasyphd-0.0.4}/pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|