bookdown icon indicating copy to clipboard operation
bookdown copied to clipboard

Add support for Hungarian language @aref

Open dmurdoch opened this issue 6 years ago • 6 comments

As mentioned in Issue #671, the babel Hungarian support in LaTeX adds the macro \aref to be like \ref but with support for some special Hungarian grammatical constraints.

This PR takes the changes from my magyarbookdown package and includes them in bookdown. I'm not sure this is an appropriate addition, but I'll let you decide.

dmurdoch avatar Jan 19 '19 21:01 dmurdoch

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 24 '20 18:09 CLAassistant

Thank you! Unfortunately this redefinition wouldn't really solve the problem, as we might need \ref as well. (aref is only need when there is a definite article in the reference text.) If possible, the best would be to introduce \@aref identically to \@ref, with the former translating to aref in LaTeX, the latter to ref. Of course, HTML output also needs its own logic, similar to https://github.com/dmurdoch/magyarbookdown/blob/master/R/replacements.R .

ferenci-tamas avatar Apr 03 '21 08:04 ferenci-tamas

@tamas-ferenci Thanks for the explanation! We'll think more about it.

yihui avatar Apr 07 '21 02:04 yihui