Tag Info

Hot answers tagged

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 % ...


12

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 ...


8

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 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 ...


7

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 ...


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} % ...


5

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} ...


5

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 ...


5

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 ...


5

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} ...


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

\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 ...


4

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 ...


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

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" ...


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

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 ...


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 ...


3

Let's start of with an minimal example - something that really helps the community, regardless of what you may think, really. The following is taken from the KOMA-script documentation (section 4.20. Closing, p 190): \documentclass[foldmarks=true,foldmarks=blmtP, fromphone,fromemail,fromlogo, subject=titled, version=last]{scrlttr2}% ...


3

The KOMA-Script class scrlttr2 is a very versatile class to produce letters according to certain standards (e.g. the german DIN) allowing, for example, for the correct positioning of the address to be visible through the window of the envelope. The following MWE is a very basic example of howto use the scrlttr2 class with adjustments for your specific ...


3

The classicthesis package relies on the usual sectioning commands such as \section being defined. For example it loads titlesec which it uses to define the sectioning formats. However, the scrlttr2 class does not define sectioning commands since they're not needed for a letter. But then, classicthesis is meant for formatting a thesis and not a letter... ...


3

Another possibiltiy is to use tikz: \documentclass[a4paper]{scrlttr2} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{graphicx} \usepackage{tikz} \setkomavar{fromname}{John Doe} \setkomavar{fromaddress}{Fakestreet 1\\123 Faketown} \begin{document} \begin{letter}{% Jane X\\ 456 Fake Village } ...


3

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 \\ ...


3

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} ...


2

If the footer on the second page should be at the same position as the footer on the first page you can load the package scrlayer and define your own pagestyle: \usepackage{scrlayer} \DeclareNewLayer[ align=tl, hoffset=\dimexpr.5\paperwidth-.5\useplength{firstfootwidth}\relax, voffset=\useplength{firstfootvpos}, width=\useplength{firstfootwidth}, ...


2

You can do this by patching the internals of KOMA-script. You can place text as well, if you are feeling adventurous (i even used colour). But please, be sensible and don't do this. Please be careful, too much space, and the phone number is printed in the receiver line. \documentclass[ fromphone=on, fromemail=on]{scrlttr2} \setkomavar{fromname}{name} ...


2

Marco Daniel already showed how to modify the behaviour of scrlttr2. The default behaviour is explained in section 21.1.7 of the KOMA-Script manual: Closing phrase and signature will be typeset in a box. The width of the box is determined by the length of the longest line of the closing phrase or signature. In other words, the closing phrase will ...


2

The most basic approach, if you don't want any of the "letter" attributes, is to set the document as-is (not using \opening, \closing, ...): \documentclass{scrlttr2}% http://ctan.org/pkg/koma-script \usepackage[UKenglish]{babel} \setlength{\parindent}{0pt} \begin{document} \leavevmode\hfill\today Dear XX This is a personal letter Sincerely, Me ...


2

Loading scrpage2 in a scrlttr2 document is not useful because \opening sets the pagestyle to empty. You can use the class option fromrule=below to get a line below of the header: \documentclass[SN,fromrule=below]{scrlttr2} \usepackage[english]{babel} \usepackage{xcolor} \addtokomafont{fromrule}{\color{purple}}% change the line color \makeatletter ...



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