![使用 scrbook 以“此处肯定”设置浮动对象垂直间距](https://linux22.com/image/399548/%E4%BD%BF%E7%94%A8%20scrbook%20%E4%BB%A5%E2%80%9C%E6%AD%A4%E5%A4%84%E8%82%AF%E5%AE%9A%E2%80%9D%E8%AE%BE%E7%BD%AE%E6%B5%AE%E5%8A%A8%E5%AF%B9%E8%B1%A1%E5%9E%82%E7%9B%B4%E9%97%B4%E8%B7%9D.png)
浮动对象前的垂直间隙太小,浮动对象后的垂直间隙太大。对于此示例,我曾经在此处设置了明确的定位,但对于其他每个浮动位置设置,间隙都是类似的。
我试过:
\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}