papaja icon indicating copy to clipboard operation
papaja copied to clipboard

Improve typesetting in journal mode

Open crsh opened this issue 7 years ago • 15 comments

The following changes would improve typesetting and implementation of journal mode:

  • [ ] Adjust text and reference indentation (\setlength{\parindent}{0.15in} and \setlength{\parindent}{-0.15in})
  • [ ] Do not include word count on first page
  • [ ] Turn of line numbers by default

crsh avatar Jul 12 '17 17:07 crsh

It would also be nice if

  • [ ] footnotes would be fully displayed

mariusbarth avatar Jul 12 '17 17:07 mariusbarth

Doing some typesetting in jou mode right now. Full width figures across both columns will overlap with text.

Solution: add out.width="\\textwidth" and fig.env="figure*" to knitr chunk

CrumpLab avatar Jul 24 '18 12:07 CrumpLab

Another issue in jou mode is long author lists run across the top of the page with no line break (if the list is too long is just runs off the page).

CrumpLab avatar Jul 24 '18 13:07 CrumpLab

Thanks for the feedback! Proper support for jou mode is currently deferred to a later version of the package, but this kind of information is still very useful.

crsh avatar Jul 25 '18 13:07 crsh

No worries, keep up the fantastic work! I ended up putting things like journal and full citation info into the author note, fine for now. Another little tid-bit to consider adding at some point is support for "public significance" statements, which are now coming out in the JEPs.

CrumpLab avatar Jul 25 '18 13:07 CrumpLab

Doing some typesetting in jou mode right now. Full width figures across both columns will overlap with text.

Solution: add out.width="\\textwidth" and fig.env="figure*" to knitr chunk

Is there an equivalent workaround for tables? Some currently overlap with text in the next column when in jou format.

ekothe avatar Nov 07 '18 05:11 ekothe

Hi Emily, sorry I somehow missed your post. This is discussed further here.

crsh avatar Dec 28 '18 21:12 crsh

Another issue in jou mode is long author lists run across the top of the page with no line break (if the list is too long is just runs off the page).

is there an update or a workaround to this problem?

QuayAu avatar May 15 '19 14:05 QuayAu

@CrumpLab how did you solve the problem with the tool long author list in the header? This kinda blocks us at the moment.

competulix avatar May 15 '19 15:05 competulix

Good question, unfortunately right now I'm not sure. I've been trying to reproduce the problem. For example, I created a new R project, then opened a new papaja template and added a whole bunch of authors. Here's the yaml I used:

---
title             : "The title"
shorttitle        : "Title"

author: 
  - name          : "First Author"
    affiliation   : "1"
    corresponding : yes    # Define only one corresponding author
    address       : "Postal address"
    email         : "[email protected]"
  - name          : "Ernst-August Doelle"
    affiliation   : "1,2"
  - name          : "someone something"
    affiliation   : "1"
  - name          : "someone somethisng"
    affiliation   : "1"
  - name          : "someone somesthing"
    affiliation   : "1"
  - name          : "someone something"
    affiliation   : "1"
  - name          : "someone somethisng"
    affiliation   : "1"
  - name          : "someone sosmething"
    affiliation   : "1"
  - name          : "someone sometshing"
    affiliation   : "1"

affiliation:
  - id            : "1"
    institution   : "Wilhelm-Wundt-University"
  - id            : "2"
    institution   : "Konstanz Business School"

authornote: |
  Add complete departmental affiliations for each author here. Each new line herein must be indented, like this line.

  Enter author note here.

abstract: |
  One or two sentences providing a **basic introduction** to the field,  comprehensible to a scientist in any discipline.
  
  <!-- https://tinyurl.com/ybremelq -->
  
keywords          : "keywords"
wordcount         : "X"

bibliography      : ["r-references.bib"]

floatsintext      : no
figurelist        : no
tablelist         : no
footnotelist      : no
linenumbers       : yes
mask              : no
draft             : no

documentclass     : "apa6"
classoption       : "jou"
output            : papaja::apa6_pdf
---

I set the document class to jou, and then knit...At least for me, it seems that the long author list no longer runs off the page.

Screen Shot 2019-05-15 at 12 53 39 PM

So, now I'm wondering if the problem is fixed (I recently re-installed papaja, so maybe the new version solves the problem). Or, maybe I edited the latex style file, I'll have to do some more digging.

CrumpLab avatar May 15 '19 16:05 CrumpLab

@competulix @crsh @CrumpLab

Well it is not exactly the problem we have. The authors names overflow on the consequent pages not on the first one. Here is a reproducible example:

---
title             : "The title"
shorttitle        : "Title"

author: 
  - name          : "First Author"
    affiliation   : "1"
    corresponding : yes    # Define only one corresponding author
    address       : "Postal address"
    email         : "[email protected]"
  - name          : "Ernst-August Doelle"
    affiliation   : "1,2"
  - name          : "someone something"
    affiliation   : "1"
  - name          : "someone somethisng"
    affiliation   : "1"
  - name          : "someone somesthing"
    affiliation   : "1"
  - name          : "someone something"
    affiliation   : "1"
  - name          : "someone somethisng"
    affiliation   : "1"
  - name          : "someone sosmething"
    affiliation   : "1"
  - name          : "someone sometshing"
    affiliation   : "1"

affiliation:
  - id            : "1"
    institution   : "Wilhelm-Wundt-University"
  - id            : "2"
    institution   : "Konstanz Business School"

authornote: |
  Add complete departmental affiliations for each author here. Each new line herein must be indented, like this line.

  Enter author note here.

abstract: |
  One or two sentences providing a **basic introduction** to the field,  comprehensible to a scientist in any discipline.
  
keywords          : "keywords"
wordcount         : "X"

floatsintext      : no
figurelist        : no
tablelist         : no
footnotelist      : no
linenumbers       : yes
mask              : no
draft             : no

documentclass     : "apa6"
classoption       : "jou"
output            : papaja::apa6_pdf
---

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc

image

QuayAu avatar May 16 '19 09:05 QuayAu

yeah it would be great if you could swith to first author et al. instead of all the names in the header

competulix avatar May 16 '19 09:05 competulix

Here's a work around. You can add a leftheader property into the yaml and give it any names you want:

leftheader        : "first author et al."

I noticed there was a letftheader option for author names in the apa6 class style http://ctan.sharelatex.com/tex-archive/macros/latex/contrib/apa6/apa6.pdf, and it seems to work for me.

CrumpLab avatar May 16 '19 09:05 CrumpLab

Yes, leftheader is an option I implemented a while back for papaja. I could try to automate this for long lists of author names.

crsh avatar May 16 '19 10:05 crsh

niiiice - thank you guys!

competulix avatar May 16 '19 11:05 competulix