Getting Started with Typst - Some Basics (S01E02)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ •

  • @bkarim7349
    @bkarim7349 14 днів тому

    Thank you very much.very clear and very useful

  • @MaxJM711
    @MaxJM711 7 місяців тому +3

    This couldn't have come at a better time! I'm thinking about using Typst to write my thesis, and this is exactly what I needed, awesome vid man!

  • @WaynsEthanEdwards
    @WaynsEthanEdwards 5 місяців тому +2

    Nicely done. Well structured and informative...
    Great video!

    • @BamDone
      @BamDone  5 місяців тому

      Much appreciated!

  • @nyverinorlyth9555
    @nyverinorlyth9555 8 місяців тому +1

    Great work, will be sharing this around

  • @gorkalandaburu23
    @gorkalandaburu23 7 місяців тому +1

    Great intro video. Thanks!

  • @roku1
    @roku1 7 місяців тому +6

    Great video. p.s. Instead of "upright(d)x" in the integral, use "dif x". The former doesn't produce the correct spacing.

    • @BamDone
      @BamDone  7 місяців тому +4

      Dang! Wish I saw this before I recorded the next video. That’s awesome. I updated the upcoming example online. But the video is already scheduled. This is a good way to do it. Thanks for the comment!

  • @thebigc1462
    @thebigc1462 7 місяців тому +2

    Thank you for this video! Great first access for someone more used to LaTeX. Are you planning on making any more Typst tutorial videos? Thanks

    • @BamDone
      @BamDone  7 місяців тому +4

      Yes. I will be releasing more soon. Stay tuned. I have more planned. I think I can get one made every three weeks (that’s my goal at least).

    • @thebigc1462
      @thebigc1462 7 місяців тому +1

      @@BamDone Great, thanks a lot for your service

  • @nithin.m2675
    @nithin.m2675 4 місяці тому

    i want to reference also as Equation (1) in the inline text. How can this be done?

    • @BamDone
      @BamDone  4 місяці тому

      @@nithin.m2675 as of right now, Typst only supports referencing an equation that is in block mode and not in-line. You would have to manually type the numbers and references for in-line equations.

    • @nithin.m2675
      @nithin.m2675 4 місяці тому

      @@BamDone Thanks. I mean block equation only. But i want parenthesis around equation number while refering to block equation in an inline text too

    • @BamDone
      @BamDone  4 місяці тому

      ​@@nithin.m2675 I think I understand. The way to make the block numbering have that format is to set the numbering style and supplement:
      set math.equation(numbering: "(1)", supplement: [Eq.])
      The way to adjust the in-line reference to that equation to be in parenthesis, (1) for example. Takes a little bit of scripting:
      // Configure appearance of equation references
      show ref: it => {
      let eq = math.equation
      let el = it.element
      if el != none and el.func() == eq {
      // Override equation references.
      link(
      el.label,
      [#el.supplement #numbering(
      el.numbering,
      ..counter(eq).at(el.location())
      )]
      )
      } else {
      // Other references as usual.
      it
      }
      }
      This will make the code pre-pend with the suppliment, add the counter for the equation number in parenthesis. If you don't want the supplement "Eq." you can delete it and and no supplement will be used.
      hope this helps!

    • @nithin.m2675
      @nithin.m2675 4 місяці тому

      @@BamDone one last thing , in line 9, the error says variable el not recognised

  • @adrian86.
    @adrian86. 7 місяців тому +1

    Gracias por tu tiempo amigo. Quisiera saber si hay una forma en typst para alterar la fuente sólo de los digitos numericos.
    #set text(font: "TeX Gyre Heros")
    #show math.equation: set text(font: "TeX Gyre Schola Math")
    $
    sum_(k=sans(0))^n k
    &= sans(1) + ... + n^sans(2) \
    &= (n(n+sans(1))) / sans(2)
    $
    como podras ver donde encuentro un digito númerico tengo que colocarle la función sans([content]), y quisiera saber
    si puedo crear una función para que reconosca los digitos númericos y los ponga en sans-serift.

    • @BamDone
      @BamDone  7 місяців тому +1

      I will have to look into this. Right now, I’m not sure it’s possible to have separate fonts for numbers and equations; but, I’ll have to look into it more.