我在 latex 中使用 bibtex。我使用 bibtex 写参考文献。它完成了。但我想在文档中的特定位置打印 .bib 文件的特定条目(年份或标题等)。我该怎么做。已经完成的工作。
样本
@book{is4562000,
title={Indian Standard Plain and reinforced concrete--code of
practice (IS 456 : 2000)},
author={Cement and Concrete Sectional Committee, CED 2},
journal={New Delhi: },
year={2000}
publisher={Bureau of Indian Standards}
}
@book{aci1981aci,
title={ACI Standard Building Code Requirements for Reinforced
Concrete (ACI 318-77)},
author={ACI Committee 318},
series={ACI standard 318-77},
url={https://books.google.co.in/books?id=amEOfgtA-DYC},
year={1981},
publisher={American Concrete Institute}
@STANDARD {aci31877,
title = "ACI Standard Building Code Requirements for
Reinforced Concrete (ACI 318-77)",
organization = "American Concrete Institute",
institution = "American Concrete Institute",
author = "ACI Committee 318",
language = "English",
number = "ACI standard 318-77",
year = "1981"
}
引用emo.tex
\documentclass[11pt]{article}
\usepackage{cite}
\begin{document}
\title{Individual Spread Footing}
\author{Manpreet Kaur}
\maketitle
This is demo \cite{is4562000}
\cite{aci1981aci}
~\cite{aci31877}
\bibliography{sample}{}
\bibliographystyle{plain}
\end{document}
答案1
使用 package biblatex
and runbiber file
代替bibtex
。并将非真实姓名的作者放入{{...}}
:
\RequirePackage{filecontents}
\begin{filecontents*}{demo.bib}
@book{is4562000,
title={Indian Standard Plain and reinforced concrete--code of
practice (IS 456 : 2000)},
author={{Cement and Concrete Sectional Committee, CED 2}},
journal={New Delhi: },
year={2000},
publisher={Bureau of Indian Standards},
}
@book{aci1981aci,
title={ACI Standard Building Code Requirements for Reinforced
Concrete (ACI 318-77)},
author={{ACI Committee 318}},
series={ACI standard 318-77},
url={https://books.google.co.in/books?id=amEOfgtA-DYC},
year=1981,
publisher={American Concrete Institute},
}
@STANDARD {aci31877,
title = {ACI Standard Building Code Requirements for
Reinforced Concrete (ACI 318-77)},
organization = {American Concrete Institute},
institution = {American Concrete Institute},
author = {{ACI Committee 318}},
language = {English},
number = {ACI standard 318-77},
year = 1981
}
\end{filecontents*}
\documentclass{article}
\usepackage[autostyle]{csquotes}
\usepackage{biblatex}
\addbibresource{demo.bib}
\DeclareCiteCommand{\citepublisher}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printlist{publisher}}
{\multicitedelim}
{\usebibmacro{postnote}}
\begin{document}
This is demo \cite{is4562000,aci1981aci,aci31877}
and the publisher of \texttt{aci1981aci} is \citepublisher{aci1981aci}
and of \texttt{is4562000} \citepublisher{is4562000}.
\printbibliography
\end{document}