Featured Book

LaTeX Beginners Guide

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 6 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

KOMA Script | Initial »scrlttr2« Experiment

KOMA-ScriptlettersAdd tags Information and discussion about specific document classes and how to create your own document classes.

KOMA Script | Initial »scrlttr2« Experiment

Postby jamtat on Thu Feb 9th, 2012

As I continue trying to learn my way around LaTeX by using it for some of my projects, I've now decided to try composing an official letter using it. Searching the internet, I came to understand that the Koma-bundle provides superior letter production, which reinforced a recommendation I got in another of this site's forums to look into Koma-bundle in regards to a header issue.

So I found and am trying to use the document class scrlttr2. I produced a successful copy of my letter by modifying a template I found at http://lifeisallabout.wordpress.com/200 ... -in-latex/. I'll go ahead and paste the template here for reference:
Code: Select all  •  Open in writeLaTeX
\documentclass[paper=a4]{scrlttr2}
\usepackage[english]{babel}
\KOMAoptions{fromalign=left, fromlogo=false, addrfield=true,
backaddress=on, subject=titled, subject=left,foldmarks=on,
fromphone=on,fromemail=true}
\setkomavar{fromname}{Thomas Mustermann}
\setkomavar{signature}{Thomas Mustermann}
\setkomavar{fromaddress}{Some street 23\\Postcode City}
\setkomavar{fromemail}{t.mustermann@domain.com}
\setkomavar{fromphone}{00000000}
\setkomavar{subject}{Here goes the subject of the letter}
\begin{document}
\begin{letter}{Some firm\\some area\\some postcode\\some country}
\opening{Dear Ladies and Gentlemen,}
this is the main text
\closing{yours sincerely\\ \mbox{}}
\ps
Take care. this is postscript.
\encl{enclosures}
\cc{additional addressees}
\end{letter}
\end{document
}

I changed the paper size (to letter, for my purposes) filled in information needed for my letter, and even managed to include a scanned signature using the graphicx package and \includegraphics.

Despite that success, there are still some issues, as follows. First, this document class is set up to create a sort of professional-looking heading for the document which does, in fact, look nice. It takes up about half the page. It seems to me perhaps this was done because this class was created for business letters, which can sometimes be as short as two sentences; so there is a need to occupy the excess white space with relevant material.

Well, I'm not writing a business letter--though this is an official letter (request for visitor's visa application). It has three paragraphs. As a result of the top half of the page being taken up by the header stuff, the last sentence of the final paragraph of my letter, as well as the closing signature, get pushed onto a second page.

My preference here would be to have everything on the first page, and to try and condense the heading material so as to accommodate the text of the letter along with the signature. But I can't yet see how that would be done. Can anyone provide tips on that?

Also, the graphic I've included to provide an actual signature (it's a scan of a signature converted to EPS) somehow gets quite a lot of vertical white space inserted afterward--perhaps because it was intended that blank space appear there for someone to write in. But in my case, the graphic is the writing that needs to go in that spot (between "Sincerely" and the printed name of the letter writer). In this case as well, I cannot see a way to remove the extra vertical white space. Any pointers on that?

Finally, have I chosen the wrong document class for this project? Should I be using the older letter class for this?

Input will be appreciated.

Thanks,
James
jamtat
 
Posts: 13
Joined: Sat Dec 11th, 2010

Re: KOMA Script | Initial »scrlttr2« Experiment

Postby jamtat on Fri Feb 10th, 2012

I didn't find a way yet to tweak the amount of space the heading takes for this document class. I've got a lot to learn. But I did find out how to eliminate the excess space that was appearing between the signature and the signee's printed name: I needed to comment out the lines
Code: Select all  •  Open in writeLaTeX
\setkomavar{fromname}{Thomas Mustermann}
\setkomavar{signature}{Thomas Mustermann
}

sine those lines apply to the letter closing, and the solution I found for including the scanned signature (found at http://texblog.org/2010/05/04/latex-let ... -as-image/ ) supplies those lines in the closing code.

James
jamtat
 
Posts: 13
Joined: Sat Dec 11th, 2010

Re: KOMA Script | Initial »scrlttr2« Experiment

Postby jamtat on Sat Feb 11th, 2012

I gave up on scrlttr2. I found it much easier to use the old LaTeX letter document class. For anyone reading this who may want to try scrlttr2 nonetheless, be aware that its stock configuration is for a4 paper size (which won't be an issue for many, admittedly) and, so far as I could determine, it is not easy to change that--seems to require creation of an *.lco file, from which scrlttr2 reads key values. They claim in the KOMA documentation that scrlttr2 is supposed to simplify letter creation but I found the opposite to be the case: it was far more complex and technically daunting to use scrlttr2 than to use the standard letter document class.

James
jamtat
 
Posts: 13
Joined: Sat Dec 11th, 2010

Re: KOMA Script | Initial »scrlttr2« Experiment

Postby Carsten Schroeter on Mon Feb 24th, 2014

Facing the same issue (adding the scanned signature image) I took some time and found that all I had to do was slightly change the previously suggested code:
\closing{\Yours sincerely,\\ \includegraphics[scale=1.0]{./My-Signature.jpg}}
No need to uncomment anything. Alas, still there is a little too much space between signature and name below.
Carsten Schroeter
 
Posts: 1
Joined: Mon Feb 24th, 2014


Topic Tags

KOMA-Scriptletters

Return to Document Classes

Who is online

Users browsing this forum: No registered users and 6 guests