General ⇒ Including files in latex beamer
Including files in latex beamer
I have a problem with texing code when creating Beamer slides. I use TeX Live version Aug 2010 and the current version of the Texnic Center under Windows XP.
What I have done is the following:
In my folder named "TeX" I created a subfolder which is called "test". In this subfolder I have four files:
slides_code_main.tex
slides_code_chapter_1.tex
slides_code_chapter_2.tex
my_library.bib
I include the two "chapter" tex files in the "main" file in order to have not too much code in the main file and have the contents in the two chapter files. The main file looks as follows:
\documentclass{beamer}
\begin{document}
\include{slides_code_chapter_1}
\include{slides_code_chapter_2}
\newpage
\begin{frame}[t,allowframebreaks]{Literature}
\def\newblock{}
\bibliography{my_library}
\end{frame}
\end{document}
For testing purposes in the two chapter files I ONLY have written
text for first chapter\cite{hull_2008}\\
aND
text for second chapter\cite{hull_2009}\\
respectively.
I also use the TeX literature database (.bib) when I want to \cite sources. The libary file is called "my_library.bib". In the my_library.bib file
I have 2 entries:
@book{hull_2008,
author = {J.C. Hull},
title = {Options, Futures, and Other Derivatives},
publisher = {Pearson Prentice Hall},
edition = {7th},
year = {2008}
}
@book{hull_2009,
author = {J.C. Hull},
title = {Students Solutions Manual - Options, Futures, and Other Derivatives},
publisher = {Pearson Prentice Hall},
edition = {7th},
year = {2009}
}
NOW THE PROBLEM:
When I open the file "slides_code_main.tex" and start to tex it, the system compiles without error but also WITHOUT finding library.bib and, therefore,
WITHOUT making the correct source references. This results in warnings that references cannot be found. In the created ps the literature list in the end is empty.
For whatever reason tex does not find the library.bib file - but how can I solve this issue ???
Desparate,
Marcus
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p