I am loooking for a LaTeX command similar to \LaTeX but for the statistic program R. Does anybody know if there exists sth?
121219
I tried to mimic the R logo in jpg format  only with LaTeX in order to make it scalable with the context without external files.   This is the result at tiny, normal and huge size, compared with the jpg at scale 25%, 50 and 100%:    Evidently, the LaTeX logotype is far from perfect in many areas even at normal size, but the worst is that the proportion between character R and the background circles (\bircirc) is not constant, although everything is defined in em units. Why?  Could be a better way to construct a pretty inline R logo? Of course, it should be not the jpg file nor a scalable vector graphics (SVG) converted to pdf, nor a simple format of the R character, like \newcommand{\R}{\textbf{\textup{R}}}  This is the MWE code:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xspace} \usepackage{xcolor} \usepackage{graphicx} \definecolor{Rcolor}{RGB}{150,160,190}  \newcommand{\R}{% \raisebox{.3em}{\hspace{1.2em}% \llap{\resizebox{1.09em}{.5em}{\color{black}$\bigcirc$}}% \llap{\resizebox{1.199em}{.55em}{\color{darkgray}$\bigcirc$}}% \llap{\resizebox{1.19em}{.52em}{\color{gray!50}$\bigcirc$}}% \llap{\resizebox{1.1em}{.5em}{\color{gray}$\bigcirc$}}% \llap{\resizebox{1.25em}{.55em}{\color{gray}$\bigcirc$}}% }% \hspace{-.85em}% \textbf{% %\resizebox{.55em}{1.5ex}{\textcolor{black!80}{\textsf{R}}}% \textcolor{black}{\textsf{R}}% \hspace{-.025em}\raisebox{.01em}{\llap{\textcolor{Rcolor}{\textsf{R}}}}% }% \xspace}  \begin{document}  Bitmap logo:  \includegraphics[scale=.25]{Rlogo.jpg} \includegraphics[scale=.5]{Rlogo.jpg} \includegraphics[scale=1]{Rlogo.jpg}  \LaTeX\ logo:~~  \tiny{\R}  \normalsize{ \R}  \Huge{\R}   \end{document}
50721
Is there a TeX command that returns the width of a given text as length value, so that I can use the result directly as a length argument of another command?  I mean, I would like to have a command \getWidth{my text} and want to use the result directly as the first argument of \parbox:  \parbox{\getWidth{my text}}{my foo\\bar text}
29403
I am new to TeX/LaTeX. How do I install TeX on Windows (7)? It seems that there are many different implementations, so which one is best for my OS?
71890
I'm using lstlisting to include my R code in my LaTeX, however, the minus sign after &lt; is not appearing in the compiled file.  \usepackage{listings} \begin{document}  \begin{lstlisting} [language=R]  n&lt;- c(10, 15, 20, 35) w &lt;- c(300, 500, 700,100) i &lt;- c(1, 1, 2, 2)  j &lt;- c(1, 2, 1, 2)  beta &lt;- c(1, 1)  for (iter in 1:20) {  alpha &lt;- sqrt(tapply(w*n^2/beta[j], i, sum)/                tapply(w*beta[j], i, sum))  beta &lt;- sqrt(tapply(w*n^2/alpha[i], j, sum)/               tapply(w*alpha[i], j, sum))}  alpha        1        2  11.41714 24.63072    beta         1         2  0.8229245 1.3470172  \end{lstlisting} \end{document}
18995
I need to write some mathematical induction using LaTeX. Are there any packages that I can use for that purpose?
3764
Is there a way to easily compute  (or the cumulative distribution function of the normal law) in LaTeX?  Currently, I use pgf to make computation, but I did not find a way to compute erf using pgf.  I would be happy to use any package that is available to compute erf, or any custom solution to compute that function.
20492
Mathematical operators, such as function names, should be set in roman type, not italics. Latex already has commands for some operators, including \max, \min, and \log.  How can I define additional such commands?
99483
I was just wondering if there was a LaTeX tool for making paragraphs of text into perfect rectangles. The effect is shown below in a schematic
84333
I'd like to learn and use LaTeX on Ubuntu.  What packages do I need?  What is the best editor for LaTeX code on Ubuntu for a new LaTeX user?  I'd also like the ability to see the code in one pane and the results in a second pane, if possible -- not necessarily WYSIWYG, though.
55487
I want to create a pie chart in LaTeX. Do you know a package which manages that? I tried datatool which uses tikz as backend but seems to be unusable due to mysterious floating point errors.
118876
I wanted to make a command that outputs a number in math mode. This is how my file looks like:  \documentclass{scrartcl}  %\usepackage{epsdice} %\newcommand{dice}[1]{\epsdice{#1}}  \newcommand{dice}[1]{\ensuremath{#1}}  \begin{document} Lorem ipsum... \end{document}   But when I compile this with XeTeX, I always get this error:  ! LaTeX Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.13 \newcommand{dice}[1]{\ensuremath{#1}}   I have not that much experience with TeX, I think the solution is quite easy.
107780
\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 8} \end{center} Sometimes we have to typeset a sequence of calculations: \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \begin{quote} \begin{verbatim} \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \end{verbatim} \end{quote} Here is another way: \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} \begin{quote} \begin{verbatim} \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} Observations: \begin{itemize} \item The eqnarray environment is a displayed array with three columns.  It is aligned on the center column. \item The \verb+*+ supresses the generation of equation numbers. \end {itemize} ---Britney Wiggins \end{document}
54350
What is the best way to write a ? Isn't there any standard command in LaTeX? For example, a command \binom is for binomial coefficients.  In the wikipedia article on Stirling number of the second kind, they used \atop command. But people say \atop is  recommended.
56573
Is there a program equivalent to lint for LaTeX? (lint checks C code for syntax errors and possible mistakes.)
111158
How could I write my name, for example, in a \LaTeX style? It is just interesting, as in Google all other things pop up when I try to search for an answer!
42336
After reading another question relating to how to see definitions of commands, I tried:  \documentclass{article} \begin{document} \show\LaTeX \end{document}   But this shows me in my logfile:  \LaTeX=macro: \protect \LaTeX   I just want to see where the \LaTeX command deep down somewhere finally says "OK, make the 'L' big, then make a little raised 'a,' then ..."
36992
Is it possible to automatically "add" \left and \right commands in front of all brackets? The source code should be left intact, but LaTeX should interpret every pair of brackets as if they were preceded by such commands. This is because adding \left and \right commands is time consuming and makes source code longer and less readable. I considered defining new commands such as \lb and \rb for \left( and \right), but it doesn't seem very elegant to me: what if I also want to add square brackets for example?  Any ideas? Thanks.