# [tex-live] Problem with amsthm

David Carlisle d.p.carlisle at gmail.com
Fri Jun 20 15:49:58 CEST 2014

On 20 June 2014 14:45, Zdenek Wagner <zdenek.wagner at gmail.com> wrote:

> 2014-06-20 15:32 GMT+02:00 David Carlisle <d.p.carlisle at gmail.com>:
>
> This is not the list for reporting problems with macro code  (the texlive
>> maintainers maintain the system
>> but can not control the individual packages which are taken from CTAN)
>>
>> However your document arguably highlights a bug (unreported I think)
>> that's been in latex since the start
>>
>> \leavevmode\begin{picture}
>>
>> should fix it...
>>
>
> I would not consider it a bug. The center environment among others sets
> \leftskip, \rightskip and \parfillskip. These values are used in the
> horizontal mode. The picture environment is a box. If it is placed in the
> vertical mode, the settings made by the ceter environment are not in
> effect. \leavevmode starts the horizontal mode. In addition, the center
> environment is not just an environment for centering, it is defined as a
> list and does too many things. If you have a list without a paragraph, you
> get the error.
>

yes sure but all latex boxes are supposed to leavevmode, and \picture does
as well precisely so it works in center etc, but it does it just before use
rather than before an internal savebox, and that's too late. I moved a
\leavevmode in one of the graphics commands not so long ago for the same
issue.

\makeatletter
\long\gdef\picture#1{\leavevmode\pictur@#1}
\makeatother

fixes it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20140620/f18523f1/attachment-0001.html>