Hi,
I made another interesting change to the script. With the hyperref package it
is possible to include links into PDF files. I changed the latex preamble and
the thumbnail function to include links to the original JPG/PNG on the
filesystem. This is just a study which may or may not be useful. Give it a try.
Just replace the preamble and the thumbnail function with this here (actually
only two lines have changed. But for convenience I am posting the full section):
-- begin of section
-- LaTeX preamble
tex_start="\\documentclass[a4paper,10pt]{article}\
\\usepackage{graphicx}\
\\usepackage{fontspec}\
\\usepackage{hyperref}\
\\pagestyle{empty}\
\\parindent0pt\
\\parskip1em\
\\usepackage{geometry}\
\\geometry{a4paper,left=5mm,right=5mm, top=5mm, bottom=5mm}\
\\begin{document}"
-- place a thumbnail
function thumbnail(i,f)
-- i = number of this picture
-- f = fullpath to picture
-- remove leading path to retrieve filename
label = string.gsub(f, ".*/", "")
label = string.gsub(label, "_", "\\_")
-- print thumbnail in minipage
return "\\begin{minipage}[b]{" .. w .. "\\textwidth}\n" ..
" \\includegraphics[width=\\textwidth]{" .. f .. "}\\newline\n" ..
" \\centering{\\href{run:" .. f .. "}{\\texttt{" .. i .. ": " .. label
.. "}}}\n" ..
"\\end{minipage}\n"
end
-- end of section
With this change you can click on the filenames in the PDF file and your
default image viewer opens the original JPG/PNG.
Matthias
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel