Re: No indentation with LyX-Code
On 5/27/07, Paul A. Rubin [EMAIL PROTECTED] wrote: I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. Thanks to all for your suggestions! Paul
Re: No indentation with LyX-Code
On 5/27/07, Paul A. Rubin [EMAIL PROTECTED] wrote: I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. Thanks to all for your suggestions! Paul
Re: No indentation with LyX-Code
On 5/27/07, Paul A. Rubin <[EMAIL PROTECTED]> wrote: > I am using LyX-Code to insert the code of a procedure in a LyX > document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. Thanks to all for your suggestions! Paul
Re: No indentation with LyX-Code
document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Write it as standard text, select textstyle type writer in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul
Re: No indentation with LyX-Code
Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space Thanks, Gunnar. It works fine! Paul
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul The other problem is that it's not very WYSIWYM. I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich [EMAIL PROTECTED] # Transposed by Pascal André [EMAIL PROTECTED] # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End
Re: No indentation with LyX-Code
document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Write it as standard text, select textstyle type writer in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul
Re: No indentation with LyX-Code
Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space Thanks, Gunnar. It works fine! Paul
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul The other problem is that it's not very WYSIWYM. I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich [EMAIL PROTECTED] # Transposed by Pascal André [EMAIL PROTECTED] # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End
Re: No indentation with LyX-Code
> document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) > > Thanks in advance, > > Paul Write it as standard text, select textstyle "type writer" in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) > Write it as standard text, select textstyle "type writer" in the menu. That will do the trick. Thanks, Gunnar, but with "type writer" text, one cannot insert spaces in the beginning of lines. Paul
Re: No indentation with LyX-Code
> Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space Thanks, Gunnar. It works fine! Paul
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: > On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > > > document. Unfortunately, I cannot get the code of the procedure NOT > > > indented, even after having set the paragraph not indented. Any ideas? > > > (I am using LyX 1.4.4.) > > > > Write it as standard text, select textstyle "type writer" in the menu. > > That will do the trick. > > Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. > > Paul The other problem is that it's not very "WYSIWYM". I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich <[EMAIL PROTECTED]> # Transposed by Pascal André <[EMAIL PROTECTED]> # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End