Re: How to keep page header text from crashing into page numbers?
On Tue, 28 Jun 2016 13:25:20 -0400 Steve Litt wrote: > On Tue, 28 Jun 2016 13:39:43 +0200 > Liviu Andronic wrote: > > > On Tue, Jun 28, 2016 at 3:07 AM, Steve Litt > > wrote: > > > Hi all, > > > > > > I'm using LyX 2.1.4, fancyhdr, I've customized even and odd page > > > headers to report current chapter and current section, > > > respectively. On even numbered pages, moderate length chapter > > > names crash into the page number. Short ones right justify away > > > from the page number, and long ones wrap so that the page number > > > isn't touched, but moderate length chapter names overwrite the > > > rightmost digit or two of the page number. > > > Have you tried Short Titles for the offending headings? > > > > Liviu > > No, I'd forgotten about that, thanks for reminding me. > > But even so, short names would be coathangering the symptom rather > than fixing the root cause. Here's why... > > If the line's long enough to wrap, this problem doesn't occur. If it's > way shorter than the space allotted, this problem doesn't occur. But > if it's in the middle, the problem occurs. What's happening is that > the text part of the header, the part that isn't the page number, is > using too wide a width to word wrap. Let me repeat: Long names aren't > the problem. Middle length names are the problem. > > That's the root cause. To fix this with short names I'd need to make > the names extremely short: So short as to be confusing to the reader. > > So, given that, does anyone know a way to get the text part of the > header to wrap in a smaller width, so it doesn't crash into the page > number to its left? Here's how I solved the problem. I changed the following: \renewcommand{\chaptermark}[1]{\markboth{\footnotesize\textsc{\textbf{\slshape\chaptername{} \thechapter: #1}}}{}} to the following: \renewcommand{\chaptermark}[1]{\markboth{~~~\footnotesize\textsc{\textbf{\slshape\chaptername{} \thechapter: #1}}}{}} The 7 tildes (non breaking spaces) guarantee that any chaptername header text already close to the page number will wrap, and yet shorter stuff overwrites the page number with blanks, which is like not overwriting it at all. None of the book's 19 chapters come close to the chapter name text overwriting any part of the page number. It's a hack, but it works. In no way does this preclude me from using Liviu's suggestion of short names. Instead, it means when I use those short names (thank you Liviu), for clarity instead of for ultra-clarity. Thanks, SteveT Steve Litt June 2016 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb
Re: How to keep page header text from crashing into page numbers?
On Tue, Jun 28, 2016 at 7:25 PM, Steve Litt wrote: > On Tue, 28 Jun 2016 13:39:43 +0200 > Liviu Andronic wrote: > >> On Tue, Jun 28, 2016 at 3:07 AM, Steve Litt >> wrote: >> > Hi all, >> > >> > I'm using LyX 2.1.4, fancyhdr, I've customized even and odd page >> > headers to report current chapter and current section, >> > respectively. On even numbered pages, moderate length chapter names >> > crash into the page number. Short ones right justify away from the >> > page number, and long ones wrap so that the page number isn't >> > touched, but moderate length chapter names overwrite the rightmost >> > digit or two of the page number. > >> Have you tried Short Titles for the offending headings? >> >> Liviu > > No, I'd forgotten about that, thanks for reminding me. > > But even so, short names would be coathangering the symptom rather than > fixing the root cause. Here's why... > > If the line's long enough to wrap, this problem doesn't occur. If it's > way shorter than the space allotted, this problem doesn't occur. But if > it's in the middle, the problem occurs. What's happening is that the > text part of the header, the part that isn't the page number, is using > too wide a width to word wrap. Let me repeat: Long names aren't the > problem. Middle length names are the problem. > > That's the root cause. To fix this with short names I'd need to make > the names extremely short: So short as to be confusing to the reader. > > So, given that, does anyone know a way to get the text part of the > header to wrap in a smaller width, so it doesn't crash into the page > number to its left? > I would suggest that this is a good question for http://tex.stackexchange.com/ . I'd wager you'll find there a LaTeX expert with a solution within the day (or an already existing question on this). I would expect this would have to do with some penalty of sorts either from LaTeX or from fancyhdr. Regards, Liviu > Thanks, > > SteveT > > Steve Litt > June 2016 featured book: Troubleshooting: Why Bother? > http://www.troubleshooters.com/twb
Re: How to keep page header text from crashing into page numbers?
On Tue, 28 Jun 2016 13:39:43 +0200 Liviu Andronic wrote: > On Tue, Jun 28, 2016 at 3:07 AM, Steve Litt > wrote: > > Hi all, > > > > I'm using LyX 2.1.4, fancyhdr, I've customized even and odd page > > headers to report current chapter and current section, > > respectively. On even numbered pages, moderate length chapter names > > crash into the page number. Short ones right justify away from the > > page number, and long ones wrap so that the page number isn't > > touched, but moderate length chapter names overwrite the rightmost > > digit or two of the page number. > Have you tried Short Titles for the offending headings? > > Liviu No, I'd forgotten about that, thanks for reminding me. But even so, short names would be coathangering the symptom rather than fixing the root cause. Here's why... If the line's long enough to wrap, this problem doesn't occur. If it's way shorter than the space allotted, this problem doesn't occur. But if it's in the middle, the problem occurs. What's happening is that the text part of the header, the part that isn't the page number, is using too wide a width to word wrap. Let me repeat: Long names aren't the problem. Middle length names are the problem. That's the root cause. To fix this with short names I'd need to make the names extremely short: So short as to be confusing to the reader. So, given that, does anyone know a way to get the text part of the header to wrap in a smaller width, so it doesn't crash into the page number to its left? Thanks, SteveT Steve Litt June 2016 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb
Re: How to keep page header text from crashing into page numbers?
On Tue, Jun 28, 2016 at 3:07 AM, Steve Litt wrote: > Hi all, > > I'm using LyX 2.1.4, fancyhdr, I've customized even and odd page > headers to report current chapter and current section, respectively. On > even numbered pages, moderate length chapter names crash into the page > number. Short ones right justify away from the page number, and long > ones wrap so that the page number isn't touched, but moderate length > chapter names overwrite the rightmost digit or two of the page number. > Have you tried Short Titles for the offending headings? Liviu > For best rendering on medium sized mobile devices, the paper format is > 5.5 inches long, and 3.5 inches wide. The margins, all measured in > inches, are: > > Top: .55 > Bottom: .3 > Inner: .2 > Outer: .2 > Head sep: .2 > Head height: .3 > Foot skip: .1 > > SteveT > > Steve Litt > June 2016 featured book: Troubleshooting: Why Bother? > http://www.troubleshooters.com/twb
How to keep page header text from crashing into page numbers?
Hi all, I'm using LyX 2.1.4, fancyhdr, I've customized even and odd page headers to report current chapter and current section, respectively. On even numbered pages, moderate length chapter names crash into the page number. Short ones right justify away from the page number, and long ones wrap so that the page number isn't touched, but moderate length chapter names overwrite the rightmost digit or two of the page number. For best rendering on medium sized mobile devices, the paper format is 5.5 inches long, and 3.5 inches wide. The margins, all measured in inches, are: Top: .55 Bottom: .3 Inner: .2 Outer: .2 Head sep: .2 Head height: .3 Foot skip: .1 SteveT Steve Litt June 2016 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb
Re: Unwanted number in page header for Chapter*
On Wednesday, September 21, 2011 03:24:45 PM Manveru wrote: > 2011/9/21 Julien Rioux : > > On 21/09/2011 6:17 PM, Manveru wrote: > >> Hi, > >> > >> Not directly LyX related, but maybe someone will be able to help > >> me. > >> > >> I am using Chapter* environment for my Prologue and Epilogue in > >> mwbook class document. However for these chapters I see Chapter > >> 0. Prologue and Chapter 8. Epilogue for chapters I do not want > >> to number. Is there any method to remove "Chapter X." part from > >> page header for these two chapters only? > >> > >> My fancyheader settings from preamble: > >> \fancyhead[RO,LE]{\nouppercase{\leftmark}} > >> \fancyhead[LO,RE]{\nouppercase{\rightmark}} > >> > >> Thank you for any advice. > > > > Assuming your class is derived from book, \markboth{}{} in LaTeX > > code just after the Chapter* will clear the leftmark and > > rightmark. > > Great, that did what I want. > > However I think that document class should support it by itself to > clean that up for Chapter*. > > Thanks for hyou help! My experience is that in the long run, using any of the * environments is walking the trail of tears. Given that I usually have these outside the book's "official" chapters, I usually make my own environment, without a counter and with big print, and use that. I insert my own home made environments with the proper TeX commands to include in the table of contents and to make the new part into a section. SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt
Re: Unwanted number in page header for Chapter*
On 21/09/2011 9:24 PM, Manveru wrote: Great, that did what I want. However I think that document class should support it by itself to clean that up for Chapter*. True, I have no idea why the latex class doesn't fix that up for you. Thanks for hyou help! You're welcome! -- Julien
Re: Unwanted number in page header for Chapter*
2011/9/21 Julien Rioux : > On 21/09/2011 6:17 PM, Manveru wrote: >> >> Hi, >> >> Not directly LyX related, but maybe someone will be able to help me. >> >> I am using Chapter* environment for my Prologue and Epilogue in mwbook >> class document. However for these chapters I see Chapter 0. Prologue >> and Chapter 8. Epilogue for chapters I do not want to number. Is there >> any method to remove "Chapter X." part from page header for these two >> chapters only? >> >> My fancyheader settings from preamble: >> \fancyhead[RO,LE]{\nouppercase{\leftmark}} >> \fancyhead[LO,RE]{\nouppercase{\rightmark}} >> >> Thank you for any advice. > > Assuming your class is derived from book, \markboth{}{} in LaTeX code just > after the Chapter* will clear the leftmark and rightmark. Great, that did what I want. However I think that document class should support it by itself to clean that up for Chapter*. Thanks for hyou help! -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl
Re: Unwanted number in page header for Chapter*
On 21/09/2011 6:17 PM, Manveru wrote: Hi, Not directly LyX related, but maybe someone will be able to help me. I am using Chapter* environment for my Prologue and Epilogue in mwbook class document. However for these chapters I see Chapter 0. Prologue and Chapter 8. Epilogue for chapters I do not want to number. Is there any method to remove "Chapter X." part from page header for these two chapters only? My fancyheader settings from preamble: \fancyhead[RO,LE]{\nouppercase{\leftmark}} \fancyhead[LO,RE]{\nouppercase{\rightmark}} Thank you for any advice. Assuming your class is derived from book, \markboth{}{} in LaTeX code just after the Chapter* will clear the leftmark and rightmark. -- Julien
Unwanted number in page header for Chapter*
Hi, Not directly LyX related, but maybe someone will be able to help me. I am using Chapter* environment for my Prologue and Epilogue in mwbook class document. However for these chapters I see Chapter 0. Prologue and Chapter 8. Epilogue for chapters I do not want to number. Is there any method to remove "Chapter X." part from page header for these two chapters only? My fancyheader settings from preamble: \fancyhead[RO,LE]{\nouppercase{\leftmark}} \fancyhead[LO,RE]{\nouppercase{\rightmark}} Thank you for any advice. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl
Re: page header does not appear on all pages
dannoritzer wrote: > The header appears in some pages and then not in other > pages. I understand that it is automatically suppressed for the title > page and the table of content for example. But in my case it does not > appear in the regular chapters. If you refer to the fact that the header is suppressed for the first page of a chapter: this is intentional (and is also what you usually find in typeset books). If you want to change it, try \renewcommand*{\chapterpagestyle}{headings} (but you won't get the chapter title printed in the heading, scan the KOMA manual for \chapterpagestyle for an explanation). Jürgen
page header does not appear on all pages
Hi, I tried to add a header with image to a document based on the KOMA report class. I followed the explanation in the FAQ: http://wiki.lyx.org/FAQ/Unsorted#toc66 and it works fine for one document, but in another document I have some strange behavior. The header appears in some pages and then not in other pages. I understand that it is automatically suppressed for the title page and the table of content for example. But in my case it does not appear in the regular chapters. This is the preamble I am using for it: \usepackage{graphicx} \newsavebox{\mygraphic} \savebox{\mygraphic}{\includegraphics{oc_logo} OpenCores} \lhead{\usebox{\mygraphic}} One thing I did different in the document is that I changed the page numbering to Roman numbers for the beginning of the document and then changed from the 1st chapter back to arabic numbering, setting the page count back to 1. I added the documents to this page: http://graf-danno.de/lyx/ Here is the link to the PDF document: http://graf-danno.de/lyx/opencores.pdf And here is the link to the respective LyX document: http://graf-danno.de/lyx/opencores.lyx I would appreciate any help about what I am doing wrong here. I am using LyX 1.4.3 under Suse Linux. Thanks in advance. Cheers, Guenter
Re: Page header and borders
Rosen wrote: > > Hi > I'm new to TeX world, but it looks cool. Using > LyX.1.1.5fix1 , I'm trying to put borders on my > pages, and to make the header into 3 sections > looking like 1-row-3-column table. To explain > visually what I mean: > _ > | | > | |head | head 2 | head | | > | | 1| 2 | 3| | > | |___|___|___| | > | | | | > | | | | > . . . . > . . . . > . . . . > | | | | > | |___| | > || > > I tried fancy pages, read all documentation > about fancy package, but nothing for me. Is it it's no problem for me to put a frame with fancypage. you can also try package pstricks with \psframe ... > possible to insert a simple table in the header? yes Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Page header and borders
Hi I'm new to TeX world, but it looks cool. Using LyX.1.1.5fix1 , I'm trying to put borders on my pages, and to make the header into 3 sections looking like 1-row-3-column table. To explain visually what I mean: _ | | | |head | head 2 | head | | | | 1| 2 | 3| | | |___|___|___| | | | | | | | | | . . . . . . . . . . . . | | | | | |___| | || I tried fancy pages, read all documentation about fancy package, but nothing for me. Is it possible to insert a simple table in the header? And how to put border lines where the page margins are? Is it into LyX docs? I'll upgrade as soon as i download to 1.1.6 version. Maybe I just need some LaTeX packages from CTAN, could you tell me which ones? TIA
Re: page header
Hi, at Mon, 09 Aug 1999 Julián Muñoz Domínguez wrote: > On Mon, 9 Aug 1999, Harald Zielstorff wrote: > > > > > I'm writing my dissertation with lyx. > > > > I've got have a problem with the page headers. I'm using the > > dokument class "book". The titles of the sections are shown in the > > page headers. If the title is longer than one line, the title will be > > written over the right end of the page. > > > > Is this a lyx- ot latex-bug? > > To solve this problem I used fancy headers package. I think, this is a problem of latex. I solved this problem with the unofficial package. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: page header
On Mon, 9 Aug 1999, Harald Zielstorff wrote: > > I'm writing my dissertation with lyx. > > I've got have a problem with the page headers. I'm using the > dokument class "book". The titles of the sections are shown in the > page headers. If the title is longer than one line, the title will be > written over the right end of the page. > > Is this a lyx- ot latex-bug? To solve this problem I used fancy headers package.
page header
I'm writing my dissertation with lyx. I've got have a problem with the page headers. I'm using the dokument class "book". The titles of the sections are shown in the page headers. If the title is longer than one line, the title will be written over the right end of the page. Is this a lyx- ot latex-bug? Harald Zielstorff