The first optional argument of the command \bibitem
is executing by the command \@biblabel
which have one mandatory argument.
My suggestion uses commands with @
and so you must handle them as describe in the question: What do \makeatletter and \makeatother do?
For the first choice you can gobble the mandatory argument by the following assignment:
\let\@biblabel\@gobble
For the second choice you can use a small trick. The justification of the bibliography label is done by \@biblabel{#1}\hfill
. To gobble the \hfill
to get your requested alignment you can use \hfill
as part of the definition of \@biblabel
\def\@biblabel#1\hfill{[#1]}
In the mwe below I have implemented both solutions:
\listfiles
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@BOOK{book1,
author = {John Doe and John Smith},
title = {Title},
publisher = {Publisher},
edition = {edition},
year = {year},
}
@BOOK{book2,
author = {John Doe and Eva Smith},
title = {Title2},
publisher = {Publisher2},
edition = {edition},
year = {year},
}
@MISC{misc1,
author = {John Doe},
title = {Title},
year = {year},
}
@MISC{misc2,
author = {John Doe and Max Musterfrau},
title = {Title},
year = {year},
}
\end{filecontents*}
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\usepackage[ngerman]{babel}
\bibliographystyle{unsrtdin}
% personal data
\firstname{John}
\familyname{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\mobile{+1~(234)~567~890}
\phone{+2~(345)~678~901}
\fax{+3~(456)~789~012}
\email{john@doe.org}
\homepage{www.johndoe.com}
\extrainfo{additional information}
\photo[64pt][0.4pt]{example-image-a} % change image name
\quote{Some quote}
\begin{document}
\selectlanguage{ngerman} % German cv
\makecvtitle
% Publications from a BibTeX file without multibib
\renewcommand{\refname}{Veröffentlichungen} % instead "Publications"
\nocite{*} % cite all entrys in bib file
\makeatletter
\let\@biblabel\@gobble
\makeatother
\bibliography{\jobname} % bib file \jobname.bib
\makeatletter
\def\@biblabel#1\hfill{[#1]}
\makeatother
\bibliography{\jobname} % bib file \jobname.bib
\end{document}
The documentation for moderncv
is still missing, but you will find some examples (look on CTAN
) showing the usage (.tex
files) and the results (.pdf
files).
You can also search this side for the tag moderncv
to find related questions to class moderncv
that should help you.
The examples and this side should allow you to build your own cv.
If you have problems to install the class for your distribution follow the given link in the comment of @henrique.
To check if you have moderncv
installed on your system try to compile the following MWE:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{green}
\usepackage[scale=0.75]{geometry}
\firstname{John}
\familyname{Doe}
\title{Curriculum Vitae} % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\mobile{+1~(234)~567~890} % optional
\phone{+2~(345)~678~901} % optional
\fax{+3~(456)~789~012} % optional
\email{john@doe.org} % optional
\homepage{www.johndoe.com} % optional
\extrainfo{additional information} % optional
%\photo[64pt][0.4pt]{example-image-a} % optional
\quote{Some quote} % optional
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 can be left empty
\end{document}
Best Answer
This is not a template, but a way how I did my CV, always successful:
scrlttr2
template for a nice cover letter (Anschreiben)tabularx
andbooktabs
(tabellarischer Lebenslauf)pdfpages
atbegshi
oreveryshi
in the CV or in the attachment with scans.This way I get a clean tabular CV as I want it, I don't like using a fancy ready-made template. To make it look great, I use LaTeX ;-) and its great extensions like
microtype
and more, getting letter and CV which look much better than the usual wordprocessor documents.