Friday, February 27, 2009

Installing LaTeX tools for Windows

There are many tools you can use LaTeX for windows.

1. Here is a suite of tools you can use LaTeX compiler: MiKTeX at http://www.miktex.org/

2. Viewer, Converter: Ghostscript and Ghostview: http://www.cs.wisc.edu/~ghost/.

3. Editing environment, WinEdt: http://www.winedt.com/

These tools have been developed by separate folks, but they are good about working together. We have found they work best together if installed with default locations and other default settings. This is not to say that you could choose other locations, but it is possible that you may need to take some extra steps to teach them how to work together in that case.

Since WinEdt is an integrated environment that calls the other tools, we suggest installing it last in case that helps it find the other tools.

The web page, http://www.ats.ucla.edu/stat/latex/icu/install_win.htm, can be refered to for details.

LaTeX or Word?

My rules of thumb for using WYSIWYG systems:

  1. One page or less: have it printed by a secretary.
  2. Up to two pages: do it yourself using MS-Word (for example, this document was written with MS-Word).
  3. More than two pages: do it yourself LaTeX. (If it is Hebrew, I just forget it)

Extracted from: http://www.cs.technion.ac.il/~yogi/Courses/CS-Scientific-Writing/latex.htm

LaTeX resources

In Chinese:

http://staff.ustc.edu.cn/~xujm/lunwen003.pdf How to write good academic papers

http://math.ecnu.edu.cn/~latex/docs/Chs_doc/reference.pdf Common problems in dealing with references in a paper

http://www.math.ecnu.edu.cn/~latex/doc.html LaTeX references

In English:

http://www.tug.org/docs/metapost/mpman.pdf METAPOST a user’s manual

http://staff.science.uva.nl/~heck/Courses/mptut.pdf Learning MetaPost by doing

http://tex.loria.fr/prod-graph/mpgraph.pdf Drawing Graphs with MetaPost http://ctan.binkerton.com/graphics/metapost/mpgraph.pdf

beamer_guide.pdf

Beamer tips

\usepackage{wallpaper}

\setbearmercolor{background canvas}{bg=} produces transparent canvas (background)

\usepackage{url}

The following stuff is NOT verified by myself!
\documentclass[CJK,notheorems,mathserif,table]{beamer}
\useoutertheme[height=0.1\textwidth,width=0.15\textwidth,hideothersubsections]{sidebar}
\usecolortheme{whale} % Outer color themes, 其他选择: whale, seahorse, dolphin . 换一个编译看看有什么不同.
\usecolortheme{orchid} % Inner color themes, 其他选择: lily, orchid
\useinnertheme[shadow]{rounded} % 对 box 的设置: 圆角、有阴影.
\setbeamercolor{sidebar}{bg=blue!50} % sidebar的颜色, 50%的蓝色.
%\setbeamercolor{background canvas}{bg=blue!9} % 背景色, 9%的蓝色. 去掉下一行, 试一试这个.
\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] %%背景色, 上25%的蓝, 过渡到下白.
\usefonttheme{serif} % 字体. 个人偏好有轮廓的字体. 去掉这个设置编译, 就看到不同了.
\setbeamertemplate{navigation symbols}{} %% 去掉页面下方默认的导航条.
%%------------------------常用宏包---------------------------------------------------------------------
%%注意, beamer 会默认使用下列宏包: amsthm, graphicx, hyperref, color, xcolor, 等等
\usepackage{CJK}
\usepackage{subfigure} %%图形或表格并排排列
\usepackage{xmpmulti} %%支持文中的 \multiinclude 等命令, 使 mp 文件逐帧出现. 具体讨论见 beamer 手册.
\usepackage{colortbl,dcolumn} %% 彩色表格
\graphicspath{{figures/}} %% 图片路径. 本文的图片都放在这个文件夹里了.
\DeclareGraphicsRule{*}{mps}{*}{} %% 使 pdflatex 可以纳入 metapost 做的图片.
\logo{\includegraphics[height=0.09\textwidth]{whu.1}}%% 武大校徽, MetaPost 文件.
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
\raggedright %% 中文对齐
\def\hilite<#1>{\temporal<#1>{\color{blue!35}}{\color{magenta}}{\color{blue!75}}}
%% 自定义命令, 源自 beamer_guide. item 逐步显示时, 使已经出现的item、正在显示的item、将要出现的item 呈现不同颜色.
\newcolumntype{H}{>{\columncolor{blue!20}}c!{\vrule}}
\newcolumntype{H}{>{\columncolor{blue!20}}c} %% 表格设置

Notes to MetaPost

The logo of MetaFont or MetaPost can be added into LaTeX file with \usepackage{mflogo} and the command \MF or \MP.

Z: the predefined z variables

A point along a path is officially called a time.

The numeric data type is the default type of any non declared variable.

In graph.mp of MetaPost, ticket is too long (7pt), so it can be changed to 5pt.

Wednesday, February 25, 2009

Some favourite free softwares

Here are some free softwares I often use.

i. Foreign softwares

Notepad2, GIMP2, Rainlendar 2, DeepBurner, FileZilla FTP Client, 7-Zip, Virtual CloneDrive/VCdControlTools (Microsoft company), Free Download Manager, CTEX, Foxit Reader, ESET NOD32 (Tsinghua edition) , Everthing
http://code.google.com/p/gappproxy/ (Google Incorporation)

ii. Domestic softwares

Kaka Internet security aides (Rising company), Sogou browser, MyTunet(Tsinghua edition)

iii. Drivers

Uniscan A686, HP LaserJet 1020
N.B.: The driver of Uniscan A686 should be installed in advance.

LaTeX tips

Some predefined colors in color package are red, green, blue, cyan, magenta, yellow, black, white and gray.

\renewcommand{baselinestretch}{1.25}

\setcounter{tocdepth}{2} causes some depth of titles not to be displayed in the content

\usepackage{cite} makes [1], [2], [3], [4] be displayed as [1]-[4]

\usepackage[sort&compress]{natbib} makes [1], [2], [3], [4] be displayed as [1-4]

For text within math mode, use \text{…}

No command for $\Alpha$ - just use A

For left-hand quote marks, use ``; for right-hand quote marks, use ” or ’’

amsmath and amssymb are common packages.

Some useful settings with CTEX

The automatic updating of the CTEX should use the following ftp address:
ftp://ftp.ctex.org/pub/tex/systems/miktex/2.4/packages/


A simple paper setting can be as follows.
\documentclass[A4paper]{article}
\usepackage[top=2.8cm,bottom=2.8cm,left=3.17cm,right=3.17cm]{geometry}
\title{\textbf{Artificial Neural Network\\[2ex]}}
\author{Michael Zhang\thanks{Corresponding author: Email: mzhang58@gmail.com; Tel.: +86--10--6279}\\[2ex] \small\emph{State Key Laboratory of Hydroscience and Engineering, Department of Hydraulic \\ Engineering, University, }}
\date{}

\begin{document}
\maketitle
\renewcommand{\baselinestretch}{1.5}
\begin{abstract}
The monitoring feedback analysis with measured data... . //[4ex]
\emph{Key words}: \,Feedback analysis; Artificial neural network
\end{abstract}
\end{document}