Re: KOMA-Script Report: titlehead and title on two pages [FIXED]
On 8/20/19 2:29 PM, Rich Shepard wrote: On Tue, 20 Aug 2019, Paul A. Rubin wrote: The "Default margins" setting means use /class/ defaults, not paper size defaults. The user guide claims that KOMA Script formats will calculate margins based on paper size, but if that is happening (iffy) it is not proving helpful. I manually put 1" margins all around and compiled, and it looks correct (or at least better) to my somewhat noncritical eye. Paul, Son-of-a-gun. I missed seeing in the KOMA Script doc that page margins are set by class, not paper size. And, while I _thought_ I had changed all margins to 1", I had apparently not done so. Made the margin size changes and that did fix the problem. Many thanks, Rich It's actually not in the KOMA Script docs ... nor in the LyX docs that I can find. If you hover over the check box for using default margins, the tool tip gives it away. You're welcome, Paul
Re: KOMA-Script Report: titlehead and title on two pages [FIXED]
On Tue, 20 Aug 2019, Paul A. Rubin wrote: The "Default margins" setting means use /class/ defaults, not paper size defaults. The user guide claims that KOMA Script formats will calculate margins based on paper size, but if that is happening (iffy) it is not proving helpful. I manually put 1" margins all around and compiled, and it looks correct (or at least better) to my somewhat noncritical eye. Paul, Son-of-a-gun. I missed seeing in the KOMA Script doc that page margins are set by class, not paper size. And, while I _thought_ I had changed all margins to 1", I had apparently not done so. Made the margin size changes and that did fix the problem. Many thanks, Rich
Re: KOMA-Script Report: titlehead and title on two pages
On 8/19/19 6:01 PM, Rich Shepard wrote: On Mon, 19 Aug 2019, Paul A. Rubin wrote: I'm not sure how you got even more whitespace above the logo, but in any case 145 for top y strikes me as too big. Here's my version (edited LyX file and exported PDF). Notable changes I made: * I changed the graphic path to a relative path to the enclosed PDF image. (Your MWE included the image but the graphic path was an absolute path on your system.) * I changed the top right y value. You can go a bit smaller than what I put in, but not much. Note that this screws up the preview in the LyX window, but as you can see the image looks okay in the PDF output. * There was still more whitespace above the logo than seemed reasonable to me, which is likely some KOMA setting. I don't use KOMA, so I cheated and stuck in some negative vertical space above the image. Feel free to adjust or omit. * This gets the image, title and date on the same page, but the content still starts on page 2. Again, that's probably a KOMA thing. Paul, It's an issue with lyx-2.3.3 on the Ryzen7 desktop. See the PDF in the attached tarball. (I recompiled and reinstalled the application but it made no difference.) Looking at the .lyx file I saw the page size in the preamble still at 6.5" width x 9.5" height despite the setting having the US Letter box checked and the other values greyed out. I removed those values and the lyx file preamble now shows paperletter for the size. I also removed the custom margins (despite the 'use default' checkbox being checked) and now I don't see specific margins in the .lyx file The compiled PDF has the letterhead, title, author, date, and introduction all on page 1. But, the text width and height are those of a 6" x 9" book layout, not letter size layout. I'm not seeing the reason why. Regards, Rich Rich, The "Default margins" setting means use /class/ defaults, not paper size defaults. The user guide claims that KOMA Script formats will calculate margins based on paper size, but if that is happening (iffy) it is not proving helpful. I manually put 1" margins all around and compiled, and it looks correct (or at least better) to my somewhat noncritical eye. Paul
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Rich Shepard wrote: Now I do: mwe.lyx is a KOMA-script report and mwe2.lyx is a KOMA-Script article. But, I've used the report layout with the letterhead in the past and it's worked. Partially fixed: I changed the page layout to US letter and set margins to default. Deleted the PDF image and re-loaded it. Exited LyX, then restarted it. Now the letterhead, title, etc. are on the same page, but still using the custom layout of 6" x 9" rather than 8.5" x 11". I'm not seeing any other differences. Will keep looking. Rich
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Rich Shepard wrote: I don't see how the two .lyx files differ so the first doesn't appear like the second. Now I do: mwe.lyx is a KOMA-script report and mwe2.lyx is a KOMA-Script article. But, I've used the report layout with the letterhead in the past and it's worked. Rich
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Rich Shepard wrote: I've shrunk the size (x,y) to bottom: 85,15 top:525,145 and this eliminates all surrounding white space. The compiled mwe.pdf is attached. Attached is another example, mwe2.lyx and mwe3.pdf. Same letterhead PDF with default coordinate settings and the width set to 100% text width. I don't see how the two .lyx files differ so the first doesn't appear like the second. Rich mwe2.tgz Description: GNU Zip compressed data
Re: KOMA-Script Report: titlehead and title on two pages
On 8/19/19 1:00 PM, Rich Shepard wrote: Here LyX-2.3.3 runs on Slackware-14.2. Commonly, when I put the company letterhead (titlehead environment) above the report title and set the size at 100% of text width the letterhead is immediately followed by the title, date, and beginning of the document body text. This current report does not follow this pattern. When I preview the attached mwe.lyx the letterhead is on page 1, the title and data on page 2, and the introduction on page 3. I need to learn why this happens and how to both fix it here and prevent recurrence in future reports. Need more information? Ask and you shall be given answers. TIA, Rich Rich, I think your titlehead PDF gizmo has too much whitespace baked into it. I tinkered with the bounding box settings in the graphics inset, changing the right-top y value to 75 (originally 157). The PDF looked okay to me. In fact, I tried 55 and the PDF still looked good. So I'd suggest seasoning that to taste. Paul
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Rich Shepard wrote: Reading the KOMA doc scrguiden.pdf might give some answers. Okay. Guenter, I read sections found searching for 'titlehead' and saw nothing of use. I must have missed what you found. Experimenting with the size (especially hight) of the letterhead, too. I shortened the width (removing the white space on the left edge) and the image would not display at all. Will try the height. I changed coordinates for the image and tried various heights (leaving the width set to 100% text width). The only results were either a vertically compressed image or a slightly compress image with the title, author name, and date on that page; body text started on the next page. (This would be acceptable but I need the letterhead full height even with coordinates trimmed to eliminate white space.) Regards, Rich
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Guenter Milde wrote: Reading the KOMA doc scrguiden.pdf might give some answers. Guenter, Okay. Experimenting with the size (especially hight) of the letterhead, too. I shortened the width (removing the white space on the left edge) and the image would not display at all. Will try the height. Thanks, Rich
Re: KOMA-Script Report: titlehead and title on two pages
On 2019-08-19, Rich Shepard wrote: > [-- Type: text/plain, Encoding: --] > Here LyX-2.3.3 runs on Slackware-14.2. > Commonly, when I put the company letterhead (titlehead environment) above > the report title and set the size at 100% of text width the letterhead is > immediately followed by the title, date, and beginning of the document body > text. This current report does not follow this pattern. > When I preview the attached mwe.lyx the letterhead is on page 1, the title > and data on page 2, and the introduction on page 3. > I need to learn why this happens and how to both fix it here and prevent > recurrence in future reports. > Need more information? Ask and you shall be given answers. Reading the KOMA doc scrguiden.pdf might give some answers. Experimenting with the size (especially hight) of the letterhead, too. Günter
Re: KOMA-Script Report: titlehead and title on two pages
On Mon, 19 Aug 2019, Rich Shepard wrote: and data on page 2, and the introduction on page 3. ^ e That should be date, not data. Rich