tikz

Unable to get tikzDevice to work

非 Y 不嫁゛ 提交于 2019-12-22 05:41:30
问题 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

Control font size in graphics in LaTeX when scaling in minipage/subfig?

假装没事ソ 提交于 2019-12-20 20:16:09
问题 I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in general so as to make font sizing invariant to scaling? Ideally I'd like to be able to manually specify a font size per graphic or for all graphics or subfig/minipage environments? Here is an example of the usage as suggested. Thanks for the help.

Compile RMarkdown PDF with Waffle Chart and Glyphs FAILURE. MWE included

偶尔善良 提交于 2019-12-12 02:17:22
问题 I am unable to compile PDF using RMarkdown, the waffle package, and glyphs It doesn't matter if I use the TIKZ device or PDF rendering. The document compiles without a problem to HTML. The only work around I can think of right now is to create SVG graphic with the HTML compiler, then to reference those files in my intermediate .TEX file. Notice that if you simply run the code below the line that says, " ## ---- waffle_figure ---- ". It should create the chart given that you've previously

Infering the size of a minipage from the containing tikz node for rmarkdown

纵然是瞬间 提交于 2019-12-11 07:46:57
问题 This is a follow-up question to Using bullets list in tikz's node label in rmarkdown. I had some TikZ code that works fine in pure LaTex but NOT when I transport it to rmarkdown where the error ! LaTeX Error: Something's wrong--perhaps a missing \item. is raised. This was solved in the answer to Using bullets list in tikz's node label in rmarkdown but another issue arises applying the solution I got in there. You can refer to the original question (Using bullets list in tikz's node label in

Producing pdf with knitr and Rmarkdown: accents in text show up but not in figures.

做~自己de王妃 提交于 2019-12-11 07:17:06
问题 Accents in paragraphs work perfectly. Text in figures is correct in the plot viewer, but once I compile the pdf the accents disappear from the figures. Here's an example that reproduces the issue. --- title: 'Some title' author: 'This be me' date: '`r format(Sys.Date(), "%B %Y")`' lang: es header-includes: - \usepackage{tikz} output: pdf_document: fig_caption: yes --- ```{r global options, echo = F, message=F} library(knitr) opts_chunk$set(fig.width=6, fig.height=3.5, dev = 'tikz') ``` I have

Cannot add tikz code snippet in my .Rmd post using blogdown

允我心安 提交于 2019-12-11 07:05:37
问题 I have just started using blogdown and I have created a project by using template Hugo-Xmin. In RStudio, when creating the project in blogdown, it created some predefined posts, I am editing this one: /content/post/2015-07-23-r-rmarkdown.Rmd Adding a tikz image Following this question and the bookdown documentation on engines, I modified the afore-mentioned file by adding this snippet: This is a tikz picture: ```{r, echo=FALSE, engine='tikz', out.width='90%', fig.ext=if (knitr:::is_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$}]

How to force Tikz in RMarkdown document to show cyrillic text?

梦想与她 提交于 2019-12-06 06:11:10
问题 Below is my experimental RMarkdown document (named tikz-cyrillic.Rmd ): --- title: "TikZ cyrillic test" output: pdf_document: keep_tex: yes latex_engine: xelatex dev: tikz html_document: default word_document: default --- ```{r,engine='tikz', fig.ext = if (knitr:::is_latex_output()) 'pdf' else 'svg'} \begin{tikzpicture} \path (0,0) node (x) {Hello World!} (3,1) node[circle,draw](y) {$\int_1^2 x \mathrm d x$}; \draw[->,blue] (x) -- (y); \draw[->,red] (x) -| node[near start,below] {мир!} (y);

Unable to get tikzDevice to work

本小妞迷上赌 提交于 2019-12-05 07:56:45
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 after using the TikZ metrics dictionary. What I see is that the compilation actually produces a file

tikz: set appropriate x value for a node

纵然是瞬间 提交于 2019-12-05 00:10:05
问题 This question resulted from the question here I want to produce a curly brace which spans some lines of text. The problem is that I have to align the x coordinate manually, which is not a clean solution. Currently I use \begin{frame}{Example} \begin{itemize} \item The long Issue 1 \tikz[remember picture] \node[coordinate,yshift=0.7em] (n1) {}; \\ spanning 2 lines \item Issue 2 \tikz[remember picture] \node[coordinate, xshift=1.597cm] (n2) {}; \item Issue 3 \end{itemize} \visible<2->{ \begin