Monday, May 9, 2011

R Graphics. Too Small Graphics

How to make these graphics bigger. There is a scale function

scales = list(x=list(relation="free"))

Sunday, May 1, 2011

Latex: Mara Symbol Generator. Draw the symbol

Like the application you can get for the itouch or iphone


http://detexify.kirelabs.org/classify.html

What is this?

Anyone who works with LaTeX knows how time-consuming it can be to find a symbol in symbols-a4.pdf that you just can't memorize. Detexify is an attempt to simplify this search.

How do I use it?

Just draw the symbol you are looking for into the square area above and look what happens!

My symbol isn't found!

The symbol may not be trained enough or it is not yet in the list of supported symbols. In the first case you can do the training yourself. In the second case just drop me a line (danishkirel@gmail.com)!

latex line numbers

A great resource is here
http://www-d0.fnal.gov/Run2Physics/WWW/templates/lineno.html

you can do every 5 numbers if you use \modulolinenumbers[5]

the key is:
\usepackage{lineno}
\begin{document}
\linenumbers

*linenumber command  comes after \begin{document}

Another example with more options:


  Example for D0 PRL template with line numbers printed every 5 lines and starting at 1 for each page:



\RequirePackage{lineno}
\documentclass[aps,prl,twocolumn,showpacs,groupedaddress]{revtex4}  % for review and submission
\usepackage{graphicx}  % needed for figures
\usepackage{dcolumn}   % needed for some tables
\usepackage{bm}        % for math
\usepackage{amssymb}   % for math

\begin{document}
\setpagewiselinenumbers
\modulolinenumbers[5]
\linenumbers
....


Notes:
  • In case that the table of content becomes garbled, add the \linenumbers command after the \tableofcontent command.
  • To increase the font size of the line numbers add

        \def\linenumberfont{\normalfont\small\sffamily}

    (in two column layouts this might have the unwanted effect of line numbers of the right column overlapping with the text in the left column)

R latex interface graphics

From Kevin Eng
http://www.r-bloggers.com/produce-authentic-math-formulas-in-r-graphics/