Latex PDF building?

This afternoon, I managed to get my Ruby gem Verku to work, which converts Markdown to PDF via LaTeX. This is in Circle 2.0

jobs:
  build:
    machine:
      pre:
        - sudo apt-get install texlive-xetex
    steps:
      - checkout
      - run:
          name: Install Georgia
          command: 'echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections; sudo apt update && sudo apt -y install ttf-mscorefonts-installer'
      - run:
          name: Install Texlive
          command: 'sudo apt update && sudo apt install texlive texlive-xetex texlive-fonts-extra texlive-latex-extra texlive-plain-extra'
      - run:
          name: Install Verku
          command: 'gem install verku'
      - run:
          name: Create pdf.
          command: |
            verku pdf;
            mkdir /tmp/artifacts;
            cp -R builds/* /tmp/artifacts/.

      - store_artifacts:
          path: /tmp/artifacts
1 Like