Giter Site home page Giter Site logo

sitandr / typst-examples-book Goto Github PK

View Code? Open in Web Editor NEW
117.0 117.0 15.0 3.56 MB

Book of educational examples for Typst

Home Page: https://sitandr.github.io/typst-examples-book/book

License: MIT License

JavaScript 38.30% CSS 40.20% Handlebars 21.51%

typst-examples-book's People

Contributors

epicericee avatar leedehai avatar max397574 avatar ntjess avatar orangex4 avatar sebastianjl avatar sitandr avatar stormckey avatar tingerrr avatar ydx-2147483647 avatar

Stargazers

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

Watchers

 avatar  avatar

typst-examples-book's Issues

Link to hayagriva examples

When adding to a bibliography, I often keep a tab open to the example entries in the Hayagriva repository. I've mostly memorised the basics now, but still refer back to the examples from time to time.

I don't suggest copying the examples, but it would be worth linking to them to in this book. I find them really useful and think others would too.

Best practices for splitting large document

Location: no idea, hence this issue

Importance: everyone should split their work :)

Discussion from a conversation on discord, I'v learned that

  1. #include is the current best way to include sub-files like chapter
  2. There are not preprocessing directives so using custom variables must be put in a template.typ

Snippet:
main.typ

#include "ch01-00-intro.typ"
#include "ch01-01-part1.typ"

ch01-00-intro.typ

#import "template.typ": *
#lorem(100)

template.typ

#let pcite =cite.with(form: "prose") 

I feel that this should be expanded to best practices in general but this is the only thing I've found so far :)

Overridden labels in diagraph

Hi, there is a problem in the "Overridden labels" example in Diagraph, you did not include the labels dictionary so there is nothing overridden.

The actual example from the package repo is:

#raw-render(
  ```
  digraph {
    rankdir=LR
    node[shape=circle]
    Hmm -> a_0
    Hmm -> big
    a_0 -> "a'" -> big [style="dashed"]
    big -> sum
  }
  ```,
  labels: (:
    big: [_some_#text(2em)[ big ]*text*],
    sum: $ sum_(i=0)^n 1/i $,
  ),
)

Split long tables in a figure

Location: not sure where, in the table section ?
Importance: tables inside a figure don't split correctly.
table

Snippet:

// Without this, the table fails to split upon several pages
#show figure: set block(breakable: true)
#figure(
table(
  columns: 5,
  [Aligner], [publication], [Indexing], [Pairwise alignment], [Max. read length  (bp)],
  [BWA], [2009], [BWT-FM], [Semi-Global], [125],
  [Bowtie], [2009], [BWT-FM], [HD], [76],
  [CloudBurst], [2009], [Hashing], [Landau-Vishkin], [36],
  [GNUMAP], [2009], [Hashing], [NW], [36]
  )
)
 

table2

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.