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


8

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


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


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


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

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

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


4

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

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


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

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

\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

\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

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


3

You can use \setkomavar{fromname}{% \vspace{-\useplength{firstheadvpos}}% Me, I and myself} or if you want to set the KOMA length directly \makeatletter\@setplength{firstheadvpos}{0cm}\makeatother However, setting directly firstheadvpos should be done in a lco file (letter class options).


3

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


3

The trouble is that scrlttr2 does not provide a \section command (which biblatex uses by default for the bibliography heading). We can define our own heading though via \defbibheading{letterbib}[\refname]{#1} We can change \refname for \bibname here - \refname prints "References" while \bibname prints "Bibliography". You can let your imagination run wild ...


3

Use \renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}} in your preamble. This removes \pagename\ (note the space) from the page numbering scheme. \documentclass{scrlttr2} \usepackage[german]{babel} \usepackage{lipsum} % Remove '\pagename\ ' from \pagemark \renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}} \begin{document} ...


3

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


3

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


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

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



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