我設法使用我剛剛了解到的現在已過時的 movie15 包使用文檔創建並導入 .u3d 文件(http://mirror.unl.edu/ctan/macros/latex/contrib/movie15/doc/movie15.pdf)和這個有用的頁面(http://rainnic.altervista.org/en/content/embed-3ds-pdf-latex-u3d?language_content_entity=en)。
他設法為 pdf 檢視器取得了 pdf 中顯示的 .png,但該檔案無法顯示 3d 內容。我想在我的論文的印刷版中使用這種方法,此外我想顯示它,因為它將是一個與其他帶有標題的圖形具有相同外觀的圖形。我已經尋找解決方案並嘗試了幾種方法,但沒有找到令人滿意的解決方案。可以提供一份嗎? :-)
編輯:回答評論:我不知道該命令放在哪裡,我正在尋找一種方法來生成類似以下偽代碼的內容(顯然它不是這樣工作的)
text={\begin{figure}
\includegraphics[scale=1.0]{dissabbiatore.png}\caption{Caption of the figure}\label{fig:3d}
\end{figure}},
這是 MWE(如何輕鬆插入它而不在每行都按空格鍵?):
\documentclass[a4paper]{scrartcl}
\usepackage{rotating}
\usepackage{natbib}
\usepackage[3D]{movie15}
\usepackage{hyperref}
\usepackage[UKenglish]{babel}
\begin{document}
Here is the original version from the \href{http://rainnic.altervista.org/en/content/embed-3ds-pdf-latex-u3d?language_content_entity=en}{tutorial}.
\includemovie[poster,
toolbar,
label=pt,
text={\includegraphics[scale=1.0]{dissabbiatore.png}},
3Droo=6.896200246789337,
3Daac=60.000001669652114,
3Dcoo=0.6134188175201416 0.6502023935317993 -0.8552163243293762,
3Dc2c=-0.8354106545448303 0.3235208988189697 -0.44432342052459717,
3Droll=-75.5946486014902,
3Dlights=Hard,
3Drender=SolidOutline]
{\linewidth}{\linewidth}{dissabbiatore_meshlab.u3d}\\
A 3D, schematic model of a horizontal grit chamber. If the Figure does not appear interactive, please enable this function and click on it or use a recent version of \href{http://get.adobe.com/reader}{Adobe Reader}.
I already tried the package caption and the command captionof{figure}{Caption of the figure} resulting in an error and was not able to use the figure environment cause its a floating environment. My figures looks like this:
\begin{figure}
\centering
\includegraphics[width=\textwidth]{dissabbiatore.png}
\caption{Caption of the figure}
\label{fig:label}
\end{figure}
\end{document}
答案1
\captionof
我的問題的解決方案可能是帶有標題包的小型頁面。另請參閱這個問題:小頁下的標題
以下程式碼目前對我有用:
\documentclass[a4paper]{scrartcl}
\usepackage{rotating}
\usepackage{natbib}
\usepackage[3D]{movie15}
\usepackage{hyperref}
\usepackage[UKenglish]{babel}
\usepackage{caption}
\begin{document}
The \href{http://rainnic.altervista.org/en/content/embed-3ds-pdf-latex-u3d?language_content_entity=en}{tutorial} where the idea came from.
\begin{minipage}{\linewidth}
\includemovie[poster,
toolbar,
label=pt,
text={\includegraphics[scale=1.0]{dissabbiatore.png}},
3Droo=6.896200246789337,
3Daac=60.000001669652114,
3Dcoo=0.6134188175201416 0.6502023935317993 -0.8552163243293762,
3Dc2c=-0.8354106545448303 0.3235208988189697 -0.44432342052459717,
3Droll=-75.5946486014902,
3Dlights=Hard,
3Drender=SolidOutline]
{\linewidth}{\linewidth}{dissabbiatore_meshlab.u3d}
\captionof{figure}{Caption of the figure}
\label{fig:3d}
\end{minipage}
\vspace{\baselineskip}
A 3D, schematic model of a horizontal grit chamber. If the Figure does not appear interactive, please enable this function and click on it or use a recent version of \href{http://get.adobe.com/reader}{Adobe Reader}.
\clearpage
\begin{figure}
\centering
\includegraphics[width=\textwidth]{dissabbiatore.png}
\caption{Caption of the figure}
\label{fig:label}
\end{figure}
A 3D, schematic model of a horizontal grit chamber.
\end{document}