a*****r 发帖数: 443 | 1 谢谢您的传道授业解惑
我还有一个问题
就是使用supertabular的时候
和我的IEEEtran的sty冲突了
因为如果单单使用supertabular,在article style情况下,table的caption是居中的,
但是当我使用IEEEtran代替article的style的时候,table的caption变成靠左对齐了,
请问这种情况如何解决呢?再次感谢!!
\documentclass{IEEEtran}
%\documentclass{article}
\usepackage{supertabular}
\begin{document}
\begin{center}
\tablecaption{Talbe}\footnotesize
\begin{supertabular}
{|c|} \hline $1$\\\hline
\end{supertabular}
\end{center}
\end{document} |
|
T*******n 发帖数: 493 | 2 You need to tell us which TeX distribution you are using, i.e., MikTeX,
teTeX, fpTeX, or something else.
LaTeX searches for files in a database, not on disk, so after you install
a package, you need to update the database. For teTeX, run "texhash";
for MikTeX, go through the MikTeX menus and look for "Refresh/update
filename database"; for fpTeX, look for "Rebuild ls-R filename databases".
For some distributions the command "mktexlsr" also works.
files.
.tex located. Otherwise, latex doesn't k |
|
p*****u 发帖数: 310 | 3 I use MikTex and Winedt. I have same problems too.
Because |
|
J*******r 发帖数: 379 | 4 reinstall your miktex and install a complete package,
never need to worry about a new package, almost. |
|
q**c 发帖数: 179 | 5 hi ask a question being driving me crazy.
for citations I often disabled it when
using natbib.sty.
sometimes when I made a mistake whey typing,
it would automatically switch to numerical
citation. I had to go back searching for errors.
but now I want to use numerical citation,
it just didn't make a number sequence in
the reference, no matter how I tried.
any possible places I should adjust?
any suggestions?
the number sequence I mean
for example:
[1] alex, a., bob, b., ....
[2] cox, c., dude, d. |
|
f******n 发帖数: 176 | 6 i was using Seminar.sty to prepare slides, and want to change to prosper,
could anyone tell me a good resource about it? Sample tex code or website?
Thanks! |
|
w******s 发帖数: 35 | 7 终于搞定了~~ 多谢版主~~!
我用的是MikTex,在按Guide里面的说明把slides转成article时候,没有碰到任何问题。
但是,转成handout的时候,遇到一点麻烦,Guide建议用:
\documentclass[handout]{beamer}
\usepackage{pgfpages}
\pgfpagelayout{2 on 1}[a4paper,border shrink=5mm]
但是编译老是显示\pgfpagelayout这一行是Undefined Control Sequence.
后来看了一下pgfpages.sty文件(版本是2004年底),发现可以用这个:
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
试了试,果然通过了~!
写在这里只是希望如果有跟我一样的菜鸟也碰到类似问题,可以试试另一个,
也许能省点时间。 |
|
T*********r 发帖数: 11175 | 8 【 以下文字转载自 Physics 讨论区 】
发信人: TechniColor (坚决服从rourou的领导), 信区: Physics
标 题: Re: What software to draw Feynman graphs ?
发信站: BBS 未名空间站 (Wed Dec 28 11:37:22 2005), 转信
use axodraw under latex
or use other software to generate your diagram into postscript format
then include it like FeyArts (a mathematica package) or MadGraph,.....
Go to google axodraw and put the axodraw.sty file in the same directory as
your tex source file.
include
\usepackage{axodraw}
in your tex file
Then put in the text someth |
|
T*******n 发帖数: 493 | 9
That will give math italic letters.
Put the following in a chem.sty file and then load it with
\usepackage{chem}:
\DeclareRobustCommand{\chem}[1]{%
\mbox{%
\m@th
\if b\expandafter\@car\f@series\@nil\boldmath\fi
\ensuremath{\mathrm{#1}}%
}%
}
\endinput
Then try this test file. Switching to boldface is done
automatically.
\documentclass{article}
\usepackage{chem}
\begin{document}
\title{Title}
\author{A. U. Thor}
\maketitle
\tableofcontents
\section{Water is \chem{H_2O}}
Water is |
|
|
T*******n 发帖数: 493 | 11 In LaTeX 2.09 you would say
\documentstyle[package1,package2,...]{docstyle}
But the LaTeX2e packages times, wasysym, pifont,
etc. rely on the New Font Selection Scheme (NFSS)
of LaTeX2e, so don't be surprised if you can't use
those packages in LaTeX 2.09 compatibility mode.
You might try renaming usis.sty to usis.cls and
see if it can work in LaTeX2e. |
|
T*******n 发帖数: 493 | 12 Here is a hack for wide equations in two-column layout.
The equations stay where they are supposed to be, but
there may be some spacing problems at page breaks.
You also lose some float functionality because of the use
of the multicol package. See the multicol documentation
for details. The definitions between \usepackage{amsmath}
and \begin{document} can be saved in a .sty file and
loaded using \usepackage{...}.
I think I posted this before. Just run it through LaTeX
and you'll see what it l |
|
T*******n 发帖数: 493 | 13 Here is another hack, probably more useful to those who are
familiar with the American Physical Society Physical Reviews
revtex4.cls template.
Save the following as rvtxwdeq.sty (RevTeX4 wide equation):
\let\wideeqn@outdent\@empty
\newenvironment{wideeqn@galley}{%
\list{}{%
\topsep \z@skip
\listparindent \parindent
\itemindent \parindent
\leftmargin \z@
\parsep \z@\@plus\p@
\wideeqn@outdent
\relax
}%
\item\relax
}{
\endlist
}%
\def\title@co |
|
a*********y 发帖数: 74 | 14 请问,下载了别人写的package以后,如何使用呢?
在我原来的机器上,我下载,安装了miktex和texniccenter,在C盘会自动出现两个
folder, "texmf" and "localtex",我只需把新的package copy and paste到
"texmf/tex/latex/新文件夹"就可以了。
可是换了一台机器后,我又重新安装了miktex和texniccenter,却没有生成那两个
folder,
请问这正常吗?现在我该如何添加新的package 呢(是一个 .sty文件)?
多谢! |
|
s***t 发帖数: 195 | 15 r u sure you have the correct multimedia.sty loaded? and made sure
you load hyperref last.
post |
|
b****t 发帖数: 29 | 16 you are right. Although I write the code
\mode % only for the article version
{
\usepackage{beamerbasearticle}
\usepackage{fullpage}
\usepackage{color}
\usepackage{multimedia}
\usepackage{hyperref}
}
Although I have multimedia.sty under C:\Program Files\MiKTeX 2.5\tex\latex\
beamer\extensions\multimedia, I cannot find its information in the compile
information. What should I do next? Thanks! |
|
s***t 发帖数: 195 | 17
^^^^^^^^^
this is default bah.
^^^^^^
this requires backref.sty and is more tricky.
btw, bibtex shouldbn't be a problem. doesn't really related to bibtex.
there is a minor problem if using backref and the .bbl generated by bibtex
doesn't have a empty line between entries. don't remember in detail.
it's been a while since i did all these. |
|
s*********g 发帖数: 1107 | 18 对了,还有一个问题忘了问,如果我加了subcaption,却不能正常平铺排列,只能每行
显示4个字节,好奇怪啊,难道是我的subfigure.sty有问题吗? |
|
s*********g 发帖数: 1107 | 19 谢谢!我试了一下还是没有解决问题,不知道是不是因为我下载的subfigure.sty有问
题还是怎么回事,subcaption始终不能正常显示。
后来我改用一般的方式解决了问题,才发觉其实平常的方法就可以做到的反而被我搞得
这么复杂,呵呵。
\begin{figure}
\centering
\includegraphics[scale=.6]{Images/A}}
\caption{A} \label{fig:A}
\includegraphics[scale=.6]{Images/B}}
\caption{B} \label{fig:B}
\end{figure} |
|
T*******n 发帖数: 493 | 20 Try \usepackage{soul}, more powerful than ulem, and works better
with line breaks. You can find soul.sty and documentation at
www.ctan.org. |
|
b**n 发帖数: 289 | 21 WINDOWS的没有用过。但LINUX下面,在你把一个.sty文件放到搜索文件夹下之后,还要
texhash一下才可以的。不知道WINDOWS下需不需要这样做。供你参考一下。 |
|
r******u 发帖数: 50 | 22 你直接把那个sty文件放在tex文件所在的目录就可以了 |
|
b*********n 发帖数: 173 | 23 Can you copy and paste the exact error message? |
|
l********r 发帖数: 175 | 24 Well, at the beginning of the compile, it asked me to install some kind of
software, i denied. After i said yes, it no longer showed that. So I think
the installed software solved the error message. But the reference still
could not be shown correctly. I really don't know why. In the main program
file, in listed them and they are in the correct directory. why it could not
work well?
me |
|
b*********n 发帖数: 173 | 25 What software does it ask to install? Can you paste the log file here? It
will help to diagnose the problem. |
|
T*******n 发帖数: 493 | 26 What version of which LaTeX distribution are you using?
me |
|
T*******n 发帖数: 493 | 27 Did you run the bibtex program?
latex, bibtex, latex, latex.
not |
|
S********y 发帖数: 182 | 28 这里是学校的*.sty文档里关于文献的部分,请帮忙看看可以改一下么? 多谢了
% ****************************************
% * BIBLIOGRAPHY *
% ****************************************
%
% The thebibliography environment executes the following commands:
%
% \def\newblock{\hskip .11em plus .33em minus .07em} --
% Defines the `closed' format, where the blocks (major units of
% information) of an entry run together.
%
% \sloppy -- Used because it's rather hard to do line breaks in
% bibli |
|
S********y 发帖数: 182 | 29 在.sty中没有找到重新定义文献格式的地方。学校给的sample文档把文献当作chapter
来看:
********************************************
% BIBLIOGRAPHY
%
% If you plan to have more than 99 references, change the 99 in the next
% line to 999 (or some other 3-digit number)
\begin{thebibliography}{99}
%
% Yes, the bibliography pages are also chapter pages. The first page of
% it should conform to chapter conventions.
%
\thispagestyle{chappage}
% See the LaTeX manual for details about the bibliography. In short,
% the item in braces (for |
|
T*******n 发帖数: 493 | 30 That line:
\thispagestyle{chappage}
is the culprit. To find out what it does, look for the
definition of \ps@chappage in the .sty. Somewhere in
\ps@chappage is messes with the page number.
chapter |
|
T*******n 发帖数: 493 | 31 Okay, I know what is wrong. It has nothing to do with the
bibliography. Instead is it caused by the mistake made when
the person who wrote the .sty file messed up the definition for
\ps@plain .
If you add \chapter{Anything} and immediately before your
\bibliographystyle{plain} in your sample_v2.tex file, you'll see
the page 1. If you take out the \thispagestyle{chappage} after
\chapter{New Chapter} (for Chapter II), you'll see the page 1.
Basically, \chapter and \chapter* calls \thispagestyle |
|
T*********y 发帖数: 18 | 32 这是一个老话题,不过我还是有问题在这里。
按照您的方案,确实可以调整页码,但是bibliography部分的第一页页码不在本页的正
下放中央,而是在右上角了,有办法解决这个问题么?
发信人: TeXnician (毕升), 信区: TeX
标 题: Re: 论文里bibliography的页码老是1,怎么办?
发信站: BBS 未名空间站 (Tue Feb 13 16:59:00 2007)
Okay, I know what is wrong. It has nothing to do with the
bibliography. Instead is it caused by the mistake made when
the person who wrote the .sty file messed up the definition for
\ps@plain .
If you add \chapter{Anything} and immediately before your
\bibliographystyle{plain} in your sample_v2.tex fi |
|
|
T*******n 发帖数: 493 | 34 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 | 35 我的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*******n 发帖数: 493 | 36 Have you tried using fancyhdr.sty? |
|
T*******n 发帖数: 493 | 37
Actually I usually do this:
save the following four lines in mymath.sty
\newcommand{\bigstrut}[0]{\vphantom{\big|}}
\newcommand{\Bigstrut}[0]{\vphantom{\Big|}}
\newcommand{\biggstrut}[0]{\vphantom{\bigg|}} % used below
\newcommand{\Biggstrut}[0]{\vphantom{\Bigg|}}
\endinput
then
\documentclass{article}
\usepackage{amsmath}
\usepackage{mymath}
\begin{document}
\begin{equation*}
\frac{\partial N\left(x,y,t\right)}{\partial t}
% use \biggstrut in next line, let \underbrace think that [-MN] i |
|
a*******e 发帖数: 346 | 38 我现在在用correct.sty
觉得功能有限
有没有包可以做到和word类似
的
谢谢 |
|
T*********r 发帖数: 11175 | 39 没看懂你要去掉什么
如果是要去掉整个的CAPTION
在后面别写\caption
要是去掉CAPTION里的FIG字样,你得该STY文件 |
|
T*********r 发帖数: 11175 | 40 那些东西你不用WORRY吧
投稿的时候,用了杂志的STY文件就定义好了 |
|
l**e 发帖数: 6 | 41 你是不是用了特殊的sty file ?
试了一会,一般好像是不行:
下面这个文件,只有第一个图可以正确显示, 余下两个都不行.
Error Message:
gs: ERROR: /undefined in ÿØÿà
gs: Operand stack:
gs:
gs: Execution stack:
.......
gs: Current allocation mode is local
gs: Current file position is 5
\documentclass{article}
\usepackage{amssymb,amsmath}
\usepackage{graphicx}
\usepackage[dvips]{epsfig}
\begin{document}
\begin{figure}[ht]
\begin{center}
\psfig{file=angle-all.ps,height=3.0in,angle=0}
\end{center}
\end{figure}
\newpage
\begin{figure}[ht] |
|
|
z*a 发帖数: 1681 | 43 如果不投ieee怎么办?
这不是通用的办法,限定了sty文件 |
|
|
h****m 发帖数: 405 | 45 Any DX knows hot to integrate multiple citations? For example, make [1,2,3,4
] as [1-4]. I did this manually before but kind of remember I've used some
sty file that can do this automatically.
Thanks in advance! |
|
V***a 发帖数: 11942 | 46 deadline后天,图书馆说我的thesis format 有问题。可是这个是我在网上下载的他们
的提供的thesis format in latex。nnd
说要求List of Abbreviations上方要空2 inch, table of content上方要空1.25,我
打开他们提供的sty文件。看到这些定义,但是看不懂,不知道改那里。各位帮忙看看
吧,多谢了。
\def\tableofcontents{
\baselineskip=0.25pc
\lineskip=0.25pc
\lineskiplimit=0.25pc
\@restonecolfalse
\if@twocolumn
\@restonecoltrue\onecolumn
\fi
\chapt*{Table of Contents\@mkboth{TABLE OF CONTENTS}{TABLE OF CONTENTS}}
\vskip -0.83 pc
\hfill Page \par
\lineskip= |
|
s***t 发帖数: 195 | 47 show us your source file, not the sty file.
and why the spacing is different? 2 in from where, paper edge? |
|
V***a 发帖数: 11942 | 48 \documentclass[12 pt]{report}
%% The file ``gmudissertation.sty'' is the GMU latex style file and
%% should be placed in the same directory as your LaTeX files
\usepackage{gmudissertation}
\usepackage{multirow}
\usepackage{subfig}
\usepackage{url}
\usepackage{longtable}
%%
%% other packages that need to be loaded
%%
\usepackage{graphicx} % for imported graphics
\usepackage{amsmath} %%
\usepackage{amsfonts} %% for AMS mathematics
\u |
|
u**o 发帖数: 290 | 49 使用article class的时候使用没有问题.
后来改用个IEEE transactions on Automatic control的魔板时, 图片编辑不了, 总出现
\color@endbox->\color@endgroup \egroup之类的错误提醒,查了半天才发现是color
package的毛病,去掉了就好了,图片也还是有颜色的.
不懂问题出在哪? //shy |
|
T*******n 发帖数: 493 | 50 Don't use LaTeX eqnarray. It's does not do a good job calculating spaces
and is not flexible. Learn to use the various alignment environments
provided by amsmath.sty instead.
The following should do what you want, except that the equation numbers
are automatically numbered in the order that the table is constructed.
If you want the equation number to go down the column automatically, it
will take more work.
The command \mitcmd and the environment "mitenv" are basically the same.
You can use wh |
|