Git Product home page Git Product logo

Comments (3)

davidgohel avatar davidgohel commented on September 22, 2024

Sorry, I am busy actually and not able to focus on that but I'd like to work or help on this later.

from officedown.

alapo avatar alapo commented on September 22, 2024

Hello I have continued to work on this and was curious if it may be possible to create Styles using code from officer.

My current workflow involves downloading the template for the journal and modifying it. All templates from Journals will have slightly different names under "Styles" in Word (e.g., "Affiliations" might be "Author Affiliations") which makes things hard to track and leads to several different versions of template.

If I was able to customize or create Styles it would allow for a reproducible way to maintain templates across journals. You can get a list of styles by reading in a document using In the example below I am following a template for the journal of Neurophotonics which calls for the following styles being applied

img

I know I can create the styles using the following with officer (examples shown for Title, Author Names and Affiliations)
Neurophotonics.docx

title_fp_text(
  color = "black",
  font.size = 16,
  bold = TRUE,
  italic = FALSE,
  underlined = FALSE,
  font.family = "Times New Roman",
  cs.family = NULL,
  eastasia.family = NULL,
  hansi.family = NULL,
  vertical.align = "baseline",
  shading.color = "transparent"
)

authornames_fp_text(
  color = "black",
  font.size = 12,
  bold = TRUE,
  italic = FALSE,
  underlined = FALSE,
  font.family = "Times New Roman",
  cs.family = NULL,
  eastasia.family = NULL,
  hansi.family = NULL,
  vertical.align = "baseline",
  shading.color = "transparent"
)

affiliations_fp_text(
  color = "black",
  font.size = 10,
  bold = FALSE,
  italic = FALSE,
  underlined = FALSE,
  font.family = "Times New Roman",
  cs.family = NULL,
  eastasia.family = NULL,
  hansi.family = NULL,
  vertical.align = "baseline",
  shading.color = "transparent"
)

At the moment, I am unable to create superscript or linebreaks within f_text but I think its a step in the right direction rather than having a bunch of templates.

If you point me in the right direction I can start compiling a list of templates. I think it would be a huge help to scholars. Below is the RMarkdown file I used to test, as well as an image of the output

img

myManuscriptRMD.zip

from officedown.

davidgohel avatar davidgohel commented on September 22, 2024

Sorry, the issue is too old and it's unlikely that I'll be working on new features. Quarto is probably a good candidate for this kind of need.

from officedown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.