Questions tagged [tikz-styles]

{tikz-styles} are predefined sets of options that organize how graphics elements are drawn. It is thus possible to program specific styles and reuse the styles on different objects. The {tikz-styles} tag can be used in parallel with {tikz-pgf}.

Filter by
Sorted by
Tagged with
6
votes
2answers
680 views

changing your latex code to modify the existing block diagram

My figure now looks like figure 1 using below code whenever I try to add more blocks ,the blocks become overlapping . % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[...
6
votes
1answer
1k views

Error using tikz/pgf with font=\size (and minimal document class)

I'm having an issue with pgfplots/tikz when trying to change the font size for legends/nodes. Any command that contains "font=\size" fails (for example, "font=\small") with the error "Undefined ...
6
votes
1answer
10k views

Draw a filled circle at every point of a TikZ plot

Consider the following simple example: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate (b) at (1,1); \coordinate (c) at (2,0); \...
6
votes
2answers
1k views

Split circle in tikz unevenly

How can split circle (tikz shape circle) in two parts. However, I would like the split to be uneven i.e. the top part occupy lets say 30% of the area and lower part the rest 70%. Thanks
6
votes
1answer
2k views

How to make a full equation with tikz?

I am using this solution here to make long dashes within a matrix, and it is working well. The code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} % possible to customize here ...
6
votes
2answers
1k views

Off page connector using Tikz

I'm creating a flowchart using TikZ. You can see my code so far below. But now I want to create an off page connector: I don't have a clue how to implement this in my \tikzset. Furthermore I want ...
6
votes
2answers
178 views

TIKZ - changing one block into parallel multiple blocks

I have the following code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, ...
6
votes
1answer
418 views

How can I solve this problem when I write a lot?

In this fantastic post of @percusse: https://tex.stackexchange.com/a/67736/159009 I have problems when I write so much words, like this: \documentclass{standalone} \usepackage{tikz} \usepackage{...
6
votes
2answers
216 views

Can we use `let` (from `TikZ`) inside a node's style definition?

I know how to use let from TikZ calc library into a path command and fix some parameter of a particular node on that path. But I would like to use inside node's style definition. As an example, ...
6
votes
1answer
997 views

Distance between arrows and nodes in tikzcd [closed]

How can I adjust the default distance between arrows and nodes in tikz-cd? I prefer a global solution, but a local solution would also be fine. I think the default distance is a little bit too large (...
6
votes
1answer
260 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} \...
6
votes
1answer
945 views

When to use TikZ styles?

I planned to illustrate how a quadtree data structure I'm using is implemented, showing all internal pointers and arrays. The image will look something like this: (Here, if a pointer points at the ...
6
votes
1answer
250 views

How to rotate the box

How to rotate the box? How to change the above grid to the below shown grid I used this code to rotate \draw[step=1, red,thin,rotate=30] (-1cm,-1cm) grid (1cm,1cm); but i don't wan't to rotate ...
6
votes
2answers
730 views

TikZ custom “to path” with curved edges

I am trying to define a style that sets to path such that a “curvy rectangle” (manifold representation) is drawn when I put \draw (0,0) to[manifold] (5,3). I have manually made the shape by ...
6
votes
2answers
245 views

Wrong indentation in tikz environment

I want to create a titlepage with tikz and therefore I have a node within a title and a subtitle after a line-break. The problem now is, that something is wrong with the indentation, as you can see ...
6
votes
1answer
1k views

What is the correct way to pass array elements to TikZ styles?

I'm trying to use styles to generate TikZ figures that have repeated, regularly spaced elements by looping through an array, but am perplexed by the results I'm getting. For example, if I define the ...
6
votes
1answer
558 views

Customize the Table of Contents

I want to customize my TOC starting with this example : How to customize the table of contents using TikZ? I have done some changes, but I want more, here is my Code : \documentclass[12pt,a4paper]{...
6
votes
1answer
280 views

Define style in TikZ

I have the following code \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{positioning,arrows} \definecolor{babyblue}{rgb}{0.54, 0.81, 0.94} \begin{document} \begin{tikzpicture} % heads ...
6
votes
1answer
208 views

Can someone help me to produce this flow diagram in LaTeX?

What I have done so far is nowhere near what I want: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usepackage{...
6
votes
1answer
662 views

Tikz path starting from inside a node

How can I have an arrow, which goes from an outer node to an inner node, leave the outer node from the inside of its border. In the MWE below the arrow leaves the outer blue node's border from the ...
6
votes
1answer
406 views

Change filling of TikZ nodes in repeated picture

A diagram drawn with TikZ is used a couple of times and I defined a command for it. In the first picture I want to mark a subset of the nodes by filling them with light gray, and another subset of ...
6
votes
2answers
372 views

How to share selected options between different nodes in TikZ?

(I didn't find a better title for the question. Suggestions are welcomed.) I have created some new shapes in TikZ and I would like to put one of them below another one when a certain key is passed to ...
6
votes
1answer
128 views

CircuiTikZ: How to create professional wiring diagram borders?

Assumed we have this Minimum Working Example (MWE): \documentclass{article} \usepackage{tikz} \usetikzlibrary{circuits.ee.IEC} \begin{document} \begin{tikzpicture}[circuit ee IEC] \draw (...
6
votes
1answer
341 views

TikZ: generic position of label with variable text at node corner

I want to create a style in TikZ that draws a node with a label in the above left corner. The problem is, that the label text and the node width should be variable. Below is a minimal example (my ...
6
votes
1answer
659 views

Setting global tikz options directly vs. inside the 'every picture' style

The TikZ & PGF manual for version 3.0.1a states in the description of the /tikz/every picture style on p. 125: you should not use \tikzset to set options directly. For instance, if you want to ...
6
votes
1answer
100 views

How can I safely measure the width which a node will have, when the style to be applied may alter the font?

I want to find the width that a node will have when it is later constructed. The width depends on the node's content and the style applied to the node. The style may alter the font using the font key. ...
6
votes
3answers
576 views

Setting \tikzstyle inside \foreach

I am building a tree structure in tikz and am following this texample, which suggests adding styles for the children according to their depth in the tree (first, second and so on). The purpose is that ...
6
votes
1answer
2k views

How to set a default parameter for all edges

Question How do you set all edges in an automaton to have the additional parameter double? This should be easy, but I can't find the solution here or in the tikz/pgf manual or anywhere else. ...
6
votes
1answer
1k views

Tikz: Styling a node to display text on the right of a dot

I am trying to create a LaTeX document using the Tikz library, more particularly an E/R Diagram. I have downloaded the tikz-er2 additional library, but I am having an issue with the display of ...
6
votes
1answer
311 views

TikZ: posticipate execution of type /.code key

I'm trying to create some TikZ keys which allows to easily draw distributed loads on a mechanical structure (or truss). The code I wrote at the moment is: \documentclass[a4paper]{article} \...
6
votes
1answer
391 views

Reset Tikz Style

When I use the \CircleText macro within a \node in which the text width= is specified, the text width= gets applied to \CircleText. Is there a way to reset the style so that \CircleText does not ...
6
votes
1answer
439 views

tikz library shadows does not accept space

With TikZ library shadows, a space immediately after the curly bracket in drop shadow = { shadow... throws an error. If there is no space after the bracket, there is no error, i.e. drop shadow = {...
6
votes
1answer
251 views

Reproducing picture as shown in the example

\documentclass[landscape,a5paper,11pt]{article} \usepackage[utf8x]{inputenc} % utf8 encoding \usepackage[T1]{fontenc} % use T1 fonts \usepackage{amsmath} % nice math symbols \usepackage{bm} % bold ...
6
votes
0answers
474 views

Latex - picture color and minted color [closed]

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} \newminted{cpp}{linenos,bgcolor=codecolor!25,frame=lines,fontsize=\small,...
5
votes
3answers
5k views

Drawing a figure with concentric circles with text and shading

I am trying to draw the below given figure. Please help me to plot it in Tikz. I am only able to plot concentric circles. . I would like to have different colors in between different circles. Also, ...
5
votes
3answers
994 views

How to insert ellipses (three dots) on a blank chessboard?

I know how to make a blank chessboard, but I want to show that the chessboard is very large by putting in ellipses like this following sketch
5
votes
3answers
678 views

I drew a randomly colored grid of points with tikz, how do I force it to remember the first grid from then on?

I'm using beamer and I have a randomly colored grid (three colors, 4 x 19 grid) on the slides. Since I use the \pause command, it generates a new grid every time I click to the next point. How do I ...
5
votes
3answers
1k views

Looking for symbol: Fire

I am looking for a "Fire" symbol: Like this, or more minimalistic: I found this code for a Shield, and thought that maybe you could make a Fire symbol that way? \documentclass{article} \...
5
votes
2answers
12k views

Fancy Styled Borders in LaTeX

How to draw attractive Borders in LaTeX. A Sample image like this:
5
votes
3answers
417 views

How can I complete this graph?

I am trying to draw a histogram graph using simple tikz codes. Here is my code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} \usetikzlibrary{shapes.geometric,shapes....
5
votes
1answer
578 views

How to draw circles in an arbitrary plane

I would like to generate the following image of TikZ: The closest resemblance on the examples is this post. However, I am not sure how to add the circles in the plane of the cubes. Any help is ...
5
votes
2answers
413 views

how to draw the complex work flow using tikz 2.0

I wish to draw a complex work flow using tikz 2.0 because I tried to update the tikz to 2.1, there are many problems. The work work flow is described as follows: I have tried to draw it by locating ...
5
votes
2answers
505 views

How to get rid of arrows from european voltage source in tikz?

I would like to get rid of the arrow from the voltage source and just use the label without arrow. Is it posible? Any help would be much appreciated. Thanks \documentclass{article} \usepackage[utf8]{...
5
votes
3answers
471 views

Causal diagram: Aligning and downscaling shapes in TikZ

I need help to center X and Y outlined in red in the image attached. I also seek help to downscale the Y shape if possible. Code below: \documentclass[margin=10pt]{article} \usepackage{tikz-cd} \...
5
votes
5answers
462 views

Small corrections needed for game tree

I've drawn what I would like the result to be: The current game tree looks like this: With the current code: \documentclass[12pt,twoside]{book}%{book} \usepackage[a4paper, hmargin={2.5cm, 2.5cm}, ...
5
votes
2answers
597 views

Attractive chapter titles and sections styles

I came across a website where i found this attractive design for chapter titles and sections. https://webusers.imj-prg.fr/~leonardo.zapponi/leo_divers/Agreg/Matrices_normales.pdf Here's my attempt ...
5
votes
2answers
258 views

CircuiTikZ: How to draw contactor coil?

It seems the amazing package CircuiTikZ is mainly focussed on electronics or circuit boards. However, sometimes it is necessary to draw some contactor coils for relais, contactors etc. what is not ...
5
votes
2answers
356 views

Positioning of a tikz picture

I have two tikz pictures in a figure. Here is the code: \begin{figure}[H] \begin{tikzpicture} \draw (0,0) node (a1) [draw,circle,fill=white,minimum size=4pt, inner sep=0pt, label=left:$a_1$] {} --...
5
votes
2answers
374 views

Encircle a formula with arrow pointing from the circle

Is there perhaps a package that already does something like this? In THIS topic encircling a formula is given, but I don't understand the syntax to modify the 'circle' to have an arrow point outward ...
5
votes
2answers
488 views

How to draw the following Block Diagram in Tikz

I am new to Tikz. Please help me. I am confused in using the below of, above of styles. I have tried. The MWE is as follows. I want the figure to be similar as shown in the image below. \...