tex问题解决1

CTX文件编译后出现乱码

问题:
1,CTX文件编译后,屏幕提示
The file in the active window has been modified by another application. Do you want to update the window from [filename]?
选择YeS之后, 屏幕上的汉字不见了,代之以"{\CC AB E! 2F}"之类的字符。
原因
为了使用Yap.exe的Inverse Search功能,CTX文件的编译过程使用了特殊的批处理过程。上述问题的产生在于编译过程中发现错误,人为终止了编译进程,导致批处理过程没有执行完毕,这时屏幕上显示的文件是.CTX文件经CCT.EXE处理后得到的(临时的).TEX文件。新版中文插件没有这个问题,编译窗口被关闭后WinEdt自动把光标指向出错位置

解决方案
如果问题已经发生,请用程序UNCCT.EXE将出错文件还原。
为避免发生此类问题,请在编译过程中不要强行关闭编译窗口。当编译发现错误时,屏幕上一般会出现以下信息:
LaTeX Error: ......
.......
?
这时,请输入字符'x',窗口会自动关闭。
如果你强行关闭了编译窗口,当WinEdt提示你是否更新源文件时,请选择“No”。

Yap不能显示插图

请参考以下格式插图:
\documentclass{article}
\usepackage{picture}
\begin{document}
\includegraphics[width=40mm,height=20mm]{lib.jpg}
\end{document}

注意:TeX命令是大小写相关的,图象文件的扩展名应该小写。

Yap在后台运行

再点击一下Yap的图标即可。


2,公式太长怎么换行?
\begin{eqnarray}
\dot{f_1}=a_1f_1(1-\Sigma_{k=1}^3f_k)+c_{12}f_2+c_{13}f_3-c_{21}f_1-c_{31}f_1
\nonumber\\
+a_2f_2(1-\Sigma_{k=1}^3f_k)+c_{21}f_1+c_{23}f_3-c_{12}f_2-c_{32}f_2\\%自动居中
\end{eqnarray}
或用环境
\usepackage{amsmath}

\begin{multline}%自动居左
equ\\
equ
\end{multline}

3、\hspace{-1em}使文档向左移动1em,
\vspace{-1em}使文档向上移动1em。

4、\hfill{……}使文档居右,
5、 ……[h] 使图形居上面靠文字
6、文字居中设置{\centering 文字 \\ },\begin{center} 内容\end{center},公式居中$$公式$$
7、引用方程和定理:标题不带括号的\ref{thm1}和标题带括号的\eqref{thm1}或\eqref{thm1}
 
8、Tex中插图问题解决
?:用smartdraw画图时,如果导出图像中含希腊字母,则在eps中不能显示。
解决方法一:smartdraw --->file--->print-->选择 Adobe reader Pdf,这时的图片在一个A4纸,还不能直接转化成eps图,需先用Adobe reader剪切,去掉图像周边的白色区域,再用 Adobe Acrobat professional将剪切好的pdf图转化为eps。
解决方法二:smartdraw --->file--->print-->选择 Adobe reader Pdf,用GSview32打开打印好的pdf图像,file--->ps to eps ,这样直接会生成剪切好的eps图像。

9、怎么把文献引用标号变成上标,去掉括号


1. \usepackage{overcite}

2. \usepackage[super]{natbib}

3.自定义upcite命令
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
文中使用\upcite

10、我用fancyhdr宏包的命令
\fancyfoot[C]{\kaishu第{\thepage}页\ 共\pageref{unknown}页}
产生页脚,不希望产生页眉,但即使不使用\fancyhead 命令,也在顶部自动生成一条横线。请问高手,这条横线应该如何去掉?
\renewcommand{\headrulewidth}{0pt}

11、%\makeatletter % 去掉页眉和正文间的分隔线。

12、插图命令:

\usepackage[dvips]{graphicx}

\usepackage{subfigure}
% 支持彩色
\usepackage{color}
% eps图像
\usepackage{epsfig}
_____________________________________________________________________________
(1)、
\begin{center}
\begin{tabular}{ccccc}

