NNPDF / reportengine

A framework for declarative data analysis
https://data.nnpdf.science/validphys-docs/guide.html
GNU General Public License v2.0
1 stars 2 forks source link

add an id= field to figures #31

Closed scarlehoff closed 4 years ago

scarlehoff commented 4 years ago

One thing that I find myself doing a lot with reports is linking to a specific parton or dataset, so having an "id=" field in the figure allows you to do it while still having the rest of the images in the same page.

{www.validphyserver.org}/pdf_report_report.html#pdf_report_pdfnormalize0_basespecs0_pdfscalespecs0_plot_pdfs_s

Zaharid commented 4 years ago

How do you produce the url you want to link to in practice?

Zaharid commented 4 years ago

Shouldn't we also have some sort of anchor link next to the image somewhere?

scarlehoff commented 4 years ago

By look at the id field of the img.

Maybe below, together with .png and .pdf? "anchor" or smt of the sort?

Zaharid commented 4 years ago

By look at the id field of the img.

I mean, it costs way too much to manually compose the URL yourself :D. Hence the need for the anchor link.

Maybe below, together with .png and .pdf? "anchor" or smt of the sort?