Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, Oct 11, 2012 at 8:21 PM, Steve Litt sl...@troubleshooters.com wrote: On Thu, 11 Oct 2012 15:32:37 -0400, Richard Heck said: Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh Thanks Richard, I'll do that. Where and how do I file an enhancement request? www.lyx.org/trac Thanks SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, Oct 11, 2012 at 8:21 PM, Steve Litt sl...@troubleshooters.com wrote: On Thu, 11 Oct 2012 15:32:37 -0400, Richard Heck said: Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh Thanks Richard, I'll do that. Where and how do I file an enhancement request? www.lyx.org/trac Thanks SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Hi all, My document class is created with a layout file derived from the Book document class. This layout is over 600 lines long -- way too long to change the parent document class and then change everything else. My solution needs to keep the derivation from Book. I need two environments with which to represent a diary. The first, called diaryheader, has an indented first line and a large (5ex or so) vertical space before it. The date and the following text goes on it. Following paragraphs pertaining to the same date are in environment diaryparagraph, which has no indentation or vertical space before it. So far I made the following skeleton: Style DiaryParagraph CopyStyle Standard End Style DiaryHeader CopyStyle DiaryParagraph End Later I'll be filling in the LyX and LaTeX to adopt the proper appearance, and I'm not worried about that right now. But one thing confuses me. How do I make sure that any DiaryHeader paragraph is automatically, by default, followed by a DiaryParagraph paragraph, and any DiaryParagraph paragraph is also followed, automatically by default, by another DiaryParagraph paragraph? I'm pretty sure this is possible because I could swear I've seen paragraphs automatically followed by other types of paragraphs, or the same type of paragraph. So how do I do it? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Hi all, My document class is created with a layout file derived from the Book document class. This layout is over 600 lines long -- way too long to change the parent document class and then change everything else. My solution needs to keep the derivation from Book. I need two environments with which to represent a diary. The first, called diaryheader, has an indented first line and a large (5ex or so) vertical space before it. The date and the following text goes on it. Following paragraphs pertaining to the same date are in environment diaryparagraph, which has no indentation or vertical space before it. So far I made the following skeleton: Style DiaryParagraph CopyStyle Standard End Style DiaryHeader CopyStyle DiaryParagraph End Later I'll be filling in the LyX and LaTeX to adopt the proper appearance, and I'm not worried about that right now. But one thing confuses me. How do I make sure that any DiaryHeader paragraph is automatically, by default, followed by a DiaryParagraph paragraph, and any DiaryParagraph paragraph is also followed, automatically by default, by another DiaryParagraph paragraph? I'm pretty sure this is possible because I could swear I've seen paragraphs automatically followed by other types of paragraphs, or the same type of paragraph. So how do I do it? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, 11 Oct 2012 15:32:37 -0400, Richard Heck said: Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh Thanks Richard, I'll do that. Where and how do I file an enhancement request? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 12/10/2012 10:45 a.m., stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. Wouldn't putting DefaultStyle DiaryParagraphs in the layout have the desired effect? As I understand it, that would mean a paragraph following DiaryHeader would automatically be in DiaryParagraphs style. Later: I've just done a couple of experiments with one of my own layouts and changed the DefaultStyle specification to Itemize in one case and Paragraph in the other. Each new paragraph I started turned into either an Itemized list or a Paragraph kind of paragraph. Andrew
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 10/11/2012 05:45 PM, stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. That's just because it's the DefaultStyle. It's always the NextStyle, if you're not in an environment or whatever. Environments always continue what was before; commands give you Default next. rh
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Fri, 12 Oct 2012 13:49:08 +1300, Andrew Parsloe said: On 12/10/2012 10:45 a.m., stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. Wouldn't putting DefaultStyle DiaryParagraphs in the layout have the desired effect? As I understand it, that would mean a paragraph following DiaryHeader would automatically be in DiaryParagraphs style. No. DefaultStyle is a global setting that defaults the next paragraph to a certain environment, REGARDLESS of the current environment. What we're talking about is, for a specific environment, specifying what environment the next paragraph will default to. I tried -- you can't put DefaultStyle within a style. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Hi all, My document class is created with a layout file derived from the Book document class. This layout is over 600 lines long -- way too long to change the parent document class and then change everything else. My solution needs to keep the derivation from Book. I need two environments with which to represent a diary. The first, called diaryheader, has an indented first line and a large (5ex or so) vertical space before it. The date and the following text goes on it. Following paragraphs pertaining to the same date are in environment diaryparagraph, which has no indentation or vertical space before it. So far I made the following skeleton: Style DiaryParagraph CopyStyle Standard End Style DiaryHeader CopyStyle DiaryParagraph End Later I'll be filling in the LyX and LaTeX to adopt the proper appearance, and I'm not worried about that right now. But one thing confuses me. How do I make sure that any DiaryHeader paragraph is automatically, by default, followed by a DiaryParagraph paragraph, and any DiaryParagraph paragraph is also followed, automatically by default, by another DiaryParagraph paragraph? I'm pretty sure this is possible because I could swear I've seen paragraphs automatically followed by other types of paragraphs, or the same type of paragraph. So how do I do it? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Hi all, My document class is created with a layout file derived from the Book document class. This layout is over 600 lines long -- way too long to change the parent document class and then change everything else. My solution needs to keep the derivation from Book. I need two environments with which to represent a diary. The first, called diaryheader, has an indented first line and a large (5ex or so) vertical space before it. The date and the following text goes on it. Following paragraphs pertaining to the same date are in environment diaryparagraph, which has no indentation or vertical space before it. So far I made the following skeleton: Style DiaryParagraph CopyStyle Standard End Style DiaryHeader CopyStyle DiaryParagraph End Later I'll be filling in the LyX and LaTeX to adopt the proper appearance, and I'm not worried about that right now. But one thing confuses me. How do I make sure that any DiaryHeader paragraph is automatically, by default, followed by a DiaryParagraph paragraph, and any DiaryParagraph paragraph is also followed, automatically by default, by another DiaryParagraph paragraph? I'm pretty sure this is possible because I could swear I've seen paragraphs automatically followed by other types of paragraphs, or the same type of paragraph. So how do I do it? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Thu, 11 Oct 2012 15:32:37 -0400, Richard Heck said: Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. rh Thanks Richard, I'll do that. Where and how do I file an enhancement request? Thanks SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 12/10/2012 10:45 a.m., stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. Wouldn't putting DefaultStyle DiaryParagraphs in the layout have the desired effect? As I understand it, that would mean a paragraph following DiaryHeader would automatically be in DiaryParagraphs style. Later: I've just done a couple of experiments with one of my own layouts and changed the DefaultStyle specification to Itemize in one case and Paragraph in the other. Each new paragraph I started turned into either an Itemized list or a Paragraph kind of paragraph. Andrew
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On 10/11/2012 05:45 PM, stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. That's just because it's the DefaultStyle. It's always the NextStyle, if you're not in an environment or whatever. Environments always continue what was before; commands give you Default next. rh
Re: How to specify the style of the next environment in this environment? PARTIALLY SOLVED
On Fri, 12 Oct 2012 13:49:08 +1300, Andrew Parsloe said: On 12/10/2012 10:45 a.m., stefano franchi wrote: On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck rgh...@lyx.org wrote: On 10/11/2012 04:47 AM, Steve Litt wrote: On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said: Putting LatexType Environment in the LyX definition causes the next paragraph to be of the same environment as the current one. This doesn't give me the feature of the next paragraph after a DiaryHeader being a DiaryParagraph, but at least consecutive DiaryParagraphs are automatically the same style. I don't think we have a NextStyle tag, but it would be useful. File an enhancement request if you wish. Richard, is the behavior of the sectioning environments hardcoded then? They do return to the Standard environment on the next paragraph, even though the stdsections.inc layout file does not mention any NextStyle tag, as you said. S. Wouldn't putting DefaultStyle DiaryParagraphs in the layout have the desired effect? As I understand it, that would mean a paragraph following DiaryHeader would automatically be in DiaryParagraphs style. No. DefaultStyle is a global setting that defaults the next paragraph to a certain environment, REGARDLESS of the current environment. What we're talking about is, for a specific environment, specifying what environment the next paragraph will default to. I tried -- you can't put DefaultStyle within a style. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance