Search This Blog

Thursday, December 30, 2010

rsync excluding .svn dir

rsync -av --exclude=".svn" -e ssh  A  B





Thursday, December 23, 2010

to increase section number by 2

\addtocounter{section}{2}

pdfpages to include pdf files into LaTex

\usepackage{pdfpages}
\usepackage{fancyhdr}


\includepdf[pages=-, pagecommand={\thispagestyle{fancy}}]{PeerEvalScanned.pdf}

\includepdf[pages=-, fitpaper=true, pagecommand={\thispagestyle{fancy}},addtolist={1,figure,{some interesting}, TEformNumeric}]{TE/TEformNumeric.pdf}

Wednesday, December 22, 2010

Natbib reference sheet

Natbib reference sheet

\citet{jon90} --> Jones et al. (1990)
\citet[chap. 2]{jon90} --> Jones et al. (1990, chap. 2)
\citep{jon90} --> (Jones et al., 1990)
\citep[chap. 2]{jon90} --> (Jones et al., 1990, chap. 2)
\citep[see][]{jon90} --> (see Jones et al., 1990)
\citep[see][chap. 2]{jon90} --> (see Jones et al., 1990, chap. 2)
\citet*{jon90} --> Jones, Baker, and Williams (1990)
\citep*{jon90} --> (Jones, Baker, and Williams, 1990)
























Tuesday, December 21, 2010

How to use nomenclature

  • Put \usepackage[〈options〉]{nomencl} in the preamble of your document.
  • Put \makenomenclature in the preamble of your document.
  • Issue the \nomenclature command (see Section 2.2) for each symbol you want to have included in the nomenclature list. The best place for this command is immediately after you introduce the symbol for the first time.
  • Put \printnomenclature at the place you want to have your nomenclature list.





\documentclass[12pt]{article}
\usepackage{nomencl}  
\makenomenclature

\begin{document}
\maketitle
\tableofcontents
\printnomenclature

\nomenclature{$N$}{The number of particles}

\end{document}

To compile do followings in Unix prompt:
makeindex 〈filename〉.nlo   -s   nomencl.ist   -o   〈filename〉.nls


Friday, December 17, 2010

TAR a large disk image

http://bit.ly/11m9K6

Particle variables

for i = 1, np

Particle radius
  • AP(i) 

Translational Coordinates and Uelocities, Acceleration
  • CX(i), UX(i), AX(i)
  • CY(i), UY(i), AY(i) 
  • CX(i), UZ(i), AZ(i) 

Rotational Euler-coordinates and Welocities (omega), Bacceleration (Boosting rotation)
  • EX(i), WX(i), BX(i)
  • EY(i), WY(i), BY(i) 
  • EX(i), WZ(i), BZ(i)  

Saturday, December 4, 2010

KCB's LaTeX files

KCB's LaTeX files: "\timestamp"

LaTeX Tools and Templates

LaTeX Tools and Templates

periodic boundary conditions

1, 2, 3, ..., L-1, L


i + 1 => mode ( i , L) + 1
i + 2 => mode ( i+1, L) + 1


i - 1 => mode ( i - 2 + L , L ) + 1
i - 2 => mode ( i - 3 + L , L ) + 1

Friday, December 3, 2010

Octave/MATLAB basics

Octave/MATLAB basics

Getting to Grips with Latex - Tables - Latex Tutorials by Andrew Roberts @ School of Computing, University of Leeds

Getting to Grips with Latex - Tables - Latex Tutorials by Andrew Roberts @ School of Computing, University of Leeds: "\begin{center}
\begin{tabular}{ l | c || r | }
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
\hline
\end{tabular}
\end{center}"

LaTeX:Commands - AoPSWiki

LaTeX:Commands - AoPSWiki

LaTex \newcommand

