wrong equation spacing with hyperref - Was: PDF compile strange behavior

2010-08-20 Thread Uwe Stöhr

Am 19.08.2010 18:26, schrieb Uwe Stöhr:

 I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx
 converts documents into pdf files. I am using document style book
 (koma) with AMS math package. I have compiled one with PDF hyperref
 support enabled using Document-Settings-PDF Properties to produce
 document Example1.pdf (left side), and uncheck the hyperref support
 to produce Example2.pdf (right side). Every other setups are exactly
 the same. Strangely, Example1.pdf has extra space between equations
 like (2.5)-(2.6), (2.7)-(2.8), etc.



You found a bug in the LaTeX-package hyperref or the package amsmath:


This problem is known, see the file
http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/README.pdf
section 6 under amsmath.

As workaround you can add this to your document preamble:

\let\equation\gather
\let\endequation\endgather

Note that this can cause other problems. If you get problems with this 
workaround, I would delete the document class option fleqn. The 
equations are then centered but the other spacing should be correct.


regards Uwe


wrong equation spacing with hyperref - Was: PDF compile strange behavior

2010-08-20 Thread Uwe Stöhr

Am 19.08.2010 18:26, schrieb Uwe Stöhr:

 I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx
 converts documents into pdf files. I am using document style book
 (koma) with AMS math package. I have compiled one with PDF hyperref
 support enabled using Document-Settings-PDF Properties to produce
 document Example1.pdf (left side), and uncheck the hyperref support
 to produce Example2.pdf (right side). Every other setups are exactly
 the same. Strangely, Example1.pdf has extra space between equations
 like (2.5)-(2.6), (2.7)-(2.8), etc.



You found a bug in the LaTeX-package hyperref or the package amsmath:


This problem is known, see the file
http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/README.pdf
section 6 under amsmath.

As workaround you can add this to your document preamble:

\let\equation\gather
\let\endequation\endgather

Note that this can cause other problems. If you get problems with this 
workaround, I would delete the document class option fleqn. The 
equations are then centered but the other spacing should be correct.


regards Uwe


wrong equation spacing with hyperref - Was: PDF compile strange behavior

2010-08-20 Thread Uwe Stöhr

Am 19.08.2010 18:26, schrieb Uwe Stöhr:

>> I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx
>> converts documents into pdf files. I am using document style book
>> (koma) with AMS math package. I have compiled one with PDF hyperref
>> support enabled using Document->Settings->PDF Properties to produce
>> document Example1.pdf (left side), and uncheck the hyperref support
>> to produce Example2.pdf (right side). Every other setups are exactly
>> the same. Strangely, Example1.pdf has extra space between equations
>> like (2.5)-(2.6), (2.7)-(2.8), etc.



You found a bug in the LaTeX-package hyperref or the package amsmath:


This problem is known, see the file
http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/README.pdf
section 6 under "amsmath".

As workaround you can add this to your document preamble:

\let\equation\gather
\let\endequation\endgather

Note that this can cause other problems. If you get problems with this 
workaround, I would delete the document class option "fleqn". The 
equations are then centered but the other spacing should be correct.


regards Uwe


Re: PDF compile strange behavior

2010-08-19 Thread Uwe Stöhr

Am 14.08.2010 17:55, schrieb Byung-Joo Lee:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc.


You found a bug in the LaTeX-package hyperref or the package amsmath:

Take the attached LyX file and you get the problem you described. To fix 
this, there are 3 possibilities:


either
- delete the document class option fleqn
  (in Document Settings - Document Class)
or
- remove the document preamble line \newtheorem{thm}{Theorem}
or
- remove the document preamble line \usepackage{hyperref}
or
- uncheck the option Use AMS math package
  (in Document Settings - Math Options)

It took me some time to track down the problem and I'm still not sure 
what package is causing it.
I'll report this now as bug in the hyperref package and report back what 
the hyperref maintainer replied.


regards Uwe


hyperref-theorem-spacing-bug.lyx
Description: application/lyx


Re: PDF compile strange behavior

