latex

With knitr and .Rnw for LaTeX, how do you print the full bibliography in PDF output?

寵の児 提交于 2019-12-04 05:32:47
I can't seem to hack my way through all the possibilities and have a full bibliography inserted in the PDF output of RStudio, knitr , an .Rnw script, and the "Compile PDF" button. The desired text in the PDF would be the details of the cited works. Here is a Lilliputian bibtex file, called jabrefbibtest.bib , saved in the working directory. @Book{GreentargetEngagement2012, Title = {"2012 - In - House Counsel New Media Engagement Survey"}, Author = {"Inside Counsel "}, Publisher = {"Greentarget"}, Year = {"2012"}, Pages = {"20"}, Plots = {"9"}, Tables = {"0"}, Url = {"http://www.greentarget.com

Setting size of the rgl device

左心房为你撑大大i 提交于 2019-12-04 05:10:26
I have a problem with the fullscreen / non-fullscreen of my rgl device. Currently I use R 3.00 I plot a persp3d plot (library rgl) into my device, it opens in a quite small window: The R code: persp3d(x, y, z, theta=50, phi=25, expand=0.75, col=red, ticktype="detailed", xlab="", ylab="", zlab="",axes=FALSE) axes3d(c('x--','z')) axis3d(edge='y+-',at =c(1,500,1000,1500,2000,2320), labels =rownames(fd)[c(1,500,1000,1500,2000,2320)]) Which looks like this: I now rotated it and saved the single png files to my drive. The problem is, that the png files are too small? I want to put them into one

Changing style of PDF-Latex output through IPython Notebook conversion

筅森魡賤 提交于 2019-12-04 05:08:39
Currently with the following command of my .ipynb file : $ ipython nbconvert --to latex --post PDF Untitled1.ipynb --SphinxTransformer.author="John Doe" [NbConvertApp] Using existing profile dir: u'/Users/me-macmini/.ipython/profile_default' [NbConvertApp] Converting notebook Untitled1.ipynb to latex [NbConvertApp] Support files will be in Untitled1_files/ [NbConvertApp] Loaded template article.tplx [NbConvertApp] Writing 12876 bytes to Untitled1.tex [NbConvertApp] Building PDF [NbConvertApp] Running pdflatex 3 times: [u'pdflatex', u'Untitled1.tex'] [NbConvertApp] Running bibtex 1 time: [u

Matplotlib latex working directory / search path

只愿长相守 提交于 2019-12-04 05:00:48
Matplotlib doesn't seem to find files in the current working directory when running latex. Does anyone know where it looks for files? The background is: I have a huge preamble that I \input into latex before processing (lots of macros, various usepackages, etc.). In a stand-alone paper, I do \input{BigFatHeader.tex} . So when I use matplotlib, I try to just input this file in the preamble. The python code to do this is matplotlib.rcParams['text.latex.preamble'].append(r'\input{BigFatHeader.tex}') And I can verify that that file is in the cwd -- I see it when I ls , or I can do os.path.isfile(

How to type tilde in formulas in RMarkdown

匆匆过客 提交于 2019-12-04 04:52:16
I am trying to type equations on RMarkdown to create a PDF and I want to use a tilde, how can I go about it. I am trying this but throws back a pandoc.exe: Error producing PDF from TeX source .... --- title: "See" date: "24 September 2016" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` follows a Bernouli distribution $$y_i \~ Bernouli(p_i)$$ Hansel Palencia I believe if you do $$ \sim $$ This should produce the ~ you are attempting to place in your formula. 来源: https://stackoverflow.com/questions/39671612/how-to-type-tilde-in-formulas-in-rmarkdown

Splitting knitr Chunk code and output into two different knitrouts

烈酒焚心 提交于 2019-12-04 04:46:53
The knitr Chunk option results = "hold" can put the output after the Chunk Code . I wonder how to split knitr Chunk code and output into two different knitrouts possibly with heading of Code and Output . Thanks in advance for your help. \documentclass{article} \begin{document} << label=Test, results = "hold" >>= 1:100 args(lm) @ \end{document} Desired Output Code 1:100 args(lm) and Output [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 [55] 55 56 57 58 59 60 61 62 63 64 65 66

Creating documentation with maven

ⅰ亾dé卋堺 提交于 2019-12-04 04:35:06
I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I have the time to reconsider now. I am interested in using maven and either LaTeX or DocBook for creating documentation, and I was wondering if anyone had any experiences to share, project/module structure, good plugins to use, etc... Many thanks :-) Edit: Just to clarify, I was looking to write a technical article/book,

Robust se. (vcovHC) to be shown with texreg in R

為{幸葍}努か 提交于 2019-12-04 04:29:54
问题 I am doing some regressions with the plm package, then if needed, I also obtain heteroskedasticity consistent coefficients. Below are the commands that I run; library(plm) data("Produc", package = "plm") zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp, data = Produc, index = c("state","year")) summary(zz) coeftest(zz, vcovHC) My problem starts here. Below is the list of commands to obtain a Latex output with the help of the texreg. How can I integrate the result obtained with the

Changing git conflict markers

爱⌒轻易说出口 提交于 2019-12-04 04:16:25
Is it possible to change the conflict markers to something user defined? Motivation: It has happened several times to me that, due to hasty and not very careful merging of several branches, there are some left over merge tags in my LaTeX document. With most programming projects these tags would result in an syntax error and therefore I would spot them. However, in Latex the <<<<, ==== and >>>> tags are just compiled into some other character sequences without any warning. To remedy this I would like to change these conflict markers into something that doesn't compile, or at leasts make them

How to box a formula in MathJax?

假如想象 提交于 2019-12-04 04:13:46
How do I draw a box around a formula in MathJax? I've seen \boxed{} recommended for LaTeX in general, but MathJax doesn't support that operation. Is there an alternative that does the trick? \boxed is in the AMSmath extension, so if you put "TeX/AMSmath.js" in the extensions array of your configuration, you will be able to use the \boxed{} macro. Alternatively, try \fbox{}. 来源: https://stackoverflow.com/questions/5184977/how-to-box-a-formula-in-mathjax