BibTeX, biblatex and biberBibliography & Filmography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ciema7
Posts: 22
Joined: Sat Nov 10, 2018 2:31 am

Bibliography & Filmography

Post by ciema7 »

Hello Community,

need some help with creating two references list on the end of document. I would like to create bibliography list and filmography list. Here is my attempt:

Code: Select all

\newpage

\renewcommand{\bibsection}{\section*{Bibliografia}}
\renewcommand{\bibpreamble}{\vskip0.7cm}
\nocite{*}
\bibliographystyle{plain}
\addtocontents{toc}{\protect\addvspace{8pt}}
\phantomsection
\addcontentsline{toc}{section}{\bibname}
\bibliography{bibliografia/biblio}	
	
	
	\newpage
	
	\renewcommand{\bibsection}{\section*{Filmografia}}
	\renewcommand{\bibpreamble}{\vskip0.7cm}
	\nocite{*}
	\bibliographystyle{plain}
	\addtocontents{toc}{\protect\addvspace{8pt}}
	\phantomsection
	\addcontentsline{toc}{section}{\bibname}
	\bibliography{filmografia/filmo}
Unfortunately it does not work, because it repeat twice "Bibliography". Can someone help me to find easy way to seperate it to 2 diffrent references?

Recommended reading 2024:

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

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

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Bibliography & Filmography

Post by Ijon Tichy »

I would recommend to use biblatex with biber to generate more then one bibliography. Also adding a ToC entry is much more easy with biblatex.

Currently your question is not clear, because the code is to minimal and not working, e.g., it is completely unclear which package you use to provide multiple bibliographies (multibib?). Maybe you are using an additional incompatible bibliography package? And it is unclear which class you are using. And have you done the correct bibtex runs? …
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
ciema7
Posts: 22
Joined: Sat Nov 10, 2018 2:31 am

Bibliography & Filmography

Post by ciema7 »

Thanks for reply. I just want to find simply way to add two different references lists one behind another.
Sorry, thought it will be much easier. Here is the minimal working example (if only you create "biblio" .bib file in "bibliografia" file location):

Code: Select all

\documentclass[12pt]{article}
\usepackage[table,xcdraw]{xcolor}
\usepackage{listings}
\usepackage{inputenc}
\usepackage{graphicx}
\usepackage{polski}
\usepackage{geometry} 
\usepackage{textcomp} 
\usepackage{gensymb}
\usepackage{parskip}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{enumitem}
\usepackage{booktabs,arydshln}
\usepackage{array}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{scrextend}
\usepackage{mwe} 
\usepackage[export]{adjustbox}
\usepackage{setspace}
\usepackage{stanli}
\usepackage{tikz} 
\usepackage{wrapfig} 
\usepackage{hyperref}
\usepackage[numbers,sort&compress]{natbib}
\usepackage[,framed]{matlab-prettifier}
\usepackage{pdfpages}
\usepackage{placeins}
\usepackage{bm} 
\usepackage{float} 
\usepackage{changepage}
\usepackage[font=small,tableposition=top]{caption} 
\setlist[enumerate,1]{leftmargin=0.5cm}
\pagenumbering{arabic}
\usepackage{leading}
\leading{18pt} 


\captionsetup[figure]{font=footnotesize,labelfont=footnotesize,justification=centering} 
\captionsetup[table]{singlelinecheck=off,skip=0pt}
\lstset{language=matlab,basicstyle=\footnotesize,showstringspaces=false,style = Matlab-editor,basicstyle=\mlttfamily,
	escapechar= ",mlshowsectionrules = true}


\graphicspath{ {figures/} }
\newcommand\VRule[1][\arrayrulewidth]{\vrule width #1}

\begin{document}

	\newgeometry{tmargin=2.5cm, bmargin=2.5cm, lmargin=3.5cm, rmargin=2.5cm} 
	
	\tableofcontents
	
	\newpage
	\section{random section}
	\subsection{random subsection}
	
	\newpage

\renewcommand{\bibsection}{\section*{Bibliografia}}
\renewcommand{\bibpreamble}{\vskip0.7cm}
\nocite{*}
\bibliographystyle{plain}
\addtocontents{toc}{\protect\addvspace{8pt}}
\phantomsection
\addcontentsline{toc}{section}{\bibname}
\bibliography{bibliografia/biblio}	

\end{document}
Post Reply