浮动对象前的垂直间隙太小,浮动对象后的垂直间隙太大。对于此示例,我曾经在此处设置了明确的定位,但对于其他每个浮动位置设置,间隙都是类似的。
我试过:
\setlength\intextsep {12pt plus 2pt minus 2pt}
但没有成功。
有什么办法可以解决这个问题吗?
希望你想看到这样的东西...这是我能提供的最好的 MWE,如果它是 MWE 的话。
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,oneside,serbian,BCOR=7.5mm,headings=optiontohead,twoside=false,listof=totoc]{scrbook}
\usepackage{lmodern}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{setspace}
\onehalfspacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[autooneside=false,automark,headsepline]{scrlayer-scrpage}
\usepackage[unicode]{hyperref}
\usepackage{notoccite}
\clearpairofpagestyles
\ihead{\leftmark}
\ohead{\ifstr{\leftmark}{\rightmark}{}{\rightmark}}
\ofoot*{\pagemark}
\cfoot*{}
\def\nompreamble{\addcontentsline{toc}{chapter}{\nomname}\markboth{\nomname}{\nomname}}
\RequirePackage{ifthen}
\setlength{\parindent}{0.5cm}
\makeatother
\usepackage{babel}
\begin{document}
\mainmatter
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla
\begin{table}[H]
\begin{centering}
\begin{tabular}{|c|c|c|}
\hline
aaaaaa & aaaaaa & aaaaaa\tabularnewline
\hline
aaaaaa & aaaaaa & aaaaaa\tabularnewline
\hline
aaaaaa & aaaaaa & aaaaaa\tabularnewline
\hline
\end{tabular}
\par\end{centering}
\caption{bla bla bla}
\end{table}
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla
\end{document}