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

Error with end-of-chapter references #281

Open
jmgirard opened this issue Apr 9, 2022 · 1 comment
Open

Error with end-of-chapter references #281

jmgirard opened this issue Apr 9, 2022 · 1 comment

Comments

@jmgirard
Copy link
Contributor

jmgirard commented Apr 9, 2022

The current citation style uses "---" rather than repeating authors on subsequent lines, e.g.,

Bradley, R, and M Terry. 1952. “Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons.” Biometrika 39 (3/4): 324–45.
Breiman, L. 1996a. “Bagging Predictors.” Machine Learning 24 (2): 123–40.
———. 1996b. “Stacked Regressions.” Machine Learning 24 (1): 49–64.

This works great in the references chapter at the end of the book where all references are present. However, it leads to problems in the end-of-chapter reference sections where "---" is used out of context, e.g.,

———. 2001a. “Random Forests.” Machine Learning 45 (1): 5–32.
Davison, A, and D Hinkley. 1997. Bootstrap Methods and Their Application. Vol. 1. Cambridge university press.
Hyndman, R, and G Athanasopoulos. 2018. Forecasting: Principles and Practice. OTexts.
———. 2020. Feature Engineering and Selection: A Practical Approach for Predictive Models. CRC Press.
Schmidberger, M, M Morgan, D Eddelbuettel, H Yu, L Tierney, and U Mansmann. 2009. “State of the Art in Parallel Computing with R.” Journal of Statistical Software 31 (1): 1–27. https://www.jstatsoft.org/v031/i01.
Xu, Q, and Y Liang. 2001. “Monte Carlo Cross Validation.” Chemometrics and Intelligent Laboratory Systems 56 (1): 1–11.

I recommend either rendering the citations per chapter separately (if possible) or choosing a different citation style that makes the authors explicit (even when repeated).

@juliasilge
Copy link
Member

juliasilge commented Apr 10, 2022

We had this problem in SMLTAR as well (it's a bookdown thing) and we fixed it in EmilHvitfeldt/smltar#58

This only applies to the website so we can deal with it later.

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

No branches or pull requests

2 participants