[FIX] параметры размещения плавающих объектов: крупный рисунок остаётся на своей странице
This commit is contained in:
@@ -48,7 +48,7 @@ def test_figure_with_caption(tmp_path) -> None:
|
||||
"![[images/antenna.png]]\n\nРисунок 1 — Антенна\n\n"
|
||||
"Данная антенна используется для ...\n"
|
||||
)
|
||||
assert "\\begin{figure}[ht]" in tex
|
||||
assert "\\begin{figure}[htb]" in tex
|
||||
assert "\\centering" in tex
|
||||
assert (
|
||||
"\\includegraphics[width=0.8\\textwidth]{\\detokenize{images/antenna.png}}"
|
||||
@@ -60,7 +60,7 @@ def test_figure_with_caption(tmp_path) -> None:
|
||||
|
||||
def test_figure_without_caption() -> None:
|
||||
tex = render("![[images/photo.png]]\n\nОбычный абзац после картинки.\n")
|
||||
assert "\\begin{figure}[ht]" in tex
|
||||
assert "\\begin{figure}[htb]" in tex
|
||||
assert "\\caption{" not in tex
|
||||
assert "Обычный абзац после картинки." in tex
|
||||
|
||||
@@ -127,7 +127,7 @@ TABLE_MD = (
|
||||
|
||||
def test_table_with_caption() -> None:
|
||||
tex = render(TABLE_MD)
|
||||
assert "\\begin{table}[ht]" in tex
|
||||
assert "\\begin{table}[htb]" in tex
|
||||
assert "\\caption{Сравнение скорости}" in tex
|
||||
assert "\\begin{tabularx}{\\textwidth}" in tex
|
||||
assert "\\textbf{1} & 0.027852 & 0.000285 \\\\" in tex
|
||||
|
||||
Reference in New Issue
Block a user