1

I want to have citation as footnotes, for this I use \footfullcite. For citation in the text, I use \cite. I just discovered the style=authoryear-icomp does the ibidem replacement for identical citations. But it doesn't seem to work.

I want to have full citations in the notes, the authoryear for in-text citations, and the ibidem for identical citations.

What am I missing or using wrong?

Here my preamble:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[
        bibencoding=utf-8,
        natbib=true,
        style=authoryear-icomp,
        backend=biber,
        url=false,
        doi=false,
        isbn=false,
        eprint=false,
        ]{biblatex}
\addbibresource{/home/enrico/Università/uni_bib.bib}
\usepackage[bottom]{footmisc}
\usepackage[inline]{enumitem}
\usepackage{hyperref}
\usepackage{array}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{amsmath}
\usepackage{svg}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{tabularx}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
\usepackage[final]{microtype}
\usepackage{setspace}
\onehalfspacing
  • Should "ibid." be also in the footnote cite? – CarLaTeX Apr 19 '23 at 11:05
  • I would say that generally speaking, If you find yourself using \fullcite and \footfullcite more than a couple of times in your document, there probably is more elegant way to resolve things. It's not wrong per se, but unusual. In your use case it's not clear for me why you use two different kinds of citations (in-text vs. footnotes) and when you would want to use which kind of citation. – moewe Apr 28 '23 at 05:53
  • \fullcite and \footfullcite operate "outside" the normal citation tracking. They do not respond to most cite-style-specific settings like "ibid.". – moewe Apr 28 '23 at 05:54

1 Answers1

3

I think this is what you like:

\begin{filecontents}[overwrite]{uni_bib.bib}
    @article{author,
        author = "A. Author",
        title = "A Title",
        journal = "A Journal",
        volume = "1",
        number = "2",
        year = "2023"
    }
    @article{buthor,
        author = "B. Buthor",
        title = "B Title",
        journal = "B Journal",
        volume = "3",
        number = "4",
        year = "2022"
    }    
    @article{cuthor,
        author = "C. Cuthor",
        title = "C Title",
        journal = "C Journal",
        volume = "4",
        number = "5",
        year = "2021"
    }
\end{filecontents}

\documentclass[12pt]{report} %\usepackage[utf8]{inputenc} no more needed \usepackage[T1]{fontenc} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage[bottom]{footmisc} \usepackage[inline]{enumitem} \usepackage{array} \usepackage{booktabs} \usepackage[flushleft]{threeparttable} \usepackage{amsmath} \usepackage{svg} \usepackage{graphicx} \graphicspath{ {images/} } \usepackage{tabularx} \usepackage{blindtext} \usepackage[final]{microtype} \usepackage{setspace} \onehalfspacing %\PassOptionsToPackage{ <---- Why this? \usepackage[ bibencoding=utf-8, natbib=true, style=authoryear-ibid, backend=biber, url=false, doi=false, isbn=false, eprint=false, ]{biblatex}

\DeclareCiteCommand{\footfullcite}[\mkbibfootnote] {\usebibmacro{prenote}} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\usedriver {\DeclareNameAlias{sortname}{default}} {\thefield{entrytype}}}} {\multicitedelim} {\usebibmacro{postnote}}

\DeclareCiteCommand{\cite} {\citetrackerfalse\usebibmacro{prenote}} {\usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}\citetrackertrue}

\addbibresource{uni_bib.bib}

\usepackage{hyperref}% better loaded at last

\nocite{*}

\begin{document} cite: \cite{author} cite again: \cite{author} foot full cite: \footfullcite{buthor} foot full cite again: \footfullcite{buthor} cite: \cite{cuthor} foot full cite first: \footfullcite{cuthor} foot full cite second: \footfullcite{cuthor} cite: \cite{author} foot full cite third: \footfullcite{cuthor} foot full cite fouth: \footfullcite{cuthor} \newpage cite: \cite{author} cite again: \cite{author} foot full cite: \footfullcite{buthor} foot full cite again: \footfullcite{buthor}

\printbibliography

\end{document}

Page 1:

enter image description here enter image description here

Page 2:

enter image description here enter image description here

Bibliography:

enter image description here

CarLaTeX
  • 62,716
  • This is what I get with my setup, but I want ibid. when there is the same citation on the same page. This should be done by style=authoryear-icomp, but it doesn't seem to work. Also, I want the full citation on the first note – enrico223 Apr 19 '23 at 12:08
  • @enrico223 There is "ibid." when the citation is repeated. Do you want it also in the footnotes? – CarLaTeX Apr 19 '23 at 15:03
  • Yes, I just need it in the footnotes. Sorry I didn't explain myself. – enrico223 Apr 19 '23 at 17:10
  • 1
    @enrico223 Should the ibidem of \cite be independent of the one of \footfullcite? That is, in the text, ibidem as is now in my example, and in the footnote, ibidem if the previous footnote citation is equal, even if there are other in-text citations between two footnote citations? – CarLaTeX Apr 19 '23 at 20:59
  • I want ibidem if the previous footnote citation is equal. I do not want ibidem for in-text citations – enrico223 Apr 20 '23 at 10:32
  • @enrico223 See my renewed answer. Is it what you like? – CarLaTeX Apr 21 '23 at 22:33
  • Marked as accepted. Also, IDK if I should open another question or not, so I'll ask here: is there a way to point to just full cite the first time I cite a paper, and then point to that note in subsequent footnotes? Something like "See note X". – enrico223 Apr 22 '23 at 08:57
  • @enrico223 Thank you for accepting my answer! If you want to do it automatically, it's better you open another question. If you want to do it "manually", see here: https://tex.stackexchange.com/q/167380/101651. – CarLaTeX Apr 22 '23 at 09:33