\epsfxsize=5cm \epsfysize=5cm \epsffile{fig3-1.eps}& \epsfxsize=5cm
\epsfysize=5cm \epsffile{fig3-2.eps}&
\epsfxsize=5cm \epsfysize=5cm \epsffile{fig3-3.eps}& \\

(4.1-1) & (4.1-2) & (4.1-3) \\
\end{tabular}
\end{center}
_____________________________________________________________________________
(2)、
\begin{figure}[h]
\centering
\includegraphics[height=72mm,width=105mm]{figures/assortative1.eps}
\includegraphics[width=105mm]{figures/assortative1.eps}
\caption{三层中心网络的同配系数与各层节点数目的关系.}
\label{assort-co}
\end{figure}
_____________________________________________________________________________
(3)、
\begin{figure}[h]
\centering
\begin{minipage}[t]{.45\linewidth}
\centering
\includegraphics[height=46mm,width=70mm]{figures/fig2-a.eps}\\\vspace{-2mm}
{(a)}
\end{minipage}
~~~~~~
\begin{minipage}[t]{.45\linewidth}
\centering
\includegraphics[height=46mm,width=70mm]{figures/fig2-b.eps}\\\vspace{-2mm}
{(b)}
\end{minipage}\\\vspace{-1mm}
\caption{特征值 $\lambda$ 和耦合强度 $\varepsilon$的关系.}
\label{fig4.2}%\vspace{-3mm}
\end{figure}
_____________________________________________________________________________
(4)、
\begin{figure}[h]
\centering
\includegraphics[scale=0.7]{figures/fig4-a.eps}\qquad
\includegraphics[scale=0.7]{figures/fig4-b.eps}
\caption{另外两种耦合方案的例子.} \label{multilayer2}
\end{figure}

_____________________________________________________________________________
(5)、
\begin{abstract}
...
\end[abstract}
出现的是英文的abstract,

需要加一条命令
\renewcommand\abstractname{摘要}

中英文摘要都要的话,如下

\renewcommand\abstractname{Abstract}

\begin{abstract}
English abstract
\end{abstract}

\renewcommand\abstractname{摘要}

\begin{abstract}
中文摘要
\end{abstract}

_____________________________________________________________________________
(6)、
LaTeX技巧--双栏模式中的单栏摘要
标签: latex单栏双栏杂谈 分类: 页面设置
选自:1-column abstract in 2-column document

原文如下:

One often requires that the abstract of a paper should appear across the entire page, even in a two-column paper. The required trick is:

\documentclass[twocolumn]{article} ... \begin{document} ... % \author, etc \twocolumn[ \begin{@twocolumnfalse} \maketitle \begin{abstract} ... \end{abstract} \end{@twocolumnfalse} ]
Unfortunately, with the above \thanks won’t work in the \author list. If you need such specially-numbered footnotes, you can make them like this:

\title{Demonstration} \author{Me, You\thanks{}} \twocolumn[ ... as above ... ] { \renewcommand{\thefootnote}% {\fnsymbol{footnote}} \footnotetext[1]{Thanks for nothing} }
and so on.

As an alternative, among other facilities the abstract package provides a \saythanks command and a onecolabstract environment which remove the need to fiddle with the \thanks and footnoting. They can be used like this:

\twocolumn[ \maketitle % full width title \begin{onecolabstract} % ditto abstract ... text \end{onecolabstract} ] \saythanks % typeset any \thanks
The memoir class offers all the facilities of abstract.

abstract.sty
macros/latex/contrib/abstract (or browse the directory); catalogue entry
memoir.cls
macros/latex/contrib/memoir (or browse the directory); catalogue entry

_____________________________________________________________________________
(7)、

图片强制定位:
\begin{figure}[!htbp] % 后面的参数 [!htbp] 是保证强制定位的,含义是紧跟图片引用最近地方出现
\begin{center}
\includegraphics[scale=0.5]{Example1.eps} %Example1.eps
\caption{An example for causal \emph{polytree}\cite{RP:1} .}
\label{Example:1}
\end{center}
\end{figure}

相关文档
最新文档