Re: Changing text height and width?

2004-10-16 Thread Herbert Voss
Rudi Gaelzer wrote:
In that case, how can you save the desired page settings in a template or layout
file, so that you can use them on any document you're writing?
it is no problem to insert an external preamble. E.g.:
first line in your Format->Document->Preamble
\input pramble.tex
and in pramble.tex you can have a line like
\PassOptionsToPackage{textwidth=7.5in}{geometry}
or, when you do not have ny custom setting in
Format->Document->border->custom
then use
\usepackage[textwidth=7.5in]{geometry}

Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Changing text height and width?

2004-10-13 Thread José Abílio Oliveira Matos
On Wed, Oct 13, 2004 at 04:49:48PM -0200, Rudi Gaelzer wrote:
> 
> In that case, how can you save the desired page settings in a template or layout
> file, so that you can use them on any document you're writing?

  Taking advantage of the lyx templates.
  Lets us assume for simplicity a spheric cow... oops, wrong time. ;-)
  
  Suppose that the document you want to modify is an article.
  
  There are several ways to do it, on of them is to save a document with no
paragraphs inside, and with the properties you wish to, for example with the
geometry settings that you described.

  Save that document in the templates directory. By default this location is
usally $HOME/.lyx/templates but this can be changed.

  Then any time you want to open a new document is a matter of
  File -> New from template
  
  and there you are.

> I've always set the page layout parameters in a *.sty file and then issued the
> \usepackage command in the preamble.

  That is another way, place that in the documents preamble and make it a
template.

> Rudi Gaelzer
> Departamento de Física
> Instituto de Física e Matemática
> Fundação Universidade Federal de Pelotas
> Caixa Postal 354 - Campus UFPel
> 96010-900 Pelotas - RS
> BRAZIL
> Phone: +55-53-275-7468
> FAX: +55-53-275-7343
> 
> Registered Linux user # 153741
> 
> -
> This mail sent through IMP: http://horde.org/imp/

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


Re: Changing text height and width?

2004-10-13 Thread Rudi Gaelzer
On Sunday 15 August 2004 11:19, Herbert Voss wrote:
> Uwe Stöhr wrote:
> > e.g. insert to the preamble th line
> >
> > \setlength{\textwidth}{7.5in}
>
> never use this way of setting layout parameters. Do _everything_
> with the geometry package or better via the LyX menues.
>
> Herbert

In that case, how can you save the desired page settings in a template or layout
file, so that you can use them on any document you're writing?

I've always set the page layout parameters in a *.sty file and then issued the
\usepackage command in the preamble.

Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343

Registered Linux user # 153741

-
This mail sent through IMP: http://horde.org/imp/


Re: Changing text height and width?

2004-08-17 Thread Rich Shepard
On Wed, 18 Aug 2004, Stefano Franchi wrote:

> Now I only have to find out how to format citations in a truly
> "Humanities" fashion with Chicago style (publisher requirement).
> Unfortunately it seems that Jurabib has provisionally  dropped the
> chicago style (according to Jurabib homepage), so I'm still looking for
> alternative solutions.

Stefano,

  Makes me think it would have been quicker and easier to find a different
publisher. :-)

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: Changing text height and width?

2004-08-17 Thread Stefano Franchi
Thanks to all for the suggestions. A summary for anyone interested 
and/or facing a similar problem:

1. Don't use standard class book but rather koma--script book or memoir 
classes for the added flexibility

2. Either use the Geometry package for maximum flexibility in setting 
page layout or learn some LaTex and tweak the preamble as per H 
Hafting's suggestion.

Now I only have to find out how to format citations in a truly 
"Humanities" fashion with Chicago style (publisher requirement). 
Unfortunately it seems that Jurabib has provisionally  dropped the 
chicago style (according to Jurabib homepage), so I'm still looking for 
alternative solutions.

Best,
Stefano
__
Stefano Franchi
Department of Philosophy  Ph:  (64) 9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-7408
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 


Re: Changing text height and width?

