Exemple #1
0
def printtile(text):
    print(
        "",
        withframe(text),
        "",
        sep = "\n"
    )
Exemple #2
0
def printtile(text):
    print(
        "",
        withframe(text),
        "",
        sep = "\n"
    )
Exemple #3
0
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"]))
Exemple #4
0
})

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()


# ---------------------- #
Exemple #5
0
def footer_1(title):
    print(withframe(text=title, align="center"))
Exemple #6
0
def header_2(title):
    print(
        withframe(text=title, align="center",
                  frame=ALL_FRAMES["pyba_title_3"]))