Git Product home page Git Product logo

apsr's Introduction

APSR Quarto Format

Creating a New Article

To create a new article using this format:

quarto use template christopherkenny/apsr

This will create a new directory with an example document that uses this format.

Using with an Existing Document

To add this format to an existing document:

quarto add christopherkenny/apsr

Then, add the format to your document options:

format:
  apsr-pdf: default

Options

  • word-count: Specify the word count. This can be calculated with a wordcountaddin.
  • runningtitle: a short paper title
  • runningauthor: author names, listed out if less than 4, or First Author et al. if 4 or more.
  • Additional options can be set using the classoption in the header, related to columns, spacing, blinding, and citation generation:
    • twocolumn: Switch to two column for main text
    • singlespace/onehalfspace/doublespace: changes line spacing for main text
    • blind/nonblind: Anonymises authors and affiliations, or not. Default is blind.
      • this option can also be set by making nonblind: true in the header
    • bibtex is the default when no citation style is specified.

Example

Here is the source code for a minimal sample document: template.qmd.

template.qmd

License

This modifies the Overleaf APSR - American Political Science Review Submission Template, available at https://www.overleaf.com/latex/templates/apsr-american-political-science-review-submission-template/fxffppspqczt. The original template is licensed under the Attribution 4.0 International (CC BY 4.0). The Quarto template is licensed under the MIT License

apsr's People

Contributors

christopherkenny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jwbowers rodrodr

apsr's Issues

Longtable error when including table from `kable`

Compilation fails when including a table from kable with this error:

ERROR: 
compilation failed- error
Package longtable Error: longtable not in 1-column mode.

See the longtable package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.364 \begin{longtable}
                       []{@{}lrrr@{}} 

see template.log for more information.

To fix:

change

kableExtra::kable()

to

kableExtra::kable(format = 'latex')

Thanks and a couple of suggestions

Thanks for this and your other awesome journal templates. I did not think we would have so many Quarto template options available for political science journals this quickly. Very exciting!

I just wanted suggest a couple of things for the documentation. First, I was pleasantly surprised to find that the template plays nicely with ggplot and popular table packages that tend to be more html oriented like kableExtra and gt. I think it might be worth including examples of how to incorporate these into your apsr.qmd file since the whole idea behind Quarto is that you can easily integrate your R code and visualizations with your text.

#| label: ggplot_figure
#| fig-cap: My ggplot Scatterplot
#| echo: false
#| message: false

library(ggplot2)

ggplot(mpg, aes(displ, hwy, colour = class)) + 
  geom_point()

ggplot_test

#| label: my_gt_table
#| tbl-cap: "My gt Table"
#| echo: false
#| message: false

library(gt)

head(mtcars) |> gt()

gt_test

Also, I found the readme to be slightly confusing wrt the classoption parameter. It seems like the arguments for classoption are twocolumn, singlespace, doublespace and onehalfspace but the bullet points make it look like blind/nonblind and citation style might also be subsumed under classoption.

Thanks again!

Bolding and justificaiton of title

Not a huge deal, but wanted to note that the bolding and justification of the title in your template looks slightly different than the original Overleaf template.

Here is the pdf produced by the original Overleaf template:

overleaf_template

Here is the one I rendered using your template:

kenny_template

Also can't seem to get the italics around APSR as in the original with:

title: American Political Science Review \emph{(APSR)} Submission Template

Finally, I am noticing here that you are using the level 2 header in your apsr.qmd tutorial but level 1 headers are going to look more like the original...

Address breaking changes in Quarto (works in 1.4.176, broken in 1.4.528)

! Package natbib Error: Bibliography not compatible with author-year citations.
(natbib) Press to continue in numerical citation style

  • Can no longer use table* environments with Quarto in raw LaTeX
    • Quarto now wraps raw latex table in a table environment and moves the captions. Unclear where/why this would be changed.

LaTeX Error: Not in outer par mode.

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.