2

I have both texlive-fonts-extra and texlive-fonts-recommended installed however I get 'multicols.sty' not found when compiling a tex file.

How do I fix this?

Update: the package is multicol without an s.

8
  • 1
    Are you sure that's not meant to be multicol.sty? Jan 27, 2018 at 18:58
  • I thought it might be a typo however I copied this code to double check.
    – user10853
    Jan 27, 2018 at 19:01
  • Actually, you're right however the code still gives a (different) error. Could you replicate the result if possible?
    – user10853
    Jan 27, 2018 at 19:02
  • What error are you seeing? I took a quick look and it seems like you may need to define \familyname and \firstname in the preamble (even if empty) as described here Moderncv - undefined control sequence in minimal document. You may also need to remove the \\ line break after the last \cventry{} . Jan 28, 2018 at 2:50
  • I updated my answer with @steeldriver 's edits and needed LaTeX packages.
    – N0rbert
    Jan 28, 2018 at 9:51

1 Answer 1

3

As far I can understand, the file multicol.sty is contained in texlive-latex-base package.

Try to install it with sudo apt-get install texlive-latex-base.

For ngerman you should install texlive-lang-german with sudo apt-get install texlive-lang-german.

As steeldriver recommended, below is working TeX example:

\documentclass[11pt,a4paper]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage{layout}
\usepackage{multicol}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry}
\firstname{}
\lastname{}
\setlength{\columnseprule}{0.4pt}
\begin{document}
    \section{headline}
    \hspace*{\hintscolumnwidth}%
    \begin{minipage}{\maincolumnwidth}
    \setlength{\hintscolumnwidth}{0pt}
        \begin{multicols}{2}
        \cventry{}{C\#}{basic}{}{}{} \par \cventry{}{UNIX}{basic}{}{}{} \par
        \cventry{}{vim}{basic}{}{}{} \par \cventry{}{\LaTeX}{basic}{}{}{} \par
        \cventry{}{HTML, CSS, PHP}{very basic}{}{}{} \par
    \end{multicols}
    \end{minipage}
\end{document}

It compiles normally from Gummi (sudo apt-get install gummi).

All needed TeX dependencies may be installed with

sudo apt-get install texlive-latex-extra lmodern texlive-lang-german texlive-latex-base 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .