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

@@ -34,6 +34,7 @@ class PandocMdTo(BasicInput):
34
34
  add_anchor_for_basic_dict (bool): Whether to add anchor for items in basic dict. Defaults to False.
35
35
  add_anchor_for_beauty_dict (bool): Whether to add anchor for items in beauty dict. Defaults to False.
36
36
  add_anchor_for_complex_dict (bool): Whether to add anchor for items in complex dict. Defaults to False.
37
+ details_to_bib_separator (str): Separator between <details> and bibliography content. Defaults to "\n".
37
38
  """
38
39
 
39
40
  def __init__(self, options: dict) -> None:
@@ -59,6 +60,8 @@ class PandocMdTo(BasicInput):
59
60
  self.add_anchor_for_beauty_dict: bool = options.get("add_anchor_for_beauty_dict", False)
60
61
  self.add_anchor_for_complex_dict: bool = options.get("add_anchor_for_complex_dict", False)
61
62
 
63
+ self.details_to_bib_separator: str = options.get("details_to_bib_separator", "\n")
64
+
62
65
  def pandoc_md_to_md(
63
66
  self, path_bib: str, path_md_one: str, path_md_two: str, name_md_one: Optional[str], name_md_two: Optional[str]
64
67
  ) -> List[str]:
@@ -296,7 +299,7 @@ class PandocMdTo(BasicInput):
296
299
  self, key_url_http_bib_dict: Dict[str, List[List[str]]], key_reference_dict: Dict[str, list]
297
300
  ) -> Tuple[Dict[str, List[str]], Dict[str, List[str]], Dict[str, List[str]]]:
298
301
  """Generate."""
299
- header_list = ["<details>\n", "```\n"]
302
+ header_list = [f"<details>{self.details_to_bib_separator}", "```\n"]
300
303
  tail_list = ["```\n", "</details>\n"]
301
304
 
302
305
  key_basic_dict: Dict[str, List[str]] = {}
@@ -56,6 +56,7 @@ class PythonRunMd(BasicInput):
56
56
  replace_by_basic_beauty_complex_in_md (str): Replace by basic, beauty, or complex format. Defaults to "beauty".
57
57
  display_basic_beauty_complex_references_in_md (str): Display basic, beauty, or complex references. Defaults to "beauty".
58
58
  add_anchor_in_md (bool): Whether add anchor in markdown. Defaults to False.
59
+ details_to_bib_separator (str): Separator between <details> and bibliography content. Defaults to "\n".
59
60
  """
60
61
 
61
62
  def __init__(self, options: Dict[str, Any]) -> None:
@@ -77,6 +78,7 @@ class PythonRunMd(BasicInput):
77
78
  "display_basic_beauty_complex_references_in_md", "beauty"
78
79
  )
79
80
  self.add_anchor_in_md: bool = options.get("add_anchor_in_md", False)
81
+ self.details_to_bib_separator: str = options.get("details_to_bib_separator", "\n")
80
82
 
81
83
  # for md
82
84
  self._pandoc_md_to = PandocMdTo(self.options)
