Monthly Archives: July 2019

How to generate a fixed format, sequential integers

The following bash script is to generate integers from 1 to 11, having 3-digit format. #!/bin/bash for i in `seq -f “%03g” 1 11` do echo $i done exit 0 The result is as follows. 001 002 003 004 005 … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Specific header settings of Emacs org-mode for LaTex export

#+LATEX_HEADER: \usepackage[margin=1.0in]{geometry} #+LATEX_HEADER: \usepackage[numbers,sort&compress,square]{natbib} #+latex_header: \usepackage{glossaries} #+latex_header: \makeglossaries #+latex_header: \usepackage{setspace} \singlespacing #+latex_header: \usepackage{enumitem} #+latex_header: \setlist[itemize]{noitemsep, topsep=0pt} #+latex_header: \setlist[enumerate]{noitemsep, topsep=0pt} #+OPTIONS: d:nil ^:nil H:2 toc:nil 1st line: setting all four side margins, 1 inch. 2nd line: natbib setup for numbered references … Continue reading

Posted in Blog | Tagged , , | Leave a comment