Ticket #6084 (closed defect: duplicate)
Bottom margin is not respected when using Line spacing=OneHalf and "\usepackage{a4}" is used
| Reported by: | pacho | Owned by: | lasgouttes |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 1.6.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I don't know why I am suffering this. All modifications were done with lyx. I am not sure if it's because line spacing, base fontsize or ducument class. I have tried multiple combinations, but seems that it breaks just when I try to use Line spacing=OneHalf
I attach full .lyx file and generated .pdf that shows the problem.
As you can see, text at the end of pages 1 and 2 is cut because button margins are not respected.
Thanks a lot for your help
Attachments
Change History
comment:1 Changed 12 years ago by vfr
- Status changed from new to closed
- Summary changed from Button margin is not respected when using Line spacing=OneHalf to Bottom margin is not respected when using Line spacing=OneHalf
- Resolution set to invalid
- Milestone 1.6.x deleted
You have manually added the package {a4} to your preamble. If you remove this package, the document will render fine.
I don't think LyX is at fault here.
comment:2 Changed 12 years ago by spitz
(except that we used to support a4 and a4wide earlier, so the preamble could be the result of a lyx2lyx conversion).
Also see #4872.
comment:3 follow-up: ↓ 4 Changed 12 years ago by pacho
- Status changed from closed to reopened
- Resolution invalid deleted
- Summary changed from Bottom margin is not respected when using Line spacing=OneHalf to Bottom margin is not respected when using Line spacing=OneHalf and "\usepackage{a4}" is used
Thanks for the tip, it's rendered properly if I manually remove "\usepackage{a4}" from .lyx file. But, on the other hand, I already tried to revert to "default" in document preferences and, even when lyx shows no error when changing from A4 to "default", it finally doesn't remove anything.
Also, I don't know why
\usepackage{a4}
fails in this way (I am not using a4wide)
Thanks a lot for your attention :-)
comment:4 in reply to: ↑ 3 ; follow-up: ↓ 6 Changed 12 years ago by spitz
- Status changed from reopened to closed
- Resolution set to duplicate
Thanks for the tip, it's rendered properly if I manually remove "\usepackage{a4}" > from .lyx file.
What do you mean by "from the .lyx file"? This package is in Document>Settings>Preamble.
But, on the other hand, I already tried to revert to "default" in document
preferences and, even when lyx shows no error when changing from A4 to "default", > it finally doesn't remove anything.
The a4 package has nothing to do with Document>Settings>Page Layout>Paper Size>A4. It's a separate package we supported earlier but for which we removed support. It is possible that LyX put this line to your preamble while converting from an earlier version (this works as long as you do not use line spacing).
Also, I don't know why
\usepackage{a4}
fails in this way (I am not using a4wide)
See #5690. Setspace and a4 misbehave, if they are not loaded in the correct order. And we cannot do this, since we dropped support for a4. Using the a4 package is one of the "deadly sins of LaTeX users" (read the document referred to in #5690).
Marking as a duplicate of #5690 now, since it's the very same issue.
comment:6 in reply to: ↑ 4 Changed 12 years ago by pacho
Replying to spitz:
What do you mean by "from the .lyx file"? This package is in Document>Settings>Preamble.
I mean dropping "\usepackage{a4}" from wrong.lyx file
But, on the other hand, I already tried to revert to "default" in document
preferences and, even when lyx shows no error when changing from A4 to "default", > it finally doesn't remove anything.
The a4 package has nothing to do with Document>Settings>Page Layout>Paper Size>A4. It's a separate package we supported earlier but for which we removed support. It is possible that LyX put this line to your preamble while converting from an earlier version (this works as long as you do not use line spacing).
Ah, ok, thanks a lot for the explanation
Also, I don't know why
\usepackage{a4}
fails in this way (I am not using a4wide)
See #5690. Setspace and a4 misbehave, if they are not loaded in the correct order. And we cannot do this, since we dropped support for a4. Using the a4 package is one of the "deadly sins of LaTeX users" (read the document referred to in #5690).
Marking as a duplicate of #5690 now, since it's the very same issue.
OK, best regards
wrong.lyx