Adding table in Moderncv











up vote
1
down vote

favorite












I'm trying to add a table in the "Experience" section in the moderncv templet, but get the following error message:



"You have used a or newline command where LaTeX was not expecting one. Make sure that you only use line breaks after blocks of text, and be careful using linebreaks inside lists and other environments."



I've used different strategies in order to make it work but always end up with more errors than before. Anyone having an input?



    documentclass[11pt,a4paper,sans]{moderncv}

moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
moderncvcolor{grey}

usepackage[utf8]{inputenc}
usepackage{tabularx}
usepackage[scale=0.85]{geometry}
%setlength{hintscolumnwidth}{3cm} % dates


name{name}{name}
title{CV}
address{Hej}{hej}{hej}
phone[mobile]{+467000000000}
email{mylongemail@address.com} %
%extrainfo{additional information}
photo[160pt][0pt]{example-image}

quote{Hejsan}

setlength{footskip}{39pt}
moderncvbody{4} % Body of oldfancy style


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
cvitemwithcomment{%
begin{tabular}{textwidth-hintscolumnwidth-separatorcolumnwidth}{p{300pt}p{80pt}p{35pt}}
textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
Ledarskap & 4,6 & 1-6 \
Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
Mångfald & 4,9 & 1-6 \
Organisation och mål & 4.4 & 1-6 \
Kompetensutveckling & 4,4 & 1-6 \
Löner och förmåner & 4,2 & 1-6 \
Attraktiv arbetsgivare & 3,3 & 1-4
end{tabular}
}
newline
newline
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3}


section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}









