Re: latex help
Garst R. Reese wrote: \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Herbert Voss wrote: Garst R. Reese wrote: \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. \oneinch and \baselineskip are lengths. It will not even take \renewcommand{\baselinestretch}{\baselineskip *#1} what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx Thanks, Garst
Re: latex help
Garst R. Reese wrote: Herbert Voss wrote: Garst R. Reese wrote: \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. \oneinch and \baselineskip are lengths. It will not even take \renewcommand{\baselinestretch}{\baselineskip *#1} what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. this is a better one, but you need package fp \LinesPerInch{3} is now a valid command. instead of package setspace you can use the commands from the package for setstretch. \usepackage{fp}% floating point arithmetic \usepackage{setspace} \def\NormLPI{6}% like singlespace \def\myLPI{} \def\setLPI{} \newcommand{\LinesPerInch}[1]{% \renewcommand\setLPI{#1} \FPdiv\myLPI\NormLPI\setLPI \setstretch{\myLPI}% \normalsize% } Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx You don't need to use ERT. Just use the document dialog, select Spacing=Other, and enter 1.5 in the field to the right.
Re: latex help
Dekel Tsur wrote: On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx You don't need to use ERT. Just use the document dialog, select Spacing=Other, and enter 1.5 in the field to the right. sure, but this is before 1.2.0 a document wide option Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Dekel Tsur wrote: On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx You don't need to use ERT. Just use the document dialog, select Spacing=Other, and enter 1.5 in the field to the right. Yes, that worked. What I actually needed was .9 because baselineskip for the Courier font is 14.25pt, which is too large for the sample script. It works if I have \usepackage{calc} in hollywood.cls Herbert wrote: sure, but this is before 1.2.0 a document wide option That is fine. There may be cases where someone needs to tweak a paragraph, but I think it would pretty anal. Thanks to all Garst
Re: latex help
"Garst R. Reese" wrote: > > \newlength{\oneinch} > \setlength{\oneinch}{72bp} > \providecommand{\linesperinch}[1]% > {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% > \normalsize}% > \endinput > %% > %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Herbert Voss wrote: > > "Garst R. Reese" wrote: > > > > \newlength{\oneinch} > > \setlength{\oneinch}{72bp} > > \providecommand{\linesperinch}[1]% > > {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% > > \normalsize}% > > \endinput > > %% > > %% End of file `hollywood.cls' > > there is a problem with the use of \ratio. both parameters must be > a length. \oneinch and \baselineskip are lengths. It will not even take \renewcommand{\baselinestretch}{\baselineskip *#1} > what about \usepackage{setspace} > > and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx Thanks, Garst
Re: latex help
"Garst R. Reese" wrote: > > Herbert Voss wrote: > > > > "Garst R. Reese" wrote: > > > > > > \newlength{\oneinch} > > > \setlength{\oneinch}{72bp} > > > \providecommand{\linesperinch}[1]% > > > {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% > > > \normalsize}% > > > \endinput > > > %% > > > %% End of file `hollywood.cls' > > > > there is a problem with the use of \ratio. both parameters must be > > a length. > \oneinch and \baselineskip are lengths. It will not even take > \renewcommand{\baselinestretch}{\baselineskip *#1} > > what about \usepackage{setspace} > > > > and than in ert \setstretch{1.5} for 4 lines per inch (as an example) > Not very intuitive for the user, but it works well. this is a better one, but you need package fp \LinesPerInch{3} is now a valid command. instead of package setspace you can use the commands from the package for setstretch. \usepackage{fp}% floating point arithmetic \usepackage{setspace} \def\NormLPI{6}% like singlespace \def\myLPI{} \def\setLPI{} \newcommand{\LinesPerInch}[1]{% \renewcommand\setLPI{#1} \FPdiv\myLPI\NormLPI\setLPI \setstretch{\myLPI}% \normalsize% } Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: > > what about \usepackage{setspace} > > > > and than in ert \setstretch{1.5} for 4 lines per inch (as an example) > Not very intuitive for the user, but it works well. > I have made that change to hollywood.cls and documented it in a note in > script_form.lyx You don't need to use ERT. Just use the document dialog, select Spacing=Other, and enter 1.5 in the field to the right.
Re: latex help
Dekel Tsur wrote: > > On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: > > > what about \usepackage{setspace} > > > > > > and than in ert \setstretch{1.5} for 4 lines per inch (as an example) > > Not very intuitive for the user, but it works well. > > I have made that change to hollywood.cls and documented it in a note in > > script_form.lyx > > You don't need to use ERT. Just use the document dialog, select Spacing=Other, > and enter 1.5 in the field to the right. sure, but this is before 1.2.0 a document wide option Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Dekel Tsur wrote: > > On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: > > > what about \usepackage{setspace} > > > > > > and than in ert \setstretch{1.5} for 4 lines per inch (as an example) > > Not very intuitive for the user, but it works well. > > I have made that change to hollywood.cls and documented it in a note in > > script_form.lyx > > You don't need to use ERT. Just use the document dialog, select Spacing=Other, > and enter 1.5 in the field to the right. Yes, that worked. What I actually needed was .9 because baselineskip for the Courier font is 14.25pt, which is too large for the sample script. It works if I have \usepackage{calc} in hollywood.cls Herbert wrote: sure, but this is before 1.2.0 a document wide option That is fine. There may be cases where someone needs to tweak a paragraph, but I think it would pretty anal. Thanks to all Garst
Re: latex help
Garst R. Reese wrote: Can someone tell my why this does not work in hollywood.cls? ViewPs tells me that that a number is expected and that a dimension is missing when I ERT \linesperinch{6} I've tried numerous variations on this theme. Thanks, Garst \usepackage{calc} . . . \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% { and the closing }, where is it?? renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize }% a missinf backslash before renewcommand ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Herbert Voss wrote: Garst R. Reese wrote: Can someone tell my why this does not work in hollywood.cls? ViewPs tells me that that a number is expected and that a dimension is missing when I ERT \linesperinch{6} I've tried numerous variations on this theme. Thanks, Garst a missinf backslash before renewcommand ... right, it was there in another variation, but went missing on this one :) Putting it just moved the number of error boxen for 4 to 65. Same errors, just repeated in lots of places. \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls'
Re: latex help
"Garst R. Reese" wrote: > > Can someone tell my why this does not work in hollywood.cls? > ViewPs tells me that that a number is expected and that a dimension is > missing when I ERT \linesperinch{6} > I've tried numerous variations on this theme. > Thanks, > Garst > > \usepackage{calc} > . > . > . > \newlength{\oneinch} > \setlength{\oneinch}{72bp} > \providecommand{\linesperinch}[1]% > { and the closing }, where is it?? > renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% > \normalsize > }% a missinf backslash before renewcommand ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Herbert Voss wrote: > > "Garst R. Reese" wrote: > > > > Can someone tell my why this does not work in hollywood.cls? > > ViewPs tells me that that a number is expected and that a dimension is > > missing when I ERT \linesperinch{6} > > I've tried numerous variations on this theme. > > Thanks, > > Garst > a missinf backslash before renewcommand ... > right, it was there in another variation, but went missing on this one :) Putting it just moved the number of error boxen for 4 to 65. Same errors, just repeated in lots of places. \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls'