derric / cleanthesis

Clean Thesis is a clean, simple, and elegant LaTeX style (or template) for thesis documents.
http://cleanthesis.der-ric.de/
908 stars 116 forks source link

Add abstract when displaying bibliography #24

Closed alduxvm closed 8 years ago

alduxvm commented 9 years ago

Is there a way to add the abstract in the bibliography??,

for example .bib file:

Automatically generated by Mendeley Desktop 1.14
Any changes to this file will be lost if it is regenerated by Mendeley.

BibTeX export options can be customized via Preferences -> BibTeX in Mendeley Desktop

@inproceedings{Guenard2006,
abstract = {In this paper, we present a control design for the teleoperation of a miniature unmanned aerial vehicle known as an X4-flyer. A simple dynamic nonlinear model for the vehicle, valid for quasi-stationary flight conditions, is derived as a basis for the control design. An attitude control based on information issued from an inertial measurement unit is designed. In order to control the vehicle altitude, an adaptive controller avoiding the ground effects and based on measurements issued from an ultrasonic low cost sensor is designed. In order to compute the altitude velocity, an estimator based on the proposed modelling is used. At the end of the paper, experimental results are presented},
author = {Guenard, Nicolas and Hamel, Tarek and Eck, Laurent},
booktitle = {IEEE International Conference on Intelligent Robots and Systems},
doi = {10.1109/IROS.2006.282432},
isbn = {142440259X},
pages = {3249--3254},
title = {{Control laws for the tele operation of an unmanned aerial vehicle known as an X4-flyer}},
year = {2006}
}
@article{Faille1995,
abstract = {This paper gives a solution for the problem of robust regulation
of a helicopter when a nacelle is hung from it by slings and the nacelle
is either free or connected to an electrical high voltage line. Suitable
frequency weighting functions are proposed in both cases. A commutation
procedure is also used for the transition between these states. The
final control law is tested in a nonlinear simulation},
author = {Faille, D. and van der Weiden, A.J.J.},
doi = {10.1109/CCA.1995.555752},
isbn = {0-7803-2550-8},
journal = {Proceedings of International Conference on Control Applications},
title = {{Robust regulation of a flying crane}},
year = {1995}
}

And I would like to have the abstract in the final pdf... Right now it displays:

screen shot 2015-07-26 at 13 12 17
moewew commented 8 years ago

It is possible to show the abstract field as in Bibliography Style with abstract and numbered references or as in reading.bbx (slightly abridged version)

\DeclareFieldFormat{annotation}{\bibstring{annotation}\addcolon\space #1}
\DeclareFieldFormat{abstract}{\bibstring{abstract}\addcolon\space #1}

\newbool{bbx:annotation}
\newbool{bbx:abstract}

\DeclareBibliographyOption{annotation}[true]{%
  \setbool{bbx:annotation}{#1}}
\DeclareBibliographyOption{abstract}[true]{%
  \setbool{bbx:abstract}{#1}}

\ExecuteBibliographyOptions{abstract}

\renewbibmacro*{finentry}{%
  \ifbibliography
    {\usebibmacro{entrytail}}
    {}%
  \finentry}

\newbibmacro*{entrytail}{%
  \newunit\newblock
  \begingroup
  \def\newblockpunct{\item}%
  \ifbool{bbx:annotation}
    {\usebibmacro{annotation}%
     \newunit\newblock}
    {}%
  \ifbool{bbx:abstract}
    {\usebibmacro{abstract}%
     \newunit\newblock}
    {}%
  \endgroup}

if you want to see the abstract for \fullcites as well use

\renewbibmacro*{finentry}{%
  \usebibmacro{entrytail}%
  \finentry}

instead.

derric commented 8 years ago

@moewew Thx for your help