# How to vertically-align number-entries in Scribble HTML bibliographies?

**URL:** <https://racket.discourse.group/t/how-to-vertically-align-number-entries-in-scribble-html-bibliographies/2650>\
**Category:** Questions & Answers\
**Created:** [January 6, 2024, 6:31am UTC](https://racket.discourse.group/t/how-to-vertically-align-number-entries-in-scribble-html-bibliographies/2650 "2024-01-06T06:31:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![encomer](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/encomer/32/280_2.png) [@encomer](https://racket.discourse.group/u/encomer)\
**Post date:** [January 6, 2024, 6:31am UTC](https://racket.discourse.group/t/how-to-vertically-align-number-entries-in-scribble-html-bibliographies/2650/1 "2024-01-06T06:31:18Z")

</div>

When rendering a **scribble HTML document bibliography** (using the **number-style** ), the numbers at each entry are vertically aligned to the center. For example, with the following code:

```scheme
#lang scribble/manual

@require[scriblib/autobib]

@(define-cite
   ~cite citet-id
   generate-bibliography
   #:style number-style)

@title[#:date "" #:version ""]{Scribble doc with bibliography}
@author{E. Comer}

Context. For more information, please consult @~cite[bib-ceran], @~cite[bib-heumann].

@(define bib-ceran
   (make-bib
    #:title "Sample size, power and effect size revisited: simplified and practical approaches in pre-clinical, clinical and laboratory studies"
    #:author "Ceyhan Ceran, et al."
    #:is-book? 'no
    #:date 2021
    #:location (book-location #:publisher "Biochem. Med (Zagreb). 31(1): 010502")
    #:url "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7745163/"
    #:note "Excelente cobertura del tema en el contexto de investigaciones médicas."))

@(define bib-heumann
   (make-bib
    #:title "Introduction to Statistics and Data Analysis: With Exercises, Solutions and Applications in R."
    #:author (authors "Christian Heumann" "Michael Schomaker" "Salabh")
    #:is-book? 'yes
    #:date 2016
    #:location (book-location #:publisher "Switzerland, Springer Int'l Publ.")
    #:url "http://chris.userweb.mwn.de/book/"
    #:note "El link provee: datasets, soluciones a los ejercicios en R, y lista de errores tipográficos del libro. El contenido del texto es accesible vía CONRICyT para las IES con dicho servicio."))

@(generate-bibliography #:sec-title "Bibliografía")

```

We have the following HTML rendering of the bibliography:

### Bibliografía

| [1] | Ceyhan Ceran, et al. Sample size, power and effect size revisited: simplified and practical approaches in pre-clinical, clinical and laboratory studies. Biochem. Med (Zagreb). 31(1): 010502, 2021. [Sample size, power and effect size revisited: simplified and practical approaches in pre-clinical, clinical and laboratory studies - PMC](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7745163/) Excelente cobertura del tema en el contexto de investigaciones médicas. |
| --- | --- |
| [2] | Christian Heumann, Michael Schomaker, and Salabh. Introduction to Statistics and Data Analysis: With Exercises, Solutions and Applications in R. Switzerland, Springer Int’l Publ., 2016. [http://chris.userweb.mwn.de/book/](http://chris.userweb.mwn.de/book/) El link provee: datasets, soluciones a los ejercicios en R, y lista de errores tipográficos del libro. El contenido del texto es accesible vía CONRICyT para las IES con dicho servicio. |

**Question** : _What changes do we need to do in the style, in order to vertically-align the numbers to the top_? (that is [1] in the same line as Ceyhan Ceran, and [2] in the same line as Christian Heumann).

_Thank you very much in advance for your answer_.  
E. Comer  
P. S. _May be a good idea could be, to have the vertically top alignment as the default for the number-style_.

---

<div class="post-metadata">

**Author:** ![encomer](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/encomer/32/280_2.png) [@encomer](https://racket.discourse.group/u/encomer)\
**Post date:** [April 7, 2024, 11:07pm UTC](https://racket.discourse.group/t/how-to-vertically-align-number-entries-in-scribble-html-bibliographies/2650/2 "2024-04-07T23:07:21Z")

</div>

With respect to the issue of **vertically-align the numbers of each entry in the bibliography** , it would be great to have _this style as the default one_.

_Another improvement_ in functionality, concerning the bibliography items, would be to have a parametric option of **#:open-in-new-window** (or the like) for the URL associated with the item.

Thank you very much for sharing your ideas about how to implement the above functionality.  
_Kind regards_,  
EC  
P.S. BTW, the same parametric option of #:open-in-new-window (or the like) could be applied as a default style for the [link](https://docs.racket-lang.org/scribble/section-links.html#%28def._%28%28lib._scribble%2Fmanual..rkt%29._link%29%29) procedure, of the Scribble module, and in this way helping to simplify our Scribble documents.
