-
Notifications
You must be signed in to change notification settings - Fork 522
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
Taylor & Francis Reference Style needs updating #556
Comments
Thanks for opening an issue. It seems indeed there was an update in the templates we can find at : https://files.taylorandfrancis.com/InteractCADLaTeX.zip % interactcadsample.tex
% v1.04 - May 2023
\documentclass[]{interact}
\usepackage{epstopdf}% To incorporate .eps illustrations using PDFLaTeX, etc.
\usepackage{subfigure}% Support for small, `sub' figures and tables
%\usepackage[nolists,tablesfirst]{endfloat}% To `separate' figures and tables from text if required
\usepackage{natbib}% Citation support using natbib.sty
\bibpunct[, ]{(}{)}{;}{a}{}{,}% Citation support using natbib.sty
\renewcommand\bibfont{\fontsize{10}{12}\selectfont}% Bibliography support using natbib.sty But the I can do the update for the template, but still this line would be there. For which journal https://files.taylorandfrancis.com/tf_S.pdf ? maybe they use another template ? It seems this Zip template uses the Chicago style author date (https://files.taylorandfrancis.com/tf_ChicagoAD.pdf) |
v1.04 from May 2023 according to https://files.taylorandfrancis.com/InteractCADLaTeX.zip found at https://www.tandfonline.com/ Related to #556
I have updated to latest file from bundle linked. Please do share any other T&F template that may not be compatible with this one. It was initially added in #218 by @dleutnant and may not cover all the possible Journals |
I received it from the "Journal of Applied Statistics". Thanks! |
So this one: https://www.tandfonline.com/journals/cjas20 From their instruction (https://www.tandfonline.com/action/authorSubmission?show=instructions&journalCode=cjas20) they have other template available at https://files.taylorandfrancis.com/InteractTFSLaTeX.zip This templates does have
and probably other differences like
This bst file does follow : http://www.tandf.co.uk/journals/authors/style/reference/tf_S.pdf So probably those options can help... the templates needs to be adapted to pass those and it should be fine 🤔 Not sure we can do one template for all journals - an author would need to download the resources from the website probably and use them with the rticles template. |
Something does not seem to work ok with You have the PR linked if you want to try and help adapt |
The situation is more complex than described in the present issue. Taylor & Francis provides other templates besides the Chicago author-date (originally include in rticles) and the S template mentioned above. I found the templates listed below, along with the associated ZIP file, provided by T&F. I do not know if this list is exhaustive. The LaTeX sample files
I am aware of issue #321, where the adaptation to the APA style has been discussed. The ideal solution would be to generalize the approach in PR #557. However, besides the appropriate argument for the I could try to propose a PR for this, but I am afraid I konw very little from the internals of rticles. |
Thanks a lot for all this listing. It seems indeed more complex 🤔
Internal is not that hard, and I can help with that or adapt from where you have something working. We don't have a few example though where one article function handle several template... Usually it is one function = one template. So the decision will be about: is this possible to make a single template configurable enough. Example for the latter is
If you spend some time looking at complex journal function we have, it would be a good example to see what is done usually. However, if you have a design in mind, and would know what needs to differ between those templates, I can guide during the PR. Help very welcome on this TBH ! Some hints based on your comments
It seems we need to store all class files in the rticles package, and somehow rename / move it when installing. This is not ideal in current design as usually we have a folder we move to the project without change... So either we have different template with each there class file, or we make an exception with a new design to "install" the right version depending of the template. Or use the right version from the .tex file. Unless we named same with there version number, but this would modify the template .tex file I think For the bibliostyle, this is definitly something that is configurable using R argument, and then pass the variable for the template. In this function for example, we build arguments to pass to the template Lines 20 to 40 in 1aee991
So to me this is the hard part...
Is there a reason they don't use the same ? Is that because template are not up to date and they should use it ? Or should we really maintain version difference ? Thanks a lot |
Thank you for your thorough comments. I may try to propose a PR along the lines you suggested.
I have no idea about the answers to these questions. Perhaps, everything would be fine with the latest version of A very simple way to cope with the problem would be to create separate functions (and separate template directories) for each reference style, namely Another solution would be to allow the specification of which files under A feasible solution would be to add all versions of |
Definitely, but we have a duplication problem for sure. CRAN package size are limited so I need to keep the size of the package under contraints too.
Yes exactly. We are tied by
This would be possible, but the .tex file produced needs to be compatible with the expectation of the journal. I wonder if they would accept modified .tex content like this to comply with our problems ? 🤔 Maybe there is a middle option where could have one template folder with all resource except the class file, and the correct cls file would be copied into directory at render time - right before rendering with pandoc and dependending on the article function used ? Usually we do copy everything at draft building but maybe we can make an exception here, and copy only when used so .cls and .bst as we don't know beforehand which one is needed. I could also see if there is an adjustement without breaking change I could make in |
If you can change |
Any news about this? I need to prepare a manuscript for publication in a Taylor & Francis journal, which uses the InteractAPA style. Is there a simple way to change the template used by |
Waiting for the fix for the issue in question, I got around my problem of using
I admit that it is hacky, but it works for me.™ |
Quarto 1.6 is now release (yesterday) so I am getting back to this package for an update. I'll look at i'll revisit. Though glad you found a solution in the meantime.
I would have expected that the template could be replaced directly
Is this not working ? |
Yes, it does. Thanks! |
Taylor & Francis Reference Style is different from the one provided by rticles::tf_article
The current rticles::tf_article provides the following in the tex file:
\usepackage{natbib}% Citation support using natbib.sty
\bibpunct[, ]{(}{)}{;}{a}{}{,}% Citation support using natbib.sty
However, as per https://files.taylorandfrancis.com/tf_S.pdf it should be simply
\usepackage[numbers]{natbib}
R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621), RStudio 2023.12.0.369
Locale:
LC_COLLATE=English_Canada.utf8 LC_CTYPE=English_Canada.utf8 LC_MONETARY=English_Canada.utf8
LC_NUMERIC=C LC_TIME=English_Canada.utf8
time zone: America/Vancouver
tzcode source: internal
Package version:
base64enc_0.1.3 bslib_0.5.1 cachem_1.0.8 cli_3.6.1 digest_0.6.31
ellipsis_0.3.2 evaluate_0.23 fastmap_1.1.1 fontawesome_0.5.2 fs_1.6.3
glue_1.6.2 graphics_4.3.0 grDevices_4.3.0 highr_0.10 htmltools_0.5.5
jquerylib_0.1.4 jsonlite_1.8.7 knitr_1.45 lifecycle_1.0.4 magrittr_2.0.3
memoise_2.0.1 methods_4.3.0 mime_0.12 R6_2.5.1 rappdirs_0.3.3
rlang_1.1.1 rmarkdown_2.25 rticles_0.25 sass_0.4.7 stats_4.3.0
stringi_1.7.12 stringr_1.5.0 tinytex_0.48 tools_4.3.0 utils_4.3.0
vctrs_0.6.4 xfun_0.39 yaml_2.3.7
By filing an issue to this repo, I promise that
xfun::session_info('rticles')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: