Re: Paragraph Indent Alignment in .layout file
On 2009-11-06, Jean-Marc Lasgouttes wrote: Guenter Milde mi...@users.berlios.de writes: ... the on-screen display should be (configurable to) leftalign instead of block align, *independent of the alignment in the output* OK. Then we should have a preference show justified text as left-aligned This would be the right way indeed. I am looking forward to see this in my next LyX. I do not think it is reasonable to modify layout files to get this result. The 'leftalign.module' is just a temporary workaround. It works around the problem of bad LyX-display in lists and section headings (where it is quite common to have holes in the block-aligned display). Günter
Re: Paragraph Indent Alignment in .layout file
On 2009-11-06, Jean-Marc Lasgouttes wrote: Guenter Milde mi...@users.berlios.de writes: ... the on-screen display should be (configurable to) leftalign instead of block align, *independent of the alignment in the output* OK. Then we should have a preference show justified text as left-aligned This would be the right way indeed. I am looking forward to see this in my next LyX. I do not think it is reasonable to modify layout files to get this result. The 'leftalign.module' is just a temporary workaround. It works around the problem of bad LyX-display in lists and section headings (where it is quite common to have holes in the block-aligned display). Günter
Re: Paragraph Indent Alignment in .layout file
On 2009-11-06, Jean-Marc Lasgouttes wrote: > Guenter Mildewrites: ... >> the on-screen display should be (configurable to) leftalign instead of >> block align, *independent of the alignment in the output* > OK. Then we should have a preference "show justified text as left-aligned" This would be "the right way" indeed. I am looking forward to see this in my next LyX. > I do not think it is reasonable to modify layout files to get this result. The 'leftalign.module' is just a temporary workaround. It works around the problem of bad LyX-display in lists and section headings (where it is quite common to have "holes" in the block-aligned display). Günter
Re: Paragraph Indent Alignment in .layout file
Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl writes: Is the problem on screen only, or for the output. It is about the screen display. I don't know whether it's a bug. If you select a left alignment of a paragraph in LyX, LyX and LaTeX both don't indent the paragraph and thus ParIndent should also be ignored when it is defined in a layout. This is indeed done on purpose in the LaTeX sources: \def\raggedright{% \let...@centercr\@rightsk...@flushglue \rightsk...@rightskip \leftski...@skip \parinden...@} Hint: the last line is the relevant one here. It is possible to reinstall indentation by setting parindent again after calling raggedright, something like this (untested) in the preamble (could be turned into a module, too). \let\oldrr=\raggedright \def\raggedright{\let\oldps=\parskip\oldrr\parskip=\oldps} JMarc
Re: Paragraph Indent Alignment in .layout file
Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl writes: Is the problem on screen only, or for the output. It is about the screen display. I don't know whether it's a bug. If you select a left alignment of a paragraph in LyX, LyX and LaTeX both don't indent the paragraph and thus ParIndent should also be ignored when it is defined in a layout. This is indeed done on purpose in the LaTeX sources: \def\raggedright{% \let...@centercr\@rightsk...@flushglue \rightsk...@rightskip \leftski...@skip \parinden...@} Hint: the last line is the relevant one here. It is possible to reinstall indentation by setting parindent again after calling raggedright, something like this (untested) in the preamble (could be turned into a module, too). \let\oldrr=\raggedright \def\raggedright{\let\oldps=\parskip\oldrr\parskip=\oldps} JMarc
Re: Paragraph Indent Alignment in .layout file
Vincent van Ravesteijnwrites: >>> Is the problem on screen only, or for the output. >>> >> >> It is about the screen display. >> > > I don't know whether it's a bug. If you select a left alignment of a > paragraph in LyX, LyX and LaTeX both don't indent the paragraph and > thus ParIndent should also be ignored when it is defined in a layout. This is indeed done on purpose in the LaTeX sources: \def\raggedright{% \let...@centercr\@rightsk...@flushglue \rightsk...@rightskip \leftski...@skip \parinden...@} Hint: the last line is the relevant one here. It is possible to reinstall indentation by setting parindent again after calling raggedright, something like this (untested) in the preamble (could be turned into a module, too). \let\oldrr=\raggedright \def\raggedright{\let\oldps=\parskip\oldrr\parskip=\oldps} JMarc
Re: Paragraph Indent Alignment in .layout file
Is the problem on screen only, or for the output. It is about the screen display. I don't know whether it's a bug. If you select a left alignment of a paragraph in LyX, LyX and LaTeX both don't indent the paragraph and thus ParIndent should also be ignored when it is defined in a layout. VIncent
Re: Paragraph Indent Alignment in .layout file
Is the problem on screen only, or for the output. It is about the screen display. I don't know whether it's a bug. If you select a left alignment of a paragraph in LyX, LyX and LaTeX both don't indent the paragraph and thus ParIndent should also be ignored when it is defined in a layout. VIncent
Re: Paragraph Indent Alignment in .layout file
Is the problem on screen only, or for the output. It is about the screen display. I don't know whether it's a bug. If you select a left alignment of a paragraph in LyX, LyX and LaTeX both don't indent the paragraph and thus ParIndent should also be ignored when it is defined in a layout. VIncent
Re: Paragraph Indent Alignment in .layout file
Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) Have a look at the Customization manual that you fiond in LyX's Help menu. You find there that you have to use LeftMargin to specify the margin. ParIndent only affects the first line of the paragraph and it is furthermore a sting, not a length. So ParIndent MMM would do the job. regards Uwe
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 10:57 AM, Rob wrote: Hi, I changed the alignment of the standard environment in my layout file. I did it by simply adding these lines to my .layout file: Style Standard Align Left End This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. What should I do to keep my ragged right appearance and the conventional paragraph indents in my layout? First, ParIndent takes a string, like M, as argument. The indent will then be as big as the string. Second, I would suggest putting this kind of thing into a simple module, like the attached. Then you can use it with whatever class you want, or not. Finally, though, yes, I see the problem. This is presumably a bug. Can you enter it into the bugtracker? rh #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:18 AM, Uwe Stöhr wrote: Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) As I say in the other message, though, this is definitely a bug. Simply setting Align to Left should not kill the indentation, which is set at document level, right? rh
Re: Paragraph Indent Alignment in .layout file
Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. thanks.
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:36 AM, Rob wrote: Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. This seems to be ignored if the alignment isn't Block. There's definitely a bug here somewhere. rh
Re: Paragraph Indent Alignment in .layout file
#\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. Rob
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 12:07 PM, Rob wrote: #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. No. I only meant it as an example. The parindent problem is elsewhere, and there isn't any way to solve it, other than by fixing the bug that is causing it. rh
Re: Paragraph Indent Alignment in .layout file
On 2009-11-04, rgheck wrote: I changed the alignment of the standard environment in my layout file. ... What should I do to keep my ragged right appearance and the conventional paragraph indents in my layout? Second, I would suggest putting this kind of thing into a simple module, See the leftalign module below. Finally, though, yes, I see the problem. This is presumably a bug. Can you enter it into the bugtracker? It is a bug. I am not sure, whether I submitted it to the bugtracker already (i.e. 1,5 years ago), though. Günter #\DeclareLyXModule{leftalign} #DescriptionBegin #Left align text (instead of block align; on screen). #DescriptionEnd #Author: Günter Milde mi...@users.sf.net # Left align instead of block align (on screen) # - # As LyX's linebreaking algorithm does not include hyphenation of longer # words, some very large inter-word spaces frequently occure (especially in # languages with many long words as, e.g., German). # Readability can be improved by setting the paragraph alignment # in the LyX window to left. # This does not influence the appearance of the printout. # Drawbacks: # # * the EditParagraph Settings dialog will display default (left) # even if the default alignment of the class is block. # # * Paragraph indentation is supressed (therefore currently commented out). # Style Standard # Align Left # End #stdlists Style Itemize Align Left End Style Description Align Left End Style Enumeration Align Left End Style List Align Left End Style Quotation Align Left End Style Quote Align Left End # stdsections Style Part Align Left End Style Chapter Align Left End Style Section Align Left End Style Subsection Align Left End Style Subsubsection Align Left End
Re: Paragraph Indent Alignment in .layout file
Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) Have a look at the Customization manual that you fiond in LyX's Help menu. You find there that you have to use LeftMargin to specify the margin. ParIndent only affects the first line of the paragraph and it is furthermore a sting, not a length. So ParIndent MMM would do the job. regards Uwe
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 10:57 AM, Rob wrote: Hi, I changed the alignment of the standard environment in my layout file. I did it by simply adding these lines to my .layout file: Style Standard Align Left End This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. What should I do to keep my ragged right appearance and the conventional paragraph indents in my layout? First, ParIndent takes a string, like M, as argument. The indent will then be as big as the string. Second, I would suggest putting this kind of thing into a simple module, like the attached. Then you can use it with whatever class you want, or not. Finally, though, yes, I see the problem. This is presumably a bug. Can you enter it into the bugtracker? rh #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:18 AM, Uwe Stöhr wrote: Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) As I say in the other message, though, this is definitely a bug. Simply setting Align to Left should not kill the indentation, which is set at document level, right? rh
Re: Paragraph Indent Alignment in .layout file
Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. thanks.
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:36 AM, Rob wrote: Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. This seems to be ignored if the alignment isn't Block. There's definitely a bug here somewhere. rh
Re: Paragraph Indent Alignment in .layout file
#\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. Rob
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 12:07 PM, Rob wrote: #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. No. I only meant it as an example. The parindent problem is elsewhere, and there isn't any way to solve it, other than by fixing the bug that is causing it. rh
Re: Paragraph Indent Alignment in .layout file
On 2009-11-04, rgheck wrote: I changed the alignment of the standard environment in my layout file. ... What should I do to keep my ragged right appearance and the conventional paragraph indents in my layout? Second, I would suggest putting this kind of thing into a simple module, See the leftalign module below. Finally, though, yes, I see the problem. This is presumably a bug. Can you enter it into the bugtracker? It is a bug. I am not sure, whether I submitted it to the bugtracker already (i.e. 1,5 years ago), though. Günter #\DeclareLyXModule{leftalign} #DescriptionBegin #Left align text (instead of block align; on screen). #DescriptionEnd #Author: Günter Milde mi...@users.sf.net # Left align instead of block align (on screen) # - # As LyX's linebreaking algorithm does not include hyphenation of longer # words, some very large inter-word spaces frequently occure (especially in # languages with many long words as, e.g., German). # Readability can be improved by setting the paragraph alignment # in the LyX window to left. # This does not influence the appearance of the printout. # Drawbacks: # # * the EditParagraph Settings dialog will display default (left) # even if the default alignment of the class is block. # # * Paragraph indentation is supressed (therefore currently commented out). # Style Standard # Align Left # End #stdlists Style Itemize Align Left End Style Description Align Left End Style Enumeration Align Left End Style List Align Left End Style Quotation Align Left End Style Quote Align Left End # stdsections Style Part Align Left End Style Chapter Align Left End Style Section Align Left End Style Subsection Align Left End Style Subsubsection Align Left End
Re: Paragraph Indent Alignment in .layout file
Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) Have a look at the Customization manual that you fiond in LyX's Help menu. You find there that you have to use LeftMargin to specify the margin. ParIndent only affects the first line of the paragraph and it is furthermore a sting, not a length. So ParIndent "MMM" would do the job. regards Uwe
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 10:57 AM, Rob wrote: Hi, I changed the alignment of the standard environment in my layout file. I did it by simply adding these lines to my .layout file: Style Standard Align Left End This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. What should I do to keep my ragged right appearance and the conventional paragraph indents in my layout? First, ParIndent takes a string, like "M", as argument. The indent will then be as big as the string. Second, I would suggest putting this kind of thing into a simple module, like the attached. Then you can use it with whatever class you want, or not. Finally, though, yes, I see the problem. This is presumably a bug. Can you enter it into the bugtracker? rh #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:18 AM, Uwe Stöhr wrote: Rob schrieb: This is now ragged right in my layout, as I desire, but I lost the paragraph indents in the process. When I changed the above to this: Style Standard ParIndent 30pt Align Left End I still didn't get the paragraph indents. I definitely do not know what I am doing. That's the problem ;-) As I say in the other message, though, this is definitely a bug. Simply setting Align to Left should not kill the indentation, which is set at document level, right? rh
Re: Paragraph Indent Alignment in .layout file
Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. thanks.
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 11:36 AM, Rob wrote: Thanks Uwe, But when I specify Style Standard Align Left ParIndent MMM End the problems persists. In fact, no matter the string entry for ParIndent, the problem persists. I've looked closely at the customization manual, but cannot find my solution there. This seems to be ignored if the alignment isn't Block. There's definitely a bug here somewhere. rh
Re: Paragraph Indent Alignment in .layout file
> > #\DeclareLyXModule{Test} > #DescriptionBegin > #Test Module > #DescriptionEnd > > Format 11 > > Style Standard > Align Left > ParIndent M > End > > Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. Rob
Re: Paragraph Indent Alignment in .layout file
On 11/04/2009 12:07 PM, Rob wrote: #\DeclareLyXModule{Test} #DescriptionBegin #Test Module #DescriptionEnd Format 11 Style Standard Align Left ParIndent M End Hi RG, Thanks for your help with this. I copied your text to make a module and am able to change the margins, alignment etc., but still not the paragraph indent. Were you able to change the paragraph indent with this module as it's written? Thanks. No. I only meant it as an example. The parindent problem is elsewhere, and there isn't any way to solve it, other than by fixing the bug that is causing it. rh
Re: Paragraph Indent Alignment in .layout file
On 2009-11-04, rgheck wrote: >> I changed the alignment of the standard environment in my layout file. ... >> What should I do to keep my ragged right appearance >> and the conventional paragraph indents in my layout? > Second, I would suggest putting this kind of thing into a simple module, See the leftalign module below. > Finally, though, yes, I see the problem. This is presumably a bug. Can > you enter it into the bugtracker? It is a bug. I am not sure, whether I submitted it to the bugtracker already (i.e. 1,5 years ago), though. Günter #\DeclareLyXModule{leftalign} #DescriptionBegin #Left align text (instead of block align; on screen). #DescriptionEnd #Author: Günter Milde# Left align instead of block align (on screen) # - # As LyX's linebreaking algorithm does not include hyphenation of longer # words, some very large inter-word spaces frequently occure (especially in # languages with many long words as, e.g., German). # Readability can be improved by setting the paragraph alignment # in the LyX window to "left". # This does not influence the appearance of the printout. # Drawbacks: # # * the Edit>Paragraph Settings dialog will display "default (left)" # even if the default alignment of the class is "block". # # * Paragraph indentation is supressed (therefore currently commented out). # Style Standard # Align Left # End #stdlists Style Itemize Align Left End Style Description Align Left End Style Enumeration Align Left End Style List Align Left End Style Quotation Align Left End Style Quote Align Left End # stdsections Style Part Align Left End Style Chapter Align Left End Style Section Align Left End Style Subsection Align Left End Style Subsubsection Align Left End