PasteRack.org
Paste # 53351
2016-05-25 18:18:40

Fork as a new paste.

Paste viewed 103 times.


Embed:

  1. #lang scribble/sigplan @onecolumn @preprint
  2.  
  3. @(require racket/class
  4.           scriblib/autobib
  5.           scribble/core
  6.           scribble/manual
  7.           setup/main-collects
  8.           scribble/html-properties
  9.           scribble/latex-properties)
  10.  
  11.  
  12. @(define-cite ~cite citet generate-bibliography
  13.    ;; change this to small-number-style if you want the other way
  14.    #:style
  15.    (new
  16.     (class object%
  17.       (define/public (bibliography-table-style)
  18.         (make-style "AutoBibliography"
  19.                     (let ([abs (lambda (s)
  20.                                  (path->main-collects-relative
  21.                                   (collection-file-path s "scriblib")))])
  22.                       (list
  23.                        (make-css-addition (abs "autobib.css"))
  24.                        (make-tex-addition (abs "autobib.tex"))))))
  25.       (super-new))))
  26.  
  27. Some text
  28. @section{intro.scrbl}
  29. @section{a}
  30. @section{b}
  31. @section{c}
  32. @section{e}
  33. @section{f}
  34. @section{g}
  35. @section{h}
  36. @section{i}
  37. @section{j}
  38. @section{k}
  39. @section{l}
  40. @section{m}
  41. @section{n}
  42. @section{o}
  43. @section{p}
  44. @section{q}
  45. @section{r}
  46. @section{s}
  47. @section{s}
  48. @section{s}
  49. @section{s}
  50. @section{s}
  51. @section{s}
  52. @section{s}
  53. @section{s}
  54. @section{s}
  55. @section{s}
  56. @section{background.scrbl}
  57. @section{examples.scrbl}
  58. @section{discussion.scrbl}
  59. @section{friends.scrbl}
  60. @section{related-work.scrbl}
  61. @section{printf0}
  62. @section{printf}
  63. @section{printf2}
  64. @section{conclusion.scrbl}
  65. @section{conclusion.scrbl}
  66. @section{conclusion.scrbl}
  67. @section{conclusion.scrbl}
  68. @section{conclusion.scrbl}
  69. text
  70. @section{conclusion.scrbl}
  71. @generate-bibliography[#:sec-title "References"]

=>