Archive for the ‘Latex’ Category

latex for typing quotes

Pumas are “large, cat-like animals” which are `found in America’.
` is the key above “tab” key.

output:
Pumas are “large, cat-like animals” which are ‘found in America’.

 

 

add space or text in equation

\text{}

one space: \text{}

multiple spaces:\text{}\text{}\text{}  or \qquad

latex to type limit or other formulas without quick button

%limit

/mathop {/lim }/limits_{n /to /infty}

%write the formula in Mathtype,and then copy to Latex

latex classfied function

%left brace

\begin{equation*}
s(t)=
\left\{
\begin{array}{cc}
A & 0<t<\tau \\
&                             \\

0 & \mathrm{elsewhere}
\end{array}
\right.
\end{equation*}

%right brace

\begin{equation}
\left.
\begin{array}{ll}
& \mathcal{F}[a_1s_1(t)+a_2s_2(t)]=a_1S_1(\omega)+a_2S_2(\omega) \\
\mathrm{and}  &                             \\
& \mathcal{F}^{-1}[a_1S_1(\omega)+a_2S_2(\omega)]=a_1s_1(t)+a_2s_2(t)
\end{array}
\right\}
\end{equation}

latex enumerate

% a) b) c)

\begin{enumerate}[a\upshape)]
\item
\item
\item
\end{enumerate}

change example/equation caption style

%Example Caption Order
\newtheorem{Example}{Example}[chapter]
%Equation order style
\renewcommand\theequation{\arabic{chapter}.\arabic{equation}}

%insert example

\begin{Example}\label{ex202}
Find the Fourier series expansion of the following function.
\end{Example}

%refer to example

Example~\ref{ex202}

visio->latex(eps)

visio->print pdf

open pdf with acrobat

document->crop pages->click remove white margins ->save as eps

latex figure

\usepackage{graphicx}

%Figure caption style
\newcaptionstyle{one}{%
\usecaptionmargin\captionfont%
\onelinecaption%
{{\bfseries\captionlabelfont\captionlabel}
\captiontext}%
{{\centering\bfseries\captionlabelfont\captionlabel\par}%
\captiontext}}

%insert figure

\begin{figure}[placement h]
\captionstyle{one}
\centering
\includegraphics[scale=0.8]{101.eps}\\
\caption{}
\label{101}
\end{figure}

%refer to figure

Fig~\ref{101}

 

%subfigure

\usepackage{subfigure}

\begin{figure}[htp]
\captionstyle{one}
\centering
\subfigure[]{\label{204-a}\includegraphics[scale=0.8]{2041.eps}}\\
\subfigure[]{\label{204-b}\includegraphics[scale=0.8]{2042.eps}} \\
\subfigure[]{\label{204-c}\includegraphics[scale=0.8]{2043.eps}} \\
\caption{}
\label{204}
\end{figure}

%refer to subfigure

Fig~\ref{204-a}

Latex book template

\documentclass[12pt]{book}
\evensidemargin 0.0in
\oddsidemargin 0.0in
\textwidth 6.5in
%\headheight 0.0in
\topmargin 0.0in
\textheight 8.0in
%\headsep 0.0in
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{color}
\usepackage{colortbl}
\usepackage{slashbox}
\usepackage{indentfirst}
\usepackage{enumerate}
\usepackage{fancyhdr}
\usepackage{caption2}%Figure Caption
\usepackage{wrapfig}%Wrappping figure
\usepackage{subfigure}

\begin{document}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.0pt}
\include{chapter_1_Int}
\include{signal_analysis}
\end{document}

generate pdf with Latex beamer

  • insert special symbols

\usefonttheme{professionalfonts}

  • when titlepage is not printable

dvi->ps, ps->pdf