Questions tagged [tikz-pic]

{tikz-pic} is about questions concerning “pics” in a TikZ context. A “pic” is a “short picture” that can be inserted anywhere in TikZ picture where you could also insert a node.

From the TikZ/PGF documentation, section 18 Pics: Small Pictures on Paths

A pic is a short picture (hence the short name ...) that can be inserted anywhere in TikZ picture where you could also insert a node. Similarly to nodes, pics have a “shape” (called type to avoid confusion) that someone has defined. Each time a pic of a specified type is used, the type’s code is executed, resulting in some drawings to be added to the current picture. The syntax for adding nodes and adding pics to a picture are also very similar. The core difference is that pics are typically more complex than nodes and may consist of a whole bunch of nodes themselves together with complex paths joining them.

331 questions
32
votes
3 answers

How to get rid of the almost invisible faint lines in the Olympic rings?

I want to draw Olympic rings and used the code from here, which is, % Olympic rings % Author: Paul Gaborit \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \definecolor{r1}{RGB}{0,129,188} …
ddas
  • 1,205
5
votes
2 answers

Tikz standalone the background is transparent make it white

I'm using the below Latex code to draw a tikzpicture \documentclass[convert={density=300,size=1080x800,outext=.png},tikz, border=1cm]{standalone} \usepackage{{xcolor}} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw…
kelalaka
  • 395
4
votes
2 answers

wheelchart and danish letter æ ø å

Why can't I get the danish letter æ, ø, å ind the names in my wheelchart I want to write Mængder but it will not work for me. \documentclass[dvipsnames]{standalone} \usepackage[latin1]{inputenc} % Input-indkodning af tegnsaet…
3
votes
1 answer

Designing this graph with tikz

How can I design this diagram with tikz? \documentclass[a4paper]{book} \usepackage{tikz} \usepackage{tkz-berge} \usetikzlibrary{matrix,positioning,arrows,calc,patterns,automata} \begin{document} \begin{tikzpicture}[font=\footnotesize] \filldraw…
H.Gorbanzad
  • 355
  • 1
  • 10
3
votes
2 answers

Section of sine / clipped sine

I want to draw a limited sine curve. My problem is, that I know how to draw 1/4 sin but not how to get only a section of it. \setlength{\unitlength}{1mm} \begin{minipage}{\linewidth} \begin {nofloat}{figure} \begin{center} …
3
votes
2 answers

Circle Size tikzpicture

I would like to set the size of the "plus" circle smaller. I have tried with minimum size and with radius but nothing changes. Here the minimal document: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows,positioning} \tikzset{ …
Sam
  • 277
3
votes
1 answer

How to format text partially over image?

I have a tall image that I'd like to display along the right hand side of a page, but have text flow along the left side. The image is obviously rectangular in dimensions, but has a large transparent section that I'd like to flow text over. I've…
ksr78
  • 33
2
votes
1 answer

Unexpected capacity exceeded

The following code gives me an unexpected capacity exceeded error, and I don't understand why... \[\begin{tikzpicture}[xscale=5, yscale=5.5] node (1) at (0,0){ $\begin{tikzpicture}[xscale=0.6, yscale=0.6] …
JeCl
  • 145
1
vote
1 answer

Drawing a cone and coloring it without its basis

How can I draw a cone and color it except its basis (circle). Then drawing an arrow from the colored part and adding a comment?
1
vote
2 answers

Behavior of coordinates when using TikZ

I am trying to position node(2) in a page in coordinates related to the page (origin at upper left corner of the body of the page). My code is: \documentclass[border=10pt,a4paper]{memoir} \usepackage[total={16.51cm,21.59cm}, top=1.2in, left=0.9in,…
Richard
  • 210
1
vote
1 answer

tikz: left side of line rounded, right side of line faded out

So I'm new to the Tikz-package and I would like to know how I can make following line: Now, I don't know how to do that, but I'm able to make these two lines (the exact color doesn't matter): The two lines I created are slightly different from what…
Mario
  • 105
1
vote
3 answers

looking for Efficient alternative to my tikzpic code

I have a tikzpicture that has repeated elements. Right now I am defining them individually. But I would like to have a code that defines one template-triangle whose dimensions I control (like I do in my example via p1,q1) and use rotation to control…
NAASI
  • 2,809
1
vote
1 answer

Creating pattern from tikzpic

I have a tile.tex (a separate file) that I call in my main document. I want to do two things Create a pattern of 3x5 by stitching together tile.tex. This means I will be calling tile.tex 15 times. I need to control rotation of each tile. Since my…
NAASI
  • 2,809
0
votes
1 answer

Convex hull of a line and a circle

How to draw the convex hull of a circle and a line in a grid. The picture is attached.
6-0
  • 217
0
votes
0 answers

Tensile Load a load that stretches or pulls the body or structure along its length

\begin{tikzpicture} \draw[thick] (0,0) -- (4,0); % rod \draw[->,>=stealth] (0,0) -- (-1,0) node[left] {$P$}; % left force \draw[->,>=stealth] (4,0) -- (5,0) node[right] {$P$}; % right force \node[below] at (2,0) {Tensile load}; \end{tikzpicture}
simi
  • 1
1
2