Month: February 2012

  • Use document title and document date in lyx fancyheader

    by

    in

    Put this in your Lyx preamble (document -> settings -> preamble): \def\title#1{\gdef\@title{#1}\gdef\THETITLE{#1}} \def\date#1{\gdef\@date{#1}\gdef\THEDATE{#1}} \def\author#1{\gdef\@author{#1}\gdef\THEAUTHOR{#1}} \usepackage{fancyhdr} \pagestyle{fancy} \newcommand{\helv}{% \fontfamily{phv}\fontseries{b}\fontsize{10}{10}\selectfont} \lhead{\helv \THETITLE – \THEDATE } \rhead{\helv \THEAUTHOR} \usepackage{lastpage} \cfoot{\thepage\ / \pageref{LastPage}}

  • My tip: a temporary directory (for temporary files)

    My tip: make a temporary directory for all kinds of random stuff. Downloads, quick notes et cetera. I use it a lot. By using a crontab like this, the old files (+5 days) are automatically deleted: $ find /home/karlo/temp/ -type f -mtime +5 -delete && find /home/karlo/temp/ -empty -delete

  • Import mp3 in audacity (on fedora)

    by

    in

    Remove audacity (#yum remove audacity), install audacity-freeworld (#yum install audacity-freeworld ). That’s it. You might have to enable RPMFusion.