2004-08-16 Thread Helge Hafting
Stefano Franchi wrote:
Hi all,
I am asked by a publisher to submit a book length manuscript in 
camera-ready form and unfortunately they don't provide LaTeX classes. 
In fact, they have given me Microsoft Word instructions :-( 
Well, at least they let you use whatever you want, and don't re-type it 
all in word or
something equally stupid before printing.  (Wasted work, and latex 
provides much better output too!)

Anything you want can be tweaked to exactly the right size, you may have to
learn _some_ latex in the process though.  I wrote a book, with detail specs
on the text block size, paper size, and fonts to be used from the publisher.
I used the koma-script book class and adapted that.  The latex documentation
for koma-script details how the page layout is specified with latex commands
in the preamble.  Use that to get exactly the text block you want.  
There wasn't
a specifier for the total text block size, so I specified one height for 
the "text part"
of the text block which was the total height minus the height of the 
running head.
Fortunately, latex lets you enter such arithmetic expressions so no need 
to calculate
it to some number of decimals.  (mixing points, inches and centimeters 
is easy with latex. :-)

Examples from my preamble.  I don't claim it is the best way, but it 
worked fine:

\setlength{\paperwidth}{170mm}
\setlength{\paperheight}{240mm}
%text block
\areaset{121.5mm}{203mm}
%Margins. Compensate for tex silly 1in origo
\setlength{\oddsidemargin}{16mm-1in}
\setlength{\evensidemargin}{32.5mm-1in}
%Position the top of text
\setlength{\topmargin}{8.5mm-1in}
%publisher says: headsep+headheight+topmargin=22mm
%(I didn't set headheight anywhere, the default worked well)
\setlength{\headsep}{22mm-8.5mm-\headheight}

I think I can use the Book class in LyX to do everything they want, 
but I can't find out how to change the height and width of the text 
block. The text on the page must be exactly 4.5" x 7.5" from the top 
of the running head to the bottom of the last text line (there are no 
footers).  Can anyone help? I could not find how to do it in the LyX 
documentation and I am no LaTeX expert (that much should be clear).

Read the latex documentation about page layout, and set it up 
accordingly.  If you
go for some special class or add-on package, check if it provides its own
ways of specifying these sizes.  Koma-script certainly does.

Helge Hafting


Re: Changing text height and width?

2004-08-15 Thread Herbert Voss
Uwe Stöhr wrote:
e.g. insert to the preamble th line
\setlength{\textwidth}{7.5in}
never use this way of setting layout parameters. Do _everything_
with the geometry package or better via the LyX menues.
Herbert



Re: Changing text height and width?

2004-08-15 Thread Uwe Stöhr
Stefano Franchi wrote:
I am asked by a publisher to submit a book length manuscript in 
camera-ready form and unfortunately they don't provide LaTeX classes. 
In fact, they have given me Microsoft Word instructions :-( I think I 
can use the Book class in LyX to do everything they want,
Better use 'memoir' or the 'koma-script' book class, because they are
more flexible.
but I can't find out how to change the height and width of the text 
block. The text on the page must be exactly 4.5" x 7.5" from the top 
of the running head to the bottom of the last text line (there are no 
footers).  Can anyone help? I could not find how to do it in the LyX 
documentation and I am no LaTeX expert (that much should be clear).
You can change all layout paramters in the pramble. The parameters are
shown in
http://wiki.lyx.org/uploads/Tips/paperLayout/paperDistances.png
e.g. insert to the preamble th line
\setlength{\textwidth}{7.5in}
The possible units are listed here:
http://wiki.lyx.org/pmwiki.php/FAQ/Units
To see the current values of the parameters, use the package 'layout',
as described here:
http://wiki.lyx.org/pmwiki.php/Tips/PaperLayout
Some of the parameters can be adjusted in the LyX-menu
Layout->Document->Margins.
regards Uwe


Re: Changing text height and width?

2004-08-15 Thread Uwe Stöhr
Stefano Franchi wrote:
I am asked by a publisher to submit a book length manuscript in 
camera-ready form and unfortunately they don't provide LaTeX classes. In 
fact, they have given me Microsoft Word instructions :-( I think I can 
use the Book class in LyX to do everything they want,
Better use 'memoir' or the 'koma-script' book class, because they are 
more flexible.

but I can't find 
out how to change the height and width of the text block. The text on 
the page must be exactly 4.5" x 7.5" from the top of the running head to 
the bottom of the last text line (there are no footers).  Can anyone 
help? I could not find how to do it in the LyX documentation and I am no 
LaTeX expert (that much should be clear).
You can change all layout paramters in the pramble. The parameters are 
shown in

http://wiki.lyx.org/uploads/Tips/paperLayout/paperDistances.png
e.g. insert to the preamble th line
\setlength{\textwidth}{7.5in}
The possible units are listed here:
http://wiki.lyx.org/pmwiki.php/FAQ/Units
To see the current values of the parameters, use the package 'layout', 
as described here:

http://wiki.lyx.org/pmwiki.php/Tips/PaperLayout
Some of the parameters can be adjusted in the LyX-menu 
Layout->Document->Margins.

regards Uwe


Re: Changing text height and width?

2004-08-14 Thread Rich Shepard
On Sun, 15 Aug 2004, Stefano Franchi wrote:

>   thanks for the remark, but I *read* Rich's suggestion carefully. In
> fact I had already tried out what he suggested before bothering the list
> with the question. It does not work because what LyX understands for
> "margins" in the Layout>Document>Margins dialogue is the white space
> between the edge of the paper and the main body text. At least that's what
> I can gather from my tests. But I need to take into consideration
> everything else that is printed outside the main body text: headers, page
> numbers, etc.  --that's what I mean by "text block." As rich suggested in
> a separate post the answer is in the LaTeX Companion book. So that's where
> I'll go next.

Stefano,

  I don't recall the details of what is in the body text size because that's
not been an issue for me. TLC2 will clear up whether it includes header and
footer. If not you'll have to play with it to get the proper size for your
book.

  Fortunately, most of us have more reasonable publishers and we don't need
to spend time on issues such as textheight and textwidth.

Good luck!

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: Changing text height and width?

2004-08-14 Thread Stefano Franchi
Hi John,
	thanks for the remark, but I *read* Rich's suggestion carefully. In 
fact I had already tried out what he suggested before bothering the 
list with the question. It does not work because what LyX understands 
for "margins" in the Layout>Document>Margins dialogue is the white 
space between the edge of the paper and the main body text. At least 
that's what I can gather from my tests. But I need to take into 
consideration everything else that is printed outside the main body 
text: headers, page numbers, etc.  --that's what I mean by "text 
block." As rich suggested in a separate post the answer is in the LaTeX 
Companion book. So that's where I'll go next.

Stefano
On Aug 14, 2004, at 5:18 PM, John Coppens wrote:
On Sat, 14 Aug 2004 14:59:45 +1200
Stefano Franchi <[EMAIL PROTECTED]> wrote:
Hi Rich,
	thank for the suggestion, but my problem is not changing the paper
	
size. I need to change the size of the text block.  I do not really
care about the paper size and I was hopeful that LaTex/LyX could work
out all the other parameters (left and right margin, inner additional
margin, etc.) once given the size of the text block, which, as far as 
I
understand it, is the most basic typesetting item.

Best,
Stefano
Hi Stefano.
Read the instructions from Rich _carefully_. At the place he indicates,
you change the margins, so this way you can determine the size of the 
text
block... Page width - left margin - right margin = text width. Same for
vertical.
Note that the page he indicates (custom margins) needs at least left,
right, top and bottom margins (you can leave the rest untouched).

John
__
Stefano Franchi
Department of Philosophy  Ph:  (64) 9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-7408
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 


Re: Changing text height and width?

2004-08-14 Thread Rich Shepard
On Sat, 14 Aug 2004, John Coppens wrote:

> Read the instructions from Rich _carefully_. At the place he indicates,
> you change the margins, so this way you can determine the size of the text
> block... Page width - left margin - right margin = text width. Same for
> vertical.

> Note that the page he indicates (custom margins) needs at least left,
> right, top and bottom margins (you can leave the rest untouched).

  Thanks, John. I was rather burned out last evening when I wrote my first
reply.

  My publisher specified the page size (9-1/8" high x 6-1/4" wide). With the
default margins, the text body size fits nicely. When I print drafts on
stanard US Letter paper (11" high x 8.5" wide) the extra wide margins are
obvious.

  I suppose that either approach works. At least Springer-Verlag provides a
LaTeX file for monographs that makes it much easier for me to deliver
camera-ready copy to them.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: Changing text height and width?

2004-08-14 Thread John Coppens
On Sat, 14 Aug 2004 14:59:45 +1200
Stefano Franchi <[EMAIL PROTECTED]> wrote:

> Hi Rich,
> 
>   thank for the suggestion, but my problem is not changing the paper
>   
> size. I need to change the size of the text block.  I do not really 
> care about the paper size and I was hopeful that LaTex/LyX could work 
> out all the other parameters (left and right margin, inner additional 
> margin, etc.) once given the size of the text block, which, as far as I 
> understand it, is the most basic typesetting item.
> 
> Best,
> 
> Stefano
Hi Stefano.

Read the instructions from Rich _carefully_. At the place he indicates,
you change the margins, so this way you can determine the size of the text
block... Page width - left margin - right margin = text width. Same for
vertical.
Note that the page he indicates (custom margins) needs at least left,
right, top and bottom margins (you can leave the rest untouched).

John


Re: Changing text height and width?

2004-08-13 Thread Rich Shepard
On Sat, 14 Aug 2004, Stefano Franchi wrote:

>   thank for the suggestion, but my problem is not changing the paper
> size. I need to change the size of the text block.  I do not really care
> about the paper size and I was hopeful that LaTex/LyX could work out all
> the other parameters (left and right margin, inner additional margin,
> etc.) once given the size of the text block, which, as far as I understand
> it, is the most basic typesetting item.

Stefano,

  OK. From TLC2, page 207: "For specifying the text body size several
methods are available; the choice of which to use is largely a matter of
taste. You can explicitly specify the text area size by giving values for
'textwidth' and 'textheight'. In that case you should normally ensure that
'textheight' holds an integral number of text lines to avoid underfull box
messages for pages consisting only of text. A convenient way to achieve this
goal is to use the 'lines' option, which calculates the appropriate
'\textheight' using the current values for '\baselineskip' and '\topskip'."

  It goes on.

  I'm finding The LaTeX Companion, 2nd Edition to be an invaluable resource
as I write my book.

HTH,

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: Changing text height and width?

2004-08-13 Thread Stefano Franchi
Hi Rich,
	thank for the suggestion, but my problem is not changing the paper 
size. I need to change the size of the text block.  I do not really 
care about the paper size and I was hopeful that LaTex/LyX could work 
out all the other parameters (left and right margin, inner additional 
margin, etc.) once given the size of the text block, which, as far as I 
understand it, is the most basic typesetting item.

Best,
Stefano
On Aug 14, 2004, at 12:27 PM, Rich Shepard wrote:
  Layout->Document->Paper. Select "Custom" then enter the values above 
in
the other two data entry widgets.

__
Stefano Franchi
Department of Philosophy  Ph:  (64) 9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-7408
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 


Re: Changing text height and width?

2004-08-13 Thread Rich Shepard
On Sat, 14 Aug 2004, Stefano Franchi wrote:

> The text on the page must be exactly 4.5" x 7.5" from the top of the
> running head to the bottom of the last text line (there are no footers).

Stefano,

  Layout->Document->Paper. Select "Custom" then enter the values above in
the other two data entry widgets.

> I would also be grateful for some advice on the following point: I will
> have to use the Humanities-oriented citation style provided by jurabib, by
> I've been putting off learning how to use the package until I'm done with
> the writing. Right now I'm just using the standard BibTeX options. Am I
> headed for disaster?

  No. At the end of your book do Insert->Lists->Bibliography. You can make
changes in the dialog box.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Changing text height and width?

2004-08-13 Thread Stefano Franchi
Hi all,
	I am asked by a publisher to submit a book length manuscript in 
camera-ready form and unfortunately they don't provide LaTeX classes. 
In fact, they have given me Microsoft Word instructions :-( I think I 
can use the Book class in LyX to do everything they want, but I can't 
find out how to change the height and width of the text block. The text 
on the page must be exactly 4.5" x 7.5" from the top of the running 
head to the bottom of the last text line (there are no footers).  Can 
anyone help? I could not find how to do it in the LyX documentation and 
I am no LaTeX expert (that much should be clear).

I would also be grateful for some advice on the following point:  I 
will have to use the Humanities-oriented citation style provided by 
jurabib, by I've been putting off learning how to use the package until 
I'm done with the writing. Right now I'm just using the standard BibTeX 
options. Am I headed for disaster?

Best regards,
Stefano
__
Stefano Franchi
Department of Philosophy  Ph:  (64) 9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-7408
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand