How can I make my own name bold in a citation?

Hi, as part of my thesis I have a list of already published results. The issue I have is that I would like to have my own name highlighted in bold. I am the first author for all of these results if that makes things easier. Can I do it in typst or do I need to change the CSL file?

If publication list means bibliography, then use a text show rule.

#let bib = ```yaml
publication:
  type: article
  author:
    - My Name
    - Someone Else
  title: Title
```.text

#show "My Name": strong
#bibliography(bytes(bib), full: true)

image

1 Like

Thanks, I managed to create a custom function and make my own name bold with the following code thanks to your hint:

#let cite-bold(label) = {
  show "My name": strong
  cite(label, form: "full")
}

Then I can do this in my list of publications:

#cite-bold(CiteBiB)

But this is not a publication list/bibliography.

Why not? I would say this is a publication list, but not a bibliography (that’s what I want). I would like to have something similar to this: https://deparkes.co.uk/2015/06/30/latex-thesis-publications-list/

List implies multiple items, but you actually use it for a single item, so the question doesn’t fit the solution.

For separate bibliography lists, you can use alexandria – Typst Universe.

I have four papers, so I would do this:

#cite-bold(CiteBiBPaper1)
#cite-bold(CiteBiBPaper2)
#cite-bold(CiteBiBPaper3)
#cite-bold(CiteBiBPaper4)

I only put a single item as an example. I will check out Alexandria, thanks for the tip!

Why do you need to make them bold individually and not only once? Also, it’s not how labels are constructed.

#[
  #set cite(form: "full")
  #set list(marker: none, body-indent: 0pt)
  #show "My Name": strong
  - @CiteBiBPaper1
  - @CiteBiBPaper2
  - @CiteBiBPaper3
  - @CiteBiBPaper4
]

#let bib = ```yaml
CiteBiBPaper1:
  type: article
  author:
    - My Name
    - Someone Else
  title: Title1
CiteBiBPaper2:
  type: article
  author:
    - My Name
    - Someone Else
  title: Title2
CiteBiBPaper3:
  type: article
  author:
    - My Name
    - Someone Else
  title: Title3
CiteBiBPaper4:
  type: article
  author:
    - My Name
    - Someone Else
  title: Title4
```.text

#show bibliography: none
#bibliography(bytes(bib))

image