diff --git a/md2gost/handlers/image.py b/md2gost/handlers/image.py index d6c65e7..cf2fa1a 100644 --- a/md2gost/handlers/image.py +++ b/md2gost/handlers/image.py @@ -93,7 +93,7 @@ def figure(tokens: list[Token]) -> str: caption = escape_latex(m.group(1)) lines = [ - "\\begin{figure}[ht]", + "\\begin{figure}[H]", " \\centering", rf" \includegraphics[width={width}]{{\detokenize{{{path}}}}}", ] diff --git a/md2gost/latex/preamble.py b/md2gost/latex/preamble.py index 58cfc1c..950dda7 100644 --- a/md2gost/latex/preamble.py +++ b/md2gost/latex/preamble.py @@ -13,12 +13,14 @@ PREAMBLE = r"""\documentclass[a4paper, 14pt]{extarticle} \onehalfspacing \usepackage{graphicx} \graphicspath{ {./} {./images/} } +\usepackage{float} \usepackage{wrapfig} \sloppy \clubpenalty=10000 \widowpenalty=10000 \usepackage{enumitem} \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{hyperref} \hypersetup {unicode=true}