% call pdflatex example.tex and everything works fine.
% call perl fancy-preview.pl example.tex and no tables will be separated. remove tables and everyhing works fine.
\listfiles
\tracingstats=2
\documentclass[fontsize=11pt,paper=a4,twoside=false,captions=tableheading,hyperref]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
% \usepackage{varioref}
% --ini_file=inifile.ini
\begin{document}
\begin{table}[ht]\centering
\begin{tabular}{c c c c}\\ \hline
0 & 3 & 3 & 2\\ \hline
\end{tabular}
\caption{A}
\label{tab:A}
\end{table}
\ref{tab:A}
\begin{equation}
\label{eq:E}
(r(t)|x'|^{p-2}x')'+c(t)|x|^{p-2}x+\sum_{i=1}^m c_i(t)|x|^{p_i-2}x=e(t),
\end{equation}
\ref{eq:E}
\end{document}
将在单独的线程中添加更多问题。(如何添加 varioref 以及如何将 tooltipanim 与仍然存在的 fancytooltip 文件一起使用)
我不明白为什么无法提取表格。
答案1
采取以下代码并保存为 info.ini
[main]
pdfcrop=pdfcrop
[latex]
environments=theorem,remark,minipage,hoare
snarfenvironments=
a_extra=\AtBeginDocument{\def\punctation#1{}}
b_extra=\AtBeginDocument{\newgeometry{textwidth=4.2in}}
tooltips_envelope_preamble=\usepackage{xcolor,tikz}\def\tooltipwraper#1{\begin{tikzpicture}\node[shading=axis,bottom color=yellow!5,top color=yellow!40,shading angle=-45,draw=black!80, rounded corners=10pt,very thick]{{\fboxsep 6pt \fboxrule 0 pt \fbox{#1}}};\end{tikzpicture}}
采取以下代码:
% call pdflatex example.tex and everything works fine.
% call perl fancy-preview.pl example.tex and no tables will be separated. remove tables and everyhing works fine.
\listfiles
\tracingstats=2
\documentclass[fontsize=11pt,paper=a4,twoside=false,captions=tableheading,hyperref]{scrreprt}
\def\punctation#1{#1}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{geometry}
\begin{document}
\begin{table}[htbp]
\centering
\begin{minipage}{1.0\linewidth}\centering
\mbox{\begin{minipage}{1.0\linewidth}\centering
\begin{tabular}{c c c c}\\ \hline
0 & 3 & 3 & 2\\ \hline
\end{tabular}
\end{minipage}}
\caption{Tabelle 1}\label{tab:meinetabelle}
\end{minipage}
\end{table}
\ref{tab:meinetabelle}
\begin{equation}
\label{eq:E}
(r(t)|x'|^{p-2}x')'+c(t)|x|^{p-2}x+\sum_{i=1}^m c_i(t)|x|^{p_i-2}x=e(t),
\end{equation}
\ref{eq:E}
\end{document}
使用 pdflatex example.tex 和 perl fancy-preview.pl example -ini_file=info.ini 进行编译
应该在 Windows 下按预期工作......