更新 flowfram 包后,Flowfram 不会从一个 flowframe 转换到另一个 flowframe

更新 flowfram 包后,Flowfram 不会从一个 flowframe 转换到另一个 flowframe

今天,由于另一个问题,我更新了我的 TeX 发行版,从 2013 年 9 月左右的 TL13 发行版更新到 TL14 发行版(最新版本)。

更新后,flowfram忽略了我的一个\newflowframe声明,导致flowfram继续使用模仿早期声明的三列布局。这似乎只发生在我的参考书目中,使用natbib

以下代码:

\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{flowfram}
\usepackage{lipsum}
\usepackage{kantlipsum}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[square, numbers, sort]{natbib}
\usepackage{hyperref}

\newflowframe[1,2]{\dimexpr\textwidth/3-2\columnsep/3}{\textheight}{0pt}{0pt}
\newflowframe[1,2]{\dimexpr\textwidth/3-2\columnsep/3}{\textheight}{\dimexpr\textwidth/3-2\columnsep/3+\columnsep}{0pt}
\newflowframe[1,2]{\dimexpr\textwidth/3-2\columnsep/3}{\textheight}{\dimexpr2\textwidth/3-4\columnsep/3+2\columnsep}{0pt}

\newflowframe[3]{\textwidth}{\textheight}{0pt}{0pt}% or \newflowframe*[>2]{\textwidth}{\textheight}{0pt}{0pt}

\begin{document}
\tolerance=4000

When considering the EoL phase, it's desirable to initially consider the shortest possible cycles of energy, namely reuse, and in closing consider the largest possible cycle, which would be recycling. Case studies in the UK have mapped the waste problem to comprise as much as 15 million discarded mobile phones each year\citep{website:fonebak}. Large scale reuse brings problems, however. A variety of problems arise when considering reuse of mobile phones, such as their low residual value, their small size or the complexity of channels through which they are distributed\citep{ends1997}. Furthermore, a case study reveals most private customers prefer to give mobile phones away\citep{ends2000}, making the previously mentioned legislation of EPR a considerably hard task to achieve. Currently, manufacturers, retails and mobile phone operators. Figures from Foneback\citep{website:fonebak} suggest this to be inadequate. One suggestion would be to promote horizontal collaboration between competitors\citep{canning2006}. Coercion among competitors puts forward a problem in the same fashion as that of renewable energy in the industry sector, namely the problem of managing and putting constraints on collective goods: to promote a change, everybody has to invest into renewable energy. So even though competitors would want to make a change, that change hits a threshhold. A consequence of such constraints is a hit to the economy as we know it now, which inherently forces a gradual change. One recommendation would be to develop a mathematical model, determining how steep this gradual change would have to be to compensate for the need for change currently. Removing a such barrier would be vital to success of reuse practices as we know them now.

\lipsum[1-8]
\cleardoublepage
\small
\bibliographystyle{unsrtnat}
\bibliography{paper}
\end{document}

通过一些 bib 条目,它实际上排版了一个参考书目:

@misc{website:fonebak,
  title = {Fonebak - Facts},
  url = {http://www.fonebak.com/},
  note = {(accessed 28-9-2014)},
  year = {2014}
}

@REPORT{ends1997,
    author = {Environmental Data Services (ENDS)},
    title = {Take back schemes launched for mobile phones},
    issue = {264},
    year = {1997},
    month = {January}
}

@REPORT{ends2000,
    author = {Environmental Data Services (ENDS)},
    title = {Compliance scheme envisaged for mobile phone recycling},
    issue = {304},
    year = {2000},
    month = {May}
}

@ARTICLE{canning2006,
    author = {Louise Canning},
    title = {Rethinking market connections: mobile phone recovery, reuse and recycling in the {UK}},
    journal = {Journal of Business \& Industrial Marketing},
    volume = {21},
    issue = {5},
    year = {2006},
    pages = {320--329}
}

这两个文件也可以通过以下链接获取:(压缩包

先前声明的单列布局 flowframe( \newflowframe[3]{\textwidth}{\textheight}{0pt}{0pt}% or \newflowframe*[>2]{\textwidth}{\textheight}{0pt}{0pt}) 似乎被忽略了。相反,它继续排版三列布局:

http://i.imgur.com/Y2ZKF8G.png

以前,输出只是遵循我声明的布局,如下所示(来自主文档 - 我显然无法再模仿结果):

http://i.imgur.com/8UWfRU8.png?1

答案1

这是错误修复的一个不良副作用,需要修复列表环境跨越两个不同宽度的流框架时出现的问题。下面是一个说明该问题的简单示例:

\documentclass{article} 

\usepackage{flowfram}
\usepackage{lipsum}

\twocolumn[1,2]
\onecolumn[>2]

\begin{document}

\lipsum[1-10]
\clearpage
\lipsum[1]

\begin{itemize}
 \item \lipsum*[2]
\end{itemize}

\end{document}

该问题仅影响列表环境,由于参考书目位于这些环境之一中,因此这就是文档中出现问题的原因。您可以通过\linewidth\columnwidth在列表环境之前插入来修复它。例如:

\documentclass{article} 

\usepackage{flowfram}
\usepackage{lipsum}

\twocolumn[1,2]
\onecolumn[>2]

\begin{document}

\lipsum[1-10]
\clearpage
\lipsum[1]

\linewidth\columnwidth

\begin{itemize}
 \item \lipsum*[2]
\end{itemize}

\end{document}

对于您的示例文档,请将其放在\linewidth\columnwidth前面\bibliography

编辑:我已修复此错误并将版本 1.17 上传至 CTAN。可能需要几天时间才能进入发行版。

相关内容