Fixed top margin of algo float

This commit is contained in:
2018-05-09 12:29:40 +02:00
parent 7590b9642c
commit a7be6b8d62
2 changed files with 21 additions and 3 deletions

View File

@@ -81,9 +81,12 @@
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{bm} % bold math symbols with \bm
%\usepackage{showframe}
% replacement for the SI package
\newcommand{\SI}[2]{\ensuremath{#1}\text{\,#2}}
@@ -173,8 +176,23 @@
}%
\ps@headings%
}
\newcommand\fs@spaceruled{%
\def\@fs@cfont{\bfseries}
% \let\@fs@capt\floatc@ruled
\def\@fs@pre{\vspace*{5pt}\hrule height.8pt depth0pt \kern2pt}%
\def\@fs@post{\kern2pt\hrule\relax}%
\def\@fs@mid{\kern2pt\hrule\kern2pt}%
\let\@fs@iftopcapt\iftrue}
\floatstyle{spaceruled}
\restylefloat{algorithm}
\captionsetup[algorithm]{labelfont=bf,textfont=normalfont,singlelinecheck=false}
\makeatother
%\confheader{2017 International Conference on Indoor Positioning and Indoor Navigation (IPIN), 18-21 September 2017, Sapporo, Japan}