General Perspective TF-IDF

1 minute read

Updated:

The content will be published on 30-05-2022.

Over the past few years, our team has been working on a few interrelated research projects about the work of maintaining Free & Open-Source Software (FOSS) projects. For more information about our project, read this blog post we wrote when we first received our research grant from the Ford & Sloan Foundations. Our team is an interdisciplinary mix tackling these issues from qualitative and quantitative perspectives, and many of us have also been maintainers of various FOSS projects:

Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.

In this example we will be using KaTeX

  • Create a partial under /layouts/partials/math.html
  • Within this partial reference the Auto-render Extension or host these scripts locally.
  • Include the partial in your templates like so:



  • To enable KaTex globally set the parameter math to true in a project’s configuration
  • To enable KaTex on a per page basis include the parameter math: true in content files

Note: Use the online reference of Supported TeX Functions

–>

<!–

Examples

Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)

Block math: \(\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }\)

KaTeX