-
Notifications
You must be signed in to change notification settings - Fork 25
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
Inline references don't work #42
Comments
There also used to be a way to embed the generated code from the blg (or was it bbl ?) file in the header. I liked that a lot. We had to turn it all off and revert to explicit bibtex reference files; the changes was (IIRC) due to how RMarkdown and pandoc interact. "It's the hand we're being dealt." There is really nothing much I can suggest here, apart from not using the It is probably fixable (in the more abstract "well all languages are equivalent and Turing-complete" sense) but I don't have time for it, and I am not too bothered by having external .bib files -- I do anyway as like being able to use plain LaTeX as well. |
Actually, the file is not a "suitable test harness" as it fails to enable tint. Doh. Using
with a suitably
works as you'd expect: One weirdness was that on my reasonably current machine (Ubuntu 19.10) the default |
Perhaps my report was a little hurried and has been misunderstood. The code fragment I pointed to has output: in the yaml. This works fine. If I change this to output: It also works fine. However, if I change that line to output: The citations turn into question marks and the bibliography disappears. It was my understanding that tint was quite heavily based on tufte, and so it was likely to be a relatively minor one line breakage somewhere. Obviously if you're not interested in fixing it that's your prerogative - it's your project after all. |
I should add in case it's not clear that I am happily using tint without this feature, so tint is loaded in my environment. I just can't get it to generate a bibliography and citations from inline references, where this works for tufte handout and standard pdf output. Thanks anyway for your great work. |
You assume all RMarkdown styles are interchangeable. They are not. There is parsing code involved. So if
What you have not done is demontrate that |
As I said at the outset, how bibliographic information is passed to (ultimately) We never suggested the style you found would work. I understand that it may have merit in a pure YAML world. That's just not my use case and itch to scratch. I have kept references in bib files for a few decades now. |
Yes that's perfectly true. I did not set out to demonstrate that tintPdf fails at anything. On the contrary, I'm very happy to find it, as it's output is very attractive. I simply saw that it was documented by the core R team that inline references were possible, found that these didn't work in tint as I expected, and brought that to your attention. For now developing a PR myself to fix this is beyond my skills - I have close to none of the necessary expertise. I realise this is pretty niche - most people will happily use an external bib file. Nonetheless, perhaps it would be worth documenting somewhere that this doesn't work, so someone else might avoid the hours of head scratching I've just subjected myself to. Anyway, thanks again for your attention - I'll go back to happily using your work in ways it is intended to function! |
You continue to gloss over the fact that different RMarkdown styles are, well, different. So "documented by the core R team" is doubly wrong. R Core never writes about RMarkdown as that is a (mostly RStudio plus contributors) extension. Second, not documented for this package. To be blunt, you can't walk into a Chevy dealership and complain that is doesn't hold the road like your neighbor's imported sportscar might. These are different cars by different makers. But yes, |
Fair enough. I'll simply respond by saying you continue to suggest I'm complaining when I'm not. I came in to this conversation thinking that it was an oversight that inline references don't do what I expected. I now understand it was my expectations that were at fault. And that's fine. I just wish I'd had an easier way to find that out. Anyway, again, thanks for tint. I'd really better get back to using it. |
Computing is continual learning. I was merely trying to provide feedback for that process. For generic questions of 'how do I ...' or 'Could one not consider ...' maybe StackOverflow is better. Issue tickets are very specifically for 'bug reports' and alike, so the tone and context are different. Don't let that deter you, they are really good for actual bug reports or feature requests. |
This code is a suitable test harness:
https://riptutorial.com/r/example/25031/inline-references
It correctly uses inline references in the yaml to generate citations and a bibliography using tufte handout. However, changing the output to tint::tintPdf results in ? in place of the citations, and no bibliography.
The text was updated successfully, but these errors were encountered: