|
|
http://www.indianstatistics.org
A lot of statistics on Indian economy and society are available online. These are scattered across various websites and are mostly provided without any information on the sources, data definitions and limitations of these statistics.
This website was conceived as a platform to host statistics on different aspects of the economy and society. The website aims to differentiate itself from other sources on following counts:
- indianstatistics.org will combine dissemination of data with documentation about the data and critical analysis of problems related to the use of these statistics. The website will provide references, and where possible, online links, to scholarly analyses about these data and analyses based on these data.
- indianstatistics.org will build an archive of documents related to the statistical system of India.
- indianstatistics.org will also build an archive of important non-official data and documents related to Indian economy and society.
- indianstatistics.org will acknowledge accurately all original sources of data and documents hosted on the website.
- indianstatistics.org will only host data and documents that are publicly available, or data and documents for which the provider has specifically authorised indianstatistics.org to disseminate data.
- indianstatistics.org will provide all data and documents free of cost.
- indianstatistics.org will also provide links to external sources of data. However, in such cases, the accuracy of data, the format in which these data are provided and the issues of copyright are not a responsibility of indianstatistics.org
Some examples of how to customise the look of beamer presentations created using orgmode.
1. Changing the colors.
#+BEAMER_HEADER_EXTRA: \usetheme{Warsaw} \usecolortheme{beaver} \usefonttheme{serif} \setbeamertemplate{caption}[numbered] \useinnertheme{circles}
#+BEAMER_HEADER_EXTRA: \setbeamercolor{title}{fg=green!40!black}
#+BEAMER_HEADER_EXTRA: \useoutertheme{split}
#+BEAMER_HEADER_EXTRA: \setbeamercolor{section in head/foot}{fg=green!50!black}
#+BEAMER_HEADER_EXTRA: \setbeamercolor{subsection in head/foot}{fg=green!50!black}
#+BEAMER_HEADER_EXTRA: \setbeamercolor{item}{fg=green!50!black}
2. Adding logo on the title frame. (Replace unilogo with name of the file containing your logo. The extension is not necessary.)
#+LATEX_HEADER: \titlegraphic{\includegraphics[width=1cm,height=1cm]{unilogo}}
3. Adding logo on the top right of each frame (adapted from the solution provided here).
#+LATEX_HEADER: \usepackage[absolute,overlay]{textpos}
#+LATEX_HEADER:\setlength{\TPHorizModule}{1mm} \setlength{\TPVertModule}{1mm}
#+LATEX_HEADER: \newcommand{\MyLogo}{\begin{textblock}{14}(0.8,0.8) \includegraphics[width=0.8cm]{unilogo} end{textblock}}
The last line defines a command MyLogo which inserts the logo. Once again, replace unilogo with name of the file containing your logo. The extension is not necessary.
To run this command on every frame, I add the following to every frame.
#+LATEX: {\MyLogo}
I recently had to prepare a beamer presentation in hindi/devanagari. I usually use emacs-orgmode with a lot of R source code embedded in it to prepare my beamer presentations. To adapt the entire setup to work with devanagari, this is what I needed to do.
- Make orgmode export to latex using xetex rather than pdflatex.Instructions on how to make orgmode export through xetex are here.
I have following in my .emacs (taken straight from the website mentioned above)
(require 'org-latex)
(setq org-export-latex-listings t)
;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432
;; but adapted to use latexmk 4.20 or higher.
(defun my-auto-tex-cmd ()
"When exporting from .org with latex, automatically run latex,
pdflatex, or xelatex as appropriate, using latexmk."
(let ((texcmd)))
;; default command: oldstyle latex via dvi
(setq texcmd "latexmk -dvi -pdfps -quiet %f")
;; pdflatex -> .pdf
(if (string-match "LATEX_CMD: pdflatex" (buffer-string))
(setq texcmd "latexmk -pdf -quiet %f"))
;; xelatex -> .pdf
(if (string-match "LATEX_CMD: xelatex" (buffer-string))
(setq texcmd "latexmk -pdflatex=xelatex -pdf -quiet %f"))
;; LaTeX compilation command
(setq org-latex-to-pdf-process (list texcmd)))
(add-hook 'org-export-latex-after-initial-vars-hook 'my-auto-tex-cmd)
;; Specify default packages to be included in every tex file, whether pdflatex or xelatex
(setq org-export-latex-packages-alist
'(("" "graphicx" t)
("" "longtable" nil)
("" "float" nil)))
(defun my-auto-tex-parameters ()
"Automatically select the tex packages to include."
;; default packages for ordinary latex or pdflatex export
(setq org-export-latex-default-packages-alist
'(("AUTO" "inputenc" t)
("T1" "fontenc" t)
("" "fixltx2e" nil)
("" "wrapfig" nil)
("" "soul" t)
("" "textcomp" t)
("" "marvosym" t)
("" "wasysym" t)
("" "latexsym" t)
("" "amssymb" t)
("" "hyperref" nil)))
;; Packages to include when xelatex is used
(if (string-match "LATEX_CMD: xelatex" (buffer-string))
(setq org-export-latex-default-packages-alist
'(("" "fontspec" t)
("" "xunicode" t)
("" "url" t)
("" "rotating" t)
("american" "babel" t)
("babel" "csquotes" t)
("" "soul" t)
("xetex" "hyperref" nil)
)))
(if (string-match "LATEX_CMD: xelatex" (buffer-string))
(setq org-export-latex-classes
(cons '("article"
"\\documentclass[11pt,article,oneside]{memoir}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
org-export-latex-classes))))
(add-hook 'org-export-latex-after-initial-vars-hook 'my-auto-tex-parameters)
(setq org-latex-to-pdf-process
'("xelatex -interaction nonstopmode -output-directory %o %f"
"xelatex -interaction nonstopmode -output-directory %o %f"
"xelatex -interaction nonstopmode -output-directory %o %f"))
Having done this, I need the following line in my org file header to tell org that it should use xetex instead of pdflatex.
#+LATEX_CMD: xelatex
- xetex can use ttf fonts. We need to specify a font that has devanagari characters. On debian, ‘apt-get install ttf-devanagati-fonts’ installs several devanagari fonts. I could use them but my problem was that I could not find a font of which I liked both the devanagari and the roman characters. I wanted to use different fonts for devanagari and roman letters and, thus, needed a way of telling xetex to use different fonts for roman and devanagari characters. The solution for this, provided by Zdenek Wagner on the xetex mailing list, lies in installing and using ucharclasses.
After ucharclasses was installed, this was achieved by adding following lines to the header of the org file.
#+LATEX_HEADER: \usepackage{fontspec};
## The following lines allow me to use Garamond for roman letters and Sarai for devanagari letters.
#+LATEX_HEADER: \usepackage[Devanagari]{ucharclasses}
#+LATEX_HEADER: \setmainfont{Garamond}
#+LATEX_HEADER: \setTransitionTo{Devanagari}{\fontspec[Script=Devanagari]{Sarai}}
- Type devanagari in emacs. Emacs has fantastic support for this.
C-x C-m C-\ devanagari- TAB (pick whatever, I like devanagari-itrans)
C-h C-\ (gives you the keymap)
C-\ (to switch to English again)
C-\ (to switch to devanagari)
(thanks Jambunathan K. and Suvayu Ali for pointing this out on orgmode mailing list)
- Modify my R src codes to produce text in devanagari rather than in english. In most cases, I only had to rename factor levels and variables names in the final tables, so that output tables had text in devanagari. orgmode and xetex handled the rest.
The following line in file header replaces “Table” in Table caption numbering with तालिका
#+LATEX_HEADER: \renewcommand{\tablename}{तालिका}
- For graphs to have text in devanagari, I had to use the tikz device in R rather than the standard pdf device to create the pdfs. tikz device produces code that can be understood by the TikZ graphics language. All text in a graphic output with the tikz() function can be typeset by LaTeX and therefore will match whatever fonts are currently used in the document. The output of tikz device is a tex file that, using xetex and tikz, produces the desired graphic. I include that tex file into the beamer presentation.
Here is sample code that achieves this:
#+CAPTION: ग्राफ का नमूना
#+BEGIN_CENTER
#+Latex: {\footnotesize
\include{lorcurve}
#+LATEX: }
#+END_CENTER
#+BEGIN_SRC R :results output silent
require(tikzDevice)
options(tikzDefaultEngine=’xetex’)
tikz(file="lorcurve.tex",width=6,height=3,engine="xetex",standAlone = FALSE)
c(1:20)->क
क^2->ख
plot(क~ख)
dev.off()
#+END_SRC
Unison Makes Two-Way File Sync Simple | Wazi.
“Unison is a powerful file and directory synchronization tool that, unlike popular tools like rsync, can perform two-way synchronization. With Unison, you can sync files between your work computer and home desktop, and any changes done at one machine will be reflected at the other.”
Debian finally has gnome3 in its unstable repository. Given that there has been a lot of adverse commentary on gnome3, I am not sure if I am going to like it. At the same time, I have been very curious and wanted to try it.
This is what I did.
- Shifted to xfce about a week ago. That was fairly smooth. I liked xfce.
- Installed gnome3 from unstable repositories yesterday. With apt-pinning, I mix and match packages from testing and unstable. It just took:
apt-get update && apt-get -t unstable install gnome-session
I could not, however, login to gnome and had to use gnome-fallback.
With my intel graphics card, I still need to login to gnome-fallback. Open a terminal, and do “export GNOMESHELLDISABLE_TFP=1″. Then, alt-f2 and do “gnome-shell –replace”.
With this, I have gnome-shell.
Needed to fix extensions, install gnome-tweak-tool and several things like that. But I do, finally, have gnome3 on my computer.
Like it? Don’t know yet.
Problems that remain:
-
Mouse is sluggish. Freezes for a few moments and I have to bang the touchpad to wake it up.
-
Can’t turn off sounds of events. Does not respect ‘mute’ in settings.
V.
For the record: I shifted to xfce on the third day and have been a happy user of it since then.
The best Linux desktop search tools | TuxRadar Linux.
A review of various desktop search tools on linux. In sum, Recoll is the best.
V.
Debian Wheezy installation on my new Toshiba Portégé R700 went like a breeze. I only needed to install proprietary driver (wl) for the Broadcom wireless card. Everything else worked without a hitch.
Toshiba Portégé is a nice light-weight laptop weighing only 1.3 Kilograms. My machine runs on an Intel i5 processor, has a 500GB harddisk, an optical drive and the usual fare of features. On the whole, happy with it.
V.
Linux Mint Debian Edition (LMDE) is my current favourite linux distribution. It is built on Debian, which has the reputation of being the most stable, secure and well-tested linux distribution, and is extremely user-friendly.
LMDE and most current distributions of linux beat Windows hands down in terms of user-friendliness. LMDE is a breeze to install, you almost never need to reinstall the operating system on your computer, and you never need to worry about viruses.
LMDE comes free of charge and is fully compatible with Debian. A default installation packs most of the applications that a typical user is likely to need. If your computer is connected to the internet, thousands of other applications could be installed via its package manager.
You can find LMDE here. Look for the Debian Edition. A simple tutorial for LMDE installation is here.
If you are up for some adventure, try Debian. You will find it here.
Review of Agrarian Studies, the peer-reviewed journal of the Foundation for Agrarian Studies, is now online at www.ras.org.in.
V.
United Nations Economic Commission for Europe has published these two documents very interesting documents.
Making Data Meaningful, Part I
Making Data Meaningful, Part II
V.
|