使用子浮点的水平空间

使用子浮点的水平空间

我正在尝试将三个图形并排放置,问题是我不知道如何将我想要放置的图形之间的水平空间减小到零。

\begin{figure}[!ht]
\captionsetup[subfloat]{farskip=0pt,captionskip=0.5pt}
%\centering
\subfloat{
\includegraphics[width = 0.33\textwidth]{Analysis/Histogram/B0.pdf}}
\subfloat[][]{
\includegraphics[width = 0.33\textwidth]{Analysis/Histogram/B1.pdf}}
\subfloat[][]{
\includegraphics[width = 0.33\textwidth]{Analysis/Histogram/B2.pdf}}
\caption{Histogram of the Asymmetry for Detector B. The Asymmetries are corrected removing the data without polarization. The raw asymmetries are multiplied by $\frac{1}{P}$}
\label{fig:AsymmtriesB0B1B2}
\end{figure}

输出

在此处输入图片描述

该文件的序言是

\documentclass[11pt,a4paper,twoside,notitlepage,openright]{report}
%\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{subfig}

\usepackage{hyperref}
\hypersetup{hidelinks}
\usepackage{frontespizio}
\usepackage[english]{babel}
\usepackage{outlines}
\usepackage[output-decimal-marker={.}]{siunitx}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{slashed}
\usepackage{amssymb}

\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[toc,page]{appendix}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{wrapfig}
\usepackage{graphicx, wrapfig}
%\usepackage[rightcaption]{sidecap}
\usepackage{sidecap}
\usepackage{comment}

\tikzfeynmanset{every blob = {minimum size = 3mm}}
\newcommand{\commento}[1]{}
\newcommand{\Lagr}{\mathcal{L}}
%{\bfseries #1 \medskip}
\newcommand{\transv}{transverse asymmetry }
\pagestyle{headings}
\sidecaptionvpos{figure}{t}
%\setlength\intextsep{2pt}
\setlength{\textfloatsep}{10pt plus 1.0pt minus 1.0pt}
\author{Adriano del Vincio}

答案1

在此处输入图片描述

\documentclass{article}
\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}[!ht]
\captionsetup[subfloat]{farskip=0pt,captionskip=0.5pt}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-a.pdf}}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-b.pdf}}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-c.pdf}}
\caption{Histogram of the Asymmetry for Detector B. The Asymmetries are corrected removing the data without polarization. The raw asymmetries are multiplied by $\frac{1}{P}$}
\label{fig:AsymmtriesB0B1B2}
\end{figure}
\end{document}

它也适用于原始帖子中给出的完整序言: 在此处输入图片描述

\documentclass[11pt,a4paper,twoside,notitlepage,openright]{report}
%\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{subfig}

\usepackage{hyperref}
\hypersetup{hidelinks}
\usepackage{frontespizio}
\usepackage[english]{babel}
\usepackage{outlines}
\usepackage[output-decimal-marker={.}]{siunitx}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{slashed}
\usepackage{amssymb}

\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[toc,page]{appendix}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{wrapfig}
\usepackage{graphicx, wrapfig}
%\usepackage[rightcaption]{sidecap}
\usepackage{sidecap}
\usepackage{comment}

\tikzfeynmanset{every blob = {minimum size = 3mm}}
\newcommand{\commento}[1]{}
\newcommand{\Lagr}{\mathcal{L}}
%{\bfseries #1 \medskip}
\newcommand{\transv}{transverse asymmetry }
\pagestyle{headings}
\sidecaptionvpos{figure}{t}
%\setlength\intextsep{2pt}
\setlength{\textfloatsep}{10pt plus 1.0pt minus 1.0pt}
\author{Adriano del Vincio}
\begin{document}
\begin{figure}[!ht]
\captionsetup[subfloat]{farskip=0pt,captionskip=0.5pt}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-a.pdf}}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-b.pdf}}
\subfloat[][]{% <== remove extra space here
\includegraphics[width = 0.33\textwidth]{example-image-c.pdf}}
\caption{Histogram of the Asymmetry for Detector B. The Asymmetries are corrected removing the data without polarization. The raw asymmetries are multiplied by $\frac{1}{P}$}
\label{fig:AsymmtriesB0B1B2}
\end{figure}
\end{document}

答案2

请尝试以下操作:

\documentclass{article}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}% For dummy text. Don't use in a real document

\usepackage{subcaption}
\usepackage[demo]{graphicx}

\begin{document}
\begin{figure}[ht]
%\captionsetup[subfloat]{farskip=0pt,captionskip=0.5pt}
%\centering
\setkeys{Gin}{width = 0.33\textwidth}
\subfloat[][]{\includegraphics{Analysis/Histogram/B0.pdf}}\hfill%
\subfloat[][]{\includegraphics{Analysis/Histogram/B1.pdf}}\hfill%
\subfloat[][]{\includegraphics{Analysis/Histogram/B2.pdf}}
\caption{Histogram of the Asymmetry for Detector B. The Asymmetries are corrected removing the data without polarization. The raw asymmetries are multiplied by $\frac{1}{P}$}
\label{fig:AsymmtriesB0B1B2}
\end{figure}
\end{document}

在此处输入图片描述

相关内容