You can also write something like that:
\ifx\pdfoutput\undefined
% we are running LaTeX, not pdflatex
\usepackage{graphicx}
\else
% we are running pdflatex, so convert .eps files to .pdf
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\fi
This is my file header.Is it correct?
\documentclass[conference]{IEEEtran}
\hyphenation{op-tical net-works semi-conduc-tor IEEEtran}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{cite}
%\voffset 15mm
\IEEEoverridecommandlockouts
\begin{document}
Here is the simplified version:
\documentclass[titlepage,landscape]{slides}
\usepackage{amsmath}
\usepackage[dvips]{graphicx}
\usepackage{psfig}
\hfuzz5pt
\vfuzz5pt
\pagestyle{plain}
\begin{document}
\input{inc.tex}
\end{document}
Thank you for the help.
你可以看看如下:
\documentclass[10pt,conference,letterpaper,twocolumn]{IEEEtran}
\usepackage{amsfonts}
\pagestyle{plain}
\pagenumbering{arabic}
\usepackage{amsmath,multirow} % for subequations
\usepackage{subfigure,graphics,psfig,epsfig,wrapfig}
\newtheorem{Theorem}{Theorem}
\newtheorem{Definition}{Definition}
\newtheorem{Assumption}{Assumption}
\newtheorem{Corollary}{Corollary}
显示的是斜体、非粗;
奇怪的是,但我在\documentclass[a4paper, 12pt]{article}下面,就能够显示正常的
粗体、正体定理、定义。
我不会change the definition of the class
\documentclass{article}
\usepackage{graphicx,lscape}
\begin{document}
\begin{landscape}
This is in landscape
\end{landscape}
\end{document}
If your ps driver is not dvips, then add it as:
\usepackage[dvips]{graphicx,lscape}
^^^^^^
The default is dvips, use whatever you use.
Also, you can check "rotating" "sidewaytable" etc packages.
Does anyone know what is the potential reason? Thanks
\documentclass{kluwer}
\newdisplay{guess}{Conjecture}
\usepackage{epsfig}
\usepackage{graphics}
\begin{document}
\begin{article}
\begin{opening}
\title{A project example}
\author{Sam Smith}
\date{August 15, 2005}
\begin{abstract}
This is a test of abstract.
\end{abstract}
\end{opening}
\section{Introduction}
I am trying to cite a paper \cite{GOOGLE98}, but it can't be displayed
properly.
\bibliographystyle{alpha}
\bibliography{mybibl
I use the following one, you may have a try:
\usepackage{graphicx}
\usepackage{subfigure}
\begin{figure}[htb]
\centering \mbox{ \subfigure[sub title-1]{\includegraphics[scale=.5]{test1.eps
}}\quad
\subfigure[sub title-2]{\includegraphics[scale=.5]{test2.eps}} }
\caption{caption} \label{Fig:CellDropRates}
\end{figure}
just like
xxxxx yyyy
(a)---(b)
Fig2: title
That's not a good solution because some packages
rely on the definition of \scriptsize giving a font size
that is consistent with the internal LaTeX macro \sf@size,
and by redefining \scriptsize you have broken this.
Try this instead: Save the following (up to and including
\endinput) in "mypgnum.sty" in the local directory and in
your document say \usepackage{mypgnum.sty} after all the
other \usepackage{...} commands.
\let\mypgnumsize=\large
\def\ps@plain{\ps@empty
\def\@oddfoot{\normalfont\
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
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
Look in the .cls and you should find the definition of an
environment called "theindex". This is where the page
layout of the index is usually defined.
You can try the following, add before \begin{document}:
\usepackage{makeidx}
\usepackage{multicol}
\makeatletter
\newcommand{\startindex}[0]{%
\chapter*{\indexname\@mkboth{\indexname}{\indexname}}%
\addcontentsline{toc}{chapter}{\indexname}%
}
\renewenvironment{theindex}{%
\par
\setlength{\columnseprule}{\z@}%
\setlength{\columnsep}{12
LaTeX will not automatically break a display equation.
However, \usepackage{amsmath} will allow you to break
between display equations.
\usepackage{amsmath}
\allowdisplaybreaks
\begin{gather}
a=1 \\ % LaTeX can automatically break page here
b=2 \\ % or here if necessary
c=3
\end{gather}
Don't use eqnarray. Read the AMS-LaTeX (amsmath) manual
and use its environments instead. (eqnarray has spacing bugs)
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
I am trying to use the appendix package.
I used it in two ways:
First:
\usepackage{appendix}
...
\appendix
\appendixpage
\addappheadtotoc
Second:
\usepackage{appendix}
...
\begin{appendices}[toc, page]
...
\end{appendices}
From the manual, both methods can provied an "Appendix" title page and a
reference in the table of contents, however, both mechods won't work.
The compile will stop at \appendixpage saying incorrect command in the first
mechod.
The second method shows nothing.
Anyone has used
do you use linux? if so, it is possible to have the system to
convert eps to pdf figures automatically for you.
\usepackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps}
\usepackage{epstopdf}
when you refer an image file foobar.eps in the tex, use
\includegraphics{foobar}
then you can compile the latex files
pdflatex -shell-escape your-latex-file
of course, you can change the pdftex.cfg to make "shell-escape"
a default option for pdflatex.
You are using a class file that is calling for the Math Time Symbol
Postscript
font, which isn't freely available.
Either ask the publisher for the font, or ask them how to disable loading of
the proprietary font, or look for something like \usepackage{mathtime} in
your files or the publisher's .cls/.sty files and disable loading of the
Math Time font set. You can try \usepackage{mathptmx} as an alternative,
but you won't get bold fonts for some of the math symbols.
Dear all,
I am new to Latex and I am using the natbib package and \citet{} to cite the
papers. It is strange that the complied pdf shows "the paper is by Mike [
1998] ...". I expect to have the round parentheses. The document says the
round is default. I tried
\usepackage[round]{natbib}
I does not work. Can anyone show me how to correc it? Thank you so much.
My preamble is like this
\documentclass[11pt]{article}
\usepackage{natbib, amsmath, amssymb,graphicx, setspace,url, rotating}
\begin{docume
就是google来的
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Document Setup %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Don't like 10pt? Try 11pt or 12pt
\documentclass[12pt]{article}
% This is a helpful package that puts math inside length specifications
\usepackage{calc}
\usepackage{revnum}
% Layout: Puts the section titles on left side of page
\reversemarginpar
\font\tenss=cmss10
\font\tenssx=cmss10 scaled \magstep1
\font\tenssbx=cmssbx10
\font\fortssbx=cmssbx10 scaled \magstep5
\font\fortsbx=cmssbx10 scaled \magstep4
\font\f
1. it is about table.
2. Caption above tablar.
3. one row or more is fine. it looks just too close to tabular.
I did not pay attention. perhaps moving it below tabular will look nicer?
I googled again, and found below:
\usepackage[margin=10pt,font=small,labelfont=bf]{caption}
and
\usepackage{caption}
\captionsetup{margin=10pt,font=small,labelfont=bf}
I will reward baozi for nice solution.