我的海报中的图形编号错误。我该如何修复?
辅助文件和主要代码可以在以下链接中找到:
https://www.overleaf.com/read/bskjppttymwm
这是我的代码:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Template for IAHR YPN Congress
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[landscape,a0paper,fontscale=0.285]{baposter} % Adjust the font scale/size here
\usepackage{graphicx} % Required for including images
\graphicspath{{figures/}} % Directory in which figures are stored
\usepackage{hyperref}
\hypersetup{colorlinks, citecolor=blue, filecolor=blue, linkcolor=blue, urlcolor=blue}
\usepackage{amsmath} % For typesetting math
\usepackage{amssymb} % Adds new symbols to be used in math mode
\usepackage{booktabs} % Top and bottom rules for tables
\usepackage{enumitem} % Used to reduce itemize/enumerate spacing
\usepackage{palatino} % Use the Palatino font
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{multicol} % Required for multiple columns
\setlength{\columnsep}{1.5em} % Slightly increase the space between columns
\setlength{\columnseprule}{0mm} % No horizontal rule between columns
\usepackage{tikz} % Required for flow chart
\usetikzlibrary{shapes,arrows} % Tikz libraries required for the flow chart in the template
\newcommand{\compresslist}{ % Define a command to reduce spacing within itemize/enumerate environments, this is used right after \begin{itemize} or \begin{enumerate}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}
\definecolor{lightblue}{rgb}{0.145,0.6666,1} % Defines the color used for content box headers
\begin{document}
\begin{poster}
{
headerborder=closed, % Adds a border around the header of content boxes
colspacing=1em, % Column spacing
bgColorOne=white, % Background color for the gradient on the left side of the poster
bgColorTwo=white, % Background color for the gradient on the right side of the poster
borderColor=lightblue, % Border color
headerColorOne=black, % Background color for the header in the content boxes (left side)
headerColorTwo=lightblue, % Background color for the header in the content boxes (right side)
headerFontColor=white, % Text color for the header text in the content boxes
boxColorOne=white, % Background color of the content boxes
textborder=roundedleft, % Format of the border around content boxes, can be: none, bars, coils, triangles, rectangle, rounded, roundedsmall, roundedright or faded
eyecatcher=true, % Set to false for ignoring the left logo in the title and move the title left
headerheight=0.1\textheight, % Height of the header
headershape=roundedright, % Specify the rounded corner in the content box headers, can be: rectangle, small-rounded, roundedright, roundedleft or rounded
headerfont=\Large\bf\textsc, % Large, bold and sans serif font in the headers of content boxes
%textfont={\setlength{\parindent}{1.5em}}, % Uncomment for paragraph indentation
linewidth=2pt % Width of the border lines around content boxes
}
%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------
{\includegraphics[height=6em]{kaust-logo-3.png}} % First university/lab logo on the left
{\bf\textsc{Discovery of Hidden Control Variables
on Non-Linear Biological Systems}\vspace{0.5em}} % Poster title
{\textsc{Juan Munoz, Subash Balsamy, Juan Bernal, Ali Balubaid, David Gomez, Narsis Kiani \& Jesper Tegner}} % Author names and institution
{\includegraphics[height=9em]{karolinska-institutet.png}} % Second university/lab logo on the right
%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------
\headerbox{Abstract}{name=abstract,column=0,row=0}{
How to construct robust dynamical models for biological systems constitute a grand challenge for the systems biology community that is still unresolved:
\begin{itemize}\compresslist
\item Several putative model architectures could be formulated for given biological systems,
\item parameter space is massive for each model,
\item hidden variables exist controlling the system, but we have no data for their temporal evolution.
\end{itemize}
\vspace{0.3em}
\textbf{Our method HINNDY:}
\begin{itemize}\compresslist
\item using normal forms as universal, scalable, and minimal dynamical building blocks,
\item Samples observations in the vicinity of a slow manifold.
\end{itemize}
\textbf{Results:}
We effectively discover the underlying equations and unobserved hidden variables from data generated from the toggle switch, genetic oscillator, and Waddington landscape model.
\vspace{0.3em}
\textbf{Keywords:} Data-Driven Prediction, System Identification, Hidden Variables
\vspace{0.3em} % When there are two boxes, some whitespace may need to be added if the one on the right has more content
}
%----------------------------------------------------------------------------------------
% INTRODUCTION
%----------------------------------------------------------------------------------------
%\headerbox{Results 1: Validation}{name=results,column=2,span=2,row=0}{
\headerbox{Materials \& Methods}{name=introduction, column=1, row=0, bottomaligned=method, above=references}{
% \headerbox{Materials \& Methods}{name=method, column=1, row=0, above=references}{
\begin{center}
\includegraphics[width=1\linewidth]{Figure sub1.2 HINNDy.png}
\captionof{figure}{Method}
\end{center}
}
%----------------------------------------------------------------------------------------
% RESULTS 1
%----------------------------------------------------------------------------------------
\headerbox{Results 1: Validation}{name=results,column=2,span=2,row=0}{
\begin{center}
\includegraphics[width=0.8\linewidth]{Fig2.1.V2.png}
\captionof{figure}{Discovered qualitatively behavior of hidden variables using normal form }
\end{center}
}
%----------------------------------------------------------------------------------------
% REFERENCES
%----------------------------------------------------------------------------------------
\headerbox{References}{name=references,column=0,above=bottom}{
\renewcommand{\section}[2]{\vskip 0.05em} % Get rid of the default "References" section title
\nocite{*} % Insert publications even if they are not cited in the poster
\small{ % Reduce the font size in this block
\bibliographystyle{unsrt}
\bibliography{sample} % Use sample.bib as the bibliography file
}}
%----------------------------------------------------------------------------------------
% FUTURE RESEARCH
%----------------------------------------------------------------------------------------
\headerbox{Future Research}{name=futureresearch,column=1,span=2,aligned=references,above=bottom}{ % This block is as tall as the references block
We will develop a data-driven workflow using machine learning (ML) techniques. We believe that constraining a ML predictive model using normal forms is the first step toward a more data-driven workflow to formulate systems biology models.
}
%----------------------------------------------------------------------------------------
% CONTACT INFORMATION
%----------------------------------------------------------------------------------------
\headerbox{Contact Information}{name=contact,column=3,aligned=references,above=bottom}{ % This block is as tall as the references block
\begin{description}\compresslist
\item[Email]\url{[email protected]}
\item[Whatsapp] +966 545754957
\end{description}
}
%----------------------------------------------------------------------------------------
% CONCLUSION
%----------------------------------------------------------------------------------------
\headerbox{Results 2: Discovery for unknown systems equations}{name=conclusion,column=2,span=2,row=0,below=results,above=references}{
\begin{center}
\includegraphics[width=0.65\linewidth]{Fig2.2 HINNDy.png}
\captionof{figure}{Figure caption}
\end{center}
}
%----------------------------------------------------------------------------------------
% MATERIALS AND METHODS
%----------------------------------------------------------------------------------------
\headerbox{Introduction}{name=method,column=0,below=abstract,bottomaligned=conclusion}{ % This block's bottom aligns with the bottom of the conclusion block
\begin{center}
\includegraphics[width=1\linewidth]{FigApplicationPoster.png}
\captionof{figure}{Applications}
\end{center}
}
%----------------------------------------------------------------------------------------
% RESULTS 2
%----------------------------------------------------------------------------------------
% \headerbox{}{name=results2,column=1,below=abstract,bottomaligned=conclusion}{ % This block's bottom aligns with the bottom of the conclusion block
% \begin{center}
% \includegraphics[width=1\linewidth]{Methods2.2.png}
% \captionof{figure}{Applications}
% \end{center}
% }
%----------------------------------------------------------------------------------------
\end{poster}
\end{document}
答案1
作为一般原则*,图是根据它们在源代码中出现的顺序进行编号的。这里,Introduction 块(名称有点令人困惑method
)是源代码中的最后一个块,因此它获得最高的图号(这里是 4)。所以解决方案是将该块上移到第一个包含编号图的块,然后它将获得数字 1。
请注意,这可能会导致设置对齐方式出现问题,因为该键bottomaligned
仅接受已定义块的值。但是,这个属性似乎是对称的,这意味着您只需在要对齐的两个块中的第二个块中设置它,并使用第一个块的名称。
经过修改的 MWE,将介绍块上移,重命名为“介绍”,并将关键bottomaligned
移动到“结果 2”块。此外,我使用了demo
graphicx 包的选项,这样我就可以运行 MWE 而无需下载图像文件。
*这并不总是正确的,命令参数和环境内容可以暂时存储并在稍后处理(或在后续运行中更早处理),中间的代码会更改图形计数器。例如,可以将较大的浮动图形向下移动一页或多页,中间的较小图形可以放在当前页面上。但是,在许多情况下,您可以假设从上到下进行处理。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Template for IAHR YPN Congress
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\PassOptionsToPackage{demo}{graphicx}
\documentclass[landscape,a0paper,fontscale=0.285]{baposter} % Adjust the font scale/size here
%\usepackage[demo]{graphicx} % Required for including images
%\graphicspath{{figures/}} % Directory in which figures are stored
\usepackage{hyperref}
\hypersetup{colorlinks, citecolor=blue, filecolor=blue, linkcolor=blue, urlcolor=blue}
\usepackage{amsmath} % For typesetting math
\usepackage{amssymb} % Adds new symbols to be used in math mode
\usepackage{booktabs} % Top and bottom rules for tables
\usepackage{enumitem} % Used to reduce itemize/enumerate spacing
\usepackage{palatino} % Use the Palatino font
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{multicol} % Required for multiple columns
\setlength{\columnsep}{1.5em} % Slightly increase the space between columns
\setlength{\columnseprule}{0mm} % No horizontal rule between columns
\usepackage{tikz} % Required for flow chart
\usetikzlibrary{shapes,arrows} % Tikz libraries required for the flow chart in the template
\newcommand{\compresslist}{ % Define a command to reduce spacing within itemize/enumerate environments, this is used right after \begin{itemize} or \begin{enumerate}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}
\definecolor{lightblue}{rgb}{0.145,0.6666,1} % Defines the color used for content box headers
\begin{document}
\begin{poster}
{
headerborder=closed, % Adds a border around the header of content boxes
colspacing=1em, % Column spacing
bgColorOne=white, % Background color for the gradient on the left side of the poster
bgColorTwo=white, % Background color for the gradient on the right side of the poster
borderColor=lightblue, % Border color
headerColorOne=black, % Background color for the header in the content boxes (left side)
headerColorTwo=lightblue, % Background color for the header in the content boxes (right side)
headerFontColor=white, % Text color for the header text in the content boxes
boxColorOne=white, % Background color of the content boxes
textborder=roundedleft, % Format of the border around content boxes, can be: none, bars, coils, triangles, rectangle, rounded, roundedsmall, roundedright or faded
eyecatcher=true, % Set to false for ignoring the left logo in the title and move the title left
headerheight=0.1\textheight, % Height of the header
headershape=roundedright, % Specify the rounded corner in the content box headers, can be: rectangle, small-rounded, roundedright, roundedleft or rounded
headerfont=\Large\bf\textsc, % Large, bold and sans serif font in the headers of content boxes
%textfont={\setlength{\parindent}{1.5em}}, % Uncomment for paragraph indentation
linewidth=2pt % Width of the border lines around content boxes
}
%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------
{\includegraphics[height=6em]{kaust-logo-3.png}} % First university/lab logo on the left
{\bf\textsc{Discovery of Hidden Control Variables
on Non-Linear Biological Systems}\vspace{0.5em}} % Poster title
{\textsc{Juan Munoz, Subash Balsamy, Juan Bernal, Ali Balubaid, David Gomez, Narsis Kiani \& Jesper Tegner}} % Author names and institution
{\includegraphics[height=9em]{karolinska-institutet.png}} % Second university/lab logo on the right
%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------
\headerbox{Abstract}{name=abstract,column=0,row=0}{
How to construct robust dynamical models for biological systems constitute a grand challenge for the systems biology community that is still unresolved:
\begin{itemize}\compresslist
\item Several putative model architectures could be formulated for given biological systems,
\item parameter space is massive for each model,
\item hidden variables exist controlling the system, but we have no data for their temporal evolution.
\end{itemize}
\vspace{0.3em}
\textbf{Our method HINNDY:}
\begin{itemize}\compresslist
\item using normal forms as universal, scalable, and minimal dynamical building blocks,
\item Samples observations in the vicinity of a slow manifold.
\end{itemize}
\textbf{Results:}
We effectively discover the underlying equations and unobserved hidden variables from data generated from the toggle switch, genetic oscillator, and Waddington landscape model.
\vspace{0.3em}
\textbf{Keywords:} Data-Driven Prediction, System Identification, Hidden Variables
\vspace{0.3em} % When there are two boxes, some whitespace may need to be added if the one on the right has more content
}
%----------------------------------------------------------------------------------------
% INTRODUCTION
%----------------------------------------------------------------------------------------
\headerbox{Introduction}{name=introduction,column=0,below=abstract}{ % This block's bottom aligns with the bottom of the conclusion block
\begin{center}
\includegraphics[width=1\linewidth]{FigApplicationPoster.png}
\captionof{figure}{Applications}
\end{center}
}
%----------------------------------------------------------------------------------------
% MATERIALS AND METHODS
%----------------------------------------------------------------------------------------
\headerbox{Materials \& Methods}{name=method, column=1, row=0}{
\begin{center}
\includegraphics[width=1\linewidth]{Figure sub1.2 HINNDy.png}
\captionof{figure}{Method}
\end{center}
}
%----------------------------------------------------------------------------------------
% RESULTS 1
%----------------------------------------------------------------------------------------
\headerbox{Results 1: Validation}{name=results,column=2,span=2,row=0}{
\begin{center}
\includegraphics[width=0.8\linewidth]{Fig2.1.V2.png}
\captionof{figure}{Discovered qualitatively behavior of hidden variables using normal form }
\end{center}
}
%----------------------------------------------------------------------------------------
% REFERENCES
%----------------------------------------------------------------------------------------
\headerbox{References}{name=references,column=0,above=bottom}{
\renewcommand{\section}[2]{\vskip 0.05em} % Get rid of the default "References" section title
\nocite{*} % Insert publications even if they are not cited in the poster
\small{ % Reduce the font size in this block
\bibliographystyle{unsrt}
\bibliography{sample} % Use sample.bib as the bibliography file
}}
%----------------------------------------------------------------------------------------
% FUTURE RESEARCH
%----------------------------------------------------------------------------------------
\headerbox{Future Research}{name=futureresearch,column=1,span=2,aligned=references,above=bottom}{ % This block is as tall as the references block
We will develop a data-driven workflow using machine learning (ML) techniques. We believe that constraining a ML predictive model using normal forms is the first step toward a more data-driven workflow to formulate systems biology models.
}
%----------------------------------------------------------------------------------------
% CONTACT INFORMATION
%----------------------------------------------------------------------------------------
\headerbox{Contact Information}{name=contact,column=3,aligned=references,above=bottom}{ % This block is as tall as the references block
\begin{description}\compresslist
\item[Email]\url{[email protected]}
\item[Whatsapp] +966 545754957
\end{description}
}
%----------------------------------------------------------------------------------------
% CONCLUSION
%----------------------------------------------------------------------------------------
\headerbox{Results 2: Discovery for unknown systems equations}{name=conclusion,column=2,span=2,row=0,below=results,above=references,bottomaligned=introduction}{
\begin{center}
\includegraphics[width=0.65\linewidth]{Fig2.2 HINNDy.png}
\captionof{figure}{Figure caption}
\end{center}
}
%----------------------------------------------------------------------------------------
% RESULTS 2
%----------------------------------------------------------------------------------------
% \headerbox{}{name=results2,column=1,below=abstract,bottomaligned=conclusion}{ % This block's bottom aligns with the bottom of the conclusion block
% \begin{center}
% \includegraphics[width=1\linewidth]{Methods2.2.png}
% \captionof{figure}{Applications}
% \end{center}
% }
%----------------------------------------------------------------------------------------
\end{poster}
\end{document}
结果:
请注意,布局显然不符合应有的样子,但它应该能够说明一般原则。
话虽如此,海报与论文相比是一种非常不同的媒介。虽然在书面文本中,您可能会从不同的地方多次引用某个图形,但在海报中,通常图形是为了说明海报中包含图形的部分。很少从海报上的文字中引用图形,或者如果您引用了,则发生在海报展示期间向观众解释海报时,在这种情况下,您可以亲自指出该图形(对于在线海报展示来说可能有点困难,但通常无论如何都是可行的)。因此,在海报上,对图形或表格进行编号可以视为冗余,您可以将“图 1”部分从标题中完全删除。
或者,由于您明确定义了海报的布局并且不使用\label
和\ref
,因此您可以手动对图形进行编号,即
\includegraphics{somefigure}\\
\textbf{Figure 2:} Some caption
由于海报上的图形数量很少并且您知道正确的顺序,因此这省去了需要移动源代码来强制编号的麻烦。