Skip to content

commonhaus/pandoc-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pandoc + Emoji filter

Generating documents

Use the shell script to build documents.

docker pull ghcr.io/commonhaus/pandoc-pdf:edge-3
wget https://raw.githubusercontent.com/commonhaus/pandoc-pdf/refs/heads/main/build.sh

./build.sh

# Execute a command in the container
./build.sh sh -c 'ls /data'

# Invoke pandoc with arguments
./build.sh raw --help

Agreements

Note

dirname is the relative path to the file within the commonhaus/foundation repository. It is used by a filter to resolve intra-repository links.

Asset transfer agreement

./build.sh docx \
    -V dirname:./agreements/project-contribution/ \
    -o ./asset-transfer-agreement.docx \
      ./asset-transfer-agreement.md

# There are a few more settings specifically for agreements (vs policies or bylaws):

./build.sh pdf \
    -V dirname:./agreements/project-contribution/ \
    -o ./asset-transfer-agreement.pdf \
    -d /commonhaus/pandoc/agreements-pdf.yaml \
    -M 'title:Asset Transfer Agreement' \
    -M bodyTitle:true \
    ./asset-transfer-agreement.md

Fiscal Sponsorship agreement

./build.sh docx \
    -V dirname:./agreements/project-contribution/ \
    -o ./fiscal-sponsorship-agreement.docx \
      ./fiscal-sponsorship-agreement.md

# There are a few more settings specifically for agreements (vs policies or bylaws):

./build.sh pdf \
    -V dirname:./agreements/project-contribution/ \
    -o ./fiscal-sponsorship-agreement.pdf \
    -d /commonhaus/pandoc/agreements-pdf.yaml \
    -M 'title:Fiscal Sponsorship Agreement' \
    -M bodyTitle:true \
    ./fiscal-sponsorship-agreement.md

Tex configuration

\directlua{luaotfload.add_fallback
   ("emojifallback",
    {
      "NotoColorEmoji:mode=harf;"
    }
   )}
% Setting the main font to IBM Plex Sans
\setmainfont{IBMPlexSans-Regular}[
  Extension      = .otf ,
  BoldFont       = IBMPlexSans-Bold,
  ItalicFont     = IBMPlexSans-Italic,
  BoldItalicFont = IBMPlexSans-BoldItalic,
  RawFeature={fallback=emojifallback}
]

% Setting the monospace font to IBM Plex Mono
\setmonofont{IBMPlexMono-Regular}[
  Extension      = .otf ,
  BoldFont       = IBMPlexMono-Bold,
  ItalicFont     = IBMPlexMono-Italic,
  BoldItalicFont = IBMPlexMono-BoldItalic
]

About

pandoc/latex + custom ctan packages for emoji support

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages