Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple \includegraphics in same line, only first is recognized, plots are missed #27

Open
tsgit opened this issue Feb 21, 2018 · 0 comments

Comments

@tsgit
Copy link
Contributor

tsgit commented Feb 21, 2018

http://arxiv.org/e-print/arXiv:1801.10178
has a TeX file with

\begin{figure*}[t]                                                                                                                                                  
\centering                                                                                                                                                          
\includegraphics[width=0.5\textwidth]{ps_CO_z6_fnl6p5.pdf}\includegraphics[width=0.5\textwidth]{ps_CII_z2p8_fnl6p5.pdf}                                             
\caption{The spherically averaged clustering component of the power spectrum (including AP effect) for $f_{\rm NL}^{\rm loc} = 6.5$ (solid blue) and $f_{\rm NL}^{\\
rm loc} = 1$ (dashed magenta) for CO(1-0) at $z\simeq 6$ (left) and [CII] (right) at $z\simeq 2$ are shown. These redshifts are chosen since for the experiments co\
nsidered here, they provide the tightest constraints on $f_{\rm NL}^{\rm loc}$. The shaded blue region is the expected spherically averaged variance for the power \
spectrum with $f_{\rm NL}^{\rm loc} = 6.5$, defined in Eq. (\ref{eq:error}). For illustration we also show the spherically averaged Gaussian contribution (dashed-d\
otted purple), as well as the shot contribution (dotted red).  The vertical lines correspond to the smallest scale $k_{\rm max}$ considered in our forecast, the ch\
oice of which is described in the text.                                                                                                                             
\label{Fig:PS}}                                                                                                                                                     
\end{figure*}                                                                                                                                                       

so there are 2 different includegraphics commands on the same line. The code misses the second one.
Specifically

In [3]: extract_captions("./paper_v2.tex", ".", ["./ps_CII_z2p8_fnl6p5.pdf", "./ps_CO_z6_fnl6p5.pdf"])
Out[3]: 
[('ps_CO_z6_fnl6p5.pdf',
  'The spherically averaged clustering component of the power spectrum (including AP effect) for $f_{\\rm NL}^{\\rm loc} = 6.5$ (solid blue) and $f_{\\rm NL}^{\\rm loc} = 1$ (dashed magenta) for CO(1-0) at $z\\simeq 6$ (left) and [CII] (right) at $z\\simeq 2$ are shown. These redshifts are chosen since for the experiments considered here, they provide the tightest constraints on $f_{\\rm NL}^{\\rm loc}$. The shaded blue region is the expected spherically averaged variance for the power spectrum with $f_{\\rm NL}^{\\rm loc} = 6.5$, defined in Eq. (\\ref{eq:error}). For illustration we also show the spherically averaged Gaussian contribution (dashed-dotted purple), as well as the shot contribution (dotted red). The vertical lines correspond to the smallest scale $k_{\\rm max}$ considered in our forecast, the choice of which is described in the text.',
  'Fig:PS')]

when a newline is inserted, the result is instead:

In [4]: extract_captions("./paper_v2.tex", ".", ["./ps_CII_z2p8_fnl6p5.pdf", "./ps_CO_z6_fnl6p5.pdf"])
Out[4]: 
[('ps_CO_z6_fnl6p5.pdf',
  'The spherically averaged clustering component of the power spectrum (including AP effect) for $f_{\\rm NL}^{\\rm loc} = 6.5$ (solid blue) and $f_{\\rm NL}^{\\rm loc} = 1$ (dashed magenta) for CO(1-0) at $z\\simeq 6$ (left) and [CII] (right) at $z\\simeq 2$ are shown. These redshifts are chosen since for the experiments considered here, they provide the tightest constraints on $f_{\\rm NL}^{\\rm loc}$. The shaded blue region is the expected spherically averaged variance for the power spectrum with $f_{\\rm NL}^{\\rm loc} = 6.5$, defined in Eq. (\\ref{eq:error}). For illustration we also show the spherically averaged Gaussian contribution (dashed-dotted purple), as well as the shot contribution (dotted red). The vertical lines correspond to the smallest scale $k_{\\rm max}$ considered in our forecast, the choice of which is described in the text.',
  'Fig:PS'),
 ('ps_CII_z2p8_fnl6p5.pdf',
  'The spherically averaged clustering component of the power spectrum (including AP effect) for $f_{\\rm NL}^{\\rm loc} = 6.5$ (solid blue) and $f_{\\rm NL}^{\\rm loc} = 1$ (dashed magenta) for CO(1-0) at $z\\simeq 6$ (left) and [CII] (right) at $z\\simeq 2$ are shown. These redshifts are chosen since for the experiments considered here, they provide the tightest constraints on $f_{\\rm NL}^{\\rm loc}$. The shaded blue region is the expected spherically averaged variance for the power spectrum with $f_{\\rm NL}^{\\rm loc} = 6.5$, defined in Eq. (\\ref{eq:error}). For illustration we also show the spherically averaged Gaussian contribution (dashed-dotted purple), as well as the shot contribution (dotted red). The vertical lines correspond to the smallest scale $k_{\\rm max}$ considered in our forecast, the choice of which is described in the text.',
  'Fig:PS')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant