Re: Page numbers use fonts of surrounding environments
On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
On 09/12/2013 09:16 AM, Itai Shaked wrote: I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? Use the fancy header package. There's info about how to do it in the LyX docs, or you can find the fancy header manual online. Something like: \fancyfoot[C]{\normalfont{\thepage}} should come close to what you want. If you didn't want to use that, in principle, you could redefine the page style, or define your own page style. Which document class? Richard On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org mailto:rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
It happens in book and article document classes. I've tried \normalfont, but it stayed the same. What did help was \fancyfoot[C]{\textup{\thepage}}. I guess polyglossia somehow disables some of the text style commands, or replaces them with others? On Thu, Sep 12, 2013 at 4:34 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 09:16 AM, Itai Shaked wrote: I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? Use the fancy header package. There's info about how to do it in the LyX docs, or you can find the fancy header manual online. Something like: \fancyfoot[C]{\normalfont{\thepage}} should come close to what you want. If you didn't want to use that, in principle, you could redefine the page style, or define your own page style. Which document class? Richard On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
On Thu, 12 Sep 2013 11:52:59 +0300 Itai Shaked itai.sha...@mail.huji.ac.il wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? If I were having this problem, my first step would be to back up the LyX file for safe keeping, and troubleshoot on copies. My second step would be to remove all but the first five pages, and see if the problem persists. Then I'd remove polyglossia and see if the problem persists. If not, report it to Polyglossia at http://github.com/reutenauer/polyglossia/issues Just keep experimenting til you find the root cause, and then use search engines to see if others have solved that problem. But right now you don't know if the problem is in LyX, Polyglossia, your TeX/LaTeX setup, your LyX to PDF conversion, or even your PDF reader. You can quickly narrow it down. And remember, when dealing with LyX, never underestimate the power of the Minimal Example That Reproduces The Problem. HTH, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: Page numbers use fonts of surrounding environments
On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
On 09/12/2013 09:16 AM, Itai Shaked wrote: I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? Use the fancy header package. There's info about how to do it in the LyX docs, or you can find the fancy header manual online. Something like: \fancyfoot[C]{\normalfont{\thepage}} should come close to what you want. If you didn't want to use that, in principle, you could redefine the page style, or define your own page style. Which document class? Richard On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org mailto:rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
It happens in book and article document classes. I've tried \normalfont, but it stayed the same. What did help was \fancyfoot[C]{\textup{\thepage}}. I guess polyglossia somehow disables some of the text style commands, or replaces them with others? On Thu, Sep 12, 2013 at 4:34 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 09:16 AM, Itai Shaked wrote: I haven't changed anything in fancy headers. It happens with plain, fancy and headings page styles (though with headings it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? Use the fancy header package. There's info about how to do it in the LyX docs, or you can find the fancy header manual online. Something like: \fancyfoot[C]{\normalfont{\thepage}} should come close to what you want. If you didn't want to use that, in principle, you could redefine the page style, or define your own page style. Which document class? Richard On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck rgh...@lyx.org wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
On Thu, 12 Sep 2013 11:52:59 +0300 Itai Shaked itai.sha...@mail.huji.ac.il wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? If I were having this problem, my first step would be to back up the LyX file for safe keeping, and troubleshoot on copies. My second step would be to remove all but the first five pages, and see if the problem persists. Then I'd remove polyglossia and see if the problem persists. If not, report it to Polyglossia at http://github.com/reutenauer/polyglossia/issues Just keep experimenting til you find the root cause, and then use search engines to see if others have solved that problem. But right now you don't know if the problem is in LyX, Polyglossia, your TeX/LaTeX setup, your LyX to PDF conversion, or even your PDF reader. You can quickly narrow it down. And remember, when dealing with LyX, never underestimate the power of the Minimal Example That Reproduces The Problem. HTH, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: Page numbers use fonts of surrounding environments
On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
I haven't changed anything in fancy headers. It happens with "plain", "fancy" and "headings" page styles (though with "headings" it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? On Thu, Sep 12, 2013 at 4:11 PM, Richard Heckwrote: > On 09/12/2013 04:52 AM, Itai Shaked wrote: > >> Hello, >> I'm having a problem, which I'm not sure is due to LyX, but I would >> appreciate it if any one here could help me. >> >> When writing a document in LyX and using XeTeX and polyglossia I have >> noticed some of the page numbers were in different font than others. Upon >> further investigation I have found out that whenever an environment (e.g. >> Theorem, Lemma, etc.) spans a page break, the page number within would use >> the font used in that environment (so - the specific number would be >> italic, like a text of a Theorem environment). >> >> This only happens when using non-English language. >> >> Would this be a bug in LyX or polyglossia? >> How would you go further investigating or repairing it? >> > > That is very strange. It is definitely not a LyX bug. > > I guess the thing to do is to redefine how the page number is being > printed. What page style are you using? Did you do anything with the fancy > headers business? > > Richard > >
Re: Page numbers use fonts of surrounding environments
On 09/12/2013 09:16 AM, Itai Shaked wrote: I haven't changed anything in fancy headers. It happens with "plain", "fancy" and "headings" page styles (though with "headings" it is the page number on the top of the page that is changed, i.e. - not within the environment itself). How do I redefine the way page numbers are printed? Use the fancy header package. There's info about how to do it in the LyX docs, or you can find the fancy header manual online. Something like: \fancyfoot[C]{\normalfont{\thepage}} should come close to what you want. If you didn't want to use that, in principle, you could redefine the page style, or define your own page style. Which document class? Richard On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck> wrote: On 09/12/2013 04:52 AM, Itai Shaked wrote: Hello, I'm having a problem, which I'm not sure is due to LyX, but I would appreciate it if any one here could help me. When writing a document in LyX and using XeTeX and polyglossia I have noticed some of the page numbers were in different font than others. Upon further investigation I have found out that whenever an environment (e.g. Theorem, Lemma, etc.) spans a page break, the page number within would use the font used in that environment (so - the specific number would be italic, like a text of a Theorem environment). This only happens when using non-English language. Would this be a bug in LyX or polyglossia? How would you go further investigating or repairing it? That is very strange. It is definitely not a LyX bug. I guess the thing to do is to redefine how the page number is being printed. What page style are you using? Did you do anything with the fancy headers business? Richard
Re: Page numbers use fonts of surrounding environments
It happens in book and article document classes. I've tried \normalfont, but it stayed the same. What did help was " \fancyfoot[C]{\textup{\thepage}}". I guess polyglossia somehow disables some of the text style commands, or replaces them with others? On Thu, Sep 12, 2013 at 4:34 PM, Richard Heckwrote: > On 09/12/2013 09:16 AM, Itai Shaked wrote: > > I haven't changed anything in fancy headers. > > It happens with "plain", "fancy" and "headings" page styles (though with > "headings" it is the page number on the top of the page that is changed, > i.e. - not within the environment itself). > > How do I redefine the way page numbers are printed? > > > Use the fancy header package. There's info about how to do it in the LyX > docs, or you can find the fancy header manual online. Something like: > \fancyfoot[C]{\normalfont{\thepage}} > should come close to what you want. > > If you didn't want to use that, in principle, you could redefine the page > style, or define your own page style. Which document class? > > Richard > > > > > On Thu, Sep 12, 2013 at 4:11 PM, Richard Heck wrote: > >> On 09/12/2013 04:52 AM, Itai Shaked wrote: >> >>> Hello, >>> I'm having a problem, which I'm not sure is due to LyX, but I would >>> appreciate it if any one here could help me. >>> >>> When writing a document in LyX and using XeTeX and polyglossia I have >>> noticed some of the page numbers were in different font than others. Upon >>> further investigation I have found out that whenever an environment (e.g. >>> Theorem, Lemma, etc.) spans a page break, the page number within would use >>> the font used in that environment (so - the specific number would be >>> italic, like a text of a Theorem environment). >>> >>> This only happens when using non-English language. >>> >>> Would this be a bug in LyX or polyglossia? >>> How would you go further investigating or repairing it? >>> >> >> That is very strange. It is definitely not a LyX bug. >> >> I guess the thing to do is to redefine how the page number is being >> printed. What page style are you using? Did you do anything with the fancy >> headers business? >> >> Richard >> >> > >
Re: Page numbers use fonts of surrounding environments
On Thu, 12 Sep 2013 11:52:59 +0300 Itai Shakedwrote: > Hello, > I'm having a problem, which I'm not sure is due to LyX, but I would > appreciate it if any one here could help me. > > When writing a document in LyX and using XeTeX and polyglossia I have > noticed some of the page numbers were in different font than others. > Upon further investigation I have found out that whenever an > environment (e.g. Theorem, Lemma, etc.) spans a page break, the page > number within would use the font used in that environment (so - the > specific number would be italic, like a text of a Theorem > environment). > > This only happens when using non-English language. > > Would this be a bug in LyX or polyglossia? > How would you go further investigating or repairing it? If I were having this problem, my first step would be to back up the LyX file for safe keeping, and troubleshoot on copies. My second step would be to remove all but the first five pages, and see if the problem persists. Then I'd remove polyglossia and see if the problem persists. If not, report it to Polyglossia at http://github.com/reutenauer/polyglossia/issues Just keep experimenting til you find the root cause, and then use search engines to see if others have solved that problem. But right now you don't know if the problem is in LyX, Polyglossia, your TeX/LaTeX setup, your LyX to PDF conversion, or even your PDF reader. You can quickly narrow it down. And remember, when dealing with LyX, never underestimate the power of the "Minimal Example That Reproduces The Problem". HTH, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance