從標題中刪除標籤位不起作用

從標題中刪除標籤位不起作用

我正在製作一張海報,並試圖從海報中刪除標籤位——“圖 xx:”figure標題中刪除標籤位 - “圖 xx:”,如中所述https://stackoverflow.com/questions/3162234/getting-rid-of-the-figure-1-bit

部分程式碼如下:

\documentclass{sciposter}
\usepackage{lipsum}
\usepackage{epsfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{graphicx,url}
\usepackage{authblk}
\usepackage[portuges, brazil, english]{babel}   
\usepackage[utf8]{inputenc}
%\usepackage{fancybullets}
%\usepackage{caption}
\usepackage[labelformat=empty]{caption}

\newtheorem{Def}{Definition}



\title{Title1}


\author[1]{name1}
\affil[1]{Insti1}


\leftlogo[1]{Instilogo}
\rightlogo[1]{lablogo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Begin of Document


\begin{document}

\conference{Famous conference}



\maketitle

%%% Begin of Multicols-Enviroment
\begin{multicols}{3}

% Other irrelavent sections not shown here


\section*{Simulation Set-up}

\begin{itemize}
        \item Approach is validated using DNS simulations.
        
    \begin{figure}[H]
        \centering
        \includegraphics[width = \columnwidth]{Simulation.png}
        \caption{Numerical Set-up}
        
        
        %\label{fig:enter-label}
    \end{figure}
    
    
        \item Pt 2
    
\end{itemize}

% Other irrelavent sections not shown here


\bibliographystyle{plain}\bibliography{poster}

\end{multicols}

\end{document}

但令人驚訝的是,我收到瞭以下錯誤:在此輸入影像描述

您能建議一下可能出了什麼問題嗎?

非常感謝。

答案1

問題的直接原因是多列包裝及其multicols環境不允許使用tablefigure漂浮物。全角figure*table* 允許;然而,這與你無關,不是嗎?

但從更深層的意義上來說,錯誤在於:由於您無意讓圖表浮動在任何地方,因此您figure一開始就不應該使用環境。 (微弱的[H]放置說明符在這裡無法幫助您。)相反,您應該做的是(a)使用一個基本center環境(告訴 LaTeX 在圖形/標題組合的上方和下方插入一些空格)和(b)使用\captionof而不是\caption排版未編號的標題。

關於您的程式碼的另一點註解:您應該使用該選項width=\linewidth而不是width=\columnwidth,因為\includegraphics發生在itemize環境中,它會自動減少 的值\linewidth(但不會減少 的值\columnwidth)。

在此輸入影像描述

\documentclass[demo]{sciposter} % remove 'demo' option in real document

\usepackage{lipsum} % filler text

%%%\usepackage{epsfig} % is loaded automatically by 'graphixc'

\usepackage{amsmath,amssymb}
\usepackage{multicol} % for 'multicols' env.
\usepackage{graphicx,xurl} % use 'xurl', not 'url'
\usepackage{authblk}
\usepackage[portuges, brazil, english]{babel}  
 
%%%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc} % <-- new
\usepackage{enumitem} % <-- new

\usepackage{caption} % provides '\captionof' macro
\captionsetup{labelformat=empty, 
              skip=0.5\baselineskip} % <--- new

\title{Title1}
\author[1]{Name1}
\affil[1]{Insti1}

\leftlogo{Instilogo}
\rightlogo{lablogo}
\conference{Famous conference}

\begin{document}

\maketitle

\begin{multicols}{3}

% Other irrelevant sections not shown here

\section*{Simulation Set-up}

\begin{itemize}[left=0pt] % '[left=0pt]' is new

    \item Approach is validated using DNS simulations
        
    %%%\begin{figure}[H] % cannot use 'figure' float
    \begin{center}
        %%%\centering
        \includegraphics[width=\linewidth]{Simulation.png} % NOT '\columnwidth'
        %%%\caption{Numerical Set-up}
        \captionof{figure}{Numerical Setup}
        \label{fig:enter-label}
    %%%\end{figure}
    \end{center}

    \item Pt 2
    
    \item Pt 3
    
\end{itemize}

\lipsum[1-3] % filler text
    
% Other irrelevant sections not shown here

\end{multicols}

\end{document}

相關內容