@@ -262,7 +264,7 @@ class PythonRunMd(BasicInput):
262
264
  bib_in_md = combine_content_in_list(
263
265
  [
264
266
  ["## Bibliography\n\n"],
265
- ["<details>\n<summary>Bibliography</summary>\n\n"],
267
+ [f"<details>{self.details_to_bib_separator}"],
266
268
  ["```\n"],
267
269
  temp_c,
268
270
  ["```\n"],
@@ -16,6 +16,8 @@
16
16
  "add_anchor_for_beauty_dict": false,
17
17
  // true, false
18
18
  "add_anchor_for_complex_dict": false,
19
+ // "\n" or "\n\n"
20
+ "details_to_bib_separator": "\n",
19
21
 
20
22
  // for md file
21
23
  // pyeasyphd/main/python_run_md.py
@@ -35,6 +37,8 @@
35
37
  "display_basic_beauty_complex_references_in_md": "beauty",
36
38
  // true, false
37
39
  "add_anchor_in_md": false,
40
+ // "\n" or "\n\n"
41
+ // "details_to_bib_separator": "\n",
38
42
 
39
43
  // for tex file
40
44
  // pyeasyphd/main/python_run_tex.py
@@ -68,6 +68,7 @@ def run_article_md_daily_notes(
68
68
  "add_anchor_for_basic_dict": True, # default is False
69
69
  "add_anchor_for_beauty_dict": False, # default is False
70
70
  "add_anchor_for_complex_dict": False, # default is False
71
+ "details_to_bib_separator": "\n\n", # defulat is "\n"
71
72
  "final_output_main_md_name": "main.md",
72
73
  "delete_temp_generate_md": True,
73
74
  "add_reference_in_md": True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Requires-Dist: pyadvtools (>=0.2.14,<0.3.0)
20
- Requires-Dist: pybibtexer (>=0.2.12,<0.3.0)
20
+ Requires-Dist: pybibtexer (>=0.2.17,<0.3.0)
21
21
  Project-URL: Documentation, https://github.com/Easy-PhD/pyeasyphd
22
22
  Project-URL: Homepage, https://github.com/Easy-PhD/pyeasyphd
23
23
  Project-URL: Repository, https://github.com/Easy-PhD/pyeasyphd
@@ -18,15 +18,15 @@ pyeasyphd/data/templates/tex/math_commands.tex,sha256=6ZQOletBnFRA6q6fU8TDVN4c9h
18
18
  pyeasyphd/data/templates/tex/nextaimathmacros.sty,sha256=iF0jyABkoPUY_XA-lPkvZSlblFuWLX9ie82gRqY0Fks,41644
19
19
  pyeasyphd/main/__init__.py,sha256=Pv-7359vftMgw3Wi_GuDy99K0TcY6hVwLkFFip774x8,224
20
20
  pyeasyphd/main/basic_input.py,sha256=roZSTc8hUavItv0jQsjkmRRf8FHR6FStMrvZcjaSLbk,4484
21
- pyeasyphd/main/pandoc_md_to.py,sha256=5wRpuf4_ZR9XIRI4HkTcXPiXDwVpdKP3H1Eaf_D2yYQ,16974
22
- pyeasyphd/main/python_run_md.py,sha256=CjTN5qxCPMFDGCXxzxn5f0qDq3WseNLpFzcJpEn2GR4,14200
21
+ pyeasyphd/main/pandoc_md_to.py,sha256=RnrHFEp7gnBw7zoMTY8ffaYSDEV75Lstr6OBQwsCmJQ,17208
22
+ pyeasyphd/main/python_run_md.py,sha256=3I6kc3920tRaTvLmNd3TIfIrfO8U_j9RYPO9YlnY8hs,14398
23
23
  pyeasyphd/main/python_run_tex.py,sha256=9Syu8qRjPXN3gEabfRUWxwTFBm_izIcB4yFhsz3QNs0,7672
24
24
  pyeasyphd/pyeasyphd.py,sha256=OAwbwq2rSXLSk2AoTAF8hmlOMRSRfvDn1Uqk-zkuqH8,3470
25
- pyeasyphd/pyeasyphd.sublime-settings,sha256=Bp_41iwVn23bCs1kC0R-XR8PChUF8btVGXfcwi5A_UU,3093
25
+ pyeasyphd/pyeasyphd.sublime-settings,sha256=kJLaSZQ5kGL5eg-LYeDsT6S-ecEGl3FvEAp2HVmhfdA,3216
26
26
  pyeasyphd/pyeasyphd.sublime-syntax,sha256=pXylbA-tye-K5dCTjEJLFVRqtY1T7AgWZ4laxo-dnaE,73
27
27
  pyeasyphd/scripts/__init__.py,sha256=QDmJugM90NFSzb69A6PSuCf76pHIcptRIaKNtSwXb-s,1235
28
28
  pyeasyphd/scripts/_base.py,sha256=Vm-CehgDng38jACb9KBzKkbyJuc_e5UjG06nIMi_l0o,2337
29
- pyeasyphd/scripts/run_article_md.py,sha256=CxtNmNREFwPDy3ns0qFiLL3jBw0iRRRCBki71jXPk-E,4273
29
+ pyeasyphd/scripts/run_article_md.py,sha256=qZuF4Vq_xzP0z-Cjs6OYnNVg3_rZTaM132WheXzxQtk,4336
30
30
  pyeasyphd/scripts/run_article_tex.py,sha256=vD9Wa8-XyxHZ48rtllcMCzmkQ0j-p8NpgCkMCZv6RWs,3820
31
31
  pyeasyphd/scripts/run_beamer_tex.py,sha256=YId0mofXbJJwsqawzG0_g-umd0Ik_N6JERxmndNnAoA,3357
32
32
  pyeasyphd/scripts/run_compare.py,sha256=-VLS0ms049Kd8zbiIdjTpLmkDZuoSZBwG5OfR6PPyno,3206
@@ -47,7 +47,7 @@ pyeasyphd/tools/search/search_keywords.py,sha256=tUEKsCqiaUHEyRa23wzDLri3puAWrNK
47
47
  pyeasyphd/tools/search/search_writers.py,sha256=Dz6D8m17R7x8NT7_PCjwmzlq29AfUz-N6sjyCguDTo4,15702
48
48
  pyeasyphd/tools/search/utils.py,sha256=bo7xtIZu31dQvjol1lwyWq1t6ldbw28oondwK8VbAqk,7562
49
49
  pyeasyphd/utils/utils.py,sha256=kWxzzgNwz77K9Q7j-RKTaoPpxqiVLVtaBMMhLuEenwE,3128
50
- pyeasyphd-0.4.2.dist-info/METADATA,sha256=tyesn2ZPCAB2IY_o-wVOVVzTXWu8pXnZ85zMVbnV4VM,1469
51
- pyeasyphd-0.4.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
52
- pyeasyphd-0.4.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
53
- pyeasyphd-0.4.2.dist-info/RECORD,,
50
+ pyeasyphd-0.4.4.dist-info/METADATA,sha256=VlyjFpYkOuoDDuWqbcttZb_13RScINywQ1Pphubol50,1469
51
+ pyeasyphd-0.4.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
52
+ pyeasyphd-0.4.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
53
+ pyeasyphd-0.4.4.dist-info/RECORD,,