Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meow-d/453a5546233339377cb1bde415a53876 to your computer and use it in GitHub Desktop.
Save meow-d/453a5546233339377cb1bde415a53876 to your computer and use it in GitHub Desktop.

1. add yaml metadata for pandoc

# metadata for pandoc
title: Computer Systems Architecture individual assignment
subtitle: Comparisn Between Raspberry Pi OS and Fedora Linux
author:
  - 'hfsoahdaos'

# custom LaTeX
header-includes: 

# docx settings
fontfamily: T
pointsize: 12p

# LaTeX settings
documentclass: article
colorlinks: true
toc: true

2. cite using Better BibTeX

manually cite

  • narrative citation - @citation
    • in apa it'll be converted into citation (n.d.)
  • parenthetical citation - [@citation]
    • in apa it'll be converted into (citation, n.d.)1
    • what i usually want

vscode extensions to automatically pick citations from Better BibTeX

3. export using pandoc

using --citeproc

  • download desired csl
  • enable auto export in BetterBibTeX settings
  • export your citations in zotero
    • choose BetterBibTeX as format
  • run command pandoc -s --bibliography=My\ Library.bib --citeproc --biblatex --csl apa.csl ~/nerd-stuff/notes/notes/2023-04-19-20:05:09.md -o paper.docx
    • the original article did not mention --citeproc2

using the Better BibTeX lua filter3

  • doesn't work
  • idk how to make it work so i gave up

4. manually edit document

TODO learn to do these through pandoc to stop manually editing like a peasant

  • add cover page
  • page break
    • i have no idea how to do these two
  • styles
    • the correct way to do this is by creating a templeate (or reference document if exporting to .docx)

ironically i'm not using zotero for the reference here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment