小编Iai*_*ain的帖子

如何增加LaTeX中两个表之间的空间?

我是LaTeX的新手,而我想要做的就是躲避我.下面,我有两个并排显示的表的代码(这就是我想要的).但他们非常接近,我想在两张桌子之间可能有一英寸.我怎样才能达到这个效果?

     \begin{center}
      \begin{tabular}[t]{ c | c }
       $n$ &$f(n)$ \\ \hline
       1 & 6 \\
       2 & 7 \\
       3 & 6 \\
       4 & 7 \\
       5 & 6 \\
      \end{tabular}
      \begin{tabular}[t]{ c | c c c c c}
       $g$ &  6 &  7 &  8 &  9 & 10  \\ \hline
       1   & 10 & 10 & 10 & 10 & 10  \\
       2   &  7 &  8 &  9 & 10 &  6  \\    
       3   &  7 …
Run Code Online (Sandbox Code Playgroud)

latex

10
推荐指数
1
解决办法
2万
查看次数

如何正确插入图像/图形并使文本"流动"乳胶中的图像/图形?

我一直在努力解决这个问题.我想插入一个图像并让它"接近"讨论它的文本,但是该页面上的文本会在图像周围环绕/流动.

我转换成eps格式的图像.我最初尝试使用图形环境(\ begin {figure} ...),但这只是将图像放在页面的顶部或底部,旁边没有任何文本,使页面的大部分空白.

我做了一些在网上挖掘并确定了'wrapfig'包,它似乎是一个可能的解决方案,但我得到了一系列错误,图像出现在文档的末尾.

错误:


Package wrapfig Warning: wrapfigure used inside a conflicting environment on input line 297.
Package wrapfig Warning: Stationary wrapfigure forced to float on input line 303.
Package wrapfig Warning: Stationary wrapfigure forced to float on input line 306.
Run Code Online (Sandbox Code Playgroud)

其中有几行.

奇怪的是,有一次,在编译之后,图像出现在我想要的地方,然后在下一次它没有.

[大约一分钟左右]我目前的乳胶代码:

\begin{wrapfigure}{r}{0.2\textwidth}[h]
  \begin{center}
    \includegraphics[width=0.18\textwidth]{vec-perp.eps}
  \end{center}
  \caption{A}
\end{wrapfigure}
Run Code Online (Sandbox Code Playgroud)

latex

8
推荐指数
1
解决办法
3万
查看次数

使用 \verbatim 作为宏参数的一部分?

我想在 LaTeX 中做的大多数事情要么很简单,要么很容易在网上找到,但这件事一直困扰着我。

我有一个宏“解决方案”:对每个解决方案应用一些通用格式:

\newcommand\solution[1]{{\\ \\* \bf Solution.}#1\qed \newpage}
Run Code Online (Sandbox Code Playgroud)

到目前为止效果很好,但现在我想包括一张我已经使用“ASCII 艺术”快速完成的绘图,所以我想使用 \verbatim。但它不起作用,它会产生以下错误:

Runaway argument?
...
! File ended while scanning use of \@xverbatim.
Run Code Online (Sandbox Code Playgroud)

从我在“对 LaTeX 的不那么简短的介绍”中读到的内容中,不能以这种方式使用 \verbatim。我认为有更好的方法来做我想做的事情吗?

latex

5
推荐指数
1
解决办法
2121
查看次数

标签 统计

latex ×3