raphink / moderntimeline

A timeline package for moderncv
76 stars 15 forks source link

wrong label placement - compatibility issue? #6

Open afcuttin opened 9 years ago

afcuttin commented 9 years ago

I introduced the moderntimeline package in my exsisting cv, but the labels of \tlcventry are out of place. I have no problems when compiling a fresh mwe. Maybe there is a compatibility issue?

minimal non-working output: http://db.cutt.in/moderntimeline.pdf minimal non-working file: http://db.cutt.in/moderntimeline.tex

raphink commented 9 years ago

Sorry for not replying earlier. Apparently, the MWE was removed from your server. Could you paste it in the issue (using code markup with 3 `) please?

afcuttin commented 9 years ago
%\documentclass[11pt,a4paper,sans,draft]{moderncv}
\documentclass[11pt,a4paper,sans,final]{moderncv}

% moderncv themes
\moderncvstyle{classic}
% style options are 'casual' (default), 'classic',% 'oldstyle' and 'banking'

\moderncvcolor{green}
% color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default % sans 
% serif font, '\rmdefault' for the default roman one, or any tex font name

%\nopagenumbers{}  % uncomment to suppress automatic page numbering for CVs  longer than one page

\moderncvicons{awesome}
% can be "marvosym" (used by default in the "banking", "casual" and "classic" style variants) or 
%"letters" or "awesome"

% character encoding
%\usepackage[utf8x]{inputenc}
\usepackage[utf8]{luainputenc} % compilare con LuaLaTeX
\usepackage[english]{babel}

\usepackage{lipsum}

% adjust the page margins
\usepackage[scale=.80]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates

% \usepackage{natbib}
\usepackage{ifthen}
\usepackage[obeyDraft]{todonotes}

\usepackage[firstyear=2001,lastyear=2015]{moderntimeline}

%\renewcommand*{\finalnamedelim}{\addspace\&\space}

\usepackage[style=authoryear,sorting=ydnt,dashed=false,minbibnames=3]{biblatex}
%\setlength{\bibitemsep}{\baselineskip}

\renewbibmacro*{date}{}
\renewbibmacro*{date+extrayear}{}
\renewbibmacro*{issue+date}{}
\newcommand*{\bibyear}{}

\defbibenvironment{bibliography}
  {\list
     {\iffieldequals{year}{\bibyear}
        {}
        {\printfield{year}%
         \savefield{year}{\bibyear}}}
     {\setlength{\topsep}{0pt}% layout parameters based on moderncvstyleclassic.sty
      \setlength{\labelwidth}{\hintscolumnwidth}%
      \setlength{\labelsep}{\separatorcolumnwidth}%
      \setlength{\itemsep}{\bibitemsep}%
      \leftmargin\labelwidth%
      \advance\leftmargin\labelsep}%
      \sloppy\clubpenalty4000\widowpenalty4000}
  {\endlist}
  {\item}

\addbibresource{publications.bib}

% \AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}}  % only for the classic theme, if you want
% to change the width of your name placeholder (to leave more space for your address details
% \AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths

% personal data
\name{name}{surname}

\address{street}{city}{}% optional, remove the line if not wanted
\phone[mobile]{123456789}                    % optional, remove the line if not wanted
\phone[fixed]{123456789}                      % optional, remove the line if not wanted
% \fax{fax (optional)}                          % optional, remove the line if not wanted
\email{mail@me.com}                      % optional, remove the line if not wanted

\begin{document}

\newboolean{eng} % variable to specify CV language
\setboolean{eng}{false} % tell if the CV is written in english or not - change babel option!

\makecvtitle

\ifthenelse{\boolean{eng}}{
\section{Work experience}

\tlcventry{2014}{0}{job}{company}{place}{city}{\lipsum[1]}

\tlcventry{2013}{2014}{job}{company}{place}{city}{\lipsum[2]}                % arguments 3 to 6 are optional

\tldatecventry{2013}{job}{company}{place}{city}{\lipsum[3]}

\tlcventry{2009}{0}{job}{company}{place}{city}{\lipsum[4]}               

\tldatecventry{2008}{job}{company}{place}{city}{\lipsum[5]}

\tlcventry{2006}{0}{job}{company}{place}{city}{\lipsum[6]}
}{
\section{Esperienza}
%\tlcventry{1999}{2002}{}{}{}{}{}                

\tlcventry{2014}{0}{job}{company}{place}{city}{\lipsum[1]}

\tlcventry{2013}{2014}{job}{company}{place}{city}{\lipsum[2]}                % arguments 3 to 6 are optional

\tldatecventry{2013}{job}{company}{place}{city}{\lipsum[3]}

\tlcventry{2009}{0}{job}{company}{place}{city}{\lipsum[4]}               

\tldatecventry{2008}{job}{company}{place}{city}{\lipsum[5]}

\tlcventry{2006}{0}{job}{company}{place}{city}{\lipsum[6]}
}

\ifthenelse{\boolean{eng}}{
\section{Education}

\tldatecventry{2007}{degree}{University}{}{}{\lipsum[1]}

\tldatecventry{2002}{degree}{university}{city}{}{\lipsum[2]}

}{
\section{Formazione}

\tldatecventry{2007}{degree}{University}{}{}{\lipsum[1]}

\tldatecventry{2002}{degree}{university}{city}{}{\lipsum[2]}

}

% \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 are optional

\ifthenelse{\boolean{eng}}{
\section{Workshops and schools}
\tldatecventry{2009}{Workshop}{place}{city}{}{\lipsum[1]}

\tldatecventry{2008}{Workshop}{place}{city}{}{\lipsum[2]}
}{
\section{Esperienze formative}

\tldatecventry{2009}{Workshop}{place}{city}{}{\lipsum[1]}

\tldatecventry{2008}{Workshop}{place}{city}{}{\lipsum[2]}
}

\end{document}
raphink commented 9 years ago

That doesn't look very minimal. Can you try to remove things until you get a minimal example that shows the buggy behaviour please?

On Thu, 16 Apr 2015 19:47 Alessandro Cuttin notifications@github.com wrote:

%\documentclass[11pt,a4paper,sans,draft]{moderncv} \documentclass[11pt,a4paper,sans,final]{moderncv}

% moderncv themes \moderncvstyle{classic} % style options are 'casual' (default), 'classic',% 'oldstyle' and 'banking'

\moderncvcolor{green} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default % sans % serif font, '\rmdefault' for the default roman one, or any tex font name

%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page

\moderncvicons{awesome} % can be "marvosym" (used by default in the "banking", "casual" and "classic" style variants) or %"letters" or "awesome"

% character encoding %\usepackage[utf8x]{inputenc} \usepackage[utf8]{luainputenc} % compilare con LuaLaTeX \usepackage[english]{babel}

\usepackage{lipsum}

% adjust the page margins \usepackage[scale=.80]{geometry} %\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates

% \usepackage{natbib} \usepackage{ifthen} \usepackage[obeyDraft]{todonotes}

\usepackage[firstyear=2001,lastyear=2015]{moderntimeline}

%\renewcommand*{\finalnamedelim}{\addspace&\space}

\usepackage[style=authoryear,sorting=ydnt,dashed=false,minbibnames=3]{biblatex} %\setlength{\bibitemsep}{\baselineskip}

\renewbibmacro{date}{} \renewbibmacro{date+extrayear}{} \renewbibmacro{issue+date}{} \newcommand{\bibyear}{}

\defbibenvironment{bibliography} {\list {\iffieldequals{year}{\bibyear} {} {\printfield{year}% \savefield{year}{\bibyear}}} {\setlength{\topsep}{0pt}% layout parameters based on moderncvstyleclassic.sty \setlength{\labelwidth}{\hintscolumnwidth}% \setlength{\labelsep}{\separatorcolumnwidth}% \setlength{\itemsep}{\bibitemsep}% \leftmargin\labelwidth% \advance\leftmargin\labelsep}% \sloppy\clubpenalty4000\widowpenalty4000} {\endlist} {\item}

\addbibresource{publications.bib}

% \AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want % to change the width of your name placeholder (to leave more space for your address details % \AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths

% personal data \name{name}{surname}

\address{street}{city}{}% optional, remove the line if not wanted \phone[mobile]{123456789} % optional, remove the line if not wanted \phone[fixed]{123456789} % optional, remove the line if not wanted % \fax{fax (optional)} % optional, remove the line if not wanted \email{mail@me.com} % optional, remove the line if not wanted

\begin{document}

\newboolean{eng} % variable to specify CV language \setboolean{eng}{false} % tell if the CV is written in english or not - change babel option!

\makecvtitle

\ifthenelse{\boolean{eng}}{ \section{Work experience}

\tlcventry{2014}{0}{job}{company}{place}{city}{\lipsum[1]}

\tlcventry{2013}{2014}{job}{company}{place}{city}{\lipsum[2]} % arguments 3 to 6 are optional

\tldatecventry{2013}{job}{company}{place}{city}{\lipsum[3]}

\tlcventry{2009}{0}{job}{company}{place}{city}{\lipsum[4]}

\tldatecventry{2008}{job}{company}{place}{city}{\lipsum[5]}

\tlcventry{2006}{0}{job}{company}{place}{city}{\lipsum[6]} }{ \section{Esperienza} %\tlcventry{1999}{2002}{}{}{}{}{}

\tlcventry{2014}{0}{job}{company}{place}{city}{\lipsum[1]}

\tlcventry{2013}{2014}{job}{company}{place}{city}{\lipsum[2]} % arguments 3 to 6 are optional

\tldatecventry{2013}{job}{company}{place}{city}{\lipsum[3]}

\tlcventry{2009}{0}{job}{company}{place}{city}{\lipsum[4]}

\tldatecventry{2008}{job}{company}{place}{city}{\lipsum[5]}

\tlcventry{2006}{0}{job}{company}{place}{city}{\lipsum[6]} }

\ifthenelse{\boolean{eng}}{ \section{Education}

\tldatecventry{2007}{degree}{University}{}{}{\lipsum[1]}

\tldatecventry{2002}{degree}{university}{city}{}{\lipsum[2]}

}{ \section{Formazione}

\tldatecventry{2007}{degree}{University}{}{}{\lipsum[1]}

\tldatecventry{2002}{degree}{university}{city}{}{\lipsum[2]}

}

% \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 are optional

\ifthenelse{\boolean{eng}}{ \section{Workshops and schools} \tldatecventry{2009}{Workshop}{place}{city}{}{\lipsum[1]}

\tldatecventry{2008}{Workshop}{place}{city}{}{\lipsum[2]} }{ \section{Esperienze formative}

\tldatecventry{2009}{Workshop}{place}{city}{}{\lipsum[1]}

\tldatecventry{2008}{Workshop}{place}{city}{}{\lipsum[2]} }

\end{document}

— Reply to this email directly or view it on GitHub https://github.com/raphink/moderntimeline/issues/6#issuecomment-93798187 .

tobiasBora commented 10 months ago

The solution here might apply https://github.com/raphink/moderntimeline/issues/28