BibTeX, biblatex and biberCitation issue

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Hey guys, my problem is as follows:

Code: Select all

@book{sanmartiysantacana2005,
title={Els ibers del nord},
author={Sanmartí,­ Joan y Santacana, Joan},
publisher={Editorial Dalmau},
year={2005}
}
The above citation appears in the bibliography in the right format: Sanmartí, Joan y Santacana,J. (2005).Els ibers del nord. Editorial Dalmau.

However, in the text it appears as (Sanmartí 2005, 49) and not as it should be(Sanmartí y Santacana,2005, 49), That is, the second author is missing.

I am using the following packages:

Code: Select all

\begin{flushright}
?
\end{flushright}\begin{flushright}

\end{flushright}

Code: Select all

\documentclass[11pt,a4paper,oldfontcommands]{memoir}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{microtype}
\usepackage[dvips]{graphicx}
\usepackage{xcolor}
\usepackage{times}
\usepackage{epigraph}
\usepackage[utf8]{inputenc}


\usepackage[
breaklinks=true,colorlinks=true,
%linkcolor=blue,urlcolor=blue,citecolor=blue,% PDF VIEW
linkcolor=black,urlcolor=black,citecolor=black,% PRINT
bookmarks=true,bookmarksopenlevel=2]{hyperref}

\usepackage{geometry}
% PDF VIEW
% \geometry{total={210mm,297mm},
% left=25mm,right=25mm,%
% bindingoffset=0mm, top=25mm,bottom=25mm}
% PRINT
\geometry{total={210mm,297mm},
left=20mm,right=20mm,
bindingoffset=10mm, top=25mm,bottom=25mm}

\OnehalfSpacing
% \linespread{1.3}\selectfont{}
% \abnormalparskip{10pt}
%\usepackage{parskip}
\setlength{\parskip}{0.1mm plus0.0mm minus0.0mm}
%\linespread{1.3}

%%% CHAPTER'S STYLE
\chapterstyle{hansen}
%\chapterstyle{ger}
%\chapterstyle{madsen}
%\chapterstyle{ell}
%%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
\setsecheadstyle{\Large\bfseries\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
\setsubsubsecheadstyle{\bfseries\sffamily\raggedright}


%%% STYLE OF PAGES NUMBERING
%\pagestyle{companion}\nouppercaseheads 
%\pagestyle{headings}
%\pagestyle{Ruled}
\pagestyle{plain}
\makepagestyle{plain}
\makeevenfoot{plain}{\thepage}{}{}
\makeoddfoot{plain}{}{}{\thepage}
\makeevenhead{plain}{}{}{}
\makeoddhead{plain}{}{}{}


\maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents


%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\raggedbottom
\usepackage[round]{natbib}
\usepackage{cite}
\begin{document}
%\selectlanguage(spanish)
\bibliographystyle{apalike}

%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%   TITLEPAGE
%
%   due to variety of titlepage schemes it is probably better to make titlepage manually
%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\thispagestyle{empty}

\frontmatter

{%%%
\sffamily
\centering
\Large

~\vspace{\fill}

{\huge 
Indiketia: evolución política del territorio
}

\vspace{2.5cm}

{\LARGE
Your name
}

\vspace{3.5cm}

A thesis submitted in partial fulfillment for the\\
degree of Doctor of Philosophy\\[1em]
in the\\[1em]
Faculty Name\\
University Name

\vspace{3.5cm}

Supervisor: Joan  

\vspace{\fill}

May 2013

%%%
}%%%

\cleardoublepage
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%

\tableofcontents*
\clearpage
\listoffigures


\clearpage

%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\mainmatter

\include{preiberico}
\include{iberos}
\include{Introduction}



%\bibliographystyle{unsrt}
\bibliography{bibliografia}

\end{document}
Any suggection will be very much appreciated. Thanks
Last edited by Stefan Kottwitz on Tue Nov 12, 2019 3:14 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

I forgot to mention that if I use the conjunction y in english (and) it will be fine both bibliography and text, but then obviously both will appear with the conjunction in english
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Citation issue

Post by Johannes_B »

You have to use and, as it is just the english conjunction by chance, it is a special name separation keyword.

The problem is, that you are using an english style. With the old bibtex system, changing the language ist not easy.
I prefer the more modern biblatex system, which can handle utf8 and different languages by default.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Any suggestions?
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Could I sort this out by modifying some of the definitions, in order to change the keyword and by the Spanish y?
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Hello Johannes, as I am just starting to write my bibliography and following your first advice: would it be difficult to switch from natbib to biblatex? What are the main steps to do that? Thanks
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Citation issue

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Thanks for the link Johannes. I have already installed natbib, would it be difficult to switch from natbib to biblatex? I mean, how do I cancel natbit commands, just with this simbol %. Thanksss
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Citation issue

Post by Johannes_B »

It is really simple, just put a percent sign before the line loading natbib. There is even a compatibility option for biblatex, so you don't have to change anything in you document.

Just be aware that you have to call biber instead of bibTeX (should be described in the link)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
David 007
Posts: 26
Joined: Sun Nov 10, 2019 12:23 pm

Citation issue

Post by David 007 »

Thanks Johannes, I appreciate it! I will do it tomorrow.
Post Reply