tikz

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

孤者浪人 提交于 2019-12-03 07:58:14
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. \begin{figure}[h] \centering \subfloat[Graph 1]{ \begin{minipage}[h]{0.7\linewidth} \centering

Latex: stretchable curly braces outside math

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:06:23
问题 I am producing some latex beamer slides (but I think it is not a beamer specific question per se). I have the following: \begin{itemize} \item Issue1 \item Issue2 \item Issue3 \end{itemize} Now, I want to have a right curly brace (i.e. '}') behind the items spreading over issue1 and issue2. And of course I want to write something behind that curly brace. In a perfect world I would write something like: \begin{itemize} \left . \item Issue1 \item Issue2 \right \} One and Two are cool \item

Using bullets list in tikz's node label in rmarkdown

不想你离开。 提交于 2019-12-02 12:24:55
问题 I have a tikz code to generate some graphs that works properly in latex (tested on overleaf: https://www.overleaf.com). However, this is supposed to be part of a large rmarkdown file but I cannot seem to use bullets list in some of my node labels while in rmarkdown . My questions are: how can I use a list of bullets as tikz's node label in rmarkdown ? how can I customize that list to include some formatting like color, margin etc.? Where do things defined in latex using \newlist , \setlist go

Modular arithmetic on node names in TikZ?

半世苍凉 提交于 2019-12-02 01:47:48
问题 Say I want to construct a circulant graph in TikZ, with a variable number of nodes, labelled v0, v1, ..., v_n-1 for some n of my choice (say, 5). I'd like to be able to use the \foreach command in TikZ to iteratively (1) define the nodes, and (2) connect the nodes. I'd like to be able to connect v_i to v_(i+1) and v_i to v_{i+2}, say. \foreach \i in {0, ..., 4} {\path (\i*72:3) node (v\i) {};} constructs the nodes perfectly. But then when I want to draw some lines, \foreach \i \in {0, ..., 3}

Modular arithmetic on node names in TikZ?

白昼怎懂夜的黑 提交于 2019-12-02 00:11:02
Say I want to construct a circulant graph in TikZ, with a variable number of nodes, labelled v0, v1, ..., v_n-1 for some n of my choice (say, 5). I'd like to be able to use the \foreach command in TikZ to iteratively (1) define the nodes, and (2) connect the nodes. I'd like to be able to connect v_i to v_(i+1) and v_i to v_{i+2}, say. \foreach \i in {0, ..., 4} {\path (\i*72:3) node (v\i) {};} constructs the nodes perfectly. But then when I want to draw some lines, \foreach \i \in {0, ..., 3} { \draw (v\i) -- (v{\i+1}); } ???? doesn't work. Nor does \foreach \i / \j in {0/1, ..., 3/4} { \draw

TikZ in R Markdown

岁酱吖の 提交于 2019-11-30 04:02:34
R Markdown is a good tool for document authoring. It can use Latex statement in R Markdwon directory. But when I try to insert a TikZ picture, I am lost about how to add preamble \usepackage{tikz} in it, so compile will fail. example code: --- title: "R Markdown with tikz picture" author: "Me" date: "January 10, 2015" output: beamer_presentation --- ## TikZ picture - Here is a TikZ picutre \begin{tikzpicture} \draw (0,0) circle (2cm); \end{tikzpicture} Since actually it will generate a latex document, so it's fine to just add it in latex then compile it to pdf, but I wish I can just do it in R

TikZ in R Markdown

天涯浪子 提交于 2019-11-28 22:54:37
问题 R Markdown is a good tool for document authoring. It can use Latex statement in R Markdwon directory. But when I try to insert a TikZ picture, I am lost about how to add preamble \usepackage{tikz} in it, so compile will fail. example code: --- title: "R Markdown with tikz picture" author: "Me" date: "January 10, 2015" output: beamer_presentation --- ## TikZ picture - Here is a TikZ picutre \begin{tikzpicture} \draw (0,0) circle (2cm); \end{tikzpicture} Since actually it will generate a latex

Standalone diagrams with TikZ? [closed]

浪子不回头ぞ 提交于 2019-11-28 15:08:55
I'm using TikZ to draw diagrams in LaTeX that I then want to isolate as image files to put online. My guess is there is a way to extract these diagrams directly without having to tease them out of the finished .pdf file. How would I go about doing that? (If it matters, I'm using TeXnicCenter.) Following up on my comment: Cirkuit converts TikZ diagrams into images by running something like the following sequence of commands: pdflatex img.tex pdftops -eps img.pdf convert -density 300 img.eps img.png Here img.tex would be a LaTeX file that follows this template: \documentclass{article}

ggplot Donut chart

☆樱花仙子☆ 提交于 2019-11-28 04:25:27
Hi I really have googled this a lot without any joy. Would be happy to get a reference to a website if it exists. I'm struggling to understand the Hadley documentation on polar coordinates and I know that pie/donut charts are considered inherently evil. That said, what I'm trying to do is Create a donut/ring chart (so a pie with an empty middle) like the tikz ring chart shown here Add a second layer circle on top (with alpha=0.5 or so) that shows a second (comparable) variable. Why? I'm looking to show financial information. The first ring is costs (broken down) and the second is total income.

Standalone diagrams with TikZ? [closed]

岁酱吖の 提交于 2019-11-27 09:01:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'm using TikZ to draw diagrams in LaTeX that I then want to isolate as image files to put online. My guess is there is a way to extract these diagrams directly without having to tease them out of the finished .pdf file. How would I go about doing that? (If it matters, I'm using TeXnicCenter.) 回答1: Following up