LaTeX forum ⇒ BibTeX, biblatex and biberHow an we force one citation to appear at the top of the reference list?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
jjmm
Posts: 11
Joined: Tue Jul 12, 2016 5:23 am

How an we force one citation to appear at the top of the reference list?

Postby jjmm » Fri Oct 19, 2018 3:37 am

I try to make one citation appear at the top of the reference list by adding a field in my bib file:
absorder = 1
absorder = 0
absorder = "//"
absorder = ""
However, any of the above would make that specific citation appear the bottom of the reference list. The only way in my mind is to add "absorder = 1" to that specific citation and "absorder = 100" to all the others.(I've not tried it, but I think it would work) Is there any easier way?

The following is part of my bst code. The full code is attached (in txt).

  1. %%% Create sort.key$: absorder -> author -> year -> order -> month -> title.
  2. FUNCTION {presort.one}
  3. {
  4. bst.no.sort #0 = not
  5. { order.cited int.to.str$ add.zero.to.number " " * }
  6. { "" }
  7. if$
  8. bst.sort.year #0 = not
  9. %% Use year field as the primary sorting key.
  10. { year convert.year * }
  11. 'skip$
  12. if$
  13. bst.sort.entry.type #0 = not
  14. { type$ bst.sort.entry.type.order * " " * }
  15. 'skip$
  16. if$
  17. absorder empty$
  18. { "/// " * }
  19. { bst.notuse.absorder.field #0 =
  20. { absorder "999" =
  21. { "zzz " * }
  22. { absorder add.zero.to.number "000" =
  23. { "/// " * }
  24. { absorder add.zero.to.number * " " * }
  25. if$
  26. }
  27. if$
  28. }
  29. { "/// " * }
  30. if$
  31. }
  32. if$
  33. " " *
  34. sort.label.abb *
  35. " " *
  36. type$ "book" = type$ "inbook" = or
  37. 'author.editor.sort
  38. { type$ "proceedings" =
  39. 'editor.organization.sort
  40. { type$ "manual" =
  41. 'author.organization.sort
  42. 'author.sort
  43. if$
  44. }
  45. if$
  46. }
  47. if$
  48. * " " *
  49. " "
  50. order empty$
  51. { "/// " * }
  52. { bst.notuse.order.field #0 =
  53. { order "999" =
  54. { "zzz " * }
  55. { order add.zero.to.number "000" =
  56. { "/// " * }
  57. { order add.zero.to.number * " " * }
  58. if$
  59. }
  60. if$
  61. }
  62. { "/// " * }
  63. if$
  64. }
  65. if$
  66. month empty$
  67. { * "/// " * }
  68. { month "999" =
  69. { * month add.zero.to.number * "zzz " * }
  70. { month add.zero.to.number "000" =
  71. { * month add.zero.to.number * "/// " * }
  72. { * month add.zero.to.number * " " * }
  73. if$
  74. }
  75. if$
  76. }
  77. if$
  78. title field.or.null sort.format.title
  79. *
  80. #1 entry.max$ substring$
  81. 'sort.key$ :=
  82. % For debug
  83. econ.debug #0 = not
  84. { "``\texttt{" write$
  85. sort.key$ write$
  86. "}''\\" write$
  87. newline$
  88. }
  89. 'skip$
  90. if$
  91. }
Attachments
bsttest.txt
(78.9 KiB) Downloaded 2 times

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 4 guests