def printtile(text): print( "", withframe(text), "", sep = "\n" )
def header_1(title, version=None): if version is not None: cdtinfos = f"CdT - Version {version.title()}" title = f""" {cdtinfos} {title} """.strip() print( withframe(text=title, align="center", frame=ALL_FRAMES["pyba_title_2"]))
}) PYFORMAT = MultiReplace({ '%((': '{', '))%': '}' }) # ----------------------- # # -- TOOLS & CONSTANTS -- # # ----------------------- # DECO = " "*4 MYFRAME = lambda x: withframe( text = x, frame = ALL_FRAMES['latex_pretty'] ) # ------------ # # -- HEADER -- # # ------------ # with open( file = THIS_DIR / "config" / "header[fr].sty", encoding = "utf-8" ) as headerfile: HEADER = headerfile.read().strip() # ---------------------- #
def footer_1(title): print(withframe(text=title, align="center"))
def header_2(title): print( withframe(text=title, align="center", frame=ALL_FRAMES["pyba_title_3"]))