使用一个 beamerposter 主题格式化参考书目时出现的问题

使用一个 beamerposter 主题格式化参考书目时出现的问题

我正在使用 beamerposter 主题beamerthemeZH.sty来生成海报。该主题是从项目中下载的latex-beamposter在 GitHub 上。主题beamerthemeZH.sty是方向example/03/。我想知道是否有人知道这个 beamerposter 主题或以前使用过它。我的问题是,当我使用它bibtex来格式化参考书目时,bib 项目的信息对我来说太多了,而且我没有找到合适的 bst 样式。然后我尝试使用它biblatex来格式化参考书目。这是我的 MWE:

\documentclass{beamer}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
\mode<presentation>{\usetheme{ZH}}
\usepackage{chemformula}
\usepackage[utf8]{inputenc}
\usepackage[german, english]{babel} % required for rendering German special characters
\usepackage{siunitx} %pretty measurement unit rendering
\usepackage{hyperref} %enable hyperlink for urls
\usepackage{ragged2e}
\usepackage[font=scriptsize,justification=justified]{caption}
\usepackage{array,booktabs,tabularx}
\newcolumntype{Z}{>{\centering\arraybackslash}X} % centered tabularx columns
\sisetup{per=frac,fraction=sfrac}
%%%Lines form here and before \title is added by myself%%%
\usepackage[backend=bibtex,sorting=none,hyperref=true,style=nature,isbn=false,doi=false,eprint=false,url=false,]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Bringa2012_NL.12.3351,
  author    = {Bringa, E. M. and Monk, J. D. and Caro, A. and Misra, A. and Zepeda-Ruiz, L. and Duchaineau, M. and Abraham, F. and Nastasi, M. and Picraux, S. T. and Wang, Y. Q. and Farkas, D.},
  title     = {Are Nanoporous Materials Radiation Resistant?},
  journal   = {Nano Letters},
  year      = {2012},
  volume    = {12},
  number    = {7},
  pages     = {3351-3355},
  note      = {PMID: 21651306},
  doi       = {10.1021/nl201383u},
  eprint    = {http://dx.doi.org/10.1021/nl201383u},
  file      = {:Are Nanoporous Materials Radiation Resistant_Nano Lett., 2012 12 (7) pp 3351–3355.pdf:PDF},
  groups    = {Nanowire irradiation, simulation},
  owner     = {Wenqiang},
  timestamp = {2014.09.22},
  url       = {http://dx.doi.org/10.1021/nl201383u},
}
@Article{Plimpton1995_JoCP.117.1,
  author    = {Steve Plimpton},
  title     = {Fast Parallel Algorithms for Short-Range Molecular Dynamics},
  journal   = {Journal of Computational Physics},
  year      = {1995},
  volume    = {117},
  number    = {1},
  pages     = {1 - 19},
  doi       = {http://dx.doi.org/10.1006/jcph.1995.1039},
  issn      = {0021-9991},
  owner     = {Wenqiang},
  review    = {LAMMPS original paper},
  timestamp = {2016.07.14},
  url       = {http://www.sciencedirect.com/science/article/pii/S002199918571039X},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\title{\huge Test}
\author{Test}
\institute[]{\LaTeX}
\date{\today}
% edit this depending on how tall your header is. We should make this scaling automatic :-/
\newlength{\columnheight}
\setlength{\columnheight}{104cm}
\begin{document}
\begin{frame}
\begin{columns}
    \begin{column}{.43\textwidth}
        \begin{beamercolorbox}[center]{postercolumn}
            \begin{minipage}{.98\textwidth}  % tweaks the width, makes a new \textwidth
                \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously
                    \begin{myblock}{}
                      cite here\cite{Bringa2012_NL.12.3351}\cite{Plimpton1995_JoCP.117.1}
                    \end{myblock}\vfill
        }\end{minipage}\end{beamercolorbox}
    \end{column}
    \begin{column}{.57\textwidth}
        \begin{beamercolorbox}[center]{postercolumn}
            \begin{minipage}{.98\textwidth} % tweaks the width, makes a new \textwidth
                \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously
                    \begin{myblock}{References}
                        \footnotesize
                        \printbibliography
                \end{myblock}\vfill
        }\end{minipage}\end{beamercolorbox}
    \end{column}
\end{columns}
\end{frame}
\end{document}

但只有第一个 bib 项显示序列号1,后面的 bib 项前没有编号。pdf 文件 你能告诉我如何解决这个问题吗?任何帮助都将不胜感激!

答案1

问题是由 beamertheme 添加到环境定义中的 引起的\justifyZH如果block将其删除,参考书目将按编号进行编号:

\documentclass{beamer}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
\usetheme{ZH}

\setbeamertemplate{block begin}{
    \setlength{\mylength}{\textwidth+2ex}%
    \vskip2ex
    \begin{beamercolorbox}[ht=2.8ex,dp=2ex, wd=\mylength, center,rounded=false,shadow=false,leftskip=1cm,colsep*=0ex]{block title}%
        \usebeamerfont*{block title}\centering \insertblocktitle
    \end{beamercolorbox}\vskip-9pt%
    {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5ex}}%
    \usebeamerfont{block body}%
    \begin{beamercolorbox}[rounded=false,shadow=false,center,wd=\textwidth,]{block body}%
        \ifbeamercolorempty[bg]{block body}\vbox{}%
        \begin{minipage}{0.96\textwidth}\vbox{}%
%       \justify
        }

\usepackage[backend=biber,sorting=none,hyperref=true,style=nature,isbn=false,doi=false,eprint=false,url=false,]{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Bringa2012_NL.12.3351,
  author    = {Bringa, E. M. and Monk, J. D. and Caro, A. and Misra, A. and Zepeda-Ruiz, L. and Duchaineau, M. and Abraham, F. and Nastasi, M. and Picraux, S. T. and Wang, Y. Q. and Farkas, D.},
  title     = {Are Nanoporous Materials Radiation Resistant?},
  journal   = {Nano Letters},
  year      = {2012},
  volume    = {12},
  number    = {7},
  pages     = {3351-3355},
  note      = {PMID: 21651306},
  doi       = {10.1021/nl201383u},
  eprint    = {http://dx.doi.org/10.1021/nl201383u},
  file      = {:Are Nanoporous Materials Radiation Resistant_Nano Lett., 2012 12 (7) pp 3351–3355.pdf:PDF},
  groups    = {Nanowire irradiation, simulation},
  owner     = {Wenqiang},
  timestamp = {2014.09.22},
  url       = {http://dx.doi.org/10.1021/nl201383u},
}
@Article{Plimpton1995_JoCP.117.1,
  author    = {Steve Plimpton},
  title     = {Fast Parallel Algorithms for Short-Range Molecular Dynamics},
  journal   = {Journal of Computational Physics},
  year      = {1995},
  volume    = {117},
  number    = {1},
  pages     = {1 - 19},
  doi       = {http://dx.doi.org/10.1006/jcph.1995.1039},
  issn      = {0021-9991},
  owner     = {Wenqiang},
  review    = {LAMMPS original paper},
  timestamp = {2016.07.14},
  url       = {http://www.sciencedirect.com/science/article/pii/S002199918571039X},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\title{\huge Test}
\author{Test}
\institute[]{\LaTeX}
\date{\today}

\begin{document}
\begin{frame}

\cite{Bringa2012_NL.12.3351}\cite{Plimpton1995_JoCP.117.1}

\begin{block}{References}
    \printbibliography
\end{block}

\end{frame}
\end{document}

在此处输入图片描述

相关内容