Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gnuplot的epslatex终端中的Latex表格输入使边界消失_Latex_Gnuplot_Eps - Fatal编程技术网

gnuplot的epslatex终端中的Latex表格输入使边界消失

gnuplot的epslatex终端中的Latex表格输入使边界消失,latex,gnuplot,eps,Latex,Gnuplot,Eps,假设我有文件table.tex \begin{tabular}{|c|c|} \hline 1 & 2 \\ \hline 3 & 4 \\ \hline \end{tabular} 这基本上是一个有一些数字的2乘2表 我可以这样编译它,并且可以在表的任何一侧看到边框 \documentclass{article} \begin{document} \input{table.tex} \end{document} 现在我有了下面的gnuplot脚本(用4.6.2和4.6.5测

假设我有文件
table.tex

\begin{tabular}{|c|c|}
\hline
1 & 2 \\ \hline
3 & 4 \\ \hline
\end{tabular}
这基本上是一个有一些数字的2乘2表

我可以这样编译它,并且可以在表的任何一侧看到边框

\documentclass{article}
\begin{document}
\input{table.tex}
\end{document}
现在我有了下面的
gnuplot
脚本(用4.6.2和4.6.5测试)

然后我得到了以下结果


换句话说,我的边界消失了。如何解决此问题?

这是
独立模式下
epslatex
终端使用的
最小
文档类的限制。以下工作很好:

主文件
out Main.tex

\documentclass{standalone}
\usepackage{graphicx}
\begin{document}
\input{out}
\end{document}
还有gnuplot脚本

set terminal epslatex solid

set output "out.tex"
set label at 1,1 '\begin{tabular}{|c|c|} \
\hline \
1 & 2 \\ \hline \
3 & 4 \\ \hline \
\end{tabular}'

plot x
set output
system("latex out-main && dvips out-main && ps2pdf out-main.ps")
给予


接近投票人:这是一个
gnuplot
问题,而不是
latex
问题。因此,在我看来,它在这里比在tex.SE上更合适。这种方法的唯一缺点是,在我的例子中,生成的
eps
文件现在具有不同的字体大小。知道这是从哪里来的吗?我的
set terminal epslatex
行中有
font”8
。epslatex终端会忽略所有
font
选项,但组合
独立字体…
。要更改字体大小,必须相应地更改
out main.tex
文件。
set terminal epslatex solid

set output "out.tex"
set label at 1,1 '\begin{tabular}{|c|c|} \
\hline \
1 & 2 \\ \hline \
3 & 4 \\ \hline \
\end{tabular}'

plot x
set output
system("latex out-main && dvips out-main && ps2pdf out-main.ps")