Curricula Vitae / RésumésHow to include Subject to letter

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
luispena
Posts: 2
Joined: Thu Nov 26, 2015 1:45 pm

How to include Subject to letter

Post by luispena »

Hello,
I would like to add a Subject line to the letter template "ModernCV" CV and Cover Letter from Xavier Danaux.

This is how it looks like:

\recipient{Prof. Albert}{} % Letter recipient
\date{\today} % Letter date
\opening{Sehr geehrte Damen und Herren,} % Opening greeting
\closing{Mit freundlichen Grüßen,} % Closing phrase

\makelettertitle

I would like to add a subject line before \opening{} but I'm not sure how to do it.
Any help appreciated.

Thank you,
Luis

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
luispena
Posts: 2
Joined: Thu Nov 26, 2015 1:45 pm

Re: How to include Subject to letter

Post by luispena »

I solved already my problem changing the moderncvstyleoldstyle.sty and moderncv.cls files. If someone is interested, I found the answer here: https://answers.launchpad.net/moderncv/+question/222784
Sorry for the noise.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to include Subject to letter

Post by Johannes_B »

You are not allowed to modify the files like you want and as is told in the linke material. Please read the license the file is put under very carefully.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

How to include Subject to letter

Post by Stefan Kottwitz »

Hi Luis,

welcome to the forum!

Don't worry about noise. It's a discussion forum. :-) Any LaTeX related question is welcome here.

The launchpad answer is bad, the writers there may not know better. There's an important thing, like Johannes said (even if we ignore license things): never change a .cls or a .sty file. Reasons:
  • the next update destroys your changes, since the TeX package manager doesn't know you changed it and would overwrite it;
  • your code doesn't run on another computer (which has the original .cls or .sty file
Changing provided files leads to problems. You can do any change in your own file. For example, instead of changing a \newcommand, use a \renewcommand to redefine it.

Stefan
LaTeX.org admin
Post Reply