Re: Koma Letter 2 Components Sequence

2008-02-17 Thread Rich Shepard

On Sun, 17 Feb 2008, Jürgen Spitzmüller wrote:


Well, no wonder. You added a \vspace at the beginning of the address field.
Since the first line is taken as the "toname" value, as you correctly
guessed, the "toname" is the \vspace. Thus you do not get a real name in the
heading, but a \vspace instead, which puts the header down.


Jürgen,

  Ah. After getting the letterhead graphic displayed properly the text had
to be moved lower on the page.


Instead of inserting such things in the letter, _always_ use KOMA's length
values. In this case, something like

% vertical position of the address field
[EMAIL PROTECTED]

in preamble should do.


  I tried somethings similar to increase the header area, but did not have
the proper syntax.


Section 2.4 in my copy.


  I have the December 2007 version, and I see that headexclude (i.e.,
exclude the header as part of the text area) is the default


Either use the document options "3headlines,headinclude" ...


  Just tried changing this to "3headlines,headexclude", but that gave a
syntax error. Worse yet, when I changed it back, the syntax error remained.
Strange.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Koma Letter 2 Components Sequence

2008-02-17 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> This _almost_ works. The komavar{toname} is not picked up (I assume that's
> the first line in the address style), and the header overwrites the text;
> there is no header space. Doesn't matter which page style I use. The header
> is two low and the text starts at the top of the page. See attached
> screenshot.

Well, no wonder. You added a \vspace at the beginning of the address field. 
Since the first line is taken as the "toname" value, as you correctly 
guessed, the "toname" is the \vspace. Thus you do not get a real name in the 
heading, but a \vspace instead, which puts the header down.

Instead of inserting such things in the letter, _always_ use KOMA's length 
values. In this case, something like

% vertical position of the address field
[EMAIL PROTECTED]

in preamble should do.

>    Reading Chapter 4 in the KOMA-Script manual (on scrpage2), I see no way
> of specifying space at the top of the page for the header. I must have
> something set incorrectly.

Section 2.4 in my copy.

Either use the document options "3headlines,headinclude" or specify the 
margins in Document->Settings->Margins, where you can adjust the head height 
(however, you will probably have to adjust all your margins then, since the 
geometry package has different default margins than KOMA).

I'll return the example file to you in PM.

Jürgen


Re: Koma Letter 2 Components Sequence

2008-02-16 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> This _almost_ works. The komavar{toname} is not picked up (I assume that's
> the first line in the address style), and the header overwrites the text;
> there is no header space. Doesn't matter which page style I use. The header
> is two low and the text starts at the top of the page. See attached
> screenshot.

Please send an example file (privately, if you prefer).

Jürgen


Re: Koma Letter 2 Components Sequence

2008-02-16 Thread Rich Shepard

On Sat, 16 Feb 2008, Jürgen Spitzmüller wrote:


\usekomavar (see below)


Jürgen,

  I missed that. Thanks.


\markboth takes two arguments (left and right heading).


  Oops! I forgot about this.


(preferably in preamble:)

\pagestyle{myheadings}
\markboth{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}{}


  This _almost_ works. The komavar{toname} is not picked up (I assume that's
the first line in the address style), and the header overwrites the text;
there is no header space. Doesn't matter which page style I use. The header
is two low and the text starts at the top of the page. See attached
screenshot.


or (to use both sides)


  Letters are single-sided with the continuation heading in the upper left
corner. At least, that's how they are in the US.


However, I'd use scrpage2 instead. Set Document->Settings->Page Format->Page
Style to "default" and put the following in preamble

\usepackage{scrpage2}
\pagestyle{scrheadings}
\ohead{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}


  Strangely enough, this produces the same results as above: no
komavar{toname} and no heading space. (Changing the ohead to ihead places it
on the correct side of the page).

  Reading Chapter 4 in the KOMA-Script manual (on scrpage2), I see no way of
specifying space at the top of the page for the header. I must have
something set incorrectly.

  Here's the preamble for the class (as copied from the dialog box):