\newcommand{\dd}{\mathrm{d}}
\newcommand{\dt}{\mathrm{d}t}
\newcommand{\tr}{\mathrm{tr}}
\newcommand{\bmcal}[1]{\bm{\mathcal{#1}}}


\newcommand{\mycolor}{white}%purple, white
\newcommand{\mypause}{\pause}%
\newcommand{\justmoment}{\mypause}
%
\newcommand{\tcol}[1]{\textsf{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolred}[1]{\textsf{\textcolor{red}{#1}}}
\newcommand{\tcolpurple}[1]{\textbf{\textcolor{purple}{#1}}}
\newcommand{\tcolul}[1]{\underline{\textbf{\textcolor{\mycolor}{#1}}}}
\newcommand{\tcolep}[1]{\emph{\textbf{\textcolor{\mycolor}{#1}}}}
\newcommand{\tcolmath}[1]{{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolmathblue}[1]{{\textcolor{blue}{#1}}}
\newcommand{\tcolmathbf}[1]{\mathbf{\textcolor{\mycolor}{#1}}}
\newcommand{\tcolmathrm}[1]{\mathrm{\textcolor{\mycolor}{#1}}}
\newcommand{\textrtblue}[1]{\textrt{\textcolor{blue}{#1}}}
%\newcommand{\tcol}[1]{\textbf{\textcolor{white}{#1}}}
%\newcommand{\tcolmath}[1]{\mathbf{\textcolor{white}{#1}}}
%
\newcommand{\dbar}{d\mkern-6mu\mathchar'26}
\newcommand{\degree}{\textdegree}
\newcommand{\FigurePath}{/Users/albertsk/svn2009/Library/Figures}
\newcommand{\xunit}{\mathbf{i}}
\newcommand{\yunit}{\mathbf{j}}
\newcommand{\zunit}{\mathbf{k}}
\newcommand{\ii}{\mathbf{i}}
\newcommand{\jj}{\mathbf{j}}
\newcommand{\kk}{\mathbf{k}}
\newcommand{\textrt}[1]{\textit{\textrm{#1}}}
\newcommand{\paren}[1]{\left[{#1}\right]}
\newcommand{\prn}[1]{\left({#1}\right)}
\newcommand{\jmitem}{\justmoment \item}
\newcommand{\pitem}{\justmoment \item}
\newcommand{\lb}{\ \mathrm{lb}}
\newcommand{\ft}{\ \mathrm{ft}}
\newcommand{\inch}{\ \mathrm{in}}
\newcommand{\lbft}{\ \mathrm{lb}\cdot\mathrm{ft}}
\newcommand{\N}{\ \mathrm{N}}
\newcommand{\kN}{\ \mathrm{kN}}
\newcommand{\kip}{\ \mathrm{kip}}
\newcommand{\mm}{\ \mathrm{mm}}
\newcommand{\m}{\ \mathrm{m}}
\newcommand{\Nm}{\ \mathrm{N}\cdot\mathrm{m}}
\newcommand{\comment}[1]{}
\newcommand{\skipframe}[1]{}
\newcommand{\myvspace}{3cm}
\newcommand{\commentvspace}[1]{\vspace{\myvspace}}
\newcommand{\myfirstsection}{1}
\newcommand{\D}{\mathrm{d}}
\newcommand{\second}{\,\mathrm{sec}}
\newcommand{\minute}{\,\mathrm{min}}
\newcommand{\minutes}{\,\mathrm{mins}}
\newcommand{\hour}{\,\mathrm{hr}}
\newcommand{\hours}{\,\mathrm{hrs}}
\newcommand{\Pe}{\mathrm{Pe}}
\newcommand{\Plus}{^{+}}
\newcommand{\PlusPlus}{^{2+}}
\newcommand{\Minus}{^{-}}
\newcommand{\MinusMinus}{^{2-}}
\newcommand{\subs}[1]{$_{#1}$}
\newcommand{\supers}[1]{$^{#1}$}
\newcommand{\mailto}[1]{\href{mailto:#1}{#1}}


Labels

Blog Archive

Bacteria

Loading...