라텍스 내에서 "cmd"를 호출하세요

라텍스 내에서 "cmd"를 호출하세요

내가 물어본 대로여기, 이미 다음과 같은 방식으로 작동하는 이미지에 대한 링크를 추가하려고 합니다.

\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>';
    }

하지만 솔직히 나는 이것을 내 목적에 맞게 사용하는 방법을 이해하지 못합니다.

누군가 나에게 힌트를 줄 수 있을까요?

최고야, 벤

관련 정보