Search This Blog

Friday, November 19, 2010

bug in "find" command in Linux

One should put single quotations for the wild card option.

 > find  $HOME  -name  '*.tcl'


This command is to find any file whose extension is tcl under the home directory including all the sub-directories.

Wednesday, November 17, 2010

shell script

This script read a directory, zip the directory, and create directory.zip file.
And it send the zip file to specific location in my Mac computer using scp.

==========

#!/bin/sh
echo $1
zip -r $1 $1
scp $1.zip albertsk@stokes.eng.hawaii.edu:/Users/albertsk/Desktop/On-going/Presentations/APS-DFD/simulations/

Monday, November 15, 2010

Latex: how to change footnote symbols

Arabic numerals, e.g., 1, 2, 3...
\renewcommand{\thefootnote}{\arabic{footnote}}


Roman numerals (lowercase), e.g., i, ii, iii...\renewcommand{\thefootnote}{\roman{footnote}}



Roman numerals (uppercase), e.g., I, II, III...
\renewcommand{\thefootnote}{\Roman{footnote}}

Alphabetic (lowercase), e.g., a, b, c...

\renewcommand{\thefootnote}{\alph{footnote}}

Alphabetic (uppercase), e.g., A, B, C...

\renewcommand{\thefootnote}{\Alph{footnote}}

A sequence of nine symbols (try it and see!)

\renewcommand{\thefootnote}{\fnsymbol{footnote}}

LaTex: Long arrow



If 


\longrightarrow

is not sufficiently long, try


\[ \xrightarrow{\hspace*{3cm}} \]

Saturday, November 13, 2010

PDF to Keynote (pdftokeynote)

For people who enjoys LaTex presentation, beamer, this free software "pdftokeynote"provides an excellent link between pdf and keynote.  A pdf presentation is prepared using beamer with full functionality of math typesetting. Once the final pdf file is made, then pdftokeynote can convert the pdf file with a number of slides to a Keynote file. Each Keynote page includes a pdf image of the presentation.  Only slide transition is possible in Keynote.

http://www.cs.hmc.edu/~oneill/freesoftware/pdftokeynote.html

Labels