Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using xelatex to compile my document for the first time. I would like to know what exactly I am doing wrong, because it is no generating any bibtex entries with nocite command.

Main File -

%!TEX TS-program = xelatex
\documentclass[]{pranav-cv}
\usepackage{filecontents}
\usepackage[backend=biber]{biblatex}

\begin{filecontents}{cv.bib}
  @INPROCEEDINGS{eindhoven_intern,
    author={Tendulkar, Pranav and Stuijk, Sander},
    booktitle={Reconfigurable Architectures Workshop, RAW 13 Proceedings}, 
    title={A Case Study into Predictable and Composable MPSoC Reconfiguration},
    year={2013},
    month={may},
  publisher={IEEE Computer Society Press}}
\end{filecontents}
\addbibresource{cv.bib}

\begin{document}

\section{publications}

\begin{refsection}
\nocite{*}
\printbibliography
\end{refsection}

\end{document}

The class file -

\ProvidesClass{pranav-cv}[2012/04/30 CV class]
\NeedsTeXFormat{LaTeX2e}

%\DeclareOption{print}{\def\@cv@print{}}
%\DeclareOption*{%
%  \PassOptionsToClass{\CurrentOption}{article}%
%}
%\ProcessOptions\relax

\LoadClass{article}
\RequirePackage[left=6.1cm,top=2cm,right=1.5cm,bottom=2.5cm,nohead,nofoot]{geometry}
\RequirePackage{hyperref}
\RequirePackage{tikz}
\RequirePackage[quiet]{fontspec}

\RequirePackage[quiet]{fontspec}

\newfontfamily\bodyfont[]{Helvetica Neue LT Std}
\newfontfamily\thinfont[]{Helvetica Neue LT Std 25 Ultra Light}
\newfontfamily\headingfont[]{Helvetica Neue LT Std 77 Bold Condensed}

\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text, Color=textcolor]{Helvetica Neue LT Std 45 Light}

\newcommand{\header}[3]{%
    \begin{tikzpicture}[remember picture,overlay]
      \node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){};
      \node [anchor=center] (name) at (box) {%
      \fontsize{40pt}{72pt}\color{header}{\thinfont #1}{\bodyfont #2}};  
      \node [anchor=north] at (name.south) {\fontsize{14pt}{24pt}\color{header}\thinfont #3};  
    \end{tikzpicture}
    \vspace{2.5cm}
    \vspace{-2\parskip}
}


%%%%%%%%%%
% Colors %
%%%%%%%%%%

\RequirePackage{xcolor}
\definecolor{white}{RGB}{255,255,255}
\definecolor{darkgray}{HTML}{333333}
\definecolor{gray}{HTML}{4D4D4D}
\definecolor{lightgray}{HTML}{999999}
\definecolor{green}{HTML}{C2E15F}
\definecolor{orange}{HTML}{FDA333}
\definecolor{purple}{HTML}{D3A4F9}
\definecolor{red}{HTML}{FB4485}
\definecolor{blue}{HTML}{6CE0F1}

\ifdefined\@cv@print
  \colorlet{green}{gray}
  \colorlet{orange}{gray}
  \colorlet{purple}{gray}
  \colorlet{red}{gray}
  \colorlet{blue}{gray}
  \colorlet{fillheader}{white}
  \colorlet{header}{gray}
\else
  \colorlet{fillheader}{gray}
  \colorlet{header}{white}
\fi
\colorlet{textcolor}{gray}
\colorlet{headercolor}{gray}

\RequirePackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\newenvironment{aside}{%
  \let\oldsection\section
  \renewcommand{\section}[1]{
    \par\vspace{\baselineskip}{\Large\headingfont\color{headercolor} ##1}
  }
  \begin{textblock}{4.6}(0.5, 4.33)
  \begin{flushright}
  \obeycr
}{%
  \restorecr
  \end{flushright}
  \end{textblock}
  \let\section\oldsection
}

%%%%%%%%%%%%%
% Structure %
%%%%%%%%%%%%%
\RequirePackage{parskip}

\newcounter{colorCounter}
\def\@sectioncolor#1#2#3{%
  {%
    \color{%
      \ifcase\value{colorCounter}%
        blue\or%
        red\or%
        orange\or%
        green\or%
        purple\else%
        headercolor\fi%
    } #1#2#3%
  }%
  \stepcounter{colorCounter}%
}

\renewcommand{\section}[1]{
  \par\vspace{\parskip}
  {%
    \LARGE\headingfont\color{headercolor}%
    \@sectioncolor #1%
  }
  \par\vspace{\parskip}
}

\renewcommand{\subsection}[2]{
  \par\vspace{.5\parskip}%
  \Large\headingfont\color{headercolor} #2%
  \par\vspace{.25\parskip}%
}

\pagestyle{empty}

%%%%%%%%%%%%%%%%%%%%
% List environment %
%%%%%%%%%%%%%%%%%%%%

\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
  \end{tabular*}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
  #1&\parbox[t]{11.8cm}{%
    \textbf{#2}%
    \hfill%
    {\footnotesize\addfontfeature{Color=lightgray} #3}\\%
    #4\vspace{\parsep}%
  }\\}

cv.blg

[1] Config.pm:300> INFO - This is Biber 0.9.9
[1] Config.pm:303> INFO - Logfile is 'cv.blg'
[3] biber:145> INFO - === Wed Mar 27, 2013, 07:26:55
[3] Biber.pm:271> INFO - Reading 'cv.bcf'
[25] Biber.pm:586> INFO - Found 0 citekeys in bib section 0
[25] Biber.pm:570> INFO - Using all citekeys in bib section 1
[25] Biber.pm:586> INFO - Found 0 citekeys in bib section 0
[35] Biber.pm:2585> INFO - Processing bib section 1
[53] Biber.pm:2677> INFO - Looking for bibtex format file 'cv.bib' for section 1
[54] bibtex.pm:829> INFO - Decoding LaTeX character macros into UTF-8
[68] bibtex.pm:833> INFO - Finished Decoding LaTeX character macros into UTF-8
[68] bibtex.pm:704> INFO - Found BibTeX data source 'cv.bib'
[112] Biber.pm:2480> INFO - Sorting list 'MAIN' keys
[112] Biber.pm:2484> INFO - No sort tailoring available for locale 'en_US.UTF-8'
[127] Biber.pm:2480> INFO - Sorting list 'SHORTHANDS' keys
[128] Biber.pm:2484> INFO - No sort tailoring available for locale 'en_US.UTF-8'
[133] bbl.pm:427> INFO - Writing 'cv.bbl' with encoding 'UTF-8'
[133] bbl.pm:498> INFO - Output to cv.bbl

The commands I issue for compilation are -

xelatex cv.tex
bibtex cv 
xelatex cv.tex
xelatex cv.tex

I even tried using biber, however it didn't bring any results. Please note that I have not written the class file and it works just fine.

share|improve this question
3  
Using bibtex is definitely wrong, because you're specifying backend=biber. Use biber cv as the second command. If this doesn't succeed, please add the contents of the produced cv.blg file. –  egreg Mar 26 '13 at 23:11
    
does it make any difference if you're using a standard class? Like article instead of prana-cv? –  Nils L Mar 27 '13 at 6:19
    
no it does not make any difference. the error is the same. I will update that in my question. –  Raj Mar 27 '13 at 6:22
    
i found out the mistake that it works with article class with I add the command \printbibliography command. However, when I use pranav-cv there is an error that I get ! Argument of \@sectioncolor has an extra }. <inserted text> \par l.120 \end –  Raj Mar 27 '13 at 6:26

1 Answer 1

up vote 6 down vote accepted

The error is in the fact that the class redefines \section without giving the opportunity of a *-variant, so LaTeX gets confused because, by default, \printbibliography calls \section*{\refname}.

Define an empty bib heading, since you already provide the title.

\documentclass[]{pranav-cv}
\usepackage{filecontents}
\usepackage[backend=biber]{biblatex}
\defbibheading{empty}{}

\begin{filecontents*}{\jobname.bib}
  @INPROCEEDINGS{eindhoven_intern,
    author={Tendulkar, Pranav and Stuijk, Sander},
    booktitle={Reconfigurable Architectures Workshop, RAW 13 Proceedings},
    title={A Case Study into Predictable and Composable MPSoC Reconfiguration},
    year={2013},
    month={may},
  publisher={IEEE Computer Society Press}}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}


\section{publications}

\begin{refsection}
\nocite{*}
\printbibliography[heading=empty]
\end{refsection}

\end{document}

I don't think refsection is useful here, but it might be necessary in your CV for subdividing the bibliography, of course.

share|improve this answer
    
great this works just fine ! :) –  Raj Mar 27 '13 at 11:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.