Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use with biblatex #114

Closed
larseggert opened this issue Mar 13, 2017 · 8 comments · Fixed by #247
Closed

Can't use with biblatex #114

larseggert opened this issue Mar 13, 2017 · 8 comments · Fixed by #247
Assignees

Comments

@larseggert
Copy link

Doing

\documentclass[sigconf, natbib=false]{acmart}
\usepackage[backend=biber, style=trad-abbrv]{biblatex}

results in:

(/usr/local/texlive/2016/texmf-dist/tex/latex/biblatex/blx-dm.def)

! LaTeX Error: Command \citename already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.9791 ...d*{\citename}{\blx@citexpunct{citename}}
@larseggert
Copy link
Author

A workaround seems to be:

--- /usr/local/texlive//2016/texmf-dist/tex/latex/acmart/acmart.cls	2017-03-10 00:01:06.000000000 +0100
+++ acmart.cls	2017-03-13 10:46:27.000000000 +0100
@@ -424,8 +424,8 @@
      {\begingroup\NAT@swafalse
        \let\NAT@ctype\@ne\NAT@partrue\NAT@fullfalse\NAT@open\NAT@citetp}%
   \providecommand\newblock{}%
-\else
-  \providecommand\citename[1]{#1}
+%\else
+%  \providecommand\citename[1]{#1}
 \fi
 \def\shortcite#1{\ifNAT@numbers\cite{#1}\else\citeyear{#1}\fi}
 \def\bibliographystyle#1{%

@borisveytsman
Copy link
Owner

I am afraid the problem is not just disabling \citename. The bigger problem is that official ACM bibtex styles create special tags used by metadata tools during publication. Adding biblatex compatibility means writing similar ACM biblatex package.

I will discuss with ACM people whether they want this

@larseggert
Copy link
Author

At least getting rid of the \citename lets me use biblatex at all with the new template. Whether that removes any ACM metadata is something I'll worry about after the paper is accepted...

But I do think that having the ACM template force people to use natbib is not really a great solution, give that it's apparently not being maintained and has seen the last update in 2010.

@borisveytsman
Copy link
Owner

@larseggert please test. Works for me

@larseggert
Copy link
Author

Works here, too

@ncardozo
Copy link

@borisveytsman The fix works for me too, though the first time i try to run bibtex I get a "command \bibhang already defined" Do you know what this problem may be? (If i keep on running it a couple of times it eventually displays the bibliography correctly}

@drt24
Copy link
Contributor

drt24 commented Aug 8, 2017

@ncardozo Do you have something like \documentclass[sigconf,natbib=false]{acmart} ? With that set I only seem to need \let\citename\relax and (before the documentclass) \newcommand{\citestyle}[1]{} to make it work with the version of acmart currently used by Overleaf.

@drt24
Copy link
Contributor

drt24 commented Aug 10, 2017

For the record: style=trad-abbrv does not produce references in anything close to the ACM reference style. I am working on something that approximates it but in the meantime using biblatex with acmart will produce incorrect results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants