¿Puedo citar el nombre del autor o el año en el texto cuando uso el estilo Vancouver?

¿Puedo citar el nombre del autor o el año en el texto cuando uso el estilo Vancouver?

Soy nuevo en esto, ¡así que sean amables!

He cargado natbiby babelen urlel preámbulo. Estoy usando BibTeX y un vancouverestilo modificado.

Cuando escribo, \cite{Smith2013}inserta un número en superíndice para esa referencia.

¿Existe algún comando que inserte el nombre del autor o el año del artículo en el texto, en lugar del número de referencia real?

Respuesta1

Me sorprende que no hayas recibido un error como este:

pdflátex> ! Error de paquete natbib: Bibliografía no compatible con citas de autor-año.

el vancouverestilo no es compatible con natbib. Ahora tienes dos posibilidades:

1) Utilice natbibe intente encontrar un estilo de bibliografía que se parezca un pocovancouver

2) Simplemente elimina \usepackage{natbib}tu código y podrás usarlo \bibliographystyle{vancouver}.

Ejemplo siguiente 2):

\documentclass{article}

\usepackage[english]{babel}
\usepackage{url}
%\usepackage{natbib}

\begin{document}
Hello\cite{mario2013}


\bibliographystyle{vancouver}
\bibliography{refs}

\end{document}

refs.bibel archivo se ve así:

@article{mario2013,
author={mario},
title={Marito and Friends},
journal={My Journal},
year = {2013},
}

Y la salida debería verse así:

ingrese la descripción de la imagen aquí

Si desea utilizar citas por año de autor, puede cargar el natbibpaquete junto con un estilo de bibliografía de su elección (por ejemplo IEEEtranSN):

\documentclass{article}

\usepackage[english]{babel}
\usepackage{url}
\usepackage{natbib}

\begin{document}

According to \citet{mario2013} this is what the IEEEtranSN should look like

\bibliographystyle{IEEEtranSN}
\bibliography{refs}

\end{document}

La salida se verá así:

ingrese la descripción de la imagen aquí

Respuesta2

Esto es sólo una modificación de la solución de @gaurav-bhutani. Creé una versión de vancouver.bst/vancouver-authoryear.bst que conserva varias opciones de especificación de Vancouver (marca doi, ordenar referencias por apariencia, etc.) mientras habilita los siguientes comandos;

  • \cite{smith77} produce "[1]"
  • \citep{smith77} produce "[1]"
  • \citet{smith77} produce "Smith [1]"
  • \citeauthor{smith77} produce "Smith"
  • \citeyear{smith77} produce "1977"

por ejemplo, el código produce "En 2013, Smith describió el primer uso de regresión logística multivariada para la mortalidad después de retirar una zanahoria del ojo [1]"; 'En \citeyear{Smith2013}, \citeauthor{Smith2013} describió el primer uso de regresión logística multivariada para la mortalidad después de retirar una zanahoria del ojo \cite{Smith2013}'.

Para incluir este archivo en su proyecto:

  1. Descargue la versión modificada devancouver-authoryear.bsty guárdelo con su documento de texto principal.
  2. Incluya el paquete natbib en su archivo tex: \usepackage[numbers,sort]{natbib}
  3. Incluya el estilo de bibliografía vancouver-authoryear en su archivo tex: \bibliographystyle{vancouver-authoryear}

A continuación se muestra un archivo tex de trabajo completo:

\documentclass[a4paper,12pt,twoside]{report}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage[numbers,sort]{natbib}

\begin{document}

\chapter*{Vancouver bibliography style with support for author references (citet)}

I modified a bibliography style produced by gbhutani for producing Vancouver references with support for explicit author references (citet). This version of vancouver-authoryear.bst is a combination of the original vancouver-authoryear.bst released by gbhutani and the official vancouver.bst style. It has been optimised for the Vancouver specification, and includes the following changes: 

\begin{itemize}
\item a) add doi support (restore relevant `\% urlbst' code from vancouver.bst)
\item b) order references by appearance (remove both references to the SORT command)
\item c) restore all code required to produce Vancouver compatible references (restore output.nonnull and reference formatting code from vancouver.bst)
\end{itemize}

This version of vancouver.bst allows the author name to be automatically generated and inserted into the document where necessary (via citet). To invoke the Vancouver numeric referencing system, ensure to add usepackage[numbers,sort]\{natbib\} or usepackage[numbers,sort&compress]\{natbib\} to your tex file. It supports the following set of references;

\begin{itemize}
\item cite\{smith77\} produces ``[1]'' in the text
\item citep\{smith77\} produces ``[1]'' in the text
\item citet\{smith77\} produces ``Smith [1]'' in the text
\item citeauthor\{smith77\} produces ``Smith'' in the text
\end{itemize}

A journal article \cite{ramkrishna2000population} can be cited as normal using the cite command.

The same article by \citet{ramkrishna2000population} can be cited using the citet command.

Note that journal articles are ordered by appearance (rather than alphabetically), e.g. \cite{bhutani2013determination}.

People are welcome to use this code in other styles. Please feel free to improve and contribute.

\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{vancouver-authoryear}
\bibliography{references}

\end{document}

Respuesta3

Recientemente creé un archivo bibstylevancouver-authoryear.bstque te permite usar natbibel estiloauthoryearCitas con vancouverreferencias de estilo.

Esto se hizo para que coincida con el estilo de referencia de la revista Computers and Chemical Engineering.

Siga las siguientes instrucciones para incluir este archivo en su proyecto:

  1. Descargar el archivovancouver-authoryear.bsty guárdelo con su documento de texto principal.
  2. Incluya el paquete natbib en su archivo tex:
     \usepackage{natbib}
    
  3. Incluya el estilo de bibliografía vancouver-authoryear en su archivo tex:
     \bibliographystyle{vancouver-authoryear}
    

El archivo tex de trabajo completo se muestra a continuación:

 
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage{natbib}
\begin{document}
\chapter*{Vancouver bibliography style with authoryear style citations}
I modified a bibliography style compatible with natbib package to include vancouver style references. 
The motivation behind this was to submit an article for the journal Computers and Chemical Engineering which asks for an \emph{authoryear} citation style in conjunction with vancouver style reference lists.
\\
\\
This is a journal article on drop shapes: \cite{bhutani2013determination}.
\
The same article \citep{bhutani2013determination} can also be cited in parenthesis.
\\
\\
This is an awesome book on population balance modelling by Prof. Ramkrishna: \cite{ramkrishna2000population}.
\\
\\
People are welcome to add conference proceedings, thesis and other references here to test them.
Please feel free to improve and contribute.
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{vancouver-authoryear}
\bibliography{references}
\end{document}

Produce el siguiente resultado:

ingrese la descripción de la imagen aquí


Respuesta4

natbibutiliza un comando de cita diferente al estándar \cite{}. Página 7 enla natbibdocumentaciónmuestra cómo se aplica:

ingrese la descripción de la imagen aquí

Cabe señalar que debe utilizar uno de los tres natbibestilos de bibliografía posibles: plainnat, abbrvnato unsrtnat. Como señala Mario SE, natbibno funciona con el estilo de referencia de Vancouver.

información relacionada