私が尋ねたようにここ画像へのリンクを追加しようとしていますが、これはすでに次のように機能します。
\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\let\oldincludegraphics=\includegraphics
\renewcommand{\includegraphics}[2][]{\href{#2}{\oldincludegraphics[#1]{#2}}}
\begin{document}
\noindent\centering\includegraphics[width=\textwidth]{test.pdf}
\end{document}
さて、電話したいのですが
explorer.exe /select,./../path/to/file/file.ext
画像がクリックされたときに、エクスプローラーが開いてそのファイルがハイライト表示されるようにしたいのです。
それを実行する方法はありますか?
編集:
私は見つけたここ「localhost 経由で PHP スクリプトをアクティブ化するリンクを提供する」ためのコード:
function pdflatex($data=''){
if (!empty($_POST)){
$code=$_POST['ascript'];
}
//$f='ZZZ.tex';
//$res = file_put_contents('C:/latex-samples/'.$f, trim($code));
//ob_start();
$t='pdflatex.exe c:/latex-samples/ZZZ.tex 2>&1';
echo '<pre>'.shell_exec($t).'<pre>';
}
しかし、率直に言って、これを自分の目的にどのように使用すればよいのかわかりません。
誰か私にヒントをくれる人はいませんか?
よろしく、ベン