Hot answers tagged

24

The scrlttr2 class loads the file DIN.lco as default. This file contains a parameter set for A4 paper and German window envelopes C4, C5, C6 and C6 long. But there is another Letter Class Option file that reduces the space above the address: DINmtext.lco. Note that such a letter will not fit a C4 or C5 window envelope. To load the Letter Class Option file ...


14

Actually, a combination of the two answers given will give the desired result: \documentclass{scrlttr2} % ---- beginning of relevant part \usepackage{lmodern}% Latin Modern typeface (font) \usepackage[T1]{fontenc}% T1 font encoding for high quality font output \renewcommand{\familydefault}{\sfdefault}% Latin Modern's sans serif font family as default % ...


14

The document class scrlttr2 doesn't use normal length adjusting there contents. Instead it uses pseudolengths. The most important length are described in scrguien or the German version scrguide. Both documentations have a great picture which are showing the pseudolengths. To explain my solution here the picture: In your case you must change the height ...


10

Here is a solution that is independent of any particular document class. \documentclass{minimal} \begin{document} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \def\s#1#2{\vbox{\hsize=4.5cm \kern2cm \hrule\kern1ex \hbox to ...


9

The nice thing about scrlttr2 is that it's easily customizable. The ORM markers you mentioned are probably the foldmarks, to be switched off using \KOMAoptions{foldmarks=off} The From address can be put to the right, check the manual for "firsthead" and "nexthead". Or take the example I put online here as a starter: uweziegenhagen.de/?page_id=132, snippet ...


9

