Re: STY Layout and \maketitle Help
Jean-Marc Lasgouttes wrote: Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? The class wraps the title block in a command, \phmHeader, so you get something like: \phmHeader{ \title{...} \author{...} \address{...} \maketitle } When tex2lyx imported it, \phmHeader went into ERT, in a Standard environment, which then caused \maketitle to be output at the wrong time. Nor of course can \phmHeader go into the title environment, since then you get: \title{\phmHeader{... which is wrong. I don't think LyX can easily output a structure like the one shown, no matter what tricks you use. But it seems to turn out that \maketitle can go outside the \phmHeader block with no damage. I suppose one thing one could do is somehow use the trick I ended up suggesting in tex2lyx, namely, that we use a special InTitle environment instead of Standard until we get out of the title. rh
Re: STY Layout and \maketitle Help
Jean-Marc Lasgouttes wrote: Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? The class wraps the title block in a command, \phmHeader, so you get something like: \phmHeader{ \title{...} \author{...} \address{...} \maketitle } When tex2lyx imported it, \phmHeader went into ERT, in a Standard environment, which then caused \maketitle to be output at the wrong time. Nor of course can \phmHeader go into the title environment, since then you get: \title{\phmHeader{... which is wrong. I don't think LyX can easily output a structure like the one shown, no matter what tricks you use. But it seems to turn out that \maketitle can go outside the \phmHeader block with no damage. I suppose one thing one could do is somehow use the trick I ended up suggesting in tex2lyx, namely, that we use a special InTitle environment instead of Standard until we get out of the title. rh
Re: STY Layout and \maketitle Help
Jean-Marc Lasgouttes wrote: Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? The class wraps the title block in a command, \phmHeader, so you get something like: \phmHeader{ \title{...} \author{...} \address{...} \maketitle } When tex2lyx imported it, \phmHeader went into ERT, in a Standard environment, which then caused \maketitle to be output at the wrong time. Nor of course can \phmHeader go into the title environment, since then you get: \title{\phmHeader{... which is wrong. I don't think LyX can easily output a structure like the one shown, no matter what tricks you use. But it seems to turn out that \maketitle can go outside the \phmHeader block with no damage. I suppose one thing one could do is somehow use the trick I ended up suggesting in tex2lyx, namely, that we use a special InTitle environment instead of Standard until we get out of the title. rh
Re: STY Layout and \maketitle Help
Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? JMarc
Re: STY Layout and \maketitle Help
Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? JMarc
Re: STY Layout and \maketitle Help
Le 24 juin 09 à 22:31, rgheck a écrit : guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Could you make an executive summary for me? JMarc
Re: STY Layout and \maketitle Help
I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions?
Re: STY Layout and \maketitle Help
Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh
Re: STY Layout and \maketitle Help
I just did that and I noticed a few differences. LyX is adding the following lines that are not in the LaTeX file and I'm not sure where they are coming from. \usepackage[T1]{fontenc} \usepackage{babel} The only other difference I can see is that LyX has \documentclass[twocolumn,english]{article} where the LaTex has \documentclass[twocolumn]{article} On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh
Re: STY Layout and \maketitle Help
Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Is there a way in LyX to edit the LaTex Source directly? I'm including two files test.tex is the original LaTeX that compiles fine and testlyx.tex comes from importing the test.tex file, changing the document class to article(phm) and then exporting. On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh testlyx.tex Description: TeX document test.tex Description: TeX document
Re: STY Layout and \maketitle Help
Danny Parker wrote: Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Yes, to control the TOC. But they are harmless. The crucial difference is that \maketitle comes earlier---probably too early---in the LyX file. Can you post the LyX file? And the phm.style file? I can't compile anything without that. Is there a way in LyX to edit the LaTex Source directly? No. rh
Re: STY Layout and \maketitle Help
Here they are. My layout file is in the top post if you need that too. Thanks for the help. On Wed, Jun 24, 2009 at 10:42 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Yes, to control the TOC. But they are harmless. The crucial difference is that \maketitle comes earlier---probably too early---in the LyX file. Can you post the LyX file? And the phm.style file? I can't compile anything without that. Is there a way in LyX to edit the LaTex Source directly? No. rh test.lyx Description: Binary data phm.sty Description: Binary data
Re: STY Layout and \maketitle Help
Danny Parker wrote: Here they are. My layout file is in the top post if you need that too. Thanks for the help. OK, the problem is that LyX outputs \maketitle as soon as you use a layout that is not marked InTitle. Since you put \phmheader in ERT in a Standard environment, that's not InTitle, and so out \maketitle goes. But you can't put \phmheader in the Title environment either, since then it comes inside \title, which is also wrong. Add this Style TitleERT InTitle 1 End to your layout, and use it instead of standard where you need ERT in the title block. rh
Re: STY Layout and \maketitle Help
Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Danny On Wed, Jun 24, 2009 at 12:18 PM, rgheck rgh...@bobjweil.com wrote: Add this Style TitleERT InTitle 1 End to your layout, and use it instead of standard where you need ERT in the title block.
Re: STY Layout and \maketitle Help
Danny Parker wrote: Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Choose TitleERT as your first paragraph style, from the drop box at the top left, and then put the \phmHeader{ in ERT. Then do the title and other stuff, then choose TitleERT again, and put the closing } in ERT. Or, if you're just working with the file you had before, change the paragraphs with that material from Standar to TitleERT. rh
Re: STY Layout and \maketitle Help
Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. On Wed, Jun 24, 2009 at 2:17 PM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Choose TitleERT as your first paragraph style, from the drop box at the top left, and then put the \phmHeader{ in ERT. Then do the title and other stuff, then choose TitleERT again, and put the closing } in ERT. Or, if you're just working with the file you had before, change the paragraphs with that material from Standar to TitleERT. rh
Re: STY Layout and \maketitle Help
Danny Parker wrote: Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. I guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Richard
Re: STY Layout and \maketitle Help
I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions?
Re: STY Layout and \maketitle Help
Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh
Re: STY Layout and \maketitle Help
I just did that and I noticed a few differences. LyX is adding the following lines that are not in the LaTeX file and I'm not sure where they are coming from. \usepackage[T1]{fontenc} \usepackage{babel} The only other difference I can see is that LyX has \documentclass[twocolumn,english]{article} where the LaTex has \documentclass[twocolumn]{article} On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh
Re: STY Layout and \maketitle Help
Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Is there a way in LyX to edit the LaTex Source directly? I'm including two files test.tex is the original LaTeX that compiles fine and testlyx.tex comes from importing the test.tex file, changing the document class to article(phm) and then exporting. On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh testlyx.tex Description: TeX document test.tex Description: TeX document
Re: STY Layout and \maketitle Help
Danny Parker wrote: Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Yes, to control the TOC. But they are harmless. The crucial difference is that \maketitle comes earlier---probably too early---in the LyX file. Can you post the LyX file? And the phm.style file? I can't compile anything without that. Is there a way in LyX to edit the LaTex Source directly? No. rh
Re: STY Layout and \maketitle Help
Here they are. My layout file is in the top post if you need that too. Thanks for the help. On Wed, Jun 24, 2009 at 10:42 AM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Yes, to control the TOC. But they are harmless. The crucial difference is that \maketitle comes earlier---probably too early---in the LyX file. Can you post the LyX file? And the phm.style file? I can't compile anything without that. Is there a way in LyX to edit the LaTex Source directly? No. rh test.lyx Description: Binary data phm.sty Description: Binary data
Re: STY Layout and \maketitle Help
Danny Parker wrote: Here they are. My layout file is in the top post if you need that too. Thanks for the help. OK, the problem is that LyX outputs \maketitle as soon as you use a layout that is not marked InTitle. Since you put \phmheader in ERT in a Standard environment, that's not InTitle, and so out \maketitle goes. But you can't put \phmheader in the Title environment either, since then it comes inside \title, which is also wrong. Add this Style TitleERT InTitle 1 End to your layout, and use it instead of standard where you need ERT in the title block. rh
Re: STY Layout and \maketitle Help
Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Danny On Wed, Jun 24, 2009 at 12:18 PM, rgheck rgh...@bobjweil.com wrote: Add this Style TitleERT InTitle 1 End to your layout, and use it instead of standard where you need ERT in the title block.
Re: STY Layout and \maketitle Help
Danny Parker wrote: Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Choose TitleERT as your first paragraph style, from the drop box at the top left, and then put the \phmHeader{ in ERT. Then do the title and other stuff, then choose TitleERT again, and put the closing } in ERT. Or, if you're just working with the file you had before, change the paragraphs with that material from Standar to TitleERT. rh
Re: STY Layout and \maketitle Help
Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. On Wed, Jun 24, 2009 at 2:17 PM, rgheck rgh...@bobjweil.com wrote: Danny Parker wrote: Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by use it instead of standard. Could you please direct me to some reading or explain a little further. Choose TitleERT as your first paragraph style, from the drop box at the top left, and then put the \phmHeader{ in ERT. Then do the title and other stuff, then choose TitleERT again, and put the closing } in ERT. Or, if you're just working with the file you had before, change the paragraphs with that material from Standar to TitleERT. rh
Re: STY Layout and \maketitle Help
Danny Parker wrote: Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. I guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Richard
Re: STY Layout and \maketitle Help
I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions?
Re: STY Layout and \maketitle Help
Danny Parker wrote: I still haven't been able to figure this out. As far as I can tell the problem boils down to that MikTeX can use the .sty from the command line and I can't get LyX to generate a DVI without errors. Any suggestions? Try exporting the document to LaTeX and comparing to to what you get when you do it manually. Otehrwise, I'm not sure. rh
Re: STY Layout and \maketitle Help
I just did that and I noticed a few differences. LyX is adding the following lines that are not in the LaTeX file and I'm not sure where they are coming from. \usepackage[T1]{fontenc} \usepackage{babel} The only other difference I can see is that LyX has \documentclass[twocolumn,english]{article} where the LaTex has \documentclass[twocolumn]{article} On Wed, Jun 24, 2009 at 9:43 AM, rgheckwrote: > Danny Parker wrote: > >> I still haven't been able to figure this out. As far as I can tell the >> problem boils down to that MikTeX can use the .sty from the command line >> and >> I can't get LyX to generate a DVI without errors. Any suggestions? >> >> > Try exporting the document to LaTeX and comparing to to what you get when > you do it manually. Otehrwise, I'm not sure. > > rh > > >
Re: STY Layout and \maketitle Help
Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Is there a way in LyX to edit the LaTex Source directly? I'm including two files test.tex is the original LaTeX that compiles fine and testlyx.tex comes from importing the test.tex file, changing the document class to article(phm) and then exporting. On Wed, Jun 24, 2009 at 9:43 AM, rgheckwrote: > Danny Parker wrote: > >> I still haven't been able to figure this out. As far as I can tell the >> problem boils down to that MikTeX can use the .sty from the command line >> and >> I can't get LyX to generate a DVI without errors. Any suggestions? >> >> > Try exporting the document to LaTeX and comparing to to what you get when > you do it manually. Otehrwise, I'm not sure. > > rh > > > testlyx.tex Description: TeX document test.tex Description: TeX document
Re: STY Layout and \maketitle Help
Danny Parker wrote: Another difference is that LyX adds \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \makeatletter \makeatother Any idea why LyX is adding these files? Yes, to control the TOC. But they are harmless. The crucial difference is that \maketitle comes earlier---probably too early---in the LyX file. Can you post the LyX file? And the phm.style file? I can't compile anything without that. Is there a way in LyX to edit the LaTex Source directly? No. rh
Re: STY Layout and \maketitle Help
Here they are. My layout file is in the top post if you need that too. Thanks for the help. On Wed, Jun 24, 2009 at 10:42 AM, rgheckwrote: > Danny Parker wrote: > >> Another difference is that LyX adds >> >> \setcounter{secnumdepth}{3} >> >> \setcounter{tocdepth}{3} >> >> \makeatletter >> \makeatother >> >> Any idea why LyX is adding these files? >> > Yes, to control the TOC. But they are harmless. > > The crucial difference is that \maketitle comes earlier---probably too > early---in the LyX file. Can you post the LyX file? And the phm.style file? > I can't compile anything without that. > > Is there a way in LyX to edit the LaTex Source directly? >> > No. > > rh > > test.lyx Description: Binary data phm.sty Description: Binary data
Re: STY Layout and \maketitle Help
Danny Parker wrote: Here they are. My layout file is in the top post if you need that too. Thanks for the help. OK, the problem is that LyX outputs \maketitle as soon as you use a layout that is not marked "InTitle". Since you put \phmheader in ERT in a Standard environment, that's not InTitle, and so out \maketitle goes. But you can't put \phmheader in the Title environment either, since then it comes inside \title, which is also wrong. Add this Style TitleERT InTitle 1 End to your layout, and use it instead of standard where you need ERT in the title block. rh
Re: STY Layout and \maketitle Help
Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by "use it instead of standard". Could you please direct me to some reading or explain a little further. Danny On Wed, Jun 24, 2009 at 12:18 PM, rgheckwrote: > Add this > > Style TitleERT > InTitle 1 > End > > to your layout, and use it instead of standard where you need ERT in the > title block. >
Re: STY Layout and \maketitle Help
Danny Parker wrote: Thanks again for the help. I added that to my layout but I'm still very new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really understand what you mean by "use it instead of standard". Could you please direct me to some reading or explain a little further. Choose TitleERT as your first paragraph style, from the drop box at the top left, and then put the "\phmHeader{" in ERT. Then do the title and other stuff, then choose TitleERT again, and put the closing "}" in ERT. Or, if you're just working with the file you had before, change the paragraphs with that material from Standar to TitleERT. rh
Re: STY Layout and \maketitle Help
Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. On Wed, Jun 24, 2009 at 2:17 PM, rgheckwrote: > Danny Parker wrote: > >> Thanks again for the help. I added that to my layout but I'm still very >> new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really >> understand what you mean by "use it instead of standard". Could you please >> direct me to some reading or explain a little further. >> >> Choose TitleERT as your first paragraph style, from the drop box at the > top left, and then put the "\phmHeader{" in ERT. Then do the title and other > stuff, then choose TitleERT again, and put the closing "}" in ERT. Or, if > you're just working with the file you had before, change the paragraphs with > that material from Standar to TitleERT. > > rh > >
Re: STY Layout and \maketitle Help
Danny Parker wrote: Great! That fixed it. Thanks again for your help and patience. So I'm slowly starting to understand what the problem was here. I guess what I'm still unclear on is was this a user error or LyX bug since MikTex compiled it fine. I guess it's a tex2lyx importation bug, but I also doubt that any sane version of tex2lyx could ever catch this kind of thing reliably. Richard