To cite KSgeneral in publications use:

Dimitrova DS, Kaishev VK, Tan S (2020). “Computing the Kolmogorov-Smirnov Distribution When the Underlying CDF is Purely Discrete, Mixed, or Continuous.” Journal of Statistical Software, 95(10), 1–42. doi:10.18637/jss.v095.i10.

Corresponding BibTeX entry:

  @Article{,
    title = {Computing the {K}olmogorov-{S}mirnov Distribution When the
      Underlying {CDF} is Purely Discrete, Mixed, or Continuous},
    author = {Dimitrina S. Dimitrova and Vladimir K. Kaishev and Senren
      Tan},
    journal = {Journal of Statistical Software},
    year = {2020},
    volume = {95},
    number = {10},
    pages = {1--42},
    doi = {10.18637/jss.v095.i10},
  }