Questions tagged [scrlttr2]
{scrlttr2} is for questions addressing issues related to the KOMA-Script letter class `scrlttr2`
217
questions
0
votes
1
answer
35
views
Help with Adapting a LaTeX Template for scrlttr2
I have a LaTeX template originally created for \documentclass{article} that displays CSV data in a table. I would like to adapt this template to work with the KOMA-Script class scrlttr2 since I need ...
1
vote
1
answer
42
views
Use datatool variable for including a pdf
I'd like to generate a bulk letter with datatool and include a different pdf for each row. Can this be done with pdfpages?
\documentclass[paper=a4]{scrlttr2}
\usepackage{fontspec}
\usepackage{...
4
votes
1
answer
112
views
KOMA Script (scrlttr2) and tabularray - compatibility issues?
A M(N)WE of what has once been a rather complex table:
\documentclass{scrlttr2}
\usepackage{tabularray}
\begin{document}
\begin{letter}{ }
\begin{tblr}[long]{l}
test \\
\end{tblr}
\end{letter}
\end{...
2
votes
1
answer
43
views
Why scrlttr2 does not exhaust bottom of page?
I have the following file test.tex:
\documentclass[a4paper,10pt,version=last]{scrlttr2}%,fontsize=10pt
\usepackage{fontspec}% for lualatex
\usepackage{geometry}
\usepackage[latin]{babel} % for ...
2
votes
1
answer
52
views
No header in Letter
I have a MWE, But i want no rule and Name Adress etc on the right side of the document. I just want have it on the leftside ruled. But I did not achieved it. Is this possible?
Meaning I want this:
...
1
vote
1
answer
128
views
scrlttr2 enclosure pagebreak
I am using scrlttr2 to write letters, and in particular add the attachements also provided in the envelope in the \encl{} closure.
However, since I add many many entries to the encl{} closure, it ...
1
vote
1
answer
174
views
scrlttr2: Changing the font of all elements at once
The scrlttr2 documentation states on page 183
With the help of the \setkomafont and \addtokomafont commands, you can attach particular
font styling commands that change the appearance of a given ...
0
votes
1
answer
105
views
Why does the same definition lead to a different footer on second page? [duplicate]
I want to create a footer on all pages except the first.
After I had failed I tried with creating the same footer as on the first page and it still looks different.
It seems to only show a footer at ...
0
votes
0
answers
74
views
Add new KOMAoptions to customize .lco file?
I want to create extra KOMAoptions to be able to customize my scrlttr2 style.
Should I create a .cls file or create an .lco file? Everything I was able to find online it is recommended to use an .lco ...
1
vote
1
answer
179
views
How to add new komavars in .cls to use in .lco?
I want to add \newkomavar in my .cls file and use it in an .lco file.
But it seems the .lco is called before the .cls and it does not work. How can I define new koma variables and use them in an .lco ...
1
vote
1
answer
60
views
Parskip is shifting my footer down
Why is the footer (containing the bank information) shifted down by parskip?
\documentclass[fontsize=12pt,
DIN, A4,
parskip=full, % removing this prevents the shift
...
0
votes
1
answer
199
views
Problems with scrlttr2 class
I am writing a long letter with sections, adressed to a public Institution in Mexico. I have to use letter sized paper and 12 pt. So I put the section.lco extra code in the place where I am writing ...
0
votes
1
answer
59
views
scrlttr2 same head back filled as my CV
Lately I just found the scrlttr2 class for my letters, as it has the SN option that gets all I need, in less than 5-10 seconds. But if I would like to use it to make my CV cover letter, I need one ...
1
vote
1
answer
113
views
Strange results when using \setkomavar{title} with scrlayer-scrpage and scrlttr2
Months ago, this code was working a letter:
\documentclass[paper=a4,foldmarks=true,foldmarks=blmtP,fromalign=center,fromrule=afteraddress,fromphone,fromemail,title=true,subject=titled,version=last]{...
1
vote
1
answer
100
views
Problems with newcommand and counter for filling a longtable
I am trying to create a form for orders. The heart of this document is a srclttr2 with a longtable to even get a nice document for long orders. To make this template more flexible/easy I would like to ...
2
votes
2
answers
2k
views
scrletter/scrlttr2 footer position and format
Using scrletter, I cannot get the exact same footer as on the first page (position and text). Here's a MWE:
\documentclass[a4paper,
headlines=8.1,
headheight=3cm,
footlines=1.1,
footheight=2cm,
...
0
votes
1
answer
426
views
Set distance between signature and enclosures in scrlttr2
I am using the scrlttr2 package to write a letter with enclosures. However, I do not like the default vertical distance between the signature and the list of enclosures. Currently in my Tex document, ...
0
votes
1
answer
60
views
CC alignment with scrlttr2
I am trying to typeset a letter using Koma-Script, but the "distribution list" is not indented correctly. I would like it to look like in Figure 4.7 in the documentation (I think it's called ...
0
votes
1
answer
358
views
Adding text immediately after the subject, and before the `\opening` of an scrlttr2 letter?
This is perhaps the companion question to Adding text immediately after the main text of a scrlttr2 letter.
I have a use case where I want to make a comment on a letter before actually starting the ...
0
votes
2
answers
1k
views
jinja template engine statement conflicts with {%
tldr/solution: The jinja template engine default statement is defined as {%,%} and it conflicts with % at the end of the line (which is simply not a comment) in a combination with the parenthesis {. ...
2
votes
1
answer
184
views
Windowed Envelopes in LaTeX
I'm trying to get windowed envelopes sorted for letters. My code is below.
%-----------------------------------------------------------------------------%
\documentclass[a4paper]{scrlttr2}
\...
1
vote
1
answer
222
views
From Address Position Definition with scrlttr2
How do you define the fromaddress position and size using a scrlttr2 template?
For the receiver's address, it can be done as follows
%These commands work
\@setplength{toaddrhpos}{1cm}
\@setplength{...
1
vote
0
answers
178
views
scrlttr2 reference fields line on every page
This is my reference field line on the first page.
\removereffields %<- delete default order of the predefined variables
\setkomavar{date}{\today}
\setkomavar{invoice}[Rechnungsnummer]{1234567}
\...
2
votes
1
answer
206
views
How to move date position before receiver address in scrlttr2 letter?
I can move the date position by playing around with vspace, like this:
#+LATEX_HEADER: \setkomavar{date}{\flushleft\vspace{-\baselineskip}\today\par
However, no matter which value I pick, the date ...
1
vote
1
answer
290
views
scrlttr2: how to match the text body on all pages correctly
In my letter I would like that the table fills the space all the way to the footer or at least the same length as all the following pages. When I add \setlength{\footskip}{0mm} it does this on the ...
1
vote
1
answer
284
views
scrlttr2 pagenumbers in header or footer on all pages (including the first one)
I am trying to combine a nice footer on all pages with pagenumbers on all pages. I have firsthead=off since I need a logo in the place of the back address. If I remove \chead*{\pagemark} from the ...
0
votes
1
answer
103
views
Align text in footer table
How to edit the first column tabular in the footer so the text of the marked rows is aligned?
\documentclass[fontsize=11pt, version=last, fromalign=left, backaddress=true, foldmarks=on, fromphone=off,...
0
votes
1
answer
98
views
scrlttr2 another frombank
The frombank komavar is perfect. It does everything I want to. But I need another one, since I have to add two bank accounts to the footer in the letter. Is it possible to have another frombank?
0
votes
1
answer
209
views
How to put text or boxes of text above the back address in scrlttr2
I want to put 5 boxes of text above the back address line. For that matter I set firsthead to false. The text size can be the same size as the back address text size. The maximal length of each box ...
0
votes
1
answer
235
views
Applying rowcolor to tabularx in spreadtab causes "TeX capacity exceeded" error
Trying to apply \rowcolor{gray} to a specific row of a tabularx table whose values are calculated from spreadtab causes the famous error
TeX capacity exceeded, sorry [parameter stack size=10000].
...
0
votes
0
answers
295
views
How to remove Sender Details in scrlttr2
My letter is a bit too long and in order to fit on 1 page I would like to remove the Sender details and the space it takes in the DIn A4 template leaving only the underlined backaddress:
\...
1
vote
0
answers
367
views
How To Align Addresses Of Sender And Receiver In scrlttr2 Or scrletter
Assume that I want to write a letter with KOMAscript (either via \usepackage{scrlttr2} or \usepackage{scrartcl} \usepackage{scrletter}) and I want to store the address of the sender in the location ...
3
votes
1
answer
191
views
Footer in scrlttr2 gets cut by page end
I'm writing an invoice in LaTeX with KOMA-Script and scrlttr2. But the payment information I have put in the footer is too close/gets cut off by the page bottom. The following example should look like ...
0
votes
1
answer
646
views
Remove blank vertical space between Sender/Recipient in LaTeX letter package scrlttr2
I am constructing a letter using the scrlttr2 package.
I've dived through a lot of questions about how to handle the sizes of the Sender Recipient section (at the top of just the first page). Using ...
0
votes
1
answer
159
views
scrlttr2, crop and headheight
I write a letter with scrlttr2 and try to colorize the background of the header.
For some reason, I need some crop marks. So I maximize my letter from DIN-A4 to DIN-A3 with the package crop. But now, ...
1
vote
1
answer
135
views
scrlttr2: lco file read only if babel is not used ; DeclareOption*; actually: handling of options and babel
I have my own letterclass using scrlttr2:
%mwe.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mwe}[2010/11/19 mwe.cls]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrlttr2}}
\ProcessOptions\...
1
vote
1
answer
407
views
How do I force the pagemark footer to be shown on all pages, including the first?
I'm trying to create a letter template and want every page to show the current page and the total number of pages. However, I cannot get koma script to display the custom \pagemark on the first page. ...
3
votes
2
answers
498
views
A missing address in a letter causes a "There's no line here to end." error
Consider the following LaTeX file:
\documentclass[12pt]{scrlttr2}
\begin{document}
\begin{letter}{}
\opening{}
\closing{}
\end{letter}
\end{document}
I get the error
LaTeX Error: There's no line ...
2
votes
1
answer
100
views
How to have an equal footer position in komascript?
Is there a certain option have the next page's footer equally positioned as the first?
\documentclass{scrlttr2}
%% \documentclass[firstfoot=false]{scrlttr2}
\usepackage[english]{babel}
%% Same left ...
1
vote
1
answer
264
views
How to center the footer in koma
I want a centered footer. What am I missing?
% Created 2021-01-16 Sat 18:12
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{scrlttr2}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\...
1
vote
2
answers
397
views
How to convert a scrlttr2 letter to scrletter?
I'm asking how to switch to scrletter, when you were using scrlttr2 before, because it has been suggested for me. I'd like to use the document class scrartcl, in case that matters.
I know there is the ...
4
votes
2
answers
2k
views
What is the difference between scrletter and scrlttr2?
I'm asking about scrletter vs scrlttr2 , because it has been suggested for me.
I know there is the huge doc about scrguien, but I do not have time to read that and want a quick summary of the main ...
1
vote
1
answer
385
views
Use a sub-subject (here/reference) in a scrlttr2 letter?
Of course you can use \setkomavar{subject} to add a subject to a letter you have created with scrlttr2.
However, many letters from official agencies or other public institutions do have another ...
7
votes
3
answers
2k
views
How to use sections/headings in a scrlttr2 letter?
I use scrlttr2 as a letter template? (Together with mailmerge in case that is relevant.)
How can I use sections or headings inside of a long letter to structure it?
Of course, I don't want to make use ...
2
votes
3
answers
2k
views
Show page number/same footer on the first page of a letter in KOMA scrlttr2?
I use the KOMA script scrlttr2 and just want to display the same text (my page numbering/number) on all pages of my letter, of course including the first one.
I've found this answer and this somewhat ...
2
votes
2
answers
746
views
How can I print “page # of ##” with the total page number in KOMA (scrlttr2)?
This questions explains how you can show the total page number of your document in the footer on each page, i.e. show a “page # of ##” instead of the default “page # of #”.
However, even though ...
0
votes
2
answers
159
views
Why do I have three lines on the very left of my page?
I am currently creating a cover letter (using a template) but I cannot find out why I have those three lines on the very left of my page. They seem to be aligned with something, but I cannot figure ...
4
votes
2
answers
104
views
Why does the head line disappear under the logo?
I hope somebody can help me with my problem.
I created a document as described in the last edition of the "KOMA-Script" book by Markus Kohm. My problem is that the line under the logo is ...
0
votes
0
answers
52
views
Problems with fillable PDFs
I am trying to create a writable pdf and I took a cue from here:
Creating fillable PDFs and What are the miminal required environments for a KOMA-Script scrlttr2?
I don't understand how to arrange ...
2
votes
0
answers
358
views
Add addtional address to scrlttr2
Is there a way to add a second (maybe third?) address to the scrlttr2 address field so that it looks like the following example:
My current letter looks like this:
MWE:
%-----------------------------...