> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/es/preguntas-y-respuestas/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md).

# En la plantilla IEEE para revistas, estoy intentando usar BibTeX para mis referencias

Muchos autores que usan una de las plantillas de revistas IEEE piden ayuda para añadir sus referencias usando bibtex. En particular, después de subir los archivos IEEEexample.bib y IEEEabrv.bib a la carpeta bibtex/bib, puede ser complicado lograr que el documento compile. Aquí tienes una recopilación de nuestras respuestas que, con suerte, te ayudará si te encuentras en una situación similar, y que culmina en un ejemplo que puedes usar como plantilla para empezar.

En primer lugar, si has subido los archivos IEEEtran.cls e IEEEtran.bst, se recomienda eliminarlos, porque en realidad están integrados en writeLaTeX; no tienes que incluirlos en tu proyecto, y normalmente es mejor usar la versión integrada.

Si necesitas crear la carpeta bibtex/bib, puedes hacerlo desde el menú Project del editor; una vez que hayas abierto el menú, los iconos para crear carpetas y archivos están en la parte superior derecha.

La bibliografía generada por bibtex proviene de los comandos \bibliography y \bibliographystyle, y suponiendo que estés usando los archivos IEEEexample.bib y IEEEabrv.bib en la carpeta bibtex/bib, estos comandos deberían cambiarse a:

```latex
\bibliography{bibtex/bib/IEEEabrv.bib,bibtex/bib/IEEEexample.bib}{}
\bibliographystyle{IEEEtran}
```

Esto indica a bibtex que cargue los dos archivos .bib y use el estilo bibliográfico IEEEtran para dar formato a las referencias.

Nota: Los comandos originales en la plantilla eran:

```latex
\bibliography{mybib.bib}{}
\bibliographystyle{plain}
```

lo que indicaba a bibtex que querías usar un archivo llamado mybib.bib para las referencias, con el estilo plain (integrado).

Por último, un error común que ocurre después de configurar todo esto es cuando no hay ningún comando \cite en el documento que haga referencia a ninguno de los registros del archivo bib. En el ejemplo siguiente hemos añadido uno de IEEEexample.bib:

```latex
\cite{IEEEhowto:IEEEtranpage}
```

para que compile. Querrás eliminarlo una vez que hayas empezado a añadir tus propias citas.

[Aquí tienes el ejemplo en Overleaf, listo y configurado para su uso.](https://www.overleaf.com/latex/templates/ieee-for-journals-template-with-bibtex-example-files-included/hjbyjvncdmpx)

Para más información sobre bibtex, recomendamos el wikilibro de LaTeX \[[capítulo sobre la gestión de bibliografía](http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management)].


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/es/preguntas-y-respuestas/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
