Tuesday, April 27, 2004

Latex

Software: WinEdt, MikTex, GNU Ghostscript, GSview, GIMP

Latex2html : Convert latex file to html file.
TexPoint : A Powerpoint add-in software that enables the easy use of Latex symbols and formulas in Powerpoint presentations.

Insert pictures
Using imported graphics in Latex
Insert codes: \begin{verbatim} \end{verbatim}
First character is big: \PARstart{W}{idth}

Fig1(a), Fig1(b)----using the package subfigure. Try the following code.

\usepackage{subfigure}

\begin{figure*}
\centering
\subfigure[$\mu_{mc}=1/3.0$]{%
\label{fig: P1}
\includegraphics[width=7cm]{Fig.P1.eps}
}
\subfigure[$\mu_{mc}=1/6.0$]{%
\label{fig: P2}
\includegraphics[width=7cm]{Fig.P2.eps}
}
\caption{blah blah}
\label{fig: Pc}
\end{figure*}

Question:
How can I use figures that go over both columns in double-column mode?
Answer:
use \begin{figure*} instead of \begin{figure}

Color text:
\usepackage[dvips,usenames]{color}
\textcolor[rgb]{1.00,0.00,0.00}{This}

Usually, most of my LaTeX2e preambles are the same, and they look like the following.
%%
% BeGiN
%%
\documentclass[11pt,letterpaper]{article}
%%
\usepackage[letterpaper,dvips,body={8in,11in},vmargin={1cm,2cm},hmargin=2cm,head=1cm]{geometry}
\usepackage[dvips,usenames]{color}
\usepackage[american]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{aecompl}
%\usepackage{pslatex}
\usepackage{textcomp} % some special symbols...
\usepackage{textfit} % commands \scaletoheight{height}{text} and \scaletowidth{width}{text}
\usepackage{xspace}
\usepackage[dvips]{graphicx}
\usepackage{latexsym}
\usepackage{amsmath,amsfonts,amstext,amssymb,amsbsy,amsopn,amsthm,eucal}
\usepackage{yfonts}[1998/10/03]
\usepackage{dsfont}
\usepackage{wasysym}
\usepackage{wrapfig}
\usepackage[numbers]{natbib} % configuração das referências bibliográficas
\usepackage{array} % recursos extras de tabelas e alinhamentos
\usepackage{setspace} % configuração do espaço entre linhas
\usepackage{indentfirst} % indentação para o 1o parágrafo das seções
\usepackage{tabularx} % tabelas com largura de colunas variáveis
\usepackage{caption2} % configuração para legendas
\usepackage{enumerate} % recursos extras para listas numeradas
\usepackage{psfrag} % texto LaTeX em figuras EPS
\usepackage{sectsty} % configuração dos títulos, subtítulos, etc ...
\usepackage{txfonts} % conjunto de fontes postscript
\usepackage[ps2pdf]{hyperref} % troca as referências cruzadas por links
\usepackage[normalem]{ulem}
\usepackage{url}
\newcommand\email{\begingroup \urlstyle{tt}\Url}
\urldef{\het}\url{www.het.brown.edu}
\urldef{\danieldf}{\email}{danieldf@het.brown.edu}
%%
% \usepackage{palatino}
% \usepackage{newcent}
% \usepackage{bookman}
%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\bfseries\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesubsection.\ #1}}
\renewcommand{\headrulewidth}{0.5pt}
\newcommand{\helv}{%
\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
\fancyhf{}
\fancyhead[LE,RO]{\helv{\footnotesize \thepage}}
\fancyhead[LO]{\helv{\footnotesize \rightmark}}
\fancyhead[RE]{\helv{\footnotesize \leftmark}}

\begin{document}
%
\bibliographystyle{hplain}
\bibliography{bibliography}
%%
\end{document}

`` and '' ? try \verb|"| if you want '' and ''
My former page setup is \usepackage[body={6.0in, 9.0in},left=1.25in,right=1.25in, top=1.0in]{geometry}
Now switch to:
\setlength{\topmargin}{-2cm} \setlength{\headsep}{2.2cm}
\setlength{\evensidemargin}{.7cm} \setlength{\oddsidemargin}{.7cm}
\setlength{\textheight}{22.5cm} \setlength{\textwidth}{15.2cm}


try this: $\displaystyle \lim_i x$

No comments:

Post a Comment