TeX - LaTeX Asked on August 1, 2021
Hi following is my code for latex, I am trying to print first 3 references of all the references contained in my bib file (sourcefile-bib.bib):
My code is:
documentclass[manuscript,screen]{acmart}
usepackage{listings}
input{solidity-highlighting.tex}
usepackage[colorinlistoftodos]{todonotes}
usepackage{biblatex}
addbibresource{sourcefile-bib.bib}
%% BibTeX command to typeset BibTeX logo in the docs
AtBeginDocument{%
providecommandBibTeX{{%
normalfont Bkern-0.5em{scshape ikern-0.25em b}kern-0.8emTeX}}}
setcopyright{acmcopyright}
copyrightyear{2020}
acmYear{2020}
acmDOI{10.1145/1122445.1122456}
begin{document}
title{Testing}
maketitle
section{Introduction}
Hello. cite{1}, cite{2}, cite{3}.
printbibliography
begin{lstlisting}[language=Solidity]
pragma solidity ^0.5.1;
contract Underflow1 {
uint8 val =0;
function test2() public returns (uint8) {
val--;
return val;
}
}
end{lstlisting}
end{document}
Its printing :
Hello. 1, [2], [3].
i.e. Hello. 1, 2,3 are enclosed in square brackets.
Along with other text but its not printing any content of sourcefile-bib.bib
First 3 references of my .bib file are:
@inproceedings{1,
author={W. Ahrendt W and G. J. Pace and G. Schneider},
title={Smart Contracts: A Killer Application for Deductive Source Code Verification},
journal={Principled Software Development. Springer},
year = {2018}
}
@article{2,
author={Elvira Albert and
Pablo Gordillo and
Benjamin Livshits and
Albert Rubio and
Ilya Sergey},
title={EthIR: {A} Framework for High-Level Analysis of Ethereum Bytecode},
journal={CoRR},
volume={abs/1805.07208},
year={2018}
}
@article{3,
author={Elvira Albert,
Pablo Gordillo,
Albert Rubio and
Ilya Sergey},
title={{GASTAP:} {A} Gas Analyzer for Smart Contracts},
journal={CoRR},
volume={abs/1811.10403},
year={2018}
}
I have also attached the image which shows two erros also:
This problem solves if I use the following: usepackage[backend=bibtex]{biblatex}
instead of : usepackage{biblatex}
I can now see the reference list but I am getting compatibility errors: /usr/local/texlive/2019/texmf-dist/tex/latex/biblatex/biblatex.sty, line 167 Package biblatex Error: Incompatible package 'natbib'.
I would discuss this in another thread.
Zulfi.
Answered by user2994783 on August 1, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP