由买买提看人间百态

topics

全部话题 - 话题: usepackage
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
T*******n
发帖数: 493
1
What do you mean by "special"? If you want slanted
capital Greek letters, try
\usepackage{amsmath}
$\varLambda$
T*******n
发帖数: 493
2
来自主题: TeX版 - underline 如何距离字远一点
Try \underline{\strut blah}.
Note the difference between \underline{x}, \underline{y}
and \underline{\strut x} and \underline{\strut y}.
You can also try \usepackage{soul}. If you don't have
it, get it from ctan.org.
T*******n
发帖数: 493
3
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\bar{\bar{A}}$
\end{document}
T*******n
发帖数: 493
4
来自主题: TeX版 - 请问如何给多行公式加框.
If there are no equation number, you can do something like this:
\usepackage{amsmath}
\begin{equation*}
\boxed{%
\begin{gathered}
x = 1 \\ y = 22 \\ z = 333
\end{gathered}
}
\end{equation*}
\begin{equation*}
\boxed{%
\begin{aligned}
x &= 1 \\ y &= 22 \\ z &= 333
\end{aligned}
}
\end{equation*}
\begin{gather*}
\boxed{%
\begin{gathered}
x = 1 \\ y = 2
\end{gathered}
}
\\
\boxed{%
\begin{gathered}
a = 1 \\ b = 2
\end{gathered}
}
\end{gather*}
i***k
发帖数: 15
5
来自主题: TeX版 - 公式编号的问题
可以用cases宏包
\usepackage{cases}
\begin{numcases}{}
\dot{Y_1}=Y_2 & \\
\dot{Y_2}=-2(k_1/M)Y_1-(2/M)F_Y-(1/M)F_T(Y_1) & \\
\dot{Y_3}=Y_4 & \\
\dot{Y_4}=-2(k_2d_1^2/I)Y_3-2(A/I)F_X &
\end{numcases}
i***k
发帖数: 15
6
来自主题: TeX版 - 用Beemer怎么插入EPS图片?
\usepackage{graphicx}?
t**i
发帖数: 688
7
Now I have been able to define a new command \BackgroundText so that I can
put teh desired text in gray into the background. However, how to have it
automatically written once for every page? Currently, I have to call the
command every time I need it.
\usepackage{color, fancybox}
\definecolor{LightGray}{gray}{0.85}
\newcommand{\BackgroundText}{%
\boxput{\rotatebox{45}{\scalebox{5.5}{%
\textcolor{LightGray}{DRAFT}}}}
}

and
k******s
发帖数: 537
8
来自主题: TeX版 - 人多问个latex的问题
\usepackage{amsmath}
b****t
发帖数: 29
9
我按照Beamer User Guide 3.06上面所说,先插入
\usepackage{multimedia}
然后
\begin{frame}
\frametitle{A Movie of IL Distribution}
\movie[width=3cm,height=2cm,poster]{}{cyclic-inventory.mpg}

\end{frame}
但是就是不能编译
现在只能用这个
\href{run:cyclic-inventory.mpg}{Click here to view the movie}
有谁曾经在slide里面直接加Movie麽?分享一下吧
g**k
发帖数: 236
10
我现在贴图都是用.jpg和.png后缀,转成的pdf图像效果很不好,
可是我用.eps后缀的转成pdf都看不到图像
是因为我没安什么软件还是漏掉什么usepackage了?
i*****g
发帖数: 32
11
\usepackage{amssymb,amsmath}
$\overset{\rightharpoonup}{x}$
T*******n
发帖数: 493
12
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\sum_{\substack{abc\\xyz}}
\end{equation}
\end{document}

work.
s********r
发帖数: 54
13
写的文章换成这个字体, 尺寸都变小了. 按照它的说明加上[scaled=xxx]的参数不管用
. 比如
\documentclass[12pt]{article}
\usepackage[scaled=1.5]{xagaramon}
\begin{document}
Hello, World!
\end{document}
大家有人知道怎么回事么?
g*****y
发帖数: 10
14
我没有用caption pachage阿,只用了
\documentclass[aps,preprint,groupedaddress,showpacs,showkeys]{revtex4}
\usepackage{graphics,epsfig}
caption 的问题解决了,但总觉得不完美。另外,table怎么办?就是没有table。
T*******n
发帖数: 493
15
来自主题: TeX版 - 数学公式一问
\usepackage{amsmath}
\left \{ \begin{aligned}...\end{aligned} \right .
\left \{ \begin{alignedat}...\end{alignedat} \right .
T*******n
发帖数: 493
16
来自主题: TeX版 - 数学公式一问
Complete example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{2}
x &=y && +z \\
x_1 &=y_1 && +z_1
\end{alignat}
\begin{equation}
\text{equations} =
\left\{
\begin{alignedat}{2}
x &=y && +z \\
x_1 &=y_1 && +z_1
\end{alignedat}\right .
\end{equation}
\end{document}
T*******n
发帖数: 493
17
\usepackage{amsmath}
\DeclareMathOperator{\sin}{sin} % no super- or subscript limits
\DeclareMathOperator*{\lim}{lim} % will have limits
Using \DeclareMathOperator will ensure correct font and spacing.
T*******n
发帖数: 493
18
Yeah, my example was confusing. I could have written something like
\usepackage{amsmath}
\DeclareMathOperator{\myfunc}{myfunc} % no super- or subscript limits
\DeclareMathOperator*{\mylim}{mylim} % will have limits
c****d
发帖数: 116
19
\usepackage{color}
\textcolor{red}{Whatever...}
?
d****e
发帖数: 251
20
来自主题: TeX版 - how to draw a midline across text?
\usepackage{ulem}, which by default changes the behavior of \emph
\sout{strike out}
T*******n
发帖数: 493
21
来自主题: TeX版 - how to draw a midline across text?
Try \usepackage{soul}, more powerful than ulem, and works better
with line breaks. You can find soul.sty and documentation at
www.ctan.org.
T*******n
发帖数: 493
22
\usepackage{amsmath}
\begin{equation}
\begin{split}
x &= x \\ &+ y \\ &+ z
\end{split}
\end{equation}
Don't use "align" in this case.
"align" is for multiple equations with common alignment,
"equation"+"split" is for breaking one single equation
into multiple lines.
You can use "split" inside "align" to break an equation
that is also aligned with other equations.
T*******n
发帖数: 493
23
来自主题: TeX版 - 公式里不能加引号的问题
In math mode apostrophe (single right quote) gives you prime.
To get actual quotation marks:
\usepackage{amsmath}
\begin{equation}
y=\text{``$x$'' or is it ``x''}
\end{equation}
b*********n
发帖数: 173
24
来自主题: TeX版 - 可不可以改Margin
\usepackage{geometry}
\geometry{left=win,right=xin,top=yin,bottom=zin}
where w and x are the left and right margins, y is the top margin, and z is
the bottom margin.
Reference:
http://www.mackichan.com/index.html?techtalk/494.htm~mainFrame
http://docs.cs.byu.edu/docs/LaTeX/2.php
T*******n
发帖数: 493
25
\usepackage{fancyhdr}
T*******n
发帖数: 493
26
There is one problem with this approach, that you cannot search for
"UAI_math" in the PDF file because LaTeX defines \_ to be a drawn
line, not an _ character taken from a font.
I use this solution when I want the _ to be searchable in the PDF file:
\documentclass{article}
%\usepackage{times,mathptmx} % uncomment if prefer Times font
\DeclareRobustCommand\usfamily{%
\fontencoding{T1}\fontfamily{ptm}\selectfont
}
\DeclareTextFontCommand{\textus}{\usfamily}
\DeclareTextCommandDefault{\textunders
T*******n
发帖数: 493
27
来自主题: TeX版 - 请教俩个问题。

On Linux/Unix maybe "wc"? But this counts blank-separated
words in the entire file.
Try \usepackage{fancyhdr}, and then \thispagestyle{mypagestyle} when
you want a special page style.
I'm not sure how you would count how many words there are on
a page. For sure you would need to modify the output routines
in LaTeX, which means rewritting part of the LaTeX kernel.
T*******n
发帖数: 493
28
来自主题: TeX版 - 请教公式
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\argmin}{argmin}
\begin{document}
In text $\argmin_{x\in X} \{j | g(X_j) \}$ and in displayed equation
\begin{equation}
\argmin_{x\in X} \{j | g(X_j) \}
\end{equation}
\end{document}
T*******n
发帖数: 493
29
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$\blacksquare$
$\square$
\end{document}
T*******n
发帖数: 493
30
\usepackage{amsmath}
\begin{equation}
y=x \tag{12345}
\end{equation}

equation
h********s
发帖数: 105
31
try to us the font "times" like
usepackage{times}
T*******n
发帖数: 493
32
\usepackage{cite}
l*****3
发帖数: 53
33
我的显示为[1,2,3], not [1-3]. I tried to \usepackage{cite}.但是编译不过。
How to fix it?
Thanks.
l*****i
发帖数: 3929
34
下面这两个不一定管用,但是你可以试试。
\usepackage{lscape}
\begin{landscape}
\end{landscape}
or
\begin{sidewaystable}
\end{sidewaystable}
p*****e
发帖数: 310
35
自问自答吧。高手作者以及给我回信了,这里是解决问题的办法:
"Input this into a small LaTeX file that contains \usepackage{pst-eps}.
Enclose the diagram between \begin{TeXtoEPS} ... \end{TeXtoEPS}. Run LaTeX
to
get a dvi file. Then use dvips -Ppdf -G0 -E file -o file.eps"
试了一下,正是我要的效果,希望能对碰到的人有所帮助
n*****d
发帖数: 956
36
\usepackage{setspace}
\doublespacing
This takes care of the main text body. You may need to add \doublespacing in
front of each figure captions and other text parts.
T*******n
发帖数: 493
37
来自主题: TeX版 - 请问引用文献的一个问题
\usepackage{cite}
q******c
发帖数: 16
38
来自主题: TeX版 - 请问引用文献的一个问题
用amsbook documentclass, 可是用\usepackage{cite}后,除了引用方括号内的数字是
黑体,其它的不是。不知道该怎么调整才能让那些数字变成正常字体。
谢谢!
T*******n
发帖数: 493
39
来自主题: TeX版 - 请问引用文献的一个问题
I think you will get boldface citations with or without \usepackage{cite},
am I right?
Try adding this right after \documentclass{amsbook}, before anything else:
\makeatletter
\def\@cite#1#2{{\m@th\upshape\mdseries[{#1}{\if@tempswa, #2\fi}]}}
\makeatother
T*******n
发帖数: 493
40
来自主题: TeX版 - 请问引用文献的一个问题
What version of cite.sty do you have?
I tested versions 3.9 and 4.01 and had no problems.
Are there other packages that you are loading?
Here is what I got:
\documentclass{amsbook}
\begin{document}
\cite{...} %% prints *boldface* 1
\bibliographystyle{amsplain}
\bibliography{...}
\end{document}
\documentclass{amsbook}
\usepackage{cite} %% add this
\begin{document}
\cite{...} %% prints normal 1
\bibliographystyle{amsplain}
\bibliography{...}
\end{document}
\documentclass{amsbook}
\makeatletter %%
q******c
发帖数: 16
41
来自主题: TeX版 - 请问引用文献的一个问题
我的cite.sty version 是 4.01 (Nov 2003).
我试了试你给的例子。
\documentclass{amsbook}
\begin{document}
\cite{...} %% prints *boldface* 1
\bibliographystyle{amsplain}
\bibliography{...}
\end{document
这个是一样的,得到黑体
\documentclass{amsbook}
\usepackage{cite} %% add this
\begin{document}
\cite{...} %% prints normal 1
\bibliographystyle{amsplain}
\bibliography{...}
\end{document}
这个不一样,仍然是黑体
\documentclass{amsbook}
\makeatletter %% add these three lines
\def\@cite#1#2{{\m@th\upshape\mdseries[{#1}{\if@tempswa, #2\fi
t*h
发帖数: 148
42
来自主题: TeX版 - 怎样让参考文献double space?
\usepackage{setspace}
\doublespacing
T*******n
发帖数: 493
43
来自主题: TeX版 - 怎样让下标换行
\usepackage{amsmath}
and then
\int_{\substack{x^2+y^2
A**********e
发帖数: 3102
44
来自主题: TeX版 - dvi转pdf,为什么不见图片
呃。。。 你的 \usepackage{graphics} 挂得是什么参数?

and
b*********n
发帖数: 173
45
来自主题: TeX版 - latex 中的"~"
\usepackage{url}
\url{http://a.com/~b.html}
T*******n
发帖数: 493
46
【 以下文字转载自 Computation 讨论区 】
发信人: TeXnician (毕升), 信区: Computation
标 题: Re: does anyone how to input this symbol in Latex?
发信站: BBS 未名空间站 (Sun Mar 25 13:56:36 2007)
\documentclass{minimal}
\usepackage{stmaryrd}
\let\llbr=\llbracket % shorthand
\let\rrkt=\rrbracket % shorthand
\begin{document}
\begin{equation}
\biggl\llbr\frac{0}{0}\biggr\rrkt
+ \llbr 0 \rrkt^{\llbr 0 \rrkt^{\llbr 0 \rrkt}}
\end{equation}
\end{document}
can
T*******n
发帖数: 493
47
来自主题: TeX版 - underbrace的问题
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\frac{\partial N\left(x,y,t\right)}{\partial t}
% added \vphantom{\bigg|} in next line
% and removed \biggl and \biggr from []
= \underbrace{\vphantom{\bigg|}[- MN]}_{\text{Mortality}} +
\underbrace{D\biggl[
\frac{\partial^2 N\left(x,y,t\right)}{\partial x^2} +
\frac{\partial^2 N\left(x,y,t\right)}{\partial y^2}
\biggr]}_{\text{Diffusion}}
\end{equation*}
\end{document}
T*********r
发帖数: 11175
48
来自主题: TeX版 - 为什么 \neq 会出错呢?
usepackage{amsmath}?
T*******n
发帖数: 493
49
\usepackage{amsmath}
\begin{equation}
\sum_{\text{$i$ is odd}} x_i
\end{equation}
b*********n
发帖数: 173
50
为什么?try the following code.
\usepackage[centertags]{amsmath}
\begin{equation}
H_{R} = \sum_{i=1}^{N} \left( \frac{ \text{Revenue}_{i} } {
\sum_{i=1}^{N} \text{Revenue}_{i} } \right)^2 \nonumber
\end{equation}
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)