TransWikia.com

How do you use trackchanges with a citation in a journal template

TeX - LaTeX Asked by jwrudn on January 19, 2021

Since I originally posted this, I learned that trackchanges has a known bug in dealing with citations. Some workarounds are given at

workarounds

The one that worked for me was using protect

I am trying to use trackchanges to make revisions in a manuscript with a journal template and having trouble with citations. If I use

documentclass{article}
usepackage[inline]{trackchanges}
begin{document}
Remove this reference
remove{
This is a sentence with a reference
cite{Ells2013}
Will it be removed?
}
This is the end.
end{document}

I get the error "! Argument of @citex has an extra }." And I get the same error if I use the journal document class. If I add extra brackets as suggested in the thread ; i.e. {cite{Ells2013}}, it runs and compiles successfully. If, however, I use the journal template

documentclass[draft]{agujournal2019}
usepackage{soul}
usepackage[inline]{trackchanges}
begin{document}
Remove this reference
remove{
This is a sentence with a reference
{cite{Ells2013}}
Will it be removed?
}
This is the end.
end{document}

I get the error "! Package soul Error: Reconstruction failed.

See the soul package documentation for explanation"
Looking at the agujournal2019 class file was way beyond me and I could not understand the soul package documentation. Does anyone have some suggestions?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP