Icon at Subject-line scrlttr2scrlttr2 remove toaddressscrlttr2 documentclass optionsscrlttr2 - bad...

Plausible reason for gold-digging ant

Why did Luke use his left hand to shoot?

Why does 0.-5 evaluate to -5?

What to do with threats of blacklisting?

How much light is too much?

Minimum Viable Product for RTS game?

Is there any danger of my neighbor having my wife's signature?

Why does typing a variable (or expression) print the value to stdout?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

Is there a file that always exists and a 'normal' user can't lstat it?

Modern Algebraic Geometry and Analytic Number Theory

How to deal with an underperforming subordinate?

Coworker asking me to not bring cakes due to self control issue. What should I do?

How do you get out of your own psychology to write characters?

How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?

How bad is a Computer Science course that doesn't teach Design Patterns?

Why is it that Bernie Sanders is always called a "socialist"?

Possible issue with my W4 and tax return

How vim overwrites readonly mode?

Co-worker sabotaging/undoing my work (software development)

Does diversity provide anything that meritocracy does not?

Charging phone battery with a lower voltage, coming from a bike charger?

Eww, those bytes are gross

Is it possible to detect 100% of SQLi with a simple regex?



Icon at Subject-line scrlttr2


scrlttr2 remove toaddressscrlttr2 documentclass optionsscrlttr2 - bad formatscrlttr2 reuse text of subject in letter againKOMA scrlttr2 - backaddress too long, edit addressee; spacing/linescrlttr2 positioning - signature business title and name in same lineAdding “Attention” line to scrlttr2German characters in lco file scrlttr2Visualize scrlttr2 layoutHow to write KOMA scrttl2 subject without the words “Subject: ” in front?













2















I want to add a small icon right left of the Subject line in a scrlttr2 file.
I already managed this for a scrartcl file, but don't now how to do this in a letter.
Can you help me?



The code from the scrartcl.cls is:



newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}}
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother


Does anyone know, how the reference for the subject is called in scrlttr2?



MWE



documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt, %
parskip=half %
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}

%------------------- It's all about this part -----------------------
newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}} % This is the icon I want to use
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother
%-------------------------------------------------------------------

usepackage{blindtext}


setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext


closing{Thank You. Over and out}

end{letter}

end{document}


The hacked scrartcl sections look like this:



Hacked_sections



Thank you
Michael










share|improve this question

























  • Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

    – Kurt
    2 hours ago











  • Hello @Kurt I added am MWE.

    – Michael Schmid
    2 hours ago











  • What do you mean with "how the reference for the subject is called in sclttr2"?

    – Kurt
    2 hours ago











  • I mean somthing like the "seccountformat" in scrartcl

    – Michael Schmid
    2 hours ago











  • Do you mean the definition of the formatting of subject?

    – Kurt
    1 hour ago
















2















I want to add a small icon right left of the Subject line in a scrlttr2 file.
I already managed this for a scrartcl file, but don't now how to do this in a letter.
Can you help me?



The code from the scrartcl.cls is:



newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}}
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother


Does anyone know, how the reference for the subject is called in scrlttr2?



MWE



documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt, %
parskip=half %
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}

%------------------- It's all about this part -----------------------
newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}} % This is the icon I want to use
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother
%-------------------------------------------------------------------

usepackage{blindtext}


setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext


closing{Thank You. Over and out}

end{letter}

end{document}


The hacked scrartcl sections look like this:



Hacked_sections



Thank you
Michael










share|improve this question

























  • Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

    – Kurt
    2 hours ago











  • Hello @Kurt I added am MWE.

    – Michael Schmid
    2 hours ago











  • What do you mean with "how the reference for the subject is called in sclttr2"?

    – Kurt
    2 hours ago











  • I mean somthing like the "seccountformat" in scrartcl

    – Michael Schmid
    2 hours ago











  • Do you mean the definition of the formatting of subject?

    – Kurt
    1 hour ago














2












2








2








I want to add a small icon right left of the Subject line in a scrlttr2 file.
I already managed this for a scrartcl file, but don't now how to do this in a letter.
Can you help me?



The code from the scrartcl.cls is:



newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}}
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother


Does anyone know, how the reference for the subject is called in scrlttr2?



MWE



documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt, %
parskip=half %
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}

%------------------- It's all about this part -----------------------
newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}} % This is the icon I want to use
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother
%-------------------------------------------------------------------

usepackage{blindtext}


setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext


closing{Thank You. Over and out}

end{letter}

end{document}


The hacked scrartcl sections look like this:



Hacked_sections



Thank you
Michael










share|improve this question
















I want to add a small icon right left of the Subject line in a scrlttr2 file.
I already managed this for a scrartcl file, but don't now how to do this in a letter.
Can you help me?



The code from the scrartcl.cls is:



newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}}
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother


Does anyone know, how the reference for the subject is called in scrlttr2?



MWE



documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt, %
parskip=half %
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}

%------------------- It's all about this part -----------------------
newcommand{unquad}{hskip-1.3emrelax}
DeclareRobustCommand{picturetodisplay}{includegraphics{Bilder/Spiel_Start.jpg}} % This is the icon I want to use
makeatletter
def@seccntformat#1{unquadunquadpicturetodisplayquad}
makeatother
%-------------------------------------------------------------------

usepackage{blindtext}


setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext


closing{Thank You. Over and out}

end{letter}

end{document}


The hacked scrartcl sections look like this:



Hacked_sections



Thank you
Michael







koma-script includegraphics scrlttr2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago









Kurt

38.1k847162




38.1k847162










asked 2 hours ago









Michael SchmidMichael Schmid

30517




30517













  • Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

    – Kurt
    2 hours ago











  • Hello @Kurt I added am MWE.

    – Michael Schmid
    2 hours ago











  • What do you mean with "how the reference for the subject is called in sclttr2"?

    – Kurt
    2 hours ago











  • I mean somthing like the "seccountformat" in scrartcl

    – Michael Schmid
    2 hours ago











  • Do you mean the definition of the formatting of subject?

    – Kurt
    1 hour ago



















  • Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

    – Kurt
    2 hours ago











  • Hello @Kurt I added am MWE.

    – Michael Schmid
    2 hours ago











  • What do you mean with "how the reference for the subject is called in sclttr2"?

    – Kurt
    2 hours ago











  • I mean somthing like the "seccountformat" in scrartcl

    – Michael Schmid
    2 hours ago











  • Do you mean the definition of the formatting of subject?

    – Kurt
    1 hour ago

















Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

– Kurt
2 hours ago





Please show us a short compilable code resulting in your issue instead only showing a code snippet ... Can you add a screenshot of what you have (without personaly informations!) and mark there where you want to add the icon and which one?

– Kurt
2 hours ago













Hello @Kurt I added am MWE.

– Michael Schmid
2 hours ago





Hello @Kurt I added am MWE.

– Michael Schmid
2 hours ago













What do you mean with "how the reference for the subject is called in sclttr2"?

– Kurt
2 hours ago





What do you mean with "how the reference for the subject is called in sclttr2"?

– Kurt
2 hours ago













I mean somthing like the "seccountformat" in scrartcl

– Michael Schmid
2 hours ago





I mean somthing like the "seccountformat" in scrartcl

– Michael Schmid
2 hours ago













Do you mean the definition of the formatting of subject?

– Kurt
1 hour ago





Do you mean the definition of the formatting of subject?

– Kurt
1 hour ago










2 Answers
2






active

oldest

votes


















2














You can simply add includegraphics[width=1cm]{example-image-a} at the point where you want to get the icon. Because I do not have your used image I simply used image example-image-a.jpg frpm package MWE (which must be installed but not called!).



See the complete code (I deleted your code of the code snippet because it is not needed/used here):



documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt, %
parskip=half %
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}
usepackage{graphicx}

usepackage{blindtext}

setkomavar{subject}{includegraphics[width=1cm]{example-image-a}$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}


begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext


closing{Thank You. Over and out}

end{letter}

end{document}


and the resulting pdf:



resulting pdf






share|improve this answer
























  • Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

    – Michael Schmid
    2 hours ago



















2














You could use variable subjectseparator:



documentclass[a4paper, fontsize=10pt, DIV=14]{scrlttr2}% <- syntax changed: DIV=14
KOMAoptions{%
locfield=wide, %
fromalign=left,%
fontsize=10pt,%
parskip=half,%
subject=titled % <- added
}
LoadLetterOption{DINmtext}

usepackage[utf8]{inputenc}
usepackage[ngerman]{babel}
usepackage[T1]{fontenc}
usepackage[scaled=.92]{helvet}
usepackage{graphicx}

usepackage{blindtext}

setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
setkomavar{subjectseparator}[]{makebox[0pt][r]{includegraphics[width=1.5em]{example-image}enskip}}% <- added


begin{document}
setkomavar{fromname}{Me}
begin{letter}{Jon Doe}
opening{Hey,}
blindtext
closing{Thank You. Over and out}
end{letter}
end{document}


Result:



screenshot



Additional remark regarding your scrartcl hack: if you use a KOMA-Script class, avoid the redefinition of an internal command. You could redefine sectionlinesformat or maybe sectionformat (depending on the desired result).






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476569%2ficon-at-subject-line-scrlttr2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    You can simply add includegraphics[width=1cm]{example-image-a} at the point where you want to get the icon. Because I do not have your used image I simply used image example-image-a.jpg frpm package MWE (which must be installed but not called!).



    See the complete code (I deleted your code of the code snippet because it is not needed/used here):



    documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
    KOMAoptions{%
    locfield=wide, %
    fromalign=left,%
    fontsize=10pt, %
    parskip=half %
    }
    LoadLetterOption{DINmtext}

    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage[T1]{fontenc}
    usepackage[scaled=.92]{helvet}
    usepackage{graphicx}

    usepackage{blindtext}

    setkomavar{subject}{includegraphics[width=1cm]{example-image-a}$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}


    begin{document}
    setkomavar{fromname}{Me}
    begin{letter}{Jon Doe}
    opening{Hey,}
    blindtext


    closing{Thank You. Over and out}

    end{letter}

    end{document}


    and the resulting pdf:



    resulting pdf






    share|improve this answer
























    • Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

      – Michael Schmid
      2 hours ago
















    2














    You can simply add includegraphics[width=1cm]{example-image-a} at the point where you want to get the icon. Because I do not have your used image I simply used image example-image-a.jpg frpm package MWE (which must be installed but not called!).



    See the complete code (I deleted your code of the code snippet because it is not needed/used here):



    documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
    KOMAoptions{%
    locfield=wide, %
    fromalign=left,%
    fontsize=10pt, %
    parskip=half %
    }
    LoadLetterOption{DINmtext}

    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage[T1]{fontenc}
    usepackage[scaled=.92]{helvet}
    usepackage{graphicx}

    usepackage{blindtext}

    setkomavar{subject}{includegraphics[width=1cm]{example-image-a}$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}


    begin{document}
    setkomavar{fromname}{Me}
    begin{letter}{Jon Doe}
    opening{Hey,}
    blindtext


    closing{Thank You. Over and out}

    end{letter}

    end{document}


    and the resulting pdf:



    resulting pdf






    share|improve this answer
























    • Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

      – Michael Schmid
      2 hours ago














    2












    2








    2







    You can simply add includegraphics[width=1cm]{example-image-a} at the point where you want to get the icon. Because I do not have your used image I simply used image example-image-a.jpg frpm package MWE (which must be installed but not called!).



    See the complete code (I deleted your code of the code snippet because it is not needed/used here):



    documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
    KOMAoptions{%
    locfield=wide, %
    fromalign=left,%
    fontsize=10pt, %
    parskip=half %
    }
    LoadLetterOption{DINmtext}

    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage[T1]{fontenc}
    usepackage[scaled=.92]{helvet}
    usepackage{graphicx}

    usepackage{blindtext}

    setkomavar{subject}{includegraphics[width=1cm]{example-image-a}$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}


    begin{document}
    setkomavar{fromname}{Me}
    begin{letter}{Jon Doe}
    opening{Hey,}
    blindtext


    closing{Thank You. Over and out}

    end{letter}

    end{document}


    and the resulting pdf:



    resulting pdf






    share|improve this answer













    You can simply add includegraphics[width=1cm]{example-image-a} at the point where you want to get the icon. Because I do not have your used image I simply used image example-image-a.jpg frpm package MWE (which must be installed but not called!).



    See the complete code (I deleted your code of the code snippet because it is not needed/used here):



    documentclass[a4paper, fontsize=10pt, DIV 14]{scrlttr2}
    KOMAoptions{%
    locfield=wide, %
    fromalign=left,%
    fontsize=10pt, %
    parskip=half %
    }
    LoadLetterOption{DINmtext}

    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage[T1]{fontenc}
    usepackage[scaled=.92]{helvet}
    usepackage{graphicx}

    usepackage{blindtext}

    setkomavar{subject}{includegraphics[width=1cm]{example-image-a}$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}


    begin{document}
    setkomavar{fromname}{Me}
    begin{letter}{Jon Doe}
    opening{Hey,}
    blindtext


    closing{Thank You. Over and out}

    end{letter}

    end{document}


    and the resulting pdf:



    resulting pdf







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 2 hours ago









    KurtKurt

    38.1k847162




    38.1k847162













    • Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

      – Michael Schmid
      2 hours ago



















    • Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

      – Michael Schmid
      2 hours ago

















    Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

    – Michael Schmid
    2 hours ago





    Thank You, Kurt. I added some hspace*{-3em}include.... hspace*{0.7em} .....To make the start of the subjects text aligning with the rest of the body

    – Michael Schmid
    2 hours ago











    2














    You could use variable subjectseparator:



    documentclass[a4paper, fontsize=10pt, DIV=14]{scrlttr2}% <- syntax changed: DIV=14
    KOMAoptions{%
    locfield=wide, %
    fromalign=left,%
    fontsize=10pt,%
    parskip=half,%
    subject=titled % <- added
    }
    LoadLetterOption{DINmtext}

    usepackage[utf8]{inputenc}
    usepackage[ngerman]{babel}
    usepackage[T1]{fontenc}
    usepackage[scaled=.92]{helvet}
    usepackage{graphicx}

    usepackage{blindtext}

    setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
    setkomavar{subjectseparator}[]{makebox[0pt][r]{includegraphics[width=1.5em]{example-image}enskip}}% <- added


    begin{document}
    setkomavar{fromname}{Me}
    begin{letter}{Jon Doe}
    opening{Hey,}
    blindtext
    closing{Thank You. Over and out}
    end{letter}
    end{document}


    Result:



    screenshot



    Additional remark regarding your scrartcl hack: if you use a KOMA-Script class, avoid the redefinition of an internal command. You could redefine sectionlinesformat or maybe sectionformat (depending on the desired result).






    share|improve this answer




























      2














      You could use variable subjectseparator:



      documentclass[a4paper, fontsize=10pt, DIV=14]{scrlttr2}% <- syntax changed: DIV=14
      KOMAoptions{%
      locfield=wide, %
      fromalign=left,%
      fontsize=10pt,%
      parskip=half,%
      subject=titled % <- added
      }
      LoadLetterOption{DINmtext}

      usepackage[utf8]{inputenc}
      usepackage[ngerman]{babel}
      usepackage[T1]{fontenc}
      usepackage[scaled=.92]{helvet}
      usepackage{graphicx}

      usepackage{blindtext}

      setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
      setkomavar{subjectseparator}[]{makebox[0pt][r]{includegraphics[width=1.5em]{example-image}enskip}}% <- added


      begin{document}
      setkomavar{fromname}{Me}
      begin{letter}{Jon Doe}
      opening{Hey,}
      blindtext
      closing{Thank You. Over and out}
      end{letter}
      end{document}


      Result:



      screenshot



      Additional remark regarding your scrartcl hack: if you use a KOMA-Script class, avoid the redefinition of an internal command. You could redefine sectionlinesformat or maybe sectionformat (depending on the desired result).






      share|improve this answer


























        2












        2








        2







        You could use variable subjectseparator:



        documentclass[a4paper, fontsize=10pt, DIV=14]{scrlttr2}% <- syntax changed: DIV=14
        KOMAoptions{%
        locfield=wide, %
        fromalign=left,%
        fontsize=10pt,%
        parskip=half,%
        subject=titled % <- added
        }
        LoadLetterOption{DINmtext}

        usepackage[utf8]{inputenc}
        usepackage[ngerman]{babel}
        usepackage[T1]{fontenc}
        usepackage[scaled=.92]{helvet}
        usepackage{graphicx}

        usepackage{blindtext}

        setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
        setkomavar{subjectseparator}[]{makebox[0pt][r]{includegraphics[width=1.5em]{example-image}enskip}}% <- added


        begin{document}
        setkomavar{fromname}{Me}
        begin{letter}{Jon Doe}
        opening{Hey,}
        blindtext
        closing{Thank You. Over and out}
        end{letter}
        end{document}


        Result:



        screenshot



        Additional remark regarding your scrartcl hack: if you use a KOMA-Script class, avoid the redefinition of an internal command. You could redefine sectionlinesformat or maybe sectionformat (depending on the desired result).






        share|improve this answer













        You could use variable subjectseparator:



        documentclass[a4paper, fontsize=10pt, DIV=14]{scrlttr2}% <- syntax changed: DIV=14
        KOMAoptions{%
        locfield=wide, %
        fromalign=left,%
        fontsize=10pt,%
        parskip=half,%
        subject=titled % <- added
        }
        LoadLetterOption{DINmtext}

        usepackage[utf8]{inputenc}
        usepackage[ngerman]{babel}
        usepackage[T1]{fontenc}
        usepackage[scaled=.92]{helvet}
        usepackage{graphicx}

        usepackage{blindtext}

        setkomavar{subject}{$leftarrow$ There should appear the icon glqq Spiel_Start.jpggrqq{}}
        setkomavar{subjectseparator}[]{makebox[0pt][r]{includegraphics[width=1.5em]{example-image}enskip}}% <- added


        begin{document}
        setkomavar{fromname}{Me}
        begin{letter}{Jon Doe}
        opening{Hey,}
        blindtext
        closing{Thank You. Over and out}
        end{letter}
        end{document}


        Result:



        screenshot



        Additional remark regarding your scrartcl hack: if you use a KOMA-Script class, avoid the redefinition of an internal command. You could redefine sectionlinesformat or maybe sectionformat (depending on the desired result).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        esddesdd

        59.4k34691




        59.4k34691






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476569%2ficon-at-subject-line-scrlttr2%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

            Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

            How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...