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

unknown macro \rq (apostrophe) #14

Open
pierre-haessig opened this issue Sep 12, 2017 · 4 comments
Open

unknown macro \rq (apostrophe) #14

pierre-haessig opened this issue Sep 12, 2017 · 4 comments

Comments

@pierre-haessig
Copy link

I have trouble processing a BibTex file which contains {\rq} macro instead of plain text apostrophes. I believe those macros are inserted automatically by kbibtex, because when I look at the "source view" of kbibtex, these \rq are not visible but replaced by the actual character ’ ("right single quotation mark", which is the same as apostrophe).

bibtex2html outputs the warning message Unknown macro: \rq and this macro is erased in output html file.

I believe the expected behavior would be to replace{\rq} by the html entity ’ (cf. https://en.wikipedia.org/wiki/Apostrophe#Entering_apostrophes)

Example:

@inbook{Multon:2013:TIBE8100,
author = "Multon, Bernard and Aubry, Judica{\"e}l and Haessig, Pierre and {Ben Ahmed}, Hamid",
booktitle = "{Technique de l{\rq}Ing{\'e}nieur}",
month = apr,
pages = "BE8100",
title = "{Syst{\`e}mes de stockage d{\rq}{\'e}nergie {\'e}lectrique}",
year = "2013"

}

This yields a title in html "Systèmes de stockage dénergie électrique" (instead of "...d’énergie...")

versions: I'm using bibtex2html version 1.98, compiled on Thu Oct 27 07:47:01 UTC 2016 from Debian stretch, which is calling BibTeX, Version 0.99d (TeX Live 2016/Debian).

@pierre-haessig
Copy link
Author

as a workaround, thanks to the -m option to load a LaTex macro file, I get the correct behavior with a file containing the following line:

\newcommand{\rq}{’}

@backtracking
Copy link
Owner

backtracking commented Sep 12, 2017 via email

@backtracking
Copy link
Owner

backtracking commented Sep 12, 2017 via email

@MLopez-Ibanez
Copy link

This was fixed in 98d551d

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

No branches or pull requests

3 participants