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

some of the code fragments in the JOSS paper are missing new line separators #297

Closed
joethorley opened this issue Jul 30, 2019 · 4 comments

Comments

@joethorley
Copy link

see

distribution(baseline_y) <- poisson(baseline_rates * 8) distribution(epil$y) <- poisson(post_treatment_rates * 2)

vs

subject_mean <- normal(0, 10)
subject_sd <- cauchy(0, 1, truncation = c(0, Inf))

openjournals/joss-reviews#1601 (comment)

@goldingn
Copy link
Member

Huh. I don't see this in the pdf. It seems to have a newline in the source and when I pandoc it locally.

Where are you seeing this issue?

@joethorley
Copy link
Author

Sorry I explained it poorly - it only appears when you try and cut and paste the text into an R console

@goldingn
Copy link
Member

Aah, yeah that makes sense.

I can replicate this with a local build of the pdf. The newline separators are there in the Rmd, md, and tex files, but when I copy-paste from the (local) pdf the line breaks disappear for some lines (I can't spot any obvious pattern for when they disappear). I think that's not unexpected for pdf - it's not really designed to be copy-pasted from.

However I can't replicate the issue with the JOSS pdf. All the newlines are for me when copy-pasting from that one. From (hastily) reading some stackoverflow messages and looking at the whedon build script, it seems like the JOSS latex template uses some options that solve this issue.

@joethorley
Copy link
Author

That's great - I'm happy

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

2 participants