Comments (14)
The template already use the AMA
option for the class
which will correctly load the style with natbib
rticles/inst/rmarkdown/templates/sim/skeleton/WileyNJD-v2.cls
Lines 2694 to 2696 in 8dd188a
And sim_article()
defaults to natbib
Line 571 in 8dd188a
However, it seems no one PR a new update of WJD template, so files are clearly out dated. So I can try updating the files included with the package.
To confirm before doing the work, did you try them after downloading on the website ?
Can you share how it should looks like ? I can't see the difference with the document we currently produce
and an online published article https://onlinelibrary.wiley.com/doi/epdf/10.1002/sim.9916
Is this the reference part which has too much spacing ?
i'll see if I can make a PR to test the new version available on website
from rticles.
I did download the zip file with the template (WileyNJDv5_Template.zip), but as I am quite the amateur I do not know where to put these files in order for them to be used.
The output you have generated above appears to be correct as far as I can judge.
However when I knit my document it does not appear to be correct:
An update that would fix this issue for me, would be much appreciated.
from rticles.
However when I knit my document it does not appear to be correct:
You should have the same output as me - I only used the default template for sim_article()
. What is your Rmd document header? Did you tweak some options ?
I'll push a PR with V5 updates, but you will need to adapt your article to it probably.
from rticles.
My header is this (some stuff deleted):
from rticles.
It should be ok. I don't know why you don't ket the correct format. You should check you version.
- Of rticles
- Of the local resources (you can get them by creating a new article from template) required.
- Of pandoc (
rmarkdown::pandoc_version()
) => what is your version ?
By the way, check the indentation of your field in YAML. the screenshot shows that some are not correct.
from rticles.
- My version of rticles is 0.25
- my pandoc is version ‘3.1.1’
I may have messed up my indentation of the header when I removed stuff, but I will give it a look.
I will try and make a new document and see if the problem persists.
How will I get the new updated version?
from rticles.
How will I get the new updated version?
You can install the PR directly
pak::pak("rstudio/rticles#548")
# or
remotes::install_github("rstudio/rticles#548")
This will install the version from the PR.
from rticles.
After having downloaded this and knitting I get the error: ! LaTeX Error: File `WileyNJD-v5.cls' not found.
And when I look in the "WileyNJDv5_Template.zip" file, there is no file called that - there is a "WileyNJDv5.cls" though.
Am I missing something here?
from rticles.
rticles works by providing format functions, but also resources that goes with it. Those resources are bundled in articles but in the same way they are supposed to be used with the original template. This implies that when you update to the new articles versions, you need to update the resources. To do that, you need to create a new template for sim_article()
and then put your article content in the new .Rmd.
There is no other way to update right now. But you experience makes me think of severals improvement we need to do probably
- Prevent this type of error by detecting the outdated resources and error correctly before rendering
- Add a function that would help update resources in an existing article
These improvement won't be made right away, but they can definitely be useful.
from rticles.
Great.
I have it up and running now - thank you very much for the help.
from rticles.
Awesome. So this means the PR works right ?
from rticles.
Actually not, the latex appears to contain some errors, so I rolled back. It may be an issue with my system though.
I tried to install again just now, but the
remotes::install_github("#548") does not appear to work this morning.
from rticles.
The PR has been merged as shown in this issue.
You can now install directly from the repo
pak::pak("rstudio/rticles")
remotes::install_github("rstudio/rticles")
The test of compilation for the tempate Rmd are passing - if there is some other issue. Please open a new one and share what is not working for you. Thanks!
from rticles.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
from rticles.
Related Issues (20)
- rjournal template HOT 2
- Cannot render a document with the arxiv template (pdfTeX error (font expansion): auto expansion is only possible with scalable fonts) HOT 1
- \textit does not work in a caption in bioinfo.cls HOT 1
- Fix CI issues HOT 1
- Use new addition in pre_knit for metadata processing
- Biobliography not formatted correctly in rticles::elsevier_article HOT 17
- Feature request: Support journals from the American Psychological Association (APA)
- Pandoc 3.1.7 new citeproc for LaTeX breaks some formats
- Add a template for Journal of Experimental Biology HOT 2
- Cross-referencing figures in Copernicus template does not work HOT 4
- Release rticles 0.26 HOT 1
- Taylor & Francis Reference Style needs updating HOT 5
- Unexpected behaviours when making tables for copernicus articles HOT 3
- request for a template for a project MUSE journal HOT 1
- PNAS template not knitting :(
- Error in OUP skeleton.Rmd HOT 2
- JOSS template error with bookdown HOT 1
- Copernicus Publications Correspondence Line Bugfix
- Release rticles 0.27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rticles.