latex

Pdflatex run crashes when executed from Java (on Windows)

喜欢而已 提交于 2019-12-11 00:47:06
问题 When I try to compile the below Latex document from Java , my pdflatex run crashes: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \pagestyle{empty} % \tikzstyle{int}=[draw, fill=blue!20, minimum size=2em] \tikzstyle{init} = [pin edge={to-,thin,black}] \begin{tikzpicture}[node distance=2.5cm,auto,>=latex'] \node [int, pin={[init]above:$v_0$}] (a) {$\frac{1}{s}$}; \node (b) [left of=a,node distance=2cm, coordinate] {a}; \node [int, pin={[init]above:$p_0$}]

Customize or remove the header of reference after specify csl on Bookdown

心已入冬 提交于 2019-12-11 00:35:50
问题 I specified a csl bibliography style as described by this method of bookdown Chinese example, and found the header for the Reference was incorrect, it should be "参考文献(Reference) instead of "附录(Appendix)" for the second page of Section Reference. How can I customize it to 'Reference' or just remove it. 回答1: You can use the LaTeX command \markboth{left page}{right page} to set the page headings, i.e. something like this # 参考文献 {#references .unnumbered} \markboth{参考文献}{参考文献} ```{r include=FALSE}

Printing ggplots out of list does not work in knitr with rmarkdown

房东的猫 提交于 2019-12-11 00:29:01
问题 I would like to put ggplots into a list and then later print each one in the list. That should be done with rmarkdown and knitr in RStudio. MWE (of course, in real, the list gets filled somewhere else than printed): --- title: "nice title" author: "Me" date: 12\. Januar 2016 output: pdf_document: fig_caption: yes fig_width: 7 keep_tex: yes number_sections: yes toc: yes html_document: default --- Here is my plot: ```{r, echo=F} library(ggplot2) printGGlist <- function(gglist){ for(gg in gglist

Caption not appearing for LaTeX table when knitting using Hmisc LaTeX Function

我的未来我决定 提交于 2019-12-10 23:59:28
问题 I am trying to create a LaTeX table using the table and Hmisc packages however, I am having trouble getting the caption to appear. Here is a reproducible example: ```{r, results = "asis"} # data: dow <- sample(1:7, 100, replace=TRUE) purp <- sample(1:4, 100, replace=TRUE) dow <- factor(dow, 1:7, c("Mon", "Tues", "Wed", "Thurs", "Fri", "Sat", "Sun")) purp <- factor(purp, 1:4, c("Business", "Commute", "Vacation", "Other")) dataframe <- data.frame( dow, purp) # The packages library(tables)

How to evaluate LaTeX formula in javascript?

纵然是瞬间 提交于 2019-12-10 23:19:24
问题 I have javascipt string in LaTeX format. For example: \frac{y^2}{2}x-\frac{2}{\sqrt{y}}+2(x-y)^2 I want to be able evaluate it with defined variables. Does anyone know framework or lib for this purpose? I've tried to find it in google and stack but without success. If you suggest to evaluate it using replace/eval - please answer without evaluating example above. Do not waste your strength =) Sorry, if I duplicate someone question - I will be grateful for link. 回答1: I think you'd need to get

\subparagraph{} equivalent in html

廉价感情. 提交于 2019-12-10 22:03:57
问题 I have my habits with LaTeX, then in HTML I don’t know which element can replace the LaTeX’s \subparagraph{} command. <br /> isn’t a good idea because it is the equivalent of the blank line in LaTeX. I can create a special class “subparagraph” but before I want to know if HTML didn’t have a similar element. The \subparagrahp{} LaTeX’s command is something between the paragraph and the HTML’s <br /> element. Overapi didn’t tell me more :/ Someone have any idea please? 回答1: You could use a div

Unable to make sense out of “Rstudio pdf knit fails with 'Environment Shaded undefined' error” [duplicate]

大兔子大兔子 提交于 2019-12-10 21:28:37
问题 This question already has answers here : Rstudio pdf knit fails with “Environment Shaded undefined” error (5 answers) Closed last year . I am creating a report using the rticles package and I get the following error when knitting an rticle IEEE paper which includes code-chunks: output file: rticles_IEEE.knit.md ! LaTeX Error: Environment Shaded undefined. I tried to understand how to fix the issue and played around with this question/answer. But I fail to see where to put the fix into the

r markdown biblio-style does not work

社会主义新天地 提交于 2019-12-10 21:20:05
问题 I have some troubles of changing the citation style of bibliography in my thesis. According to r-markdown to specify the bib style (I need acm from latex) I just need to do the following: --- title: "title" bibliography: biblioteka.bib biblio-style: acm output: pdf_document --- However, the biblio-style: acm seems to have no influences on the citation style. current citation : random forest has been already applied in credit scoring [@author1] ... @Article{author1, Title = {some title},

Individual function docs in LaTeX using doxygen

亡梦爱人 提交于 2019-12-10 20:24:16
问题 I'm writing a manual of sorts in LaTeX for some software. I'm constrained to use the article class. I must include docs of individual c++ classes in the manual. I'm looking at doxygen for this, but I've never used doxygen (if there's a better way, let me know). I can get doxygen to produce a nice LaTeX (--> pdf) file of my entire project. But what I'd like to do is somehow extract the LaTeX source for each class and drop it into my LaTeX manual source at the appropriate place. I've tried

knitr/rmarkdown/Latex: How to cross-reference figures and tables in 2 different pdf files?

别等时光非礼了梦想. 提交于 2019-12-10 19:49:13
问题 I'm trying to write a scientific article and the associated supplementary materials entirely in RStudio with rmarkdown. It seems clear that book down is the way to go to cross-reference between files (https://stackoverflow.com/a/38884378/576684), but I also would like to be able to reference figures produced in one pdf in the other pdf. Although my latex has got quite rusty with time, I imagine it could be achieved as follows: compile the article tex and SuppMat tex a first time using