2010-08-19 Thread Uwe Stöhr

Am 14.08.2010 17:55, schrieb Byung-Joo Lee:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc.


You found a bug in the LaTeX-package hyperref or the package amsmath:

Take the attached LyX file and you get the problem you described. To fix 
this, there are 3 possibilities:


either
- delete the document class option fleqn
  (in Document Settings - Document Class)
or
- remove the document preamble line \newtheorem{thm}{Theorem}
or
- remove the document preamble line \usepackage{hyperref}
or
- uncheck the option Use AMS math package
  (in Document Settings - Math Options)

It took me some time to track down the problem and I'm still not sure 
what package is causing it.
I'll report this now as bug in the hyperref package and report back what 
the hyperref maintainer replied.


regards Uwe


hyperref-theorem-spacing-bug.lyx
Description: application/lyx


Re: PDF compile strange behavior

2010-08-19 Thread Uwe Stöhr

Am 14.08.2010 17:55, schrieb Byung-Joo Lee:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document->Settings->PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc.


You found a bug in the LaTeX-package hyperref or the package amsmath:

Take the attached LyX file and you get the problem you described. To fix 
this, there are 3 possibilities:


either
- delete the document class option "fleqn"
  (in Document Settings -> Document Class)
or
- remove the document preamble line "\newtheorem{thm}{Theorem}"
or
- remove the document preamble line "\usepackage{hyperref}"
or
- uncheck the option "Use AMS math package"
  (in Document Settings -> Math Options)

It took me some time to track down the problem and I'm still not sure 
what package is causing it.
I'll report this now as bug in the hyperref package and report back what 
the hyperref maintainer replied.


regards Uwe


hyperref-theorem-spacing-bug.lyx
Description: application/lyx


PDF compile strange behavior

2010-08-13 Thread bjleend

I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?

Thanks.
http://lyx.475766.n2.nabble.com/file/n5421642/Example1.jpg 
http://lyx.475766.n2.nabble.com/file/n5421642/Example2.jpg 
-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/PDF-compile-strange-behavior-tp5421642p5421642.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: PDF compile strange behavior

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 23:21, schrieb bjleend:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?


This is strange and should not happen. Can you send a LyX file with the corresponding text part to 
be able to reproduce the problem? Perhaps you are suffering from a bug in hyperref.


regards Uwe


PDF compile strange behavior

2010-08-13 Thread bjleend

I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?

Thanks.
http://lyx.475766.n2.nabble.com/file/n5421642/Example1.jpg 
http://lyx.475766.n2.nabble.com/file/n5421642/Example2.jpg 
-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/PDF-compile-strange-behavior-tp5421642p5421642.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: PDF compile strange behavior

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 23:21, schrieb bjleend:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document-Settings-PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?


This is strange and should not happen. Can you send a LyX file with the corresponding text part to 
be able to reproduce the problem? Perhaps you are suffering from a bug in hyperref.


regards Uwe


PDF compile strange behavior

2010-08-13 Thread bjleend

I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document->Settings->PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?

Thanks.
http://lyx.475766.n2.nabble.com/file/n5421642/Example1.jpg 
http://lyx.475766.n2.nabble.com/file/n5421642/Example2.jpg 
-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/PDF-compile-strange-behavior-tp5421642p5421642.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: PDF compile strange behavior

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 23:21, schrieb bjleend:


I am using Lyx 1.6.5 in WinXp. I found a strange behavior when Lyx converts
documents into pdf files. I am using document style book (koma) with AMS
math package. I have compiled one with PDF hyperref support enabled using
Document->Settings->PDF Properties to produce document Example1.pdf (left
side), and uncheck the hyperref support to produce Example2.pdf (right
side). Every other setups are exactly the same. Strangely, Example1.pdf has
extra space between equations like (2.5)-(2.6), (2.7)-(2.8), etc. Can anyone
help me to understand here why this happens?


This is strange and should not happen. Can you send a LyX file with the corresponding text part to 
be able to reproduce the problem? Perhaps you are suffering from a bug in hyperref.


regards Uwe