Setting the date position to the top right in a NF.lco (french style) koma scrlttr2Remove date from the...
Assassin's bullet with mercury
If a Gelatinous Cube takes up the entire space of a Pit Trap, what happens when a creature falls into the trap but succeeds on the saving throw?
Alternative to sending password over mail?
Can I ask the recruiters in my resume to put the reason why I am rejected?
Is "remove commented out code" correct English?
Were any external disk drives stacked vertically?
Python: return float 1.0 as int 1 but float 1.5 as float 1.5
Why can't we play rap on piano?
How to say in German "enjoying home comforts"
Infinite Abelian subgroup of infinite non Abelian group example
I Accidentally Deleted a Stock Terminal Theme
Does a druid starting with a bow start with no arrows?
Watching something be written to a file live with tail
How much of data wrangling is a data scientist's job?
90's TV series where a boy goes to another dimension through portal near power lines
Is it canonical bit space?
Why does Kotter return in Welcome Back Kotter
How to take photos in burst mode, without vibration?
Why is Collection not simply treated as Collection<?>
Fully-Firstable Anagram Sets
Can one be a co-translator of a book, if he does not know the language that the book is translated into?
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Brothers & sisters
Is there a hemisphere-neutral way of specifying a season?
Setting the date position to the top right in a NF.lco (french style) koma scrlttr2
Remove date from the french style for the ConTeXt letter moduleHow to position the reference fields line in scrlttr2Left Justifying the Date with Scrlttr2Position the date with dinbriefscrlttr2: Position of the recipient's addressHow can I move the date from right (default) to left side in a letter in LaTeX?Moving CC in scrlttr2 to the top
I want to place the date aboce the receiver address in Koma scrlttr2
. I'm using the NF.lco
or LoadLetterOption{NF}
In French letters,
- the first line contains the date, flushed to the right
- then the sender address on the left
- then the receiver address on the right
- then the subject
- ...
I can use the excellent lettre
class from 'Observatoire de Genève' to obtain the correct french layout (see below), but I'm constrained by my org-mode export tool using koma scrlttr2
as the latex class.
How do I do that ?
In fact I'de love to have an org-mode tool to export directly to the lettre
class. An alternative would be to reproduce the 'lettre' layout in a .lco
file. but that not my question here.
I probably have not read enough linearly the official documentation but random regex search in it for 'date' 'date.*position' 'position' did not give me satisfying results.
Below are illustration of what I have and then what I want
What I have
for the following code
documentclass[a4paper,11pt,french]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8x]{inputenc}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount} setlengthparindent{0pt}
usepackage{setspace} usepackage{lipsum} setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~} setkomavar{enclseparator}{ > } setkomavar{fromaddress}{7-13 rue dejourney\ 49000 ANGERS} setkomavar{fromemail}{gigiair@gigiair.fr} setkomavar{fromname}{Gigiair} setkomavar{fromphone}{0123 456 789} setkomavar{phoneseparator}{~:~} setkomavar{place}{Angers} setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{signature}} setkomavar{subjectseparator}{ >>> } setkomavar{subject}{Modèle}
usepackage{babel}
begin{document}
begin{letter}{`A Madame la centurion\
Camps de Babaurum\
Bretagne conquise} defconcname{Objet :~}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix} end{letter} end{document}
and what I want
from the following code
documentclass[11pt, francais]{lettre} usepackage[T1]{fontenc} usepackage[utf8]{inputenc} usepackage{lmodern} usepackage[francais]{babel} usepackage{mathcomp} usepackage{url}
makeatletter newcommand*{NoRule}{renewcommand*{rule@length}{0}} makeatother
begin{document}
begin{letter} {`A Madame la centurion
\Camps de Babaurum
\Bretagne conquise} defconcname{Objet :~} conc{Fête au village}
NoRule
name{Abraracourcix chef} address{Village des irréductibles Gaulois\ Armorique} lieu{Bretagne Libre}
telephone{0123 456 789} nofax email{goscini@uderzo.be}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter} end{document}
letters
add a comment |
I want to place the date aboce the receiver address in Koma scrlttr2
. I'm using the NF.lco
or LoadLetterOption{NF}
In French letters,
- the first line contains the date, flushed to the right
- then the sender address on the left
- then the receiver address on the right
- then the subject
- ...
I can use the excellent lettre
class from 'Observatoire de Genève' to obtain the correct french layout (see below), but I'm constrained by my org-mode export tool using koma scrlttr2
as the latex class.
How do I do that ?
In fact I'de love to have an org-mode tool to export directly to the lettre
class. An alternative would be to reproduce the 'lettre' layout in a .lco
file. but that not my question here.
I probably have not read enough linearly the official documentation but random regex search in it for 'date' 'date.*position' 'position' did not give me satisfying results.
Below are illustration of what I have and then what I want
What I have
for the following code
documentclass[a4paper,11pt,french]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8x]{inputenc}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount} setlengthparindent{0pt}
usepackage{setspace} usepackage{lipsum} setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~} setkomavar{enclseparator}{ > } setkomavar{fromaddress}{7-13 rue dejourney\ 49000 ANGERS} setkomavar{fromemail}{gigiair@gigiair.fr} setkomavar{fromname}{Gigiair} setkomavar{fromphone}{0123 456 789} setkomavar{phoneseparator}{~:~} setkomavar{place}{Angers} setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{signature}} setkomavar{subjectseparator}{ >>> } setkomavar{subject}{Modèle}
usepackage{babel}
begin{document}
begin{letter}{`A Madame la centurion\
Camps de Babaurum\
Bretagne conquise} defconcname{Objet :~}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix} end{letter} end{document}
and what I want
from the following code
documentclass[11pt, francais]{lettre} usepackage[T1]{fontenc} usepackage[utf8]{inputenc} usepackage{lmodern} usepackage[francais]{babel} usepackage{mathcomp} usepackage{url}
makeatletter newcommand*{NoRule}{renewcommand*{rule@length}{0}} makeatother
begin{document}
begin{letter} {`A Madame la centurion
\Camps de Babaurum
\Bretagne conquise} defconcname{Objet :~} conc{Fête au village}
NoRule
name{Abraracourcix chef} address{Village des irréductibles Gaulois\ Armorique} lieu{Bretagne Libre}
telephone{0123 456 789} nofax email{goscini@uderzo.be}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter} end{document}
letters
Please add a screenshot of the result you want to get and mark there the differences to your currentscrlttr2
code. Add your currentscrlttr2
to your question too!
– Kurt
7 hours ago
Please next time can you use the code format (used with{}
) instead your choosen formatting for error messages (yellow background with"
). Then it is easier to read your code because the line break do not vanish ...
– Kurt
1 hour ago
add a comment |
I want to place the date aboce the receiver address in Koma scrlttr2
. I'm using the NF.lco
or LoadLetterOption{NF}
In French letters,
- the first line contains the date, flushed to the right
- then the sender address on the left
- then the receiver address on the right
- then the subject
- ...
I can use the excellent lettre
class from 'Observatoire de Genève' to obtain the correct french layout (see below), but I'm constrained by my org-mode export tool using koma scrlttr2
as the latex class.
How do I do that ?
In fact I'de love to have an org-mode tool to export directly to the lettre
class. An alternative would be to reproduce the 'lettre' layout in a .lco
file. but that not my question here.
I probably have not read enough linearly the official documentation but random regex search in it for 'date' 'date.*position' 'position' did not give me satisfying results.
Below are illustration of what I have and then what I want
What I have
for the following code
documentclass[a4paper,11pt,french]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8x]{inputenc}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount} setlengthparindent{0pt}
usepackage{setspace} usepackage{lipsum} setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~} setkomavar{enclseparator}{ > } setkomavar{fromaddress}{7-13 rue dejourney\ 49000 ANGERS} setkomavar{fromemail}{gigiair@gigiair.fr} setkomavar{fromname}{Gigiair} setkomavar{fromphone}{0123 456 789} setkomavar{phoneseparator}{~:~} setkomavar{place}{Angers} setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{signature}} setkomavar{subjectseparator}{ >>> } setkomavar{subject}{Modèle}
usepackage{babel}
begin{document}
begin{letter}{`A Madame la centurion\
Camps de Babaurum\
Bretagne conquise} defconcname{Objet :~}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix} end{letter} end{document}
and what I want
from the following code
documentclass[11pt, francais]{lettre} usepackage[T1]{fontenc} usepackage[utf8]{inputenc} usepackage{lmodern} usepackage[francais]{babel} usepackage{mathcomp} usepackage{url}
makeatletter newcommand*{NoRule}{renewcommand*{rule@length}{0}} makeatother
begin{document}
begin{letter} {`A Madame la centurion
\Camps de Babaurum
\Bretagne conquise} defconcname{Objet :~} conc{Fête au village}
NoRule
name{Abraracourcix chef} address{Village des irréductibles Gaulois\ Armorique} lieu{Bretagne Libre}
telephone{0123 456 789} nofax email{goscini@uderzo.be}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter} end{document}
letters
I want to place the date aboce the receiver address in Koma scrlttr2
. I'm using the NF.lco
or LoadLetterOption{NF}
In French letters,
- the first line contains the date, flushed to the right
- then the sender address on the left
- then the receiver address on the right
- then the subject
- ...
I can use the excellent lettre
class from 'Observatoire de Genève' to obtain the correct french layout (see below), but I'm constrained by my org-mode export tool using koma scrlttr2
as the latex class.
How do I do that ?
In fact I'de love to have an org-mode tool to export directly to the lettre
class. An alternative would be to reproduce the 'lettre' layout in a .lco
file. but that not my question here.
I probably have not read enough linearly the official documentation but random regex search in it for 'date' 'date.*position' 'position' did not give me satisfying results.
Below are illustration of what I have and then what I want
What I have
for the following code
documentclass[a4paper,11pt,french]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8x]{inputenc}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount} setlengthparindent{0pt}
usepackage{setspace} usepackage{lipsum} setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~} setkomavar{enclseparator}{ > } setkomavar{fromaddress}{7-13 rue dejourney\ 49000 ANGERS} setkomavar{fromemail}{gigiair@gigiair.fr} setkomavar{fromname}{Gigiair} setkomavar{fromphone}{0123 456 789} setkomavar{phoneseparator}{~:~} setkomavar{place}{Angers} setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{signature}} setkomavar{subjectseparator}{ >>> } setkomavar{subject}{Modèle}
usepackage{babel}
begin{document}
begin{letter}{`A Madame la centurion\
Camps de Babaurum\
Bretagne conquise} defconcname{Objet :~}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix} end{letter} end{document}
and what I want
from the following code
documentclass[11pt, francais]{lettre} usepackage[T1]{fontenc} usepackage[utf8]{inputenc} usepackage{lmodern} usepackage[francais]{babel} usepackage{mathcomp} usepackage{url}
makeatletter newcommand*{NoRule}{renewcommand*{rule@length}{0}} makeatother
begin{document}
begin{letter} {`A Madame la centurion
\Camps de Babaurum
\Bretagne conquise} defconcname{Objet :~} conc{Fête au village}
NoRule
name{Abraracourcix chef} address{Village des irréductibles Gaulois\ Armorique} lieu{Bretagne Libre}
telephone{0123 456 789} nofax email{goscini@uderzo.be}
opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter} end{document}
letters
letters
edited 48 mins ago
Kurt
40.7k850164
40.7k850164
asked 8 hours ago
Malik KonéMalik Koné
183
183
Please add a screenshot of the result you want to get and mark there the differences to your currentscrlttr2
code. Add your currentscrlttr2
to your question too!
– Kurt
7 hours ago
Please next time can you use the code format (used with{}
) instead your choosen formatting for error messages (yellow background with"
). Then it is easier to read your code because the line break do not vanish ...
– Kurt
1 hour ago
add a comment |
Please add a screenshot of the result you want to get and mark there the differences to your currentscrlttr2
code. Add your currentscrlttr2
to your question too!
– Kurt
7 hours ago
Please next time can you use the code format (used with{}
) instead your choosen formatting for error messages (yellow background with"
). Then it is easier to read your code because the line break do not vanish ...
– Kurt
1 hour ago
Please add a screenshot of the result you want to get and mark there the differences to your current
scrlttr2
code. Add your current scrlttr2
to your question too!– Kurt
7 hours ago
Please add a screenshot of the result you want to get and mark there the differences to your current
scrlttr2
code. Add your current scrlttr2
to your question too!– Kurt
7 hours ago
Please next time can you use the code format (used with
{}
) instead your choosen formatting for error messages (yellow background with "
). Then it is easier to read your code because the line break do not vanish ...– Kurt
1 hour ago
Please next time can you use the code format (used with
{}
) instead your choosen formatting for error messages (yellow background with "
). Then it is easier to read your code because the line break do not vanish ...– Kurt
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
Because I do not know the rules for french letters (is'nt there a *.lco
file for french speaking swiss, simular to letters in france?) I let it to you to work it out precisley.
In your case you need to define a new firsthead
like:
setkomavar{firsthead}{%
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
Please see I added the place and date directly in the code above (marking <======
).
To get no place and date printed in the refline you need to use the following two lines:
%setkomavar{place}{Angers}
date{}
Please see the following complete code
documentclass[%
paper=a4,
fontsize=11pt,
french,
]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
usepackage{setspace}
usepackage{lipsum}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount}
setlengthparindent{0pt}
setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
%setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~}
setkomavar{enclseparator}{ > }
setkomavar{fromaddress}{7-13 rue dejourney 49000 ANGERS}
setkomavar{fromemail}{gigiair@gigiair.fr}
setkomavar{fromname}{Gigiair}
setkomavar{fromphone}{0123 456 789}
setkomavar{phoneseparator}{~:~}
%setkomavar{place}{Angers} % <=========================================
date{} % <============================================================
setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{example-image}}
setkomavar{subjectseparator}{ >>> }
setkomavar{subject}{Modèle}
setkomavar{firsthead}{% <==============================================
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
LoadLetterOption{visualize} % <========================================
showfields{head,address,location,refline,foot} % <=====================
begin{document}
begin{letter}{`A Madame la centurion Camps de Babaurum Bretagne conquise}
defconcname{Objet :~}
opening{Madame la centurion,}
C'est une invitation pour manger du sanglier roti.
closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter}
end{document}
and its result:
Please see that the call of LoadLetterOption{visualize}
activates the tool of scrarttl2
to visualize special fields, named in showfields{head,address,location,refline,foot}
.
If that is a real standard format for french letters, please contact the maintainer of KOMA-Script at https://komascript.de/ (you can write in english) and ask for a feature request to realize this french letter format via pur lco file ...
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483216%2fsetting-the-date-position-to-the-top-right-in-a-nf-lco-french-style-koma-scrlt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Because I do not know the rules for french letters (is'nt there a *.lco
file for french speaking swiss, simular to letters in france?) I let it to you to work it out precisley.
In your case you need to define a new firsthead
like:
setkomavar{firsthead}{%
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
Please see I added the place and date directly in the code above (marking <======
).
To get no place and date printed in the refline you need to use the following two lines:
%setkomavar{place}{Angers}
date{}
Please see the following complete code
documentclass[%
paper=a4,
fontsize=11pt,
french,
]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
usepackage{setspace}
usepackage{lipsum}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount}
setlengthparindent{0pt}
setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
%setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~}
setkomavar{enclseparator}{ > }
setkomavar{fromaddress}{7-13 rue dejourney 49000 ANGERS}
setkomavar{fromemail}{gigiair@gigiair.fr}
setkomavar{fromname}{Gigiair}
setkomavar{fromphone}{0123 456 789}
setkomavar{phoneseparator}{~:~}
%setkomavar{place}{Angers} % <=========================================
date{} % <============================================================
setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{example-image}}
setkomavar{subjectseparator}{ >>> }
setkomavar{subject}{Modèle}
setkomavar{firsthead}{% <==============================================
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
LoadLetterOption{visualize} % <========================================
showfields{head,address,location,refline,foot} % <=====================
begin{document}
begin{letter}{`A Madame la centurion Camps de Babaurum Bretagne conquise}
defconcname{Objet :~}
opening{Madame la centurion,}
C'est une invitation pour manger du sanglier roti.
closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter}
end{document}
and its result:
Please see that the call of LoadLetterOption{visualize}
activates the tool of scrarttl2
to visualize special fields, named in showfields{head,address,location,refline,foot}
.
If that is a real standard format for french letters, please contact the maintainer of KOMA-Script at https://komascript.de/ (you can write in english) and ask for a feature request to realize this french letter format via pur lco file ...
add a comment |
Because I do not know the rules for french letters (is'nt there a *.lco
file for french speaking swiss, simular to letters in france?) I let it to you to work it out precisley.
In your case you need to define a new firsthead
like:
setkomavar{firsthead}{%
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
Please see I added the place and date directly in the code above (marking <======
).
To get no place and date printed in the refline you need to use the following two lines:
%setkomavar{place}{Angers}
date{}
Please see the following complete code
documentclass[%
paper=a4,
fontsize=11pt,
french,
]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
usepackage{setspace}
usepackage{lipsum}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount}
setlengthparindent{0pt}
setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
%setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~}
setkomavar{enclseparator}{ > }
setkomavar{fromaddress}{7-13 rue dejourney 49000 ANGERS}
setkomavar{fromemail}{gigiair@gigiair.fr}
setkomavar{fromname}{Gigiair}
setkomavar{fromphone}{0123 456 789}
setkomavar{phoneseparator}{~:~}
%setkomavar{place}{Angers} % <=========================================
date{} % <============================================================
setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{example-image}}
setkomavar{subjectseparator}{ >>> }
setkomavar{subject}{Modèle}
setkomavar{firsthead}{% <==============================================
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
LoadLetterOption{visualize} % <========================================
showfields{head,address,location,refline,foot} % <=====================
begin{document}
begin{letter}{`A Madame la centurion Camps de Babaurum Bretagne conquise}
defconcname{Objet :~}
opening{Madame la centurion,}
C'est une invitation pour manger du sanglier roti.
closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter}
end{document}
and its result:
Please see that the call of LoadLetterOption{visualize}
activates the tool of scrarttl2
to visualize special fields, named in showfields{head,address,location,refline,foot}
.
If that is a real standard format for french letters, please contact the maintainer of KOMA-Script at https://komascript.de/ (you can write in english) and ask for a feature request to realize this french letter format via pur lco file ...
add a comment |
Because I do not know the rules for french letters (is'nt there a *.lco
file for french speaking swiss, simular to letters in france?) I let it to you to work it out precisley.
In your case you need to define a new firsthead
like:
setkomavar{firsthead}{%
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
Please see I added the place and date directly in the code above (marking <======
).
To get no place and date printed in the refline you need to use the following two lines:
%setkomavar{place}{Angers}
date{}
Please see the following complete code
documentclass[%
paper=a4,
fontsize=11pt,
french,
]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
usepackage{setspace}
usepackage{lipsum}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount}
setlengthparindent{0pt}
setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
%setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~}
setkomavar{enclseparator}{ > }
setkomavar{fromaddress}{7-13 rue dejourney 49000 ANGERS}
setkomavar{fromemail}{gigiair@gigiair.fr}
setkomavar{fromname}{Gigiair}
setkomavar{fromphone}{0123 456 789}
setkomavar{phoneseparator}{~:~}
%setkomavar{place}{Angers} % <=========================================
date{} % <============================================================
setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{example-image}}
setkomavar{subjectseparator}{ >>> }
setkomavar{subject}{Modèle}
setkomavar{firsthead}{% <==============================================
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
LoadLetterOption{visualize} % <========================================
showfields{head,address,location,refline,foot} % <=====================
begin{document}
begin{letter}{`A Madame la centurion Camps de Babaurum Bretagne conquise}
defconcname{Objet :~}
opening{Madame la centurion,}
C'est une invitation pour manger du sanglier roti.
closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter}
end{document}
and its result:
Please see that the call of LoadLetterOption{visualize}
activates the tool of scrarttl2
to visualize special fields, named in showfields{head,address,location,refline,foot}
.
If that is a real standard format for french letters, please contact the maintainer of KOMA-Script at https://komascript.de/ (you can write in english) and ask for a feature request to realize this french letter format via pur lco file ...
Because I do not know the rules for french letters (is'nt there a *.lco
file for french speaking swiss, simular to letters in france?) I let it to you to work it out precisley.
In your case you need to define a new firsthead
like:
setkomavar{firsthead}{%
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
Please see I added the place and date directly in the code above (marking <======
).
To get no place and date printed in the refline you need to use the following two lines:
%setkomavar{place}{Angers}
date{}
Please see the following complete code
documentclass[%
paper=a4,
fontsize=11pt,
french,
]{scrlttr2}
usepackage{palatino}
usepackage[T1]{fontenc}
usepackage{ucs}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{eurosym}
usepackage{geometry}
usepackage{graphicx}
usepackage{setspace}
usepackage{lipsum}
geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
setlengthparskip{medskipamount}
setlengthparindent{0pt}
setstretch{1.15}
LoadLetterOption{NF}%
KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
%setkomavar{date}{le today}
setkomafont{backaddress}{rmfamily}
setkomafont{fromaddress}{small}
setkomafont{fromname}{scshape}
setkomavar{backaddressseparator}{ $cdot$ }
setkomavar{backaddress}{}
setkomavar{emailseparator}{~:~}
setkomavar{enclseparator}{ > }
setkomavar{fromaddress}{7-13 rue dejourney 49000 ANGERS}
setkomavar{fromemail}{gigiair@gigiair.fr}
setkomavar{fromname}{Gigiair}
setkomavar{fromphone}{0123 456 789}
setkomavar{phoneseparator}{~:~}
%setkomavar{place}{Angers} % <=========================================
date{} % <============================================================
setkomavar{signature}{qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad qquad quad quad includegraphics[width=2.5cm]{example-image}}
setkomavar{subjectseparator}{ >>> }
setkomavar{subject}{Modèle}
setkomavar{firsthead}{% <==============================================
begin{tabular}[t]{l@{}}%
usekomavar{fromname}\
usekomavar*{fromphone}usekomavar{fromphone}\
usekomavar*{fromemail}usekomavar{fromemail}
end{tabular}
hfill
normalsize
Angers, le today % <=================================================
}
LoadLetterOption{visualize} % <========================================
showfields{head,address,location,refline,foot} % <=====================
begin{document}
begin{letter}{`A Madame la centurion Camps de Babaurum Bretagne conquise}
defconcname{Objet :~}
opening{Madame la centurion,}
C'est une invitation pour manger du sanglier roti.
closing{à la tienne !}
cc{Panoramix et Obleix}
end{letter}
end{document}
and its result:
Please see that the call of LoadLetterOption{visualize}
activates the tool of scrarttl2
to visualize special fields, named in showfields{head,address,location,refline,foot}
.
If that is a real standard format for french letters, please contact the maintainer of KOMA-Script at https://komascript.de/ (you can write in english) and ask for a feature request to realize this french letter format via pur lco file ...
answered 1 hour ago
KurtKurt
40.7k850164
40.7k850164
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483216%2fsetting-the-date-position-to-the-top-right-in-a-nf-lco-french-style-koma-scrlt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please add a screenshot of the result you want to get and mark there the differences to your current
scrlttr2
code. Add your currentscrlttr2
to your question too!– Kurt
7 hours ago
Please next time can you use the code format (used with
{}
) instead your choosen formatting for error messages (yellow background with"
). Then it is easier to read your code because the line break do not vanish ...– Kurt
1 hour ago