[FIX] рисунок как float H и маркер списка длинное тире

This commit is contained in:
Arseny
2026-08-25 16:31:51 +03:00
parent e0c25cc0fe
commit 035300d372
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ def figure(tokens: list[Token]) -> str:
caption = escape_latex(m.group(1)) caption = escape_latex(m.group(1))
lines = [ lines = [
"\\begin{figure}[ht]", "\\begin{figure}[H]",
" \\centering", " \\centering",
rf" \includegraphics[width={width}]{{\detokenize{{{path}}}}}", rf" \includegraphics[width={width}]{{\detokenize{{{path}}}}}",
] ]
+2
View File
@@ -13,12 +13,14 @@ PREAMBLE = r"""\documentclass[a4paper, 14pt]{extarticle}
\onehalfspacing \onehalfspacing
\usepackage{graphicx} \usepackage{graphicx}
\graphicspath{ {./} {./images/} } \graphicspath{ {./} {./images/} }
\usepackage{float}
\usepackage{wrapfig} \usepackage{wrapfig}
\sloppy \sloppy
\clubpenalty=10000 \clubpenalty=10000
\widowpenalty=10000 \widowpenalty=10000
\usepackage{enumitem} \usepackage{enumitem}
\setlist[enumerate,1]{label=\arabic*., leftmargin=1.25cm, itemsep=0pt, parsep=0pt} \setlist[enumerate,1]{label=\arabic*., leftmargin=1.25cm, itemsep=0pt, parsep=0pt}
\setlist[itemize]{label={---}, leftmargin=1.25cm, itemsep=0pt, parsep=0pt}
\usepackage{caption} \usepackage{caption}
\usepackage{hyperref} \usepackage{hyperref}
\hypersetup {unicode=true} \hypersetup {unicode=true}