由买买提看人间百态

topics

全部话题 - 话题: usepackage
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
T*******n
发帖数: 493
1
The eqnarray environment has bugs in the way it calculates spacing.
Use amsmath instead:
\usepackage{amsmath}
\begin{equation}
\begin{split}
x &= \text{first line} \\
&+ \text{second line, only one equation number}
\end{split}
\end{equation}
or
\begin{multline}
x = \text{this line flushed left} \\
\text{this line flushed right, one equation number}
\end{multline}
If you have many equations and some of them are long, use
split inside gather or align instead of inside equation.
T*******n
发帖数: 493
2
See below. I also think it should be "in the region", not "of the region".
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent determinant $J=|\partial x'_i/\partial x_j|$ does not
vanish at any point in the region
\begin{equation}
J = \biggl|\frac{\partial x'_i}{\partial x_j}\biggr|
= \begin{vmatrix}
\dfrac{\partial x'_1}{\partial x_1}
& \dfrac{\partial x'_1}{\partial x_2}
& \dfrac{\partial x'_1}{\partial x_3} \\[0.75\bigskipamount]
\dfrac{\partial x'_2}{\
s***t
发帖数: 195
3
\usepackage{epigraph}
s***i
发帖数: 600
4
【 以下文字转载自 Linux 讨论区 】
发信人: sfbai (Paul), 信区: Linux
标 题: Latex class file 问题求助
发信站: BBS 未名空间站 (Tue Apr 24 01:25:32 2007)
我自己做了一个Latex 的 class file.
其它东西都搞定了,就一个问题没有解决:
hyperref.
后来发现是\addcontentline
和hyperref的兼容问题。
如果不加这个\usepackage[pdftex,colorlinks]{hyperref},
什么问题都没有,加上这个就是编译不过。
哪位大侠是高手,请多多指教。
我做了一个minium example, 用pdflatex编译:
T*******n
发帖数: 493
5
% try with and without array, look carefully at corners of the table
\usepackage{array}
\setlength{\arrayrulewidth}{1pt}
T*******n
发帖数: 493
6
\usepackage{array}
\newcolumntype{I}{!{\vrule width 1pt}}
\newcommand*{\Hline}[0]{%
\noalign{\global\setlength{\arrayrulewidth}{1pt}}%
\hline
\noalign{\global\setlength{\arrayrulewidth}{0.4pt}}%
}
\newcommand*{\Cline}[1]{%
\noalign{\global\setlength{\arrayrulewidth}{1pt}}%
\cline{#1}%
\noalign{\global\setlength{\arrayrulewidth}{0.4pt}}%
}
\begin{tabular}{Ic|c|cI}
\Hline
x & x & x \\
\cline{1-1}\Cline{2-2}\cline{3-3}
x & \multicolumn{1}{IcI}{x} & x \\
\cline{1-1}\Cline{2-2}\cline{3-3}
g*********h
发帖数: 21
7
but seems tabular also not work
\begin{tabular}{|c|}
%
after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
\begin{figure}

% Requires \usepackage{graphicx}

\includegraphics[width=3in]{./Chapter-3/Figures/fusion_psnr.eps}

\end{figure}
\end{tabular}
d**u
发帖数: 412
8
来自主题: TeX版 - Figure?
I want to insert some figures from Microsoft Visio to the document.
Somebody told me I can insert figure as following:
1) install a generic postscript printer.
2) print the figure from visio to a file using postscript printer.
3) use gsview to open the file and convert it to .eps file.
4)
\begin{figure}
% Requires \usepackage{graphicx}
\includegraphics[width=2in]{fig1.eps}\\
\caption{test}\label{fig1}
\end{figure}
However the figure does not appear in the document.
Anything wrong?
thanks.
s***t
发帖数: 195
9
来自主题: TeX版 - Figure?
did you put \usepackage{graphicx}?
did you use latex or pdflatex?
in what document didn't the figure appear?
can you view the .eps with gsview?
S**I
发帖数: 15689
10
来自主题: TeX版 - 关于Latex插入图表之我见
可以用package ifpdf实现:
usepackage{ifpdf}
...
\ifpdf
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.mps}
\else
\DeclareGraphicsExtensions{.eps}
\fi
\ifpdf 可以自动识别文档是被latex还是pdflatex处理的。
c**z
发帖数: 1014
11
来自主题: TeX版 - 关于Latex插入图表之我见
不错,谢谢乐

可以用package ifpdf实现:
usepackage{ifpdf}
...
\ifpdf
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.mps}
\else
\DeclareGraphicsExtensions{.eps}
\fi
\ifpdf 可以自动识别文档是被latex还是pdflatex处理的。
z*a
发帖数: 1681
12
来自主题: TeX版 - 关于Latex插入图表之我见
usepackage{ifpdf}
...
\ifpdf
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.mps}
\else
\DeclareGraphicsExtensions{.eps}
\fi
---------------------
这个ifpdf命令到底起什么作用?
如果我的tex文档里混合eps和jpg图片
不管pdflatex还是latex都不行吧?
用pdflatex,eps图片位置呈现空白状;
用latex,根本不认jpg
m********7
发帖数: 37
13
来自主题: TeX版 - 关于Latex插入图表之我见
我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure}
m********7
发帖数: 37
14
来自主题: TeX版 - 关于Latex插入图表之我见
我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure}
m********7
发帖数: 37
15
来自主题: TeX版 - 关于Latex插入图表之我见
我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure}
S**I
发帖数: 15689
16
昨天无意间在一篇文章里看到的:
LaTeX默认所有的希腊字母小写都是斜体,要想显示正体的小写希腊字母需要用到
package upgreek:
\usepackage{upgreek}
...
$\upmu$
z*a
发帖数: 1681
17
我知道pdflatex下
usepackage{hyperref}可以。
不过如果用latex生成,应该如何做?
谢谢
T*******n
发帖数: 493
18
来自主题: TeX版 - 请教:如何生成下列matrix
Probably not the best solution, but it does what you want.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\left[
\begin{array}{ccc}
1 & 0 & 0 \\
\vdots & \vdots & \vdots \\
1 & 0 & 0 \\
0 & 1 & 0 \\
\vdots & \vdots & \vdots \\
0 & 1 & 0 \\
0 & 0 & 1 \\
\vdots & \vdots & \vdots \\
0 & 0 & 1
\end{array}
\right]
\mkern-30mu
\begin{array}{c}
\left.\begin{array}{c}
\vphantom{0}\\\vphantom{\vdots}\\\vphantom{0}
\end{array}\right\} n_{\phantom{0}} \\
\left.\begin{array
T*******n
发帖数: 493
19
来自主题: TeX版 - 如何在table里面插入图?

This works for me. Did you forget \usepackage{graphicx}?
What was your error message?
g*********r
发帖数: 124
20
\usepackage{endfloat}
T*******n
发帖数: 493
21
\usepackage{amsmath}
\DeclareMathOperator{\arcsinh}{arcsinh}
\begin{equation}
x = \arcsinh(y)
\end{equation}
l******n
发帖数: 9344
22
来自主题: TeX版 - 问一下bibliography
我用了\usepackage{fancyhdr}来产生header
最后用的
\begin{thebibliography}
\end{thebibliography}
来显示reference
有个问题是我最后显示reference的header不好,是
REFERENCE ******* REFERENCE
这样的(******是我最后一章的header)
REFERENCE那几个字怎么去掉?好像是bibliography自动加德的
T*******n
发帖数: 493
23
来自主题: TeX版 - 请问如何生成这样的矩阵
\documentclass{article}
\usepackage{amsmath}
\makeatletter % required because of the use of \@tempdima
\newcommand*{\toplabel}[4]{%
\settowidth{\@tempdima}{\ensuremath{#1}}%
\makebox[\@tempdima][c]{%
\hss
\ensuremath{%
\makebox[0pt][r]{\ensuremath{\scriptstyle#2}}%
\scriptstyle{#3}%
\makebox[0pt][l]{\ensuremath{\scriptstyle#4}}%
}%
\hss
}%
}
\makeatother
\begin{document}
Here is one way of doing this.
\begin{equation}
%
\begin{array}{r} % matrix of q and q
T*******n
发帖数: 493
24
来自主题: TeX版 - 怎样把公式编号重新计数?
What document class? If article, try either
\appendix
\renewcommand{\theequation}{\thesection\arabic{equation}}
\section{...} % Appendix A
\setcounter{equation}{0}
...
\section{...} % Appendix B
\setcounter{equation}{0}
...
or
\usepackage{amsmath}
...
\appendix
\numberwithin{equation}{section}
\section{...} % Appendix A
...
\section{...} % Appendix B
...
The first method gives A1, A2, B1, B2, while the second method
gives A.1, A.2, B.1, B.2, etc.

..
r********s
发帖数: 1
25
我用hyperref这个package,随后create的pdf文件中,随文注reference序号1,2,3等(
可以连到文末的bibliography)会被一个小box包围.请问怎样去掉那个小边框,但仍保
持hyperlink的功能?
\usepackage{hyperref}
\hypersetup{hyperindex=false, colorlinks=true, linkcolor=blue,
citecolor=blue, urlcolor=blue}
我试着用了上面的command,但还是不行,请问是不是我落掉了什么部分的command?
比较着急,谢谢啦!!!
g*********r
发帖数: 124
26
来自主题: TeX版 - Table of Contents
\usepackage{titletoc}
g*********r
发帖数: 124
27
\usepackage{fancybox,graphicx}
\begin{Landscape}{\paperwidth}{\paperheight}{\rotatebox{90}}
content of Landscape page
\end{Landscape}
g*********r
发帖数: 124
28
\usepackage{url}
s***w
发帖数: 521
29
来自主题: TeX版 - default font
what is the default font setup of latex2e, if no specification/usepackage?
thanks!
i*i
发帖数: 918
30
来自主题: TeX版 - 请问怎么设定行间距?
\usepackage{setspace}
then 2.0
\doublespacing
or 1.5
\onehalfspacing
or any value (3)
\setstretch{3}
c****r
发帖数: 185
31
来自主题: TeX版 - Index的bookmark不对
我用如下命令加入Index。在TOC中Index显示的页码是对的,
但是点击之后指向的实际页码不对。
\usepackage{hyperref,makeidx}
\makeindex
...
\addcontentsline{toc}{chapter}{Index}
\printindex
有什么办法?
i*i
发帖数: 918
32
Post the whole file please. I think you forget \usepackage{graphicx}.
For those who are not familiar with latex, please try lyx. In this case, lyx
will automatically use appropriate packages, and convert figures to
suitable formats if needed (e.g. eps->png if you use pdflatex).
g*********r
发帖数: 124
33
来自主题: TeX版 - Question abt citation
\usepackage{cite}

,4
g*********r
发帖数: 124
34
来自主题: TeX版 - 问一个LATEX的问题
\usepackage{empheq}
\begin{empheq}[left=\empheqlbrace, right=]{align}
a=a \\
b=b \\
c=c
\end{empheq}
g*********r
发帖数: 124
35
来自主题: TeX版 - book里如何公式左对齐?
\usepackage[fleqn]{amsmath}
\makeatletter
\setlength{\@mathmargin}{1em}
\makeatother
g*********r
发帖数: 124
36
\usepackage{amsmath}
\begin{equation}
a=a \tag{$*$}
\end{equation}
g*********r
发帖数: 124
37
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyfoot[C]{\thepage}
T*********r
发帖数: 11175
38
来自主题: TeX版 - SONY READER的TEX TEMPLATE
【 以下文字转载自 Physics 讨论区 】
发信人: TechniColor (坚决服从rourou的领导), 信区: Physics
标 题: 有SONY READER的用户要SHARE一些HEP的文件吗
发信站: BBS 未名空间站 (Tue Aug 14 23:28:15 2007), 转信
我把TASI LECTURE之类的做了一些
http://www.hep.wisc.edu/~wangkai/tmp/minibook/
重新LATEX过
\documentclass[12pt]{article}
\usepackage{geometry}
\special{papersize=90.00mm,120.00mm}
\geometry{paperwidth=90.00mm,paperheight=120.00mm,margin=0.3cm}
\begin{document}
\large
\textbf
另外如果有FIGURE
都设了 width=1\textwidth
t****t
发帖数: 147
39
\usepackage{wrapfig}
u**o
发帖数: 290
40
只想到用
\usepackage{fancyhdr}
\pagestyle{fancy}
可是引用fancyhdr package把每页都加上了header.
如果只想在第一页题目上方加上会议的logo和名称应该怎么办? 多谢高手指点.
g*********r
发帖数: 124
41
用 fancyhdr 作两种不同的页面风格,下面是一个例子:
\documentclass{article}
\usepackage{fancyhdr,graphicx}
\fancypagestyle{first}{%
\fancyhf{}
\lhead{}
\chead{header \includegraphics[width=1cm]{pic.eps}}
% 此处引用 eps 格式的图片,需要先把 jpg 图片转化为 eps 格式
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
}
\fancypagestyle{reminder}{%
\fancyhf{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
}
\begin{document}
\title{Title}
\author{Author
\maketitle
T*******n
发帖数: 493
42
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
A \xrightarrow[]{k_1} B \xrightarrow[]{k_2} C \\
2A \xrightarrow[]{k_3} D
\end{gather}
\end{document}
a**e
发帖数: 5794
43
来自主题: TeX版 - using bibtex in windows?
用TecNicCenter编译时它会通知MikTeX安装所需要的包,或者
MikTeX Settings -> Formats -> LaTeX -> LaTeX contrib
-> natbib
natbib是一个管理BibTeX的包。
把你这段参考文献写到一个bib文件里,比如myref.bib
在你的tex文件preamble部分usepackage{natbib}
%设定格式,optional
\bibliographystyle{plainnat}
\bibpunct{(}{)}{,}{a}{,}{,}
%在文章末尾导入参考文献列表
\bibliography{myref}
b*********n
发帖数: 173
b*********n
发帖数: 173
45
来自主题: TeX版 - 急问一表格问题
\usepackage{multirow}
\begin{tabular}{|c|c|c|p{2cm}|p{2cm}|p{2cm}|c|}
\hline
\multirow{3}{2cm}{} & \multicolumn{2}{c}{} & \multicolumn{3}{|c|}{}& \
multirow{3}{2.5cm}{} \\
\cline{2-6}
& \multirow{2}{1cm}{} & \multirow{2}{1cm}{} & \
multicolumn{2}{|c|}{} & &\\
\cline{4-5}
& & & & & & \\
\hline
&&&&&&\\
\hline
\end{tabular}
Reference:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multirow
http://andrewjpage.com/index.php?/archives/43-Mul
b*********n
发帖数: 173
46
来自主题: TeX版 - 关于references的顺序
\usepackage[sort&compress]{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
TEXT
TEXT
END OF TEXT
\bibliography{../../../bibfolder/bibfile}
Note: A bib file called "bibfile", in a folder called "bibfolder", contains
bib entries. Use "../" to go up one level
b*********n
发帖数: 173
47
来自主题: TeX版 - unkown graphics extension:.eps
Did you have \usepackage{graphicx}? Or you can convert demofirst.eps to a
pdf file.
Reference: http://www.mail-archive.com/t***[email protected]/msg00915.html
T*******n
发帖数: 493
48
来自主题: TeX版 - 在矩阵下面写size
See below. The \mathstrut's are needed so that LaTeX see all three
sets of subscripts as having the same height and set them with the correct
(same) vertical alignment. If you don't put \mathstrut, m*n will be set
slightly higher than m*j and j*n because the "j" has a descender.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\underset{\mathstrut m\times n}{A} =
\underset{\mathstrut m\times j}{B} \times \underset{\mathstrut j\times n}{
X}
\end{equation}
\end{do
p****o
发帖数: 1340
49
u don't need to know the exact measurement. it is recommended to use
setspace package.
\usepackage{setspace}
\doublespacing
\begin{singlespace}
...
\end{singlespace}
T*******n
发帖数: 493
50
来自主题: TeX版 - Ask about \hat over \bar
Try \usepackage{amsmath}
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)