我对软件包的交互有疑问afterpage
和cuted
在文档末尾附近的双列模式下 - 或者在其他空白文档中cuted
的 环境中。strip
afterpage
\afterpage
提供允许我在下一页执行一些代码的 命令。cuted
strip
提供可以暂时从双列模式切换到单列模式的环境。
在我看来,如果我使用\afterpage
延迟环境布局strip
,在某些情况下,该环境根本就不会布局。特别是,这种情况似乎发生在文档末尾附近。
我认为这是由以下问题引起的cuted
:strip
如果环境出现在其他空白文档中,则可能无法布局。
我想知道如何解决这个问题,即如何获得预期的行为:strip
在文档的下一页(即最后一页)上正确布局。(我需要这个figureSeries
我正在处理的包)。
下面,我将介绍几个表现出不同行为的 MWE,这可能有助于解决这个问题。
1. 问题案例
\afterpage
用作文档中的唯一命令。它包含一个strip
环境。使用 执行此程序pdflatex
不会产生任何输出文档。
1.1. MWE 代码
\documentclass[twocolumn]{article}%
\usepackage{cuted}%
\usepackage{afterpage}%
\begin{document}%
\afterpage{%
\begin{strip}%
A B C%
\end{strip}%
}%
\end{document}%
1.2. 生成的日志文件pdflatex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2015.5.1) 13 JUL 2015 08:48
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty
Package: lipsum 2011/04/14 v1.2 150 paragraphs of Lorem Ipsum dummy text
\c@lips@count=\count87
)
(/usr/share/texlive/texmf-dist/tex/latex/sttools/cuted.sty
Package: cuted 2012/10/04 v1.5 Mixing onecolumn and twocolumn modes
\At@ViperColsBreak=\toks14
\v@aaa=\box26
\v@ccc=\box27
\lastskip@a=\skip43
\lastskip@b=\skip44
\lastskip@d=\skip45
\lastbox@a=\box28
\stripsep=\skip46
\@viper=\box29
\viper@penalty=\count88
\hold@viper=\box30
\ht@viper=\dimen103
) (./afterpage.sty
Package: afterpage 2014/10/28 v1.08 After-Page Package (DPC)
\AP@output=\toks15
\AP@partial=\box31
\AP@footins=\box32
)
(./test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
Extra height:0.0pt when 0.0pt
(2)Left:0.0pt Right:0.0pt Output:0.0pt
- LAST -
Left:0.0pt
Right:0.0pt
Output:0.0pt
(./test.aux) )
Here is how much of TeX's memory you used:
435 strings out of 493304
5019 string characters out of 6139872
144451 words of memory out of 5000000
3970 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
957 hyphenation exceptions out of 8191
23i,4n,19p,151b,52s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
2. 没有strip
,afterpage
在文档末尾附近起作用
该错误肯定与与 的strip
环境有关,因为如果没有,则在空白文档中运行某些内容并产生一页输出。cuted
\afterpage
strip
\afterpage
2.1. MWE 代码(无strip
)
\documentclass[twocolumn]{article}%
\usepackage{afterpage}%
\begin{document}%
\afterpage{%
A B C%
}%
\end{document}%
3. 问题案例\afterpage
strip
有趣的是,在空白文档中拥有环境也不会产生任何输出。
3.1. MWE 代码(无\afterpage
)
\documentclass[twocolumn]{article}%
\usepackage{cuted}%
\begin{document}%
\begin{strip}%
A B C
\end{strip}%
\end{document}%
3.2. 生成的日志文件pdflatex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2015.5.1) 13 JUL 2015 09:36
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/sttools/cuted.sty
Package: cuted 2012/10/04 v1.5 Mixing onecolumn and twocolumn modes
\At@ViperColsBreak=\toks14
\v@aaa=\box26
\v@ccc=\box27
\lastskip@a=\skip43
\lastskip@b=\skip44
\lastskip@d=\skip45
\lastbox@a=\box28
\stripsep=\skip46
\@viper=\box29
\viper@penalty=\count87
\hold@viper=\box30
\ht@viper=\dimen103
) (./test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
Extra height:0.0pt when 0.0pt
(2)Left:0.0pt Right:0.0pt Output:0.0pt
- LAST -
Left:0.0pt
Right:0.0pt
Output:0.0pt
(./test.aux) )
Here is how much of TeX's memory you used:
237 strings out of 493304
2693 string characters out of 6139872
52430 words of memory out of 5000000
3779 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
957 hyphenation exceptions out of 8191
23i,4n,19p,150b,46s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
4. 问题案例 +\clearpage
\clearpage
我认为这可能可以通过在文档末尾添加来解决这个问题,但无济于事:
4.1. MWE 代码(带\clearpage
)
\documentclass[twocolumn]{article}%
\usepackage{cuted}%
\usepackage{afterpage}%
\begin{document}%
\afterpage{%
\begin{strip}%
A B C%
\end{strip}%
}%
\clearpage%
\end{document}%
4.2. 生成的日志文件pdflatex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2015.5.1) 13 JUL 2015 08:50
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty
Package: lipsum 2011/04/14 v1.2 150 paragraphs of Lorem Ipsum dummy text
\c@lips@count=\count87
)
(/usr/share/texlive/texmf-dist/tex/latex/sttools/cuted.sty
Package: cuted 2012/10/04 v1.5 Mixing onecolumn and twocolumn modes
\At@ViperColsBreak=\toks14
\v@aaa=\box26
\v@ccc=\box27
\lastskip@a=\skip43
\lastskip@b=\skip44
\lastskip@d=\skip45
\lastbox@a=\box28
\stripsep=\skip46
\@viper=\box29
\viper@penalty=\count88
\hold@viper=\box30
\ht@viper=\dimen103
) (./afterpage.sty
Package: afterpage 2014/10/28 v1.08 After-Page Package (DPC)
\AP@output=\toks15
\AP@partial=\box31
\AP@footins=\box32
)
(./test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
Extra height:0.0pt when 0.0pt
(2)Left:0.0pt Right:0.0pt Output:0.0pt
- LAST -
Left:0.0pt
Right:0.0pt
Output:0.0pt
(./test.aux) )
Here is how much of TeX's memory you used:
435 strings out of 493304
5019 string characters out of 6139872
144451 words of memory out of 5000000
3970 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
957 hyphenation exceptions out of 8191
23i,4n,19p,151b,52s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
5. 问题案例 +\strut\clearpage
\strut
有趣的是,如果我在 之前添加\clearpage
,我会得到! LaTeX Error: Not in outer par mode.
:
5.1. MWE 代码 +\strut\clearpage
\documentclass[twocolumn]{article}%
\usepackage{cuted}%
\usepackage{afterpage}%
\begin{document}%
\afterpage{%
\begin{strip}%
A B C%
\end{strip}%
}%
\strut\clearpage%
\end{document}%
5.2. 生成的日志文件pdflatex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2015.5.1) 13 JUL 2015 09:37
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/sttools/cuted.sty
Package: cuted 2012/10/04 v1.5 Mixing onecolumn and twocolumn modes
\At@ViperColsBreak=\toks14
\v@aaa=\box26
\v@ccc=\box27
\lastskip@a=\skip43
\lastskip@b=\skip44
\lastskip@d=\skip45
\lastbox@a=\box28
\stripsep=\skip46
\@viper=\box29
\viper@penalty=\count87
\hold@viper=\box30
\ht@viper=\dimen103
) (./afterpage.sty
Package: afterpage 2014/10/28 v1.08 After-Page Package (DPC)
\AP@output=\toks15
\AP@partial=\box31
\AP@footins=\box32
)
(./test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
! LaTeX Error: Not in outer par mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \strut\clearpage
%
? x
Here is how much of TeX's memory you used:
255 strings out of 493304
3012 string characters out of 6139872
52890 words of memory out of 5000000
3795 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
957 hyphenation exceptions out of 8191
23i,1n,19p,150b,36s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
6. 理由
我需要弄清楚如何让这项工作对我的figureSeries
包裹。
这个问题与浮动丢失:问题(可能)来自 afterpage + 双栏:我使用strip
环境来cuted
替代我的旧布局例程,因为我无法让它Float(s) lost
消失。