Page LayoutLeft and right Part of CV Title too close

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Left and right Part of CV Title too close

Post by RyDroid »

Hi.

That is my current header.
moderncv-title.png
moderncv-title.png (8.1 KiB) Viewed 7817 times
The problem is that the title is too near of the right floating part of the header (the title ends after the beginning of the email image).

I see two solutions.
  • Define a margin between the title and the right floating part of the header.
  • Put the title below the right part of the header.
But I do not know how I can do it in practice.

That is my code.

Code: Select all

\PassOptionsToPackage{pdfpagelabels=false}{hyperref}
\documentclass[a4paper,11pt]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[francais]{babel}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{color}

\setlength{\hintscolumnwidth}{0.15\textwidth} % colonne de gauche plus large

\firstname{Nicola}
\familyname{Family}
\title{\textcolor{black}{\textbf{Étudiant en 2\up{ème} année de Diplôme Universitaire de Technologie en Informatique}}}
\address{33 rue des petits oignons}{00000 Ville, France}    
\email{adress@domain-name.fr}
\mobile{+33 6 00 00 00 00} 
\extrainfo{Né le 33/33/1333}

\begin{document}
  \maketitle

  \section{Formations}
\end{document}
Thanks.
Last edited by RyDroid on Thu Dec 05, 2013 7:37 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Left and right Part of CV Title too close

Post by localghost »

Being a student (étudiant) is not really a title as such and is misplaced where you want to have it. This is more intended for academic degrees like "BSc", "MSc", "Dr." or "Prof.". So I suggest that you place this inside a block called "Education" or something similar together with other data of your studies.


Thorsten
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Left and right Part of CV Title too close

Post by RyDroid »

The only degree that I have is Baccalauréat. The person that will hire me will do it for my computing skills (that I have learned after Baccalauréat). So I do not see what other title I can choose.

For my problem, I have a little "cheated" with \newline:

Code: Select all

Étudiant en 2\up{ème} année de \newline Diplôme Universitaire de Technologie \newline en Informatique
If someone has a better solution, I will be happy to see it.

Thanks.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Left and right Part of CV Title too close

Post by localghost »

As I already said, this place is reserved for academic degrees. And a baccalauréat does not really number among. Hence you should leave the \title empty and list it in your education section.

Code: Select all

\PassOptionsToPackage{pdfpagelabels=false}{hyperref}
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{
  agrave={à},
  eacute={é}
}
\usepackage[francais]{babel}
\usepackage{lmodern}
\usepackage[margin=2cm]{geometry}

\setlength{\hintscolumnwidth}{0.15\textwidth} % colonne de gauche plus large

\firstname{Nicola}
\familyname{Family}
\title{}
\address{33 rue des petits oignons}{00000 Ville, France}
\email{surname.name@etudiant.univ-reims.fr}
\mobile{+33 6 00 00 00 00}
\extrainfo{Né le 33/33/1333}

\begin{document}
  \maketitle

  \section{Education}
    \cvitem{depuis 07/1897}{Étudiant en 2\up{ème} année de Diplôme Universitaire de Technologie en Informatique}
    \cvitem{06/1897}{Baccalauréat}
\end{document}
And by the way, your birth date should not be part of the head but is better given in a section about personal data.
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Left and right Part of CV Title too close

Post by RyDroid »

I have not "used" your piece of advice about the title, one time more. :P
I have used something that is unfortunately not semantic at all ({\Large My title}), between \maketitle and the rest of my CV.

The number of pages of my CV is 1. If I had a \section{Personal data}, the second page will be nearly empty and I have already reduced margins.

Code: Select all

\PassOptionsToPackage{pdfpagelabels=false}{hyperref}
\documentclass[a4paper,11pt]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[francais]{babel}
\usepackage[top=1.6cm, bottom=1.6cm, left=1.6cm, right=1.6cm]{geometry}
\usepackage{color}

\setlength{\hintscolumnwidth}{0.15\textwidth} % colonne de gauche plus large

\firstname{Nicola}
\familyname{Family}
%\title{\textcolor{black}{\textbf{Étudiant en 2\up{ème} année de Diplôme Universitaire de Technologie en Informatique}}}
\address{20 rue des débutants en LaTeX}{00000 LaTeX City, France}
\email{adress@domain-name.fr}
%\homepage{domain-name.com/fr}
\mobile{+33 6 00 00 00 00}
\extrainfo{i ans \\ Nationalité française}
%\quote{}

\begin{document}
	\maketitle
	
	{\Large \textcolor{black}{\textbf{Étudiant en 2\up{e} année de Diplôme Universitaire de Technologie en Informatique}}}
	
	\section{Formations}
		\cventry{Mois1 1984\\Mois2 1985}{2\up{ème} année de Diplôme Universitaire de Technologie en Informatique (en cours)}{Institut Universitaire de Technologie}{00000 LaTeX City, France}{}{}
		\cventry{Mois2 1984}{1\up{ère} année de Diplôme Universitaire de Technologie en Informatique (validée)}{Institut Universitaire de Technologie}{00000 LaTeX City, France}{}{}
		\cventry{Mois2 1983}{Baccalauréat général scientifique, spécialité magicien du code, mention incroyable}{Lycée de la liberté}{00000 LaTeX City, France}{}{}
\end{document}
Post Reply