LaTeX Dates in Australian Format
The macro \today presents dates in US format, which can be annoying when you want dates to be typeset in Australian or universal formats. Use the following macros to typeset dates in Australian format.
% Format date in the form 12 March 2007, for example.
\usepackage{datetime}
\newdateformat{auDateFormat}{%
\twodigit{\THEDAY}~\monthname[\THEMONTH]~\THEYEAR
}
\auDateFormat
To get the universal format, simply re-arrange the day, month and year components to conform to yyyy-mm-dd.
Filed under: primer | Leave a Comment
Tags: LaTeX, primer
Rename Multiple Files in Bash
Here’s a quick tip for renaming multiple files with the same name <name> but different extensions <ext>. You want to retain the extensions and only change <name> to <new-name>.
for i in `ls`; do
mv -fv "$i" `ls "$i" | sed 's/././'`
done
Filed under: primer, programming | Leave a Comment
Tags: bash, primer, programming
I have created a screencast showing a general procedure for creating a new ticket on the Sage trac server. The video tutorial has been uploaded to my development directory on the machine sage.math. The video should make it easier for people to learn how use trac, rather than learning just from reading a textual tutorial.
Filed under: Sage, screencast | Leave a Comment
Tags: education, Sage, screencast, trac, tutorial
Recent Entries
- LaTeX Dates in Australian Format
- Rename Multiple Files in Bash
- Screencast: How To Create A New Ticket On Trac
- Debugging and Python Programming Tools
- How To Use Sage As A Python Library
- Software Freedom Day 2009
- Beginning Programming with Python
- Parallel Testing the Sage Library
- Compile Sage 4.1 in 64-bit Mode on OS X 10.5.8
- Elementary Number Theory using Maxima
- Sage 4.1.1 Released
Categories
- cryptography (8)
- humour (2)
- Linux (3)
- mathematics (25)
- primer (2)
- programming (28)
- Python (12)
- Sage (25)
- screencast (1)
- social gathering (4)
- software engineering (18)