Quantcast
Channel: Highlight labeled lines of code with minted - TeX - LaTeX Stack Exchange
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by muzimuzhi Z for Highlight labeled lines of code with minted

Both \ref and \pageref are not fully expandable, but refcount package provides a \getrefnumber{<label name>} which fully expands to the linked counter value of that <label name>. Hence your...

View Article


Highlight labeled lines of code with minted

I was wondering whether I could use the labeling mechanism explained here to get the line numbers that I want to use for highlighting code via highlightlines in minted.I am imagining something like...

View Article

Browsing all 2 articles
Browse latest View live