{"action":"created","issue":{"url":"https://api.github.com/repos/crsh/papaja/issues/188","repository_url":"https://api.github.com/repos/crsh/papaja","labels_url":"https://api.github.com/repos/crsh/papaja/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/crsh/papaja/issues/188/comments","events_url":"https://api.github.com/repos/crsh/papaja/issues/188/events","html_url":"https://github.com/crsh/papaja/issues/188","id":299963566,"number":188,"title":"Using a LaTeX citation package does not seem work","user":{"login":"crsh","id":2195485,"avatar_url":"https://avatars1.githubusercontent.com/u/2195485?v=4","gravatar_id":"","url":"https://api.github.com/users/crsh","html_url":"https://github.com/crsh","followers_url":"https://api.github.com/users/crsh/followers","following_url":"https://api.github.com/users/crsh/following{/other_user}","gists_url":"https://api.github.com/users/crsh/gists{/gist_id}","starred_url":"https://api.github.com/users/crsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crsh/subscriptions","organizations_url":"https://api.github.com/users/crsh/orgs","repos_url":"https://api.github.com/users/crsh/repos","events_url":"https://api.github.com/users/crsh/events{/privacy}","received_events_url":"https://api.github.com/users/crsh/received_events","type":"User","site_admin":false},"labels":[{"id":115358585,"url":"https://api.github.com/repos/crsh/papaja/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"crsh","id":2195485,"avatar_url":"https://avatars1.githubusercontent.com/u/2195485?v=4","gravatar_id":"","url":"https://api.github.com/users/crsh","html_url":"https://github.com/crsh","followers_url":"https://api.github.com/users/crsh/followers","following_url":"https://api.github.com/users/crsh/following{/other_user}","gists_url":"https://api.github.com/users/crsh/gists{/gist_id}","starred_url":"https://api.github.com/users/crsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crsh/subscriptions","organizations_url":"https://api.github.com/users/crsh/orgs","repos_url":"https://api.github.com/users/crsh/repos","events_url":"https://api.github.com/users/crsh/events{/privacy}","received_events_url":"https://api.github.com/users/crsh/received_events","type":"User","site_admin":false},"assignees":[{"login":"crsh","id":2195485,"avatar_url":"https://avatars1.githubusercontent.com/u/2195485?v=4","gravatar_id":"","url":"https://api.github.com/users/crsh","html_url":"https://github.com/crsh","followers_url":"https://api.github.com/users/crsh/followers","following_url":"https://api.github.com/users/crsh/following{/other_user}","gists_url":"https://api.github.com/users/crsh/gists{/gist_id}","starred_url":"https://api.github.com/users/crsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crsh/subscriptions","organizations_url":"https://api.github.com/users/crsh/orgs","repos_url":"https://api.github.com/users/crsh/repos","events_url":"https://api.github.com/users/crsh/events{/privacy}","received_events_url":"https://api.github.com/users/crsh/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/crsh/papaja/milestones/2","html_url":"https://github.com/crsh/papaja/milestone/2","labels_url":"https://api.github.com/repos/crsh/papaja/milestones/2/labels","id":1198852,"number":2,"title":"First CRAN release","description":"","creator":{"login":"crsh","id":2195485,"avatar_url":"https://avatars1.githubusercontent.com/u/2195485?v=4","gravatar_id":"","url":"https://api.github.com/users/crsh","html_url":"https://github.com/crsh","followers_url":"https://api.github.com/users/crsh/followers","following_url":"https://api.github.com/users/crsh/following{/other_user}","gists_url":"https://api.github.com/users/crsh/gists{/gist_id}","starred_url":"https://api.github.com/users/crsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crsh/subscriptions","organizations_url":"https://api.github.com/users/crsh/orgs","repos_url":"https://api.github.com/users/crsh/repos","events_url":"https://api.github.com/users/crsh/events{/privacy}","received_events_url":"https://api.github.com/users/crsh/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":18,"state":"open","created_at":"2015-07-08T14:22:46Z","updated_at":"2018-05-16T08:45:01Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-02-24T18:54:05Z","updated_at":"2018-05-22T09:37:42Z","closed_at":null,"author_association":"OWNER","body":"As @doomlab [points out](http://www.aggieerin.com/post/citations-in-r-markdown-papaja/), the `citation_package` option of `apa6_pdf` does not seem to work properly. I can reproduce the problem while I can get it to work with the same options with `pdf_document2()`.\r\n\r\n~~~yaml\r\noutput:\r\n  bookdown::pdf_document2:\r\n    citation_package: natbib # biblatex\r\n\r\nbibliography: [\"r-references.bib\"]\r\nbiblio-style: apalike\r\n# biblatexoptions: [backend=biber]\r\n~~~~\r\n\r\nIt may have to do with the fact that `pandoc-citeproc` is somehow applied although `citation_package` is specified."},"comment":{"url":"https://api.github.com/repos/crsh/papaja/issues/comments/390927897","html_url":"https://github.com/crsh/papaja/issues/188#issuecomment-390927897","issue_url":"https://api.github.com/repos/crsh/papaja/issues/188","id":390927897,"user":{"login":"crsh","id":2195485,"avatar_url":"https://avatars1.githubusercontent.com/u/2195485?v=4","gravatar_id":"","url":"https://api.github.com/users/crsh","html_url":"https://github.com/crsh","followers_url":"https://api.github.com/users/crsh/followers","following_url":"https://api.github.com/users/crsh/following{/other_user}","gists_url":"https://api.github.com/users/crsh/gists{/gist_id}","starred_url":"https://api.github.com/users/crsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crsh/subscriptions","organizations_url":"https://api.github.com/users/crsh/orgs","repos_url":"https://api.github.com/users/crsh/repos","events_url":"https://api.github.com/users/crsh/events{/privacy}","received_events_url":"https://api.github.com/users/crsh/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T09:37:42Z","updated_at":"2018-05-22T09:37:42Z","author_association":"OWNER","body":"> First time I ran it I got an error, but I realized it was because the name of the .bib file had an _ in it, which was being escaped, and therefore, it couldn't find the file. So, I changed q_bib.bib to qbib.bib and that fixed it.\r\n\r\nYes, that's a good point. These sorts of things will start coming up when you start to move further into LaTeX territory...\r\n\r\n> Second, then it knitted but didn't really do what was expected citation wise - it gave me chicago style and didn't fix the citations in the abstract.\r\n\r\nInteresting. The default citation-style in biblatex is numeric---that's what I'm getting. If you want something that looks like APA style you'll need to specify this. There are different ways of doing this; I would recommend the following approach:\r\n\r\n~~~yaml\r\nbiblio-style      : \"apa\"\r\nlang              : \"en-EN\" # Optional, added for clarity\r\nheader-includes:\r\n  - \\DeclareLanguageMapping{english}{english-apa}\r\n\r\noutput:\r\n  papaja::apa6_pdf:\r\n    citation_package: biblatex\r\n~~~\r\n\r\nYou don't need to specify `lang` but this is how it is used as of a recent `pandoc` version. `en-EN` is converted to `english` and inserted into the preamble of the document. Similarly, if you want, say, British english you would have to adapt the above as follows:\r\n\r\n~~~yaml\r\nlang              : \"en-GB\"\r\nheader-includes:\r\n  - \\DeclareLanguageMapping{british}{british-apa}\r\n~~~\r\nAs I seem to remember this whole issue was motivated by the need to disable author-disambiguation. To achieve this you can additionally add\r\n\r\n~~~yaml\r\nbiblatexoptions   : \"uniquename=false\"\r\n~~~\r\n\r\nNow, for the abstract, this is unfortunate behavior of `pandoc` but thanks to the text-references feature in `bookdown` it can be addressed. In the YAML front matter specify\r\n\r\n~~~yaml\r\nabstract: (ref:abstract)\r\n~~~\r\n\r\n`(ref:abstract)` is a placeholder for text that you can now define in the body of the R Markdown document (e.g., right after the YAML front matter):\r\n\r\n~~~\r\n(ref:abstract)\r\nTyping is a ubiquitous daily action for many individuals; yet, research on how these actions have changed our perception of language is limited. One such influence, deemed the QWERTY effect, is an increase in valence ratings for words typed more with the right hand on a traditional keyboard [@Jasmin2012]. Although this finding is intuitively appealing given both right handed dominance and the smaller number of letters typed with the right hand, extension and replication of the right side advantage is warranted. The present paper reexamined the QWERTY effect within the embodied cognition framework [@Barsalou1999] and found that the right side advantage is replicable to new valence stimuli, along with findings supporting embodied cognition. Further, when examining expertise, right side advantage interacted with typing speed and typeability (i.e., alternating hand key presses or finger switches) portraying that both skill and our procedural actions play a role in judgment of valence on words.\r\n~~~\r\n\r\nThis text will now be processed as expected by LaTeX and then inserted in the abstract field, if you will."}}
{"actor":{"display_login":"crsh"}}