tikz

Getting data from a chart that is displayed on a website

扶醉桌前 提交于 2021-02-06 09:12:25
问题 I was asked to draw a graph like this one using Latex (more precisely, tikz and/or pgf). This would not be a problem if I had the data, but I don't. All I have is the website from where graphs can be displayed, but I don't know how to get the data from there. I spent the day today trying to get this data, including writing to Google and using a type of software which traces the line and infers the points of a graph, such as Datathief and DigitizeIt, but I was unsuccessful. I think the latter

Getting data from a chart that is displayed on a website

自作多情 提交于 2021-02-06 09:11:50
问题 I was asked to draw a graph like this one using Latex (more precisely, tikz and/or pgf). This would not be a problem if I had the data, but I don't. All I have is the website from where graphs can be displayed, but I don't know how to get the data from there. I spent the day today trying to get this data, including writing to Google and using a type of software which traces the line and infers the points of a graph, such as Datathief and DigitizeIt, but I was unsuccessful. I think the latter

How to insert trigonometrical shape in webpage?

守給你的承諾、 提交于 2020-07-16 09:42:21
问题 I am working a project in which I have to insert thousands of trigonometrical shape in a webpage. Basically I'm working on a project of converting an ancient book in html. But the problem is- drawing a svg in Adobe illustrator or in any software is time consuming and managing thousands of svg shape in one html page seems very difficult for us. I have searched a lot in stack overflow to draw a shape quickly and I found this library which convert latext into svg which seemed to be a great

How to insert trigonometrical shape in webpage?

时光总嘲笑我的痴心妄想 提交于 2020-07-16 09:41:46
问题 I am working a project in which I have to insert thousands of trigonometrical shape in a webpage. Basically I'm working on a project of converting an ancient book in html. But the problem is- drawing a svg in Adobe illustrator or in any software is time consuming and managing thousands of svg shape in one html page seems very difficult for us. I have searched a lot in stack overflow to draw a shape quickly and I found this library which convert latext into svg which seemed to be a great

How can I force knitr to input a tikzpicture directly?

不羁的心 提交于 2020-02-04 04:46:46
问题 My aim is to produce a document by mixing hand-written .tex files and .tex files generated from an Rmarkdown file using knitr with figures rendered as tikzpicture. How do I achieve the generated .tex file to simply contain \begin{figure} \input{unnamed-chunk-1-1.tex} \end{figure} I am struggling with tikz as device. I tried the tikzDevice library as well as knitr::opts_chunk$set(dev="tikz") I managed to create a .tex file with a tikzpicture environment for every chunk. Unfortunately knitr

How can I force knitr to input a tikzpicture directly?

旧街凉风 提交于 2020-02-04 04:46:14
问题 My aim is to produce a document by mixing hand-written .tex files and .tex files generated from an Rmarkdown file using knitr with figures rendered as tikzpicture. How do I achieve the generated .tex file to simply contain \begin{figure} \input{unnamed-chunk-1-1.tex} \end{figure} I am struggling with tikz as device. I tried the tikzDevice library as well as knitr::opts_chunk$set(dev="tikz") I managed to create a .tex file with a tikzpicture environment for every chunk. Unfortunately knitr

Too much white space between caption and figure produced by tikzDevice and ggplot2 in LaTeX

时光毁灭记忆、已成空白 提交于 2020-01-24 10:14:33
问题 I'm currently using R's ggplot2 and tikzDevice packages to produce graphics and introduce them in LaTeX documents, but I'm struggling with the resulting big white spaces between the figures and the captions, as you can see if you compare the images (I've manually highlighted the spaces to make it clearer): Here's my MWE: The R code: library(ggplot2) library(tikzDevice) set.seed(1) x <- rnorm(200) tikz(file = "Rplots.tex", width = 4, height = 4) qplot(x, geom = "histogram") dev.off() and the

pandoc skip latex environment

痴心易碎 提交于 2019-12-23 11:56:42
问题 I'm writing mainly in LaTeX, but some co-authors prefer MS Word. To facilitate their work a bit, I would like to convert the .tex file (or the .pdf ) to a .docx . The formatting does not need to be perfect, but all of the text, equations, figures etc should be perfectly readable. I'm currently thinking to take the .tex document, replace all the essential stuff and then let Pandoc do it's magic. For this I would preferably implement my additions as a Pandoc filter. E.g., my tikz pictures would

Unable to get tikzDevice to work

送分小仙女□ 提交于 2019-12-22 05:41:31
问题 I have a problem with tikzDevice . I'm using the latest versions of R (with latest knitr and tikzDevice packages) and RStudio , updated TeX Live to 2015 binaries (and I think I have all the required packages). When I try to output graphics to tikzDevice , compilation hangs. Other graphics devices like PDF or CairoPNG work without a problem. As an example, I tried to compile a the simple code below from RStudio with XeLaTeX (set as the default LaTeX compiler in RStudio ), but it hangs forever