Instead of minipages you can use \parboxes: \documentclass[% paper=letter, pagesize, fontsize=10pt, standard ]{scrlttr2} \usepackage[english]{babel} \usepackage{lipsum} \newcommand\Sigline[4][t]{% \parbox[#1]{.333\linewidth}{\raggedright#2}% \parbox[#1]{.333\linewidth}{\raggedright#3}% \parbox[#1]{.333\linewidth}{\raggedright#4}% } ...


7

Here an example using \renewcommand\raggedsignature{\raggedright} . You have to use the mandatory argument of letter : \documentclass[DIN,paper=a4,fontsize=11pt]{scrlttr2} \usepackage[dutch]{babel} \def\afzender{Richard Kranendonk} \def\ondertekening{Cheers} \setkomavar{signature}{\afzender} \makeatletter %\@setplength{sigindent}{0pt} ...


7

You vertical skip between the paragraphs can be done by the option parskip. So load the class with: \documentclass[a4paper,parskip=full,]{scrlttr2} The adjustment of \closing depends on the definition of \raggedsignature which is set to \centering so you can change it as follows: \renewcommand*{\raggedsignature}{\raggedright} Based on this modification ...


6

Please try the following MWE (I have changed your MWE a little bit). It should do what you want: \documentclass[UScommercial9,paper=letter]{scrlttr2} % <==== changed \usepackage[english]{babel} \usepackage[pass]{geometry} % <==== changed \KOMAoptions{fromphone=true,fromfax=false} % <==== changed \begin{document} ...


6

With the exception of the first page you can set the margins as usual. The first page works with pseudo length. The next pages use the standard settings provided by typearea. To demonstrate this you can load the package showframe und manipulate length like \headsep. However I recommend the package geoemtry to influence the margins. If I use the following ...


6

The problem is that \firsthead{ \rule{\paperwidth}{3cm} } adds horizontal space if you don't avoid it putting a % after \firsthead{, so you would have to write \firsthead{% \rule{\paperwidth}{3cm} } Moreover, the use of \firsthead is deprecated. You should use the following syntax instead: \setkomavar{firsthead}{% \rule{\paperwidth}{3cm}% } Complete ...


6

Sometimes you may have to cheat a little... Below I set the date as part of the address, leaving the date empty: \documentclass{scrlttr2} %\usepackage{fontspec} % Allows font customization %\usepackage{marvosym} % Allows the use of symbols \usepackage[english]{babel} % Required to compile in Windows \usepackage{graphicx} \setlength\parindent{0pt} % ...


6

The right lenght seems to be \oddsidemargin+1in. So you should add \makeatletter \@setplength{lochpos}{\oddsidemargin} \@addtoplength{lochpos}{1in} \makeatother MWE (added geometry to show the frame) \documentclass[foldmarks=true,foldmarks=blmtP, version=last]{scrlttr2} \usepackage[showframe]{geometry} % just to show the frame ...


6

You can use siunitx which offers \degree and \celsius \documentclass[fontsize=10pt,paper=a4,DIN]{scrlttr2} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{siunitx} \setkomavar{fromaddress}{% Main Street 1\\ 55555 Springfield)} \setkomavar{fromname}{John Doe} \begin{document} \begin{letter}{Jack \si{\degree} Jones \\ 2nd Street ...


6

utf8.def from package inputenc only supports characters, which are used in one of the declared output encodings. Otherwise LaTeX would not know, how to print the character. ° is defined in TS1 encoding, which can be loaded by package textcomp: \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage[utf8]{inputenc} Complete example: ...


5

It is not possible to use the fromrule option together with firsthead. But here is an suggestion how you can get the same line as in your MWE: \documentclass{scrlttr2} %\KOMAoptions { fromalign=right, %fromrule=aftername } \setkomavar{firsthead}{% \parbox{\textwidth}{ \raggedleft ...


5

komacv is based on the KOMA-Script class scrartcl. So it is possible to use the relatively new KOMA-Script package scrletter to set the letter and the cv in one document. Additional I would use scrlayer to define a new page style for the first pages of both the letter and the cv. But komacv still loads scrpage2 and this package can not be used together ...


5

Just use \ifkomavarempty{fromemail}{true-code}{false-code} for example. \documentclass[refline=nodate]{scrlttr2} \usepackage{lipsum,marvosym} \setkomavar{fromname}{David} \setkomavar{fromemail}{} \setkomavar{place}{Here} \setkomavar{backaddress}{} \usekomavar[\edef\komaemail]{fromemail} \setkomavar{fromaddress}{Road 17\\9900 Place \hfill ...


5

\documentclass[a4paper,backaddress=off,foldmarks=false,parskip=half,addrfield=false]{scrlttr2} \usepackage{fontspec} % Allows font customization \usepackage{marvosym} % Allows the use of symbol \usepackage{csquotes} \defaultfontfeatures{Mapping=tex-text} \renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont} \let\raggedsignature\raggedright ...


5

This answer elaborates on Sveinung's. At \opening, scrlttr2 "moves into position" to print the "to address" using \move@topl which is defined as: \newcommand*{\move@topl}{% \null\hskip -1in% \ifodd\value{page}\hskip -\oddsidemargin\else\hskip -\evensidemargin\fi \ignorespaces% } followed by an \hskip of size "\toaddrhpos". So, setting "\toaddrhpos" ...


5

Remove the refline=wide to align the date, and change toaddrhpos to align the address (it will no longer be at the correct place for a DIN-window) or as alternative change \oddsidemargin. \documentclass[paper=a4,enlargefirstpage=on]{scrlttr2} \usepackage{ngerman} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{url} \usepackage{lipsum} ...


4

Nice question; I solved it by changing \addrentry and adding something innocuous to \begin{letter}, that will do nothing if a subsequent \makeopening command doesn't follow. In the usual \addentry command, the last argument is used to build a control sequence that stores the address lines. I add also the building of an opening line, which for MEIER is ...


4

Depends to your system: Linux or Windows. However, it is the same as creating an own package and saving it in the local TEXMF tree which can be for Linux ~/texmf/[TDS] /usr/local/texmf/[TDS] /usr/local/texlive/texmf-local/[TDS] and so on. For MiKTeX you can define own trees and add them to the root base. And in all directories you have to create a TDS ...


4

Markus Kohm has published a solution at KOMA-script’s homepage: \makelabels mit scrlttr2 (it's in English despite the German title). You may either define a special page in your letter, defining corresponding pseudo values. But you may also use the mlabel.lco, which introduce the \makelabelcommand from the standard letter class in scrlttr2. Then, you just ...


4

Markus Kohm, the author if KOMAscript, has included a nowindow-lco in the samples to his book (see Beispiele aus der 4. Auflage des KOMA-Script-Buches). The sources for the file is: % nowindow.lco % Copyright 2008 Markus Kohm % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of ...


4

scrlttr2 supports an option that allows the placement of the subject after the opening/greeting: \documentclass[subject=afteropening]{scrlttr2} \usepackage[english]{babel} \setkomavar{fromname}{Mr. X} \setkomavar{fromaddress}{Some Street 23 \\ Small Town} \setkomavar{subject}{Very important stuff} \begin{document} \begin{letter}{Mr. Y \\ Big Company \\ ...


4

The basic technique is like this: \documentclass[ngerman,12pt]{scrlttr2} \usepackage{babel,blindtext} \setlength{\textwidth}{16cm} \setkomavar{fromname}{Just me} \setkomavar{fromaddress}{Just some place} \def\pshape#1{% \parshape #1 \pshapexiicm{#1} 0pt 16cm } \def\pshapexiicm#1{% \ifnum#1>1 0pt 12cm \expandafter ...


4

\usekomavar cannot be used directly as file name in \includegraphics: It is not expandable, it is defined via \DeclareRobustCommand. The file name parser needs to see the dot that separates the extension. Workaround: \usekomavar has an optional argument, that can be used to define a temporary macro that will expand to the file name. The expansion is ...


4

Use the classes and packages, that do the job. ;-) You can also load personalised lco files using \LoadLetterOptions, you just cannot do it globally. \begin{filecontents}{\jobname.lco} \setkomavar{fromname}{j pfeifer} \setkomavar{fromaddress}{duckburg} \end{filecontents} \documentclass{scrartcl} \usepackage{scrletter} ...


4

0. The hack The hack that (for the time being) may solve your problem, is using \linebreak instead of \\. \documentclass{scrlttr2} \begin{document} \setkomavar{fromname}{Company Name\linebreak\ John Public} % \_ before name typeset % the `back address` % ...



Only top voted, non community-wiki answers of a minimum length are eligible