Code Monkey home page Code Monkey logo

Comments (3)

k4rtik avatar k4rtik commented on June 10, 2024

Using pandoc, I was able to get to the attached PDF using the following options (after some manual wrangling of markdown header levels):

PlatiniumM1Pro in language/Specifications/Language on  main [?]
❯ for f in *.md */*.md; do cat $f; echo; done | cat > spec.md
❯ pandoc spec.md --pdf-engine=xelatex -V mainfont="TeX Gyre Pagella" -V monofont="Fira Code" -V linkcolor:blue --toc --highlight-style tango -V geometry:margin=2.5cm -f gfm -o spec.pdf

PDF: spec.pdf
MD: spec.md

I found the following helpful:

  1. https://learnbyexample.github.io/customizing-pandoc/
  2. https://pandoc.org/MANUAL.html

from qsharp-language.

k4rtik avatar k4rtik commented on June 10, 2024

To-dos:

  • Syntax highlighting for Q# code
  • Add a title page or title on the front page
  • Include grammar explicitly, instead of just links
  • Automation of PDF generation, so it doesn't fall out of sync with this repo
  • Highlight [!NOTE]s in a visually distinct manner, currently they are just shown as block quotes.
  • Ensure that long tables wrap properly: one (pg. 21) and two (pg. 36--37)
  • switch to local links instead of linking to GitHub pages.

from qsharp-language.

k4rtik avatar k4rtik commented on June 10, 2024
  • Ensure that long tables wrap properly: one (pg. 21) and two (pg. 36--37)

This is solved if instead of -f gfm, we use the deprecated -f markdown_github (see jgm/pandoc@eb8aee4), ie:

❯ pandoc spec.md --pdf-engine=xelatex -V mainfont="TeX Gyre Pagella" -V monofont="Fira Code" -V linkcolor:blue --toc --highlight-style tango -V geometry:margin=2.5cm -f markdown_github -o spec.pdf
[WARNING] Deprecated: markdown_github. Use gfm instead.

Updated spec.md and spec.pdf (44 pages).

from qsharp-language.

Related Issues (20)

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.