Re: Check out my Warning environment
On Wed, Aug 29, 2001 at 12:20:29PM -0400, Steve Litt wrote: The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Use {\centering WARNING\\[0.5cm]} and remove the \flushleft. Also, before the \hrulefill you need to put \par and not \\
Re: Check out my Warning environment
On Wed, Aug 29, 2001 at 12:20:29PM -0400, Steve Litt wrote: The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Use {\centering WARNING\\[0.5cm]} and remove the \flushleft. Also, before the \hrulefill you need to put \par and not \\
Re: Check out my Warning environment
On Wed, Aug 29, 2001 at 12:20:29PM -0400, Steve Litt wrote: > The only bad part is it's ragged right in the finished product -- but that's > not that terrible either. Use {\centering WARNING\\[0.5cm]} and remove the \flushleft. Also, before the \hrulefill you need to put \par and not \\
Re: Re: Check out my Warning environment
On Thu, 30 Aug 2001 08:19:12 -0400 wrote Steve Litt [EMAIL PROTECTED]: On Thursday 30 August 2001 03:58, you wrote: On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt [EMAIL PROTECTED]: In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Just leave out the \flushleft in your definition. Trouble with leaving out \flushleft is the entire warning becomes centered like the label. What I really need is the equivalent of \noraggedright. Put braces around the label: ... \newenvironment{warning_l} { \begin{quote} \hrulefill\\ {\centering WARNING\\[0.5cm]} } ... The only reason I didn't use a quote environment is I was unable to adjust the margins with any style but list. Sounds strange, but my \setlength{\leftmargin}{\scratchLength} and \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I just tried it on your code using the quote environment, and once again I couldn't control the margins with \setlength{\leftmargin} et. al. Internally, also quote is defined via list (just to be able to set the indentation. I'm pretty sure it could be controlled by some special command/lenth (something like \setlentgh{\quiteindent}{3cm}) but I don't know the proper name for it nor find it in my literature. Guenter -- [EMAIL PROTECTED]
Re: Re: Check out my Warning environment
On Thu, 30 Aug 2001 08:19:12 -0400 wrote Steve Litt [EMAIL PROTECTED]: On Thursday 30 August 2001 03:58, you wrote: On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt [EMAIL PROTECTED]: In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Just leave out the \flushleft in your definition. Trouble with leaving out \flushleft is the entire warning becomes centered like the label. What I really need is the equivalent of \noraggedright. Put braces around the label: ... \newenvironment{warning_l} { \begin{quote} \hrulefill\\ {\centering WARNING\\[0.5cm]} } ... The only reason I didn't use a quote environment is I was unable to adjust the margins with any style but list. Sounds strange, but my \setlength{\leftmargin}{\scratchLength} and \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I just tried it on your code using the quote environment, and once again I couldn't control the margins with \setlength{\leftmargin} et. al. Internally, also quote is defined via list (just to be able to set the indentation. I'm pretty sure it could be controlled by some special command/lenth (something like \setlentgh{\quiteindent}{3cm}) but I don't know the proper name for it nor find it in my literature. Guenter -- [EMAIL PROTECTED]
Re: Re: Check out my Warning environment
On Thu, 30 Aug 2001 08:19:12 -0400 wrote Steve Litt <[EMAIL PROTECTED]>: > On Thursday 30 August 2001 03:58, you wrote: > > On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt > <[EMAIL PROTECTED]>: > > > In the final product it has a line above the word WARNING and below the > > > last word of the warning text. I couldn't figure out how to do the lines > > > in LyX but that's not a big issue anyway. > > > > > > The only bad part is it's ragged right in the finished product -- but > > > that's not that terrible either. > > > > Just leave out the \flushleft in your definition. > > Trouble with leaving out \flushleft is the entire warning becomes centered > like the label. What I really need is the equivalent of \noraggedright. Put braces around the label: ... > > \newenvironment{warning_l} > > { > >\begin{quote} > >\hrulefill\\ > >{\centering WARNING\\[0.5cm]} > > } ... > > The only reason I didn't use a quote environment is I was unable to adjust > the margins with any style but list. Sounds strange, but my > \setlength{\leftmargin}{\scratchLength} and > \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I > just tried it on your code using the quote environment, and once again I > couldn't control the margins with \setlength{\leftmargin} et. al. Internally, also quote is defined via list (just to be able to set the indentation. I'm pretty sure it could be controlled by some special command/lenth (something like \setlentgh{\quiteindent}{3cm}) but I don't know the proper name for it nor find it in my literature. Guenter -- [EMAIL PROTECTED]
Re: Check out my Warning environment
On Thursday 30 August 2001 03:58, you wrote: On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt [EMAIL PROTECTED]: In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Just leave out the \flushleft in your definition. Trouble with leaving out \flushleft is the entire warning becomes centered like the label. What I really need is the equivalent of \noraggedright. The only reason I didn't use a quote environment is I was unable to adjust the margins with any style but list. Sounds strange, but my \setlength{\leftmargin}{\scratchLength} and \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I just tried it on your code using the quote environment, and once again I couldn't control the margins with \setlength{\leftmargin} et. al. Also, unless I inserted the \flushleft the whole thing was centered, and when I inserted \flushleft the right became ragged. The plot thickens :-) I really want to thank you for all this help. Because of all the help from you and the others, I was able to construct Story, Tip, Warning, BigCallout (with no title). They aren't perfect yet but they're enough that yesterday I was able to write the first few pages of my book. Steve But why dont't you use the ready made quote environment? Style Warning LatexType Environment LatexName warning_l LabelType Centered_Top_Environment LabelString -- WARNING -- # (mimick the line above) Alignblock AlignPossible block, left, right, center LeftMarginM RightMargin M ParSkip 0.7 ParSep0.7 TopSep0.7 BottomSep 0.7 Preamble \newenvironment{warning_l} { \begin{quote} \hrulefill\\ \centering WARNING\\[0.5cm] } { \\ \hrulefill\\ \end{quote} } EndPreamble End LyX offers the possibility to insert lines above and below a paragraph from the Layout|Paragraph menu. These lines also show up in the GUI. But you have to ask the lyx-gurus, whether this functionality can be included in a style definition - the doc doesnot tell anything about it, so I suppose it is not. (- feature request). Guenter -- [EMAIL PROTECTED]
Re: Check out my Warning environment
On Thursday 30 August 2001 03:58, you wrote: On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt [EMAIL PROTECTED]: In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. Just leave out the \flushleft in your definition. Trouble with leaving out \flushleft is the entire warning becomes centered like the label. What I really need is the equivalent of \noraggedright. The only reason I didn't use a quote environment is I was unable to adjust the margins with any style but list. Sounds strange, but my \setlength{\leftmargin}{\scratchLength} and \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I just tried it on your code using the quote environment, and once again I couldn't control the margins with \setlength{\leftmargin} et. al. Also, unless I inserted the \flushleft the whole thing was centered, and when I inserted \flushleft the right became ragged. The plot thickens :-) I really want to thank you for all this help. Because of all the help from you and the others, I was able to construct Story, Tip, Warning, BigCallout (with no title). They aren't perfect yet but they're enough that yesterday I was able to write the first few pages of my book. Steve But why dont't you use the ready made quote environment? Style Warning LatexType Environment LatexName warning_l LabelType Centered_Top_Environment LabelString -- WARNING -- # (mimick the line above) Alignblock AlignPossible block, left, right, center LeftMarginM RightMargin M ParSkip 0.7 ParSep0.7 TopSep0.7 BottomSep 0.7 Preamble \newenvironment{warning_l} { \begin{quote} \hrulefill\\ \centering WARNING\\[0.5cm] } { \\ \hrulefill\\ \end{quote} } EndPreamble End LyX offers the possibility to insert lines above and below a paragraph from the Layout|Paragraph menu. These lines also show up in the GUI. But you have to ask the lyx-gurus, whether this functionality can be included in a style definition - the doc doesnot tell anything about it, so I suppose it is not. (- feature request). Guenter -- [EMAIL PROTECTED]
Re: Check out my Warning environment
On Thursday 30 August 2001 03:58, you wrote: > On Wed, 29 Aug 2001 12:20:29 -0400 wrote Steve Litt <[EMAIL PROTECTED]>: > > In the final product it has a line above the word WARNING and below the > > last word of the warning text. I couldn't figure out how to do the lines > > in LyX but that's not a big issue anyway. > > > > The only bad part is it's ragged right in the finished product -- but > > that's not that terrible either. > > Just leave out the \flushleft in your definition. Trouble with leaving out \flushleft is the entire warning becomes centered like the label. What I really need is the equivalent of \noraggedright. The only reason I didn't use a quote environment is I was unable to adjust the margins with any style but list. Sounds strange, but my \setlength{\leftmargin}{\scratchLength} and \setlength{\rightmargin}{\leftmargin} wouldn't work in anything but list. I just tried it on your code using the quote environment, and once again I couldn't control the margins with \setlength{\leftmargin} et. al. Also, unless I inserted the \flushleft the whole thing was centered, and when I inserted \flushleft the right became ragged. The plot thickens :-) I really want to thank you for all this help. Because of all the help from you and the others, I was able to construct Story, Tip, Warning, BigCallout (with no title). They aren't perfect yet but they're enough that yesterday I was able to write the first few pages of my book. Steve > > But why dont't you use the "ready made" quote environment? > > Style Warning > LatexType Environment > LatexName warning_l > LabelType Centered_Top_Environment > LabelString "-- WARNING --" > # (mimick the line above) > Alignblock > AlignPossible block, left, right, center > LeftMargin"M" > RightMargin "M" > ParSkip 0.7 > ParSep0.7 > TopSep0.7 > BottomSep 0.7 > Preamble > \newenvironment{warning_l} > { >\begin{quote} >\hrulefill\\ >\centering WARNING\\[0.5cm] > } > { >\\ >\hrulefill\\ >\end{quote} > } > EndPreamble > End > > LyX offers the possibility to insert lines above and below a paragraph from > the Layout|Paragraph menu. These lines also show up in the GUI. But you > have to ask the lyx-gurus, whether this functionality can be included in a > style definition - the doc doesnot tell anything about it, so I suppose it > is not. (-> feature request). > > Guenter > > -- > [EMAIL PROTECTED]
Check out my Warning environment
Thanks to all of you for your help, including Guenter Milde, who mailed me offlist with an explanation of labels in LyX. Anyway, the Warning environment automatically prints the word WARNING on top, suitably centered, then prints the text of the warning with reduced margins. In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. So here it is: Style Warning LatexType Environment LatexName warning_l LabelType Centered_Top_Environment LabelString WARNING AlignPossible Left LeftMarginM RightMargin M ParSkip 0.7 ParSep0.7 TopSep0.7 BottomSep 0.7 Font EndFont Preamble \setlength{\scratchLength}{\leftmargin} \addtolength{\scratchLength}{1cm} \newenvironment{warning_l} { \begin{list}{} { \setlength{\leftmargin}{\scratchLength} \setlength{\rightmargin}{\leftmargin} \setlength{\parsep}{1cm} } \item[] \hrulefill \\ \centering WARNING \\[0.5cm] \flushleft } { \\ \hrulefill \\* \end{list} } EndPreamble End -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
Check out my Warning environment
Thanks to all of you for your help, including Guenter Milde, who mailed me offlist with an explanation of labels in LyX. Anyway, the Warning environment automatically prints the word WARNING on top, suitably centered, then prints the text of the warning with reduced margins. In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. So here it is: Style Warning LatexType Environment LatexName warning_l LabelType Centered_Top_Environment LabelString WARNING AlignPossible Left LeftMarginM RightMargin M ParSkip 0.7 ParSep0.7 TopSep0.7 BottomSep 0.7 Font EndFont Preamble \setlength{\scratchLength}{\leftmargin} \addtolength{\scratchLength}{1cm} \newenvironment{warning_l} { \begin{list}{} { \setlength{\leftmargin}{\scratchLength} \setlength{\rightmargin}{\leftmargin} \setlength{\parsep}{1cm} } \item[] \hrulefill \\ \centering WARNING \\[0.5cm] \flushleft } { \\ \hrulefill \\* \end{list} } EndPreamble End -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
Check out my Warning environment
Thanks to all of you for your help, including Guenter Milde, who mailed me offlist with an explanation of labels in LyX. Anyway, the Warning environment automatically prints the word WARNING on top, suitably centered, then prints the text of the warning with reduced margins. In the final product it has a line above the word WARNING and below the last word of the warning text. I couldn't figure out how to do the lines in LyX but that's not a big issue anyway. The only bad part is it's ragged right in the finished product -- but that's not that terrible either. So here it is: Style Warning LatexType Environment LatexName warning_l LabelType Centered_Top_Environment LabelString "WARNING" AlignPossible Left LeftMargin"M" RightMargin "M" ParSkip 0.7 ParSep0.7 TopSep0.7 BottomSep 0.7 Font EndFont Preamble \setlength{\scratchLength}{\leftmargin} \addtolength{\scratchLength}{1cm} \newenvironment{warning_l} { \begin{list}{} { \setlength{\leftmargin}{\scratchLength} \setlength{\rightmargin}{\leftmargin} \setlength{\parsep}{1cm} } \item[] \hrulefill \\ \centering WARNING \\[0.5cm] \flushleft } { \\ \hrulefill \\* \end{list} } EndPreamble End -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.