Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Friday, 27 February 2015

Simple batch programming on Windows

Some simple tricks for batch programming on Windows environment:

1) For loop (refer: http://ss64.com/nt/for_l.html)
Syntax   
      FOR /L %%parameter IN (start,step,end) DO command

Key
   start       : The first number
   step        : The amount by which to increment the sequence
   end         : The last number

   command     : The command to carry out, including any
                 command-line parameters.

   %%parameter : A replaceable parameter:
                 in a batch file use %%G (on the command line %G)

Example
FOR /L %%G IN (0,1,195) DO (
echo %%G & ping 1.1.1.1 -n 1 -w 1000 >nul

)

2) ...

Tuesday, 7 July 2009

LaTeX and its related issues

Templates for LaTeX for beginners:
ACM templates: http://www.acm.org/sigs/publications/proceedings-templates

LaTeX editors:
TeXnicCenter: http://www.texniccenter.org/
Texmaker: http://www.xm1math.net/texmaker/ (cross-platform)
TeXstudio: http://texstudio.sourceforge.net/ (cross-platform)

PSTricks:
PSTricks: http://en.wikipedia.org/wiki/PSTricks
LaTeXDraw: http://latexdraw.sourceforge.net/
(support automatic generation of LaTeX codes, very effective)

Tools supporting vector graphics:
Inkscape: http://www.inkscape.org
GIMP: http://www.gimp.org/

LaTeX tutorials:
http://www.stat.cmu.edu/~hseltman/LatexTips.html
http://www.artofproblemsolving.com/LaTeX/AoPS_L_About.php
http://en.wikibooks.org/wiki/LaTeX
http://dcwww.fys.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Index.html
http://texblog.wordpress.com/: a great LaTeX site

LaTeX resources:
http://www.eng.cam.ac.uk/help/tpl/textprocessing/

LaTeX community:http://www.latex-community.org/

LaTeX tips (ubiquitous):

1) Quotation Marks and Dashes

Single quotation marks are produced in LaTeX using ` and '. Double quotation marks are produced by typing `` and ''. (The `undirected double quote character " produces double right quotation marks: it should never be used where left quotation marks are required.)

LaTeX allows you to produce dashes of various length, known as `hyphens', `en-dashes' and `em-dashes'. Hyphens are obtained in LaTeX by typing -, en-dashes by typing -- and em-dashes by typing ---.

One normally uses en-dashes when specifying a range of numbers. Thus for example, to specify a range of page numbers, one would type

on pages 155--219.

Dashes used for punctuating are often typeset as em-dashes, especially in older books. These are obtained by typing ---.

(Source: http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/QuotDash.html)
(to be continued)

2) LaTeX mathematical equation editor: http://www.codecogs.com/components/eqneditor/editor.php -> an interactive tool, very cool!

3) Some strategies to include graphics in LaTeX documents
http://www.tug.org/TUGboat/Articles/tb26-1/hoeppner.pdf

4) Using Visio to create EPS files (very helpful)
http://www.win.tue.nl/latex/visioeps.html
http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=1500&fileID=1438 (driver of EPS files for printer in Visio)

5) Rename "Contents" by "Tables of Contents" using
\renewcommand\contentsname{Table of Contents}

6) Special characters in LaTeX:
http://www.noao.edu/noaoprop/help/symbols/

7) Spell Checking for LaTeX documents
http://www.microspell.com/cgi-bin/spellform.pl

8) Footnote with caption
http://www.latex-community.org/forum/viewtopic.php?f=5&t=1078

9) LaTeX tables with bar charts
http://www.keithv.com/software/barchart/

10) LaTeX mathematics equations tips: http://moser.cm.nctu.edu.tw/docs/typeset_equations.pdf

11) ... (to be added)