Tag: 胶乳

LaTeX:防止在一段文本中换行

如何防止LaTeX在\texttt{…}或\url{…}文本区域中插入换行符? 里面没有空格,我可以用~代替,这只是打破了符号。 更新 :我不想导致行溢出,我只是想让LaTeX在这些区域之前插入换行符,而不是在它们之间。

如何在Latex中编写URL?

你如何在Latex中编写URL? 下标和其他一切使编译时字体看起来很奇怪。

参考LaTeX中的表格

你怎么能参考一个表格号码,例如你可以得到Table 7 ? 样本数据 Table \ref{table:questions} lorem lorem ipsun. \begin{table} \label{table:questions} \begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |} — cut — \end{tabular} \end{table} 我明白了 Table 2.5 lorem lorem ipsun. 其中2.5是章节编号。

在LaTeX中获取错误“Missing $ inserted”

我尝试在乳胶中写下以下内容: \begin{itemize} \item \textbf{insert(element|text)} inserts the element or text passed at the start of the selection. \item \textbf{insert_after(element|text)} inserts the element or text passed at the end of the selection. \item \textbf{replace(element|text)} replaces the selection with the passed text/element. \item \textbf{delete()} deletes the selected text. \item \textbf{annotate(name,value)} annotates the selected text with the passed name […]

在Latex中将列表分成多个列

希望这很简单:我有一个比较长的列表,其中每个列表项只包含很less的文本。 例如: * 一个 * b * C * d * e * F 我想像这样格式化它: * 广告 * b * e * c * f 我宁愿不创build一个2列表的表,因为我想能够轻松地更改列表,而不必担心更新所有的列。 什么是最好的方式来做到这一点在乳胶?

如何在LaTeX中更改文档字体?

如何将整个文档的字体更改为sans-serif(或其他)?

在乳胶文件中编写代码

如何将代码插入乳胶文档? 有没有像这样的东西: \begin{code} … \end{code} 唯一真正需要的是缩进和固定宽度的字体。 语法突出显示可能是很好的,虽然它肯定不是必需的。

LaTeX源代码在专业书籍中列出

乳胶源代码清单应该如何在已知书籍中产生输出,例如Spring框架? 我已经尝试了与乳胶列表包,但无法生产的东西看起来像下面的那个好。 所以我主要对格式化指令感兴趣,以产生类似于下面的示例(来自Manning的Spring in Action 示例章节 ): 编辑特别是TormodFjeldskår的帮助下面是制作所需外观的完整代码片段: \usepackage{listings} \usepackage{courier} \lstset{ basicstyle=\footnotesize\ttfamily, % Standardschrift %numbers=left, % Ort der Zeilennummern numberstyle=\tiny, % Stil der Zeilennummern %stepnumber=2, % Abstand zwischen den Zeilennummern numbersep=5pt, % Abstand der Nummern zum Text tabsize=2, % Groesse von Tabs extendedchars=true, % breaklines=true, % Zeilen werden Umgebrochen keywordstyle=\color{red}, frame=b, % keywordstyle=[1]\textbf, % Stil […]

将LaTeX变成R图

我想添加LaTeX排版元素的R (例如:标题,轴标签,注释等)的元素使用base/lattice或ggplot2的组合。 问题: 有没有办法让LaTeX使用这些软件包进行绘图,如果是的话,它是如何完成的? 如果没有,是否有额外的软件包来完成这一点。 例如,在Python matplotlib通过text.usetex包编译LaTeX ,如下所述: http : //www.scipy.org/Cookbook/Matplotlib/UsingTex 有没有类似的过程,可以在R产生这样的情节?