I have learned latex to write reports and my thesis. I am using R a lot more for graphics. I was wondering: is there a way to change the font in R graphs to make them look more "latex-like"? I would like to include these graphs into latex docume
Hi I have the following code written in lyx preamble. It does not compile anymore and the following error messages are produced. \documentclass[titlepage]{csetr-notr} The document may only declare one class. \trnumber{0701} The control sequence at th
I want to include a table in my latex document that I create using knitr package. I "call" the table using: \begin{table}[H] \begin{centering} <<r second part}>>= kable(Per_cond, booktabs=T,row.names=F) @ \par\end{centering} \begin{c
\newenvironment{nameOfEnvironment}[1][]% Can someone explain the empty bracket? --------------Solutions------------- You should consider reading Is there a comprehensive and complete LaTeX reference? where you'll find information on all sorts of LaTe
I have a vector (e.g. letters) that I want to incorporate into my .Rnw knitr document as an itemized list. How do I do this? I have tried \Sexpr{letters} but it merely places commas between each: a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r,
I want to use a nicely formatted caption for my listings, as proposed in LaTeX source code listing like in professional books. Additionally the content should be framed. \documentclass{report} \usepackage{color} \usepackage{xcolor} \usepackage{listin
How can we convert Latex representation into symbolic math. For example, A LaTex representation y = \int x^2 Has an equivalent symbolic math representation as syms x y = int(x*x, x) Is there a function to perform this action? I know that there exists
I am writing a thesis in (Xe)LaTeX and versioning it on remote git repo X. The template I use is maintained by another person on remote git repo Y. I need to add one template file template.sty from Y in my repository. And when template.sty changes in
I am able to insert algorithms directly with Lyx 2.1.1 using insert->float->algorithm , however the algorithm lines are not numbered in the generated pdf. Is there any option that can number the algorithm lines or any work around to include alg
Right now I have a makefile that build the .tex file (latex) in the same directory as it and spits out a pdf version of that file and also a bunch of baggage with it. I was wondering how to specify in the make file where to send the result. I want to
I have a GUI program in Python which calculates graphs of certain functions. These functions are mathematical like say, cos(theta) etc. At present I save the graphs of these functions and compile them to PDF in Latex and write down the equation manua
After much searching on the Internet, I have never seen a satisfactory answer or explanation to the following problem. I would like to use CocoAspell for system-wide spell-checking on OS X 10.9 (plugs into TexShop, TextMate, etc.), but every time I i
I have some sweave expressions contained among text in some .Rnw files. The paragraph below contains two sweave expressions. What regular expression can I use to find the R code in each expression. So the regular expression should be able to find mea
Footnotes in org-mode are annoyingly different from the normal non-footnote environment. One difference is that one has to use "\par" instead of blank lines to separate paragraphs. Annoying, but at least it works. Another difference is that they don'
Is there a way to get IPython sessions with syntax highlighting integrated into a latex document using, for example, the minted package (https://github.com/gpoore/minted)? I have seen many ways of converting a notebook using nbconvert to a tex file.
I am using knitr and Latex to write an intro into and overview of R. How can I get a box around R code chunks and R output in Latex? I can get them when using R Markdown and knitr to generate HTML. The Sweave way to frame chunks with a box does not w
Is there any way to have the svn log command put its output into a latex document, which could then be later added to other latex documents? --------------Solutions------------- There is no built-in way to do it, but since you can get XML output from
I am using the following R code to call xtable and generate a LaTeX table for a Sweave document. ifelse(LaTeX==1, print(xtable(rule1.results.noTC, caption="Rule 1 Results 0 Transaction Costs", digits=c(1,2,4,4,4), display=c("d","d","f","f","f"))), pr
When fitting a generalized additive model with smoothed splines stargazer only returns the main effects and not the smooth terms which you can see in summary(pros.gam). Can stargazer return these as well? Or is there another function that can do it?
I am new to regex and have been struggling for a while on this one: I want to transform LaTeX files to HTML. I use mathjax to render equations and some javascript replace functions to convert the tags. I have nearly finished, but I still have an issu