\date{}
\makeatletter
[EMAIL PROTECTED]
\makeatother
\renewcommand*{\raggedsignature}{}
\makeatletter
% vertical position of ref line (date)
[EMAIL PROTECTED]
% space between ref line and letter text
[EMAIL PROTECTED]
% space for signature image
[EMAIL PROTECTED]
\makeatother
\firsthead{\centering\usekomavar{fromlogo}\hspace*{5cm}}
\usepackage{scrpage2}
\pagestyle{scrheadings}
\ihead{\usekomavar{toname}%
\\Page \thepage\\\usekomavar{date}}{}

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863<>

Re: Koma Letter 2 Components Sequence

2008-02-16 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> \pagestyle{myheadings}\markboth{Dr. V.N. Rai\\Page {\pagenumber}\\February
> 11, 2008}
>
>    The addressee and data are explicit because I don't yet know how to
> specify those with variables.

\usekomavar (see below)

>    The error when trying to compile with pdflatex is:
>
> "Paragraph ended before \markboth was complete"

\markboth takes two arguments (left and right heading).

>    I get the same error if I split the LaTeX into two lines, with the
> second line beginning with the \markboth{}.
>
>    What have I missed, please?

(preferably in preamble:)

\pagestyle{myheadings}
\markboth{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}{}

or (to use both sides)

\pagestyle{myheadings}
\markboth{\usekomavar{toname}}{Page \thepage\\\usekomavar{date}}

However, I'd use scrpage2 instead. Set Document->Settings->Page Format->Page 
Style to "default" and put the following in preamble

\usepackage{scrpage2}
\pagestyle{scrheadings}
\ohead{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}

or:

\usepackage{scrpage2}
\pagestyle{scrheadings}
\ohead{\usekomavar{toname}}
\ihead{Page \thepage\\\usekomavar{date}}

Jürgen


Re: Koma Letter 2 Components Sequence

2008-02-15 Thread Rich Shepard

On Fri, 15 Feb 2008, Jürgen Spitzmüller wrote:


Sec. 6.3.2.
(scrlttr2 uses the scrpage2 package for the headings, which is also described
in the KOMA manual).


Jürgen,

  Re-read that and Chapter 4 on scrpage2. I'm still missing something in my
understanding.

  After the 'opening' style I have (in an ERT box):

\pagestyle{myheadings}\markboth{Dr. V.N. Rai\\Page {\pagenumber}\\February 11, 
2008}

  The addressee and data are explicit because I don't yet know how to
specify those with variables.

  The error when trying to compile with pdflatex is:

"Paragraph ended before \markboth was complete"

  I get the same error if I split the LaTeX into two lines, with the second
line beginning with the \markboth{}.

  What have I missed, please?

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Koma Letter 2 Components Sequence

2008-02-15 Thread Rich Shepard

On Fri, 15 Feb 2008, Jürgen Spitzmüller wrote:


Sec. 6.3.2.
(scrlttr2 uses the scrpage2 package for the headings, which is also described
in the KOMA manual).


Jürgen,

  I read that the scrpage2 package is used, but neglected to read that
documentation. I'll correct this today.

Thank you again,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Koma Letter 2 Components Sequence

2008-02-15 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> how to place an image of my written signature between the closing
> and the printed signature.

1. In preamble:
[EMAIL PROTECTED]
(make sure it's inbetween of the \makeatletter --- \makeatother pair, where 
the other [EMAIL PROTECTED] calls are)

2. In the document, insert the graphic with your sig via Insert->Graphics in 
the Signature paragraph, before your typed signature, and add a soft line 
break (Ctlr-return).

(don't forget to add a Closing at the bottom of the letter. Else, the 
signature won't be printed).

Jürgen


Re: Koma Letter 2 Components Sequence

2008-02-15 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> Perhaps I missed this in the Koma-script manual. If so, please pass me a
> pointer to the proper chapter.

Sec. 6.3.2.
(scrlttr2 uses the scrpage2 package for the headings, which is also described 
in the KOMA manual).

Jürgen