This is question with regards to the previously asked question How to include a picture over two pages
I think this is a great little bit of code, however it doesn't seem to be working for me. I've copied and pasted the \twopagepicture code from the solution given above into a test file, along with a large picture (.jpg format) to use.
The test file is:
\documentclass[twosided]{book}
%...twosidepicture code copy/pasted from above by M. Scharrer>
\begin{document}
\chapter{testing code}
This is a test for the code.
\twosidedpicture{t}{p}{image.jpg}{Caption test}
\end{document}
This is processed via pdfLaTeX through MikTeX 2.8.
LaTeX spits out two errors, both the same:
! Illegal unit of measure (pt inserted).
\width
1.105 \end{document}
The output of this file is 3 pages. The first shows the dummy chapter title. The second page shows the oddsided portion of the twopage image correctly with a caption below it. However, page three shows the LHS image again but clipped incorrectly: The image begins from the left (hence clipping off the RHS) and the top of the image is not level with the image on the LHS page.
Not sure exactly what is causing this, but after a search the only point at which there is a call to \width is within the \twopagepicture code itself.
Any help would be greatly appreciated.
\listfilesin your document preamble. Then, include all the file versions by editing your post. – Werner Sep 26 '11 at 03:18trim=0 0 {\width}totrim=0 0 {\mywidth}andtrim={\width}totrim={\mywidth}. It produced (what I think) was the intended results. @MartinScharrer will know if this was appropriate or not. – cmhughes Sep 26 '11 at 21:53adjustbox. Apparently the\width(and\heightetc.) macros are no longer provided. The code in my answer is actually correct and compiles fine with v0.3 but not with the current one. I will fix this ASAP. – Martin Scharrer Sep 27 '11 at 06:47adjustbox. The issue was caused because I changed the internal order of content boxing and key processing in order to support theminipageandtabularkeys. I will release it after some testing etc. with some other changes I made since the last release. – Martin Scharrer Sep 27 '11 at 08:22twosidenottwosided) and misses the required filler text (e.g. a\lipsum) in order to have normal figure placement. Without that text both parts will be placed on one float page. It is always difficult to discuss issues if we don't have the exact same code. Anyway, here it is was a package issue. – Martin Scharrer Sep 27 '11 at 08:26