share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm trying to add a table in the "Experience" section in the moderncv templet, but get the following error message:



    "You have used a or newline command where LaTeX was not expecting one. Make sure that you only use line breaks after blocks of text, and be careful using linebreaks inside lists and other environments."



    I've used different strategies in order to make it work but always end up with more errors than before. Anyone having an input?



        documentclass[11pt,a4paper,sans]{moderncv}

    moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
    moderncvcolor{grey}

    usepackage[utf8]{inputenc}
    usepackage{tabularx}
    usepackage[scale=0.85]{geometry}
    %setlength{hintscolumnwidth}{3cm} % dates


    name{name}{name}
    title{CV}
    address{Hej}{hej}{hej}
    phone[mobile]{+467000000000}
    email{mylongemail@address.com} %
    %extrainfo{additional information}
    photo[160pt][0pt]{example-image}

    quote{Hejsan}

    setlength{footskip}{39pt}
    moderncvbody{4} % Body of oldfancy style


    begin{document}

    makecvtitle

    section{Education}
    cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
    cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


    section{Experience}
    subsection{Vocational}
    cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
    Detailed achievements:%
    begin{itemize}%
    item Achievement 1;
    cvitemwithcomment{%
    begin{tabular}{textwidth-hintscolumnwidth-separatorcolumnwidth}{p{300pt}p{80pt}p{35pt}}
    textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
    Ledarskap & 4,6 & 1-6 \
    Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
    Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
    Mångfald & 4,9 & 1-6 \
    Organisation och mål & 4.4 & 1-6 \
    Kompetensutveckling & 4,4 & 1-6 \
    Löner och förmåner & 4,2 & 1-6 \
    Attraktiv arbetsgivare & 3,3 & 1-4
    end{tabular}
    }
    newline
    newline
    item Achievement 2, with sub-achievements:
    begin{itemize}%
    item Sub-achievement (a);
    item Sub-achievement (b), with sub-sub-achievements (don't do this!);
    begin{itemize}
    item Sub-sub-achievement i;
    item Sub-sub-achievement ii;
    item Sub-sub-achievement iii;
    end{itemize}
    item Sub-achievement (c);
    end{itemize}

    section{Languages}
    cvitemwithcomment{Language 1}{Skill level}{Comment}
    cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
    cvitemwithcomment{Language 3}{Skill level}{Comment}

    section{Computer skills}
    cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
    cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
    cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

    section{Interests}
    cvitem{hobby 1}{Description}
    cvitem{hobby 2}{Description}
    cvitem{hobby 3}{Description}

    section{Extra 1}
    cvlistitem{Item 1}
    cvlistitem{Item 2}
    cvlistitem{Item 3}


    section{References}
    begin{cvcolumns}
    cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
    cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
    cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
    end{cvcolumns}

    end{document}









    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm trying to add a table in the "Experience" section in the moderncv templet, but get the following error message:



      "You have used a or newline command where LaTeX was not expecting one. Make sure that you only use line breaks after blocks of text, and be careful using linebreaks inside lists and other environments."



      I've used different strategies in order to make it work but always end up with more errors than before. Anyone having an input?



          documentclass[11pt,a4paper,sans]{moderncv}

      moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
      moderncvcolor{grey}

      usepackage[utf8]{inputenc}
      usepackage{tabularx}
      usepackage[scale=0.85]{geometry}
      %setlength{hintscolumnwidth}{3cm} % dates


      name{name}{name}
      title{CV}
      address{Hej}{hej}{hej}
      phone[mobile]{+467000000000}
      email{mylongemail@address.com} %
      %extrainfo{additional information}
      photo[160pt][0pt]{example-image}

      quote{Hejsan}

      setlength{footskip}{39pt}
      moderncvbody{4} % Body of oldfancy style


      begin{document}

      makecvtitle

      section{Education}
      cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
      cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


      section{Experience}
      subsection{Vocational}
      cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
      Detailed achievements:%
      begin{itemize}%
      item Achievement 1;
      cvitemwithcomment{%
      begin{tabular}{textwidth-hintscolumnwidth-separatorcolumnwidth}{p{300pt}p{80pt}p{35pt}}
      textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
      Ledarskap & 4,6 & 1-6 \
      Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
      Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
      Mångfald & 4,9 & 1-6 \
      Organisation och mål & 4.4 & 1-6 \
      Kompetensutveckling & 4,4 & 1-6 \
      Löner och förmåner & 4,2 & 1-6 \
      Attraktiv arbetsgivare & 3,3 & 1-4
      end{tabular}
      }
      newline
      newline
      item Achievement 2, with sub-achievements:
      begin{itemize}%
      item Sub-achievement (a);
      item Sub-achievement (b), with sub-sub-achievements (don't do this!);
      begin{itemize}
      item Sub-sub-achievement i;
      item Sub-sub-achievement ii;
      item Sub-sub-achievement iii;
      end{itemize}
      item Sub-achievement (c);
      end{itemize}

      section{Languages}
      cvitemwithcomment{Language 1}{Skill level}{Comment}
      cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
      cvitemwithcomment{Language 3}{Skill level}{Comment}

      section{Computer skills}
      cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
      cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
      cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

      section{Interests}
      cvitem{hobby 1}{Description}
      cvitem{hobby 2}{Description}
      cvitem{hobby 3}{Description}

      section{Extra 1}
      cvlistitem{Item 1}
      cvlistitem{Item 2}
      cvlistitem{Item 3}


      section{References}
      begin{cvcolumns}
      cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
      cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
      cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
      end{cvcolumns}

      end{document}









      share|improve this question













      I'm trying to add a table in the "Experience" section in the moderncv templet, but get the following error message:



      "You have used a or newline command where LaTeX was not expecting one. Make sure that you only use line breaks after blocks of text, and be careful using linebreaks inside lists and other environments."



      I've used different strategies in order to make it work but always end up with more errors than before. Anyone having an input?



          documentclass[11pt,a4paper,sans]{moderncv}

      moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
      moderncvcolor{grey}

      usepackage[utf8]{inputenc}
      usepackage{tabularx}
      usepackage[scale=0.85]{geometry}
      %setlength{hintscolumnwidth}{3cm} % dates


      name{name}{name}
      title{CV}
      address{Hej}{hej}{hej}
      phone[mobile]{+467000000000}
      email{mylongemail@address.com} %
      %extrainfo{additional information}
      photo[160pt][0pt]{example-image}

      quote{Hejsan}

      setlength{footskip}{39pt}
      moderncvbody{4} % Body of oldfancy style


      begin{document}

      makecvtitle

      section{Education}
      cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
      cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


      section{Experience}
      subsection{Vocational}
      cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
      Detailed achievements:%
      begin{itemize}%
      item Achievement 1;
      cvitemwithcomment{%
      begin{tabular}{textwidth-hintscolumnwidth-separatorcolumnwidth}{p{300pt}p{80pt}p{35pt}}
      textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
      Ledarskap & 4,6 & 1-6 \
      Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
      Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
      Mångfald & 4,9 & 1-6 \
      Organisation och mål & 4.4 & 1-6 \
      Kompetensutveckling & 4,4 & 1-6 \
      Löner och förmåner & 4,2 & 1-6 \
      Attraktiv arbetsgivare & 3,3 & 1-4
      end{tabular}
      }
      newline
      newline
      item Achievement 2, with sub-achievements:
      begin{itemize}%
      item Sub-achievement (a);
      item Sub-achievement (b), with sub-sub-achievements (don't do this!);
      begin{itemize}
      item Sub-sub-achievement i;
      item Sub-sub-achievement ii;
      item Sub-sub-achievement iii;
      end{itemize}
      item Sub-achievement (c);
      end{itemize}

      section{Languages}
      cvitemwithcomment{Language 1}{Skill level}{Comment}
      cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
      cvitemwithcomment{Language 3}{Skill level}{Comment}

      section{Computer skills}
      cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
      cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
      cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

      section{Interests}
      cvitem{hobby 1}{Description}
      cvitem{hobby 2}{Description}
      cvitem{hobby 3}{Description}

      section{Extra 1}
      cvlistitem{Item 1}
      cvlistitem{Item 2}
      cvlistitem{Item 3}


      section{References}
      begin{cvcolumns}
      cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
      cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
      cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
      end{cvcolumns}

      end{document}






      tables






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Erlandsdotter

      112




      112






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Well you can not nest several cvitemwithcomment commands as you did in your shown code.



          Please have a look to this corrected code:



          section{Experience}
          subsection{Vocational}
          cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
          Detailed achievements:\%
          begin{tabular}{p{300pt}p{80pt}p{35pt}}
          textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
          Ledarskap & 4,6 & 1-6 \
          Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
          Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
          Mångfald & 4,9 & 1-6 \
          Organisation och mål & 4.4 & 1-6 \
          Kompetensutveckling & 4,4 & 1-6 \
          Löner och förmåner & 4,2 & 1-6 \
          Attraktiv arbetsgivare & 3,3 & 1-4
          end{tabular}
          }


          instead of usung environment itemize I added your table. please see that I deleted your length {textwidth-hintscolumnwidth-separatorcolumnwidth}. Perhaps it would be better to use lll instead your used p{300pt}p{80pt}p{35pt}.



          So with the following MWE



          documentclass[11pt,a4paper,sans]{moderncv}

          moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
          moderncvcolor{grey}

          usepackage[utf8]{inputenc}
          usepackage{tabularx}
          usepackage[scale=0.85]{geometry}
          %setlength{hintscolumnwidth}{3cm} % dates


          name{name}{name}
          title{CV}
          address{Hej}{hej}{hej}
          phone[mobile]{+467000000000}
          email{mylongemail@address.com} %
          %extrainfo{additional information}
          photo[160pt][0pt]{example-image}

          quote{Hejsan}

          setlength{footskip}{39pt}
          moderncvbody{4} % Body of oldfancy style


          begin{document}

          makecvtitle

          section{Education}
          cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
          cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


          section{Experience}
          subsection{Vocational}
          cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
          Detailed achievements:\%
          begin{tabular}{p{300pt}p{80pt}p{35pt}}
          textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
          Ledarskap & 4,6 & 1-6 \
          Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
          Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
          Mångfald & 4,9 & 1-6 \
          Organisation och mål & 4.4 & 1-6 \
          Kompetensutveckling & 4,4 & 1-6 \
          Löner och förmåner & 4,2 & 1-6 \
          Attraktiv arbetsgivare & 3,3 & 1-4
          end{tabular}
          }

          section{Languages}
          cvitemwithcomment{Language 1}{Skill level}{Comment}
          cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
          cvitemwithcomment{Language 3}{Skill level}{Comment}

          section{Computer skills}
          cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
          cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
          cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

          section{Interests}
          cvitem{hobby 1}{Description}
          cvitem{hobby 2}{Description}
          cvitem{hobby 3}{Description}

          section{Extra 1}
          cvlistitem{Item 1}
          cvlistitem{Item 2}
          cvlistitem{Item 3}


          section{References}
          begin{cvcolumns}
          cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
          cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
          cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
          end{cvcolumns}

          end{document}


          you can compile without errors to the following pdf:



          enter image description here






          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',
            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%2f461093%2fadding-table-in-moderncv%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








            up vote
            0
            down vote













            Well you can not nest several cvitemwithcomment commands as you did in your shown code.



            Please have a look to this corrected code:



            section{Experience}
            subsection{Vocational}
            cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
            Detailed achievements:\%
            begin{tabular}{p{300pt}p{80pt}p{35pt}}
            textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
            Ledarskap & 4,6 & 1-6 \
            Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
            Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
            Mångfald & 4,9 & 1-6 \
            Organisation och mål & 4.4 & 1-6 \
            Kompetensutveckling & 4,4 & 1-6 \
            Löner och förmåner & 4,2 & 1-6 \
            Attraktiv arbetsgivare & 3,3 & 1-4
            end{tabular}
            }


            instead of usung environment itemize I added your table. please see that I deleted your length {textwidth-hintscolumnwidth-separatorcolumnwidth}. Perhaps it would be better to use lll instead your used p{300pt}p{80pt}p{35pt}.



            So with the following MWE



            documentclass[11pt,a4paper,sans]{moderncv}

            moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
            moderncvcolor{grey}

            usepackage[utf8]{inputenc}
            usepackage{tabularx}
            usepackage[scale=0.85]{geometry}
            %setlength{hintscolumnwidth}{3cm} % dates


            name{name}{name}
            title{CV}
            address{Hej}{hej}{hej}
            phone[mobile]{+467000000000}
            email{mylongemail@address.com} %
            %extrainfo{additional information}
            photo[160pt][0pt]{example-image}

            quote{Hejsan}

            setlength{footskip}{39pt}
            moderncvbody{4} % Body of oldfancy style


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


            section{Experience}
            subsection{Vocational}
            cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
            Detailed achievements:\%
            begin{tabular}{p{300pt}p{80pt}p{35pt}}
            textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
            Ledarskap & 4,6 & 1-6 \
            Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
            Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
            Mångfald & 4,9 & 1-6 \
            Organisation och mål & 4.4 & 1-6 \
            Kompetensutveckling & 4,4 & 1-6 \
            Löner och förmåner & 4,2 & 1-6 \
            Attraktiv arbetsgivare & 3,3 & 1-4
            end{tabular}
            }

            section{Languages}
            cvitemwithcomment{Language 1}{Skill level}{Comment}
            cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
            cvitemwithcomment{Language 3}{Skill level}{Comment}

            section{Computer skills}
            cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
            cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
            cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

            section{Interests}
            cvitem{hobby 1}{Description}
            cvitem{hobby 2}{Description}
            cvitem{hobby 3}{Description}

            section{Extra 1}
            cvlistitem{Item 1}
            cvlistitem{Item 2}
            cvlistitem{Item 3}


            section{References}
            begin{cvcolumns}
            cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
            cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
            cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
            end{cvcolumns}

            end{document}


            you can compile without errors to the following pdf:



            enter image description here






            share|improve this answer

























              up vote
              0
              down vote













              Well you can not nest several cvitemwithcomment commands as you did in your shown code.



              Please have a look to this corrected code:



              section{Experience}
              subsection{Vocational}
              cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
              Detailed achievements:\%
              begin{tabular}{p{300pt}p{80pt}p{35pt}}
              textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
              Ledarskap & 4,6 & 1-6 \
              Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
              Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
              Mångfald & 4,9 & 1-6 \
              Organisation och mål & 4.4 & 1-6 \
              Kompetensutveckling & 4,4 & 1-6 \
              Löner och förmåner & 4,2 & 1-6 \
              Attraktiv arbetsgivare & 3,3 & 1-4
              end{tabular}
              }


              instead of usung environment itemize I added your table. please see that I deleted your length {textwidth-hintscolumnwidth-separatorcolumnwidth}. Perhaps it would be better to use lll instead your used p{300pt}p{80pt}p{35pt}.



              So with the following MWE



              documentclass[11pt,a4paper,sans]{moderncv}

              moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
              moderncvcolor{grey}

              usepackage[utf8]{inputenc}
              usepackage{tabularx}
              usepackage[scale=0.85]{geometry}
              %setlength{hintscolumnwidth}{3cm} % dates


              name{name}{name}
              title{CV}
              address{Hej}{hej}{hej}
              phone[mobile]{+467000000000}
              email{mylongemail@address.com} %
              %extrainfo{additional information}
              photo[160pt][0pt]{example-image}

              quote{Hejsan}

              setlength{footskip}{39pt}
              moderncvbody{4} % Body of oldfancy style


              begin{document}

              makecvtitle

              section{Education}
              cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
              cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


              section{Experience}
              subsection{Vocational}
              cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
              Detailed achievements:\%
              begin{tabular}{p{300pt}p{80pt}p{35pt}}
              textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
              Ledarskap & 4,6 & 1-6 \
              Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
              Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
              Mångfald & 4,9 & 1-6 \
              Organisation och mål & 4.4 & 1-6 \
              Kompetensutveckling & 4,4 & 1-6 \
              Löner och förmåner & 4,2 & 1-6 \
              Attraktiv arbetsgivare & 3,3 & 1-4
              end{tabular}
              }

              section{Languages}
              cvitemwithcomment{Language 1}{Skill level}{Comment}
              cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
              cvitemwithcomment{Language 3}{Skill level}{Comment}

              section{Computer skills}
              cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
              cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
              cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

              section{Interests}
              cvitem{hobby 1}{Description}
              cvitem{hobby 2}{Description}
              cvitem{hobby 3}{Description}

              section{Extra 1}
              cvlistitem{Item 1}
              cvlistitem{Item 2}
              cvlistitem{Item 3}


              section{References}
              begin{cvcolumns}
              cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
              cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
              cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
              end{cvcolumns}

              end{document}


              you can compile without errors to the following pdf:



              enter image description here






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Well you can not nest several cvitemwithcomment commands as you did in your shown code.



                Please have a look to this corrected code:



                section{Experience}
                subsection{Vocational}
                cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
                Detailed achievements:\%
                begin{tabular}{p{300pt}p{80pt}p{35pt}}
                textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
                Ledarskap & 4,6 & 1-6 \
                Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
                Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
                Mångfald & 4,9 & 1-6 \
                Organisation och mål & 4.4 & 1-6 \
                Kompetensutveckling & 4,4 & 1-6 \
                Löner och förmåner & 4,2 & 1-6 \
                Attraktiv arbetsgivare & 3,3 & 1-4
                end{tabular}
                }


                instead of usung environment itemize I added your table. please see that I deleted your length {textwidth-hintscolumnwidth-separatorcolumnwidth}. Perhaps it would be better to use lll instead your used p{300pt}p{80pt}p{35pt}.



                So with the following MWE



                documentclass[11pt,a4paper,sans]{moderncv}

                moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
                moderncvcolor{grey}

                usepackage[utf8]{inputenc}
                usepackage{tabularx}
                usepackage[scale=0.85]{geometry}
                %setlength{hintscolumnwidth}{3cm} % dates


                name{name}{name}
                title{CV}
                address{Hej}{hej}{hej}
                phone[mobile]{+467000000000}
                email{mylongemail@address.com} %
                %extrainfo{additional information}
                photo[160pt][0pt]{example-image}

                quote{Hejsan}

                setlength{footskip}{39pt}
                moderncvbody{4} % Body of oldfancy style


                begin{document}

                makecvtitle

                section{Education}
                cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
                cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


                section{Experience}
                subsection{Vocational}
                cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
                Detailed achievements:\%
                begin{tabular}{p{300pt}p{80pt}p{35pt}}
                textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
                Ledarskap & 4,6 & 1-6 \
                Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
                Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
                Mångfald & 4,9 & 1-6 \
                Organisation och mål & 4.4 & 1-6 \
                Kompetensutveckling & 4,4 & 1-6 \
                Löner och förmåner & 4,2 & 1-6 \
                Attraktiv arbetsgivare & 3,3 & 1-4
                end{tabular}
                }

                section{Languages}
                cvitemwithcomment{Language 1}{Skill level}{Comment}
                cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
                cvitemwithcomment{Language 3}{Skill level}{Comment}

                section{Computer skills}
                cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
                cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
                cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

                section{Interests}
                cvitem{hobby 1}{Description}
                cvitem{hobby 2}{Description}
                cvitem{hobby 3}{Description}

                section{Extra 1}
                cvlistitem{Item 1}
                cvlistitem{Item 2}
                cvlistitem{Item 3}


                section{References}
                begin{cvcolumns}
                cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
                cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
                cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
                end{cvcolumns}

                end{document}


                you can compile without errors to the following pdf:



                enter image description here






                share|improve this answer












                Well you can not nest several cvitemwithcomment commands as you did in your shown code.



                Please have a look to this corrected code:



                section{Experience}
                subsection{Vocational}
                cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
                Detailed achievements:\%
                begin{tabular}{p{300pt}p{80pt}p{35pt}}
                textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
                Ledarskap & 4,6 & 1-6 \
                Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
                Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
                Mångfald & 4,9 & 1-6 \
                Organisation och mål & 4.4 & 1-6 \
                Kompetensutveckling & 4,4 & 1-6 \
                Löner och förmåner & 4,2 & 1-6 \
                Attraktiv arbetsgivare & 3,3 & 1-4
                end{tabular}
                }


                instead of usung environment itemize I added your table. please see that I deleted your length {textwidth-hintscolumnwidth-separatorcolumnwidth}. Perhaps it would be better to use lll instead your used p{300pt}p{80pt}p{35pt}.



                So with the following MWE



                documentclass[11pt,a4paper,sans]{moderncv}

                moderncvstyle{casual} % casual head2, body1, foot1 oldstyle head4 body4
                moderncvcolor{grey}

                usepackage[utf8]{inputenc}
                usepackage{tabularx}
                usepackage[scale=0.85]{geometry}
                %setlength{hintscolumnwidth}{3cm} % dates


                name{name}{name}
                title{CV}
                address{Hej}{hej}{hej}
                phone[mobile]{+467000000000}
                email{mylongemail@address.com} %
                %extrainfo{additional information}
                photo[160pt][0pt]{example-image}

                quote{Hejsan}

                setlength{footskip}{39pt}
                moderncvbody{4} % Body of oldfancy style


                begin{document}

                makecvtitle

                section{Education}
                cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
                cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}


                section{Experience}
                subsection{Vocational}
                cventry{year--year}{Job title}{Employer}{City}{}{General description newline{}%
                Detailed achievements:\%
                begin{tabular}{p{300pt}p{80pt}p{35pt}}
                textbf{Område} & textbf{Utfall (snitt)} & textbf{Skala} \ hline
                Ledarskap & 4,6 & 1-6 \
                Arbetsmiljö (fysiska faktorer) & 4,1 & 1-6 \
                Arbetsmiljö (sociala och organisatoriska faktorer) & 4.8 & 1-6 \
                Mångfald & 4,9 & 1-6 \
                Organisation och mål & 4.4 & 1-6 \
                Kompetensutveckling & 4,4 & 1-6 \
                Löner och förmåner & 4,2 & 1-6 \
                Attraktiv arbetsgivare & 3,3 & 1-4
                end{tabular}
                }

                section{Languages}
                cvitemwithcomment{Language 1}{Skill level}{Comment}
                cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
                cvitemwithcomment{Language 3}{Skill level}{Comment}

                section{Computer skills}
                cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
                cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
                cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

                section{Interests}
                cvitem{hobby 1}{Description}
                cvitem{hobby 2}{Description}
                cvitem{hobby 3}{Description}

                section{Extra 1}
                cvlistitem{Item 1}
                cvlistitem{Item 2}
                cvlistitem{Item 3}


                section{References}
                begin{cvcolumns}
                cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
                cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
                cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
                end{cvcolumns}

                end{document}


                you can compile without errors to the following pdf:



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                Kurt

                33.9k846156




                33.9k846156






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461093%2fadding-table-in-moderncv%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

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt