Theses, Books, Title pagesHow produce subtitle from title in bibliography?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

How produce subtitle from title in bibliography?

Post by manpreet9112 »

Hello,

I am working with bibliography in LaTex. In my work, I am able to write author, year, title, publisher entries from .bib file. But I am unable to produce nicktitle (subtitle) from title. And I do not want to produce subtitle by redefining it. Subtitle should come automaticallyfrom title using any bibtex style.

Code: Select all

\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}
\bibliographystyle{unsrt}
\usepackage[backend=biber]{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}.
title : \citetitle{is4562000}\\


\textbf{Enteres from @Book}\\
%\textbf{Author shortname:} \citeauthor*{is4562000}

\textbf{Author Fullname:} \citeauthor{is4562000}\\

\textbf{Entries from @standard}
\cite{aci31877}

\textbf{@Standard title}= \citetitle{aci31877}

\textbf{@Standard author}= \citeauthor{aci31877}

\textbf{@Standard shortauthor}= \citeauthor*{aci31877}


\textbf{@Standard year}= \citeyear{aci31877}

\printbibliography
\end{document}

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
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How produce subtitle from title in bibliography?

Post by Johannes_B »

Welcome,

i am sorry, but i have no idea what you are trying to achieve. Can you explain in more detail?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Re: How produce subtitle from title in bibliography?

Post by manpreet9112 »

Hello, Johannes_B

For example: If I want to \citetitle from @book{is4562000}, then it will write below entry

"Indian Standard Plain and reinforced concrete--code of
practice (IS 456 : 2000)"

in place of \citetitle. But sometimes, I do not want complete titleName, I need only short title (IS 456 : 2000). How I can print short title. Just suggest me. I hope you understand.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How produce subtitle from title in bibliography?

Post by Johannes_B »

You just need to define what the short author and short title are supposed to be, biblatex prints them by default.

Code: Select all

\RequirePackage{filecontents}
\begin{filecontents*}{demo.bib}
	@book{is4562000,
		title={Indian Standard Plain and reinforced concrete--code of
		practice (IS 456~:~2000)},
		shorttitle = {IS 456~:~2000},
		author={{Cement and Concrete Sectional Committee, CED 2}},
		shortauthor={{CED 2}},
		location={New Delhi},
		journal={New Delhi},% A book cannot be published
%		in a journal, that doesn't make any sense
		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)},
		shorttitle = {ACI 318-77},
		organization = {American Concrete Institute},
		institution  = {American Concrete Institute},
		author       = {{ACI Committee 318}},
		language     = {English},
		number       = {ACI standard 318-77},%that
%		doesn't seem to be a proper number either
		year         = 1981
	}  
\end{filecontents*}

\documentclass{article}
%\usepackage[autostyle]{csquotes}
%\bibliographystyle{unsrt}%JB: Tht doesn't make any sense with biblatex
\usepackage[backend=biber]{biblatex}
\addbibresource{demo.bib}

\DeclareCiteCommand{\citepublisher}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printlist{publisher}}
{\multicitedelim}
{\usebibmacro{postnote}}

\begin{document}
Just citing the title: (\citetitle{is4562000})

Just citing the title: \citetitle{aci31877}

just citing the author: \citeauthor{is4562000}

just citing the author: \citeauthor{aci31877}
\printbibliography
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Re: How produce subtitle from title in bibliography?

Post by manpreet9112 »

Thankx, Johannes_B

When I tried \shorttitle{is4562000} and \citeshorttitle{is4562000} to write short title, it give error "undefined control sequence. Why I am unable to print short tile?
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Re: How produce subtitle from title in bibliography?

Post by manpreet9112 »

Thank you again,

It was my mistake. There is no need to specify \shorttitle, it will produce automatically from \citetitle.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How produce subtitle from title in bibliography?

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply