GeneralPass along number from \citefield to FPeval

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sandro steinbach
Posts: 1
Joined: Mon Jan 27, 2020 8:23 pm

Pass along number from \citefield to FPeval

Post by sandro steinbach »

Hi,

I try to pass along a number from bib file to eval with fp package. I want to have the sum of several numbers reported in my tex file.

---

\documentclass{article}[11pt]
\usepackage[nomessages]{fp}
\usepackage[style=authoryear,backend=bibtex]{biblatex}
\addbibresource{test}

\begin{document}
\citefield{G19-1}[number]{volume}

\FPeval{\result}{clip({\citefield{G19-1}[number]{volume}+\citefield{G19-2}[number]{volume})}%
$\$\result$

\bibliographystyle{my-apalike}
\nobibliography{test}
\end{document}

---

Unfortunately, fp seems not to evaluate the function.

Any idea of how I get this program running?

Thank you for taking the time.

Best regards,

Sandro

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply