Questions tagged [tikz]

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

470 questions
7
votes
1 answer

hf-tikz and sphinx are not playing well together

I am trying to add some color to my matrices in sphinx. I was using hf-tikz for it before. However, when I add it to Sphinx, it renders it incorrectly. The result that I am trying to get is The result I am getting is Here is the code that I…
RafazZ
  • 4,049
  • 2
  • 20
  • 39
7
votes
1 answer

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

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:…
N0rbert
  • 559
  • 5
  • 22
7
votes
1 answer

put listing in tikzpicture

I use the following code to create a box for equations. It uses Tikz to create the box. \documentclass[a4paper]{article} \usepackage{tikz} \usepackage{amsmath} \usepackage{amsmath,amssymb}% pour les…
7
votes
4 answers

How can I apply a style to existing tikz node on specific slides

This is what I'm trying to do \begin{tikzpicture} [node distance = 1cm, auto,font=\footnotesize, % STYLES every node/.style={node distance=1.3cm}, comment/.style={rectangle, inner sep= 5pt, text width=4cm, node distance=0.25cm,…
7
votes
1 answer

pgf/tikz: String Symbols as Input Coordinates

I'm new to pgf so i was trying out some examples from the pgfplot manual. One example is especially relevant for my current task but, alas, it would not compile. Here is the…
evolk
  • 125
  • 2
  • 7
7
votes
2 answers

R plot using tikzDevice in LaTeX document with knitr

I am having a problem making ggplot2, tikzDevice, and knitr working together. I am working with RStudio, and trying to include some R graphics in a Latex document. I used a very simple example: \documentclass{article} \begin{document}…
ben
  • 267
  • 2
  • 11
6
votes
1 answer

how to align two tikzpicture plots in latex

I am trying to use the subfigure method shown at https://www.latex-tutorial.com/tutorials/figures/ to make side by side plots but I can't seem to adjust the size and get them to go side by side...what am i doing wrong? Below is code I am using…
someone serious
  • 197
  • 1
  • 1
  • 8
6
votes
2 answers

Creating a tikz picture with 2 plots in a row

I've got a question concerning the creation of two plots in a row, using R with Package tikz device to send the tikz to Latex. What I want to do is, plotting 2 graphs in a row. What I did first was to create to plots in the par(mfrow=c(1,2))…
user734124
  • 489
  • 8
  • 20
6
votes
1 answer

Is it possible to increase resolution of image inserted to Word document from RMarkdown's TikZ?

I have simple RMarkdown document: --- output: word_document: default html_document: default --- ```{r,engine='tikz', fig.ext = 'png'} \begin{tikzpicture} \path (0,0) node (x) {Hello World!} (3,1) node[circle,draw](y) {$\int_1^2 x \mathrm d…
N0rbert
  • 559
  • 5
  • 22
6
votes
1 answer

insert label in between a arrow (not below/above) with edge node, tikz

I am trying to draw a graph with an arrow and I would like the label of the arrow to be in between the line (not above or below) like this: how the output should look like : I'm using the tikz library and edge node to draw the arrow between two…
michela
  • 61
  • 1
  • 1
  • 3
6
votes
3 answers

Problems with ggplot and pgfSweave

I started using Sweave some time ago. However, like most people I encountered pretty soon a major problem: Speed. Sweaving a large document takes ages to run, which makes efficient working quite challenging. Data processing can be accelerated very…
donodarazao
  • 2,773
  • 4
  • 26
  • 26
6
votes
2 answers

Use of \tikzexternalize

I want to improve compiling speed of my latex thesis. I have read that using \tikzexternalize, only when there is a change in the tikz codes they are compiled. The problem is that I can no use \tikzexternalize properly. This is my…
6
votes
1 answer

TikZ, resizing and fitting

I want to take a PGF picture, scale it down (scaling the text as well, so \resizebox would be perfect) to obtain a certain height, then put a rotated text on the left of the picture and create a node containing everything. Something like this: But…
dodomorandi
  • 1,143
  • 1
  • 11
  • 18
6
votes
0 answers

Unable to get tikzDevice to work

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…
6
votes
2 answers

How to make fig.width and out.width consistent with knitr?

I have recently discovered knitr and I mainly use it to produce plots with dev=tikz to get a Latex typesetting easily. However I don't understand how to set chunk options fig.width and out.width with consistency. I mean, I know that the first one is…
ClementWalter
  • 4,814
  • 1
  • 32
  • 54
1 2
3
31 32