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
7
votes
4answers
2k views

Drawing a Zero Pole plot

I'm trying to draw a zero-pole plot for use with some filter design. Since i couldn't find any standard way to go about this, I tried using the polar library of PGFPlots. I'm having some trouble, ...
7
votes
4answers
1k views

Allignment of Tikz tree levels

I want to reproduce the following figure. And got the following figure with the code given below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows, shapes, trees, positioning} \...
7
votes
1answer
4k views

Changing the Beamer Theme “Feather”?

I wanna adjust the Beamer Theme "Feather" for my needs: Change the Front Page Deleting the gray horizontal bar (@barcolor) Set the @headercolor to red Transpose the feather logo in the ring Replace ...
7
votes
1answer
226 views

Why doesn't “double” work in the options list of a scope?

An example document: \documentclass[convert={size=320}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[line width = 2pt, red] \foreach \x in {1, 2, 3, ...
7
votes
1answer
631 views

exam class : question with circles of same size

Using code mentioned below : i'm able to circle question numbers : \documentclass{exam} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,fill,...
7
votes
1answer
289 views

Optional args for TikZ style

I have a defined a TikZ style "midcircle" that decorates a path with, say, a small circle in the middle (with the decorations.markings library, setting "pos=0.5"). E.g. \draw (0,0)edge[midcircle](1,0)...
7
votes
2answers
1k views

Node baseline in tikz

MWE: \documentclass[12pt]{article} \usepackage{fancyhdr} \pagestyle{empty} \usepackage{tikz} \usetikzlibrary{graphs, matrix, arrows.meta} \begin{document} \tikzset{graph/.style={matrix of nodes, ...
7
votes
1answer
1k views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

I just started using LaTeX yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): Can I change the page size to ...
7
votes
1answer
238 views

Can't find the documentation for \tikzstyle or `+=` operator in tikz

I've noticed in a number of examples that the following is occasionally used when working with tikz: \tikzstyle{every picture}+=[remember picture] When I search the documentation I can't find ...
7
votes
1answer
3k views

Arguments of tikzset inside a beamer document

I am trying to use tikzset with an argument in a beamer document, and I am having an error I do not understand. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{My try} \...
7
votes
1answer
1k views

How do I make a path with a custom head in tikz?

I want to make a half circle border, as an arrow head in a tikz diagram. Does anyone have an idea how to make this style?
7
votes
2answers
614 views

A useful illustration for differential geometry

I'm working on creating an illustration that I will need in many, different guises in differential geometry/manifold theory etc. Following on from a previous (answered) question of mine (How can I ...
7
votes
1answer
544 views

Tikz How to unset/cancel/disable text width?

I want to style a bunch of nodes using a complex Tikz style generalStyle, defined as \tikzstyle{generalStyle}=[draw,... lots of options here..., text width=50pt] Now, the design of an illustration ...
7
votes
1answer
3k views

Custom sibling angle for child nodes

As I explored the TikZ manual and available examples; the position of child nodes are defined within the parent node. This means that all child nodes spread on the same radius from the parent with ...
7
votes
2answers
1k views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with nodes={...
7
votes
1answer
3k views

How to fill an area with fading color?

I want to fill an area on a x--y plane with fading color, but have no idea how to do it. I know how to fill shapes with color, but not how to do it when the area is not a well defined shape. Let me ...
7
votes
1answer
2k views

Drawing SQL tables

I'd like to draw SQL tables, some example content and relations between the id's. Output should be something like below, without the contents. Could you help me with a head start here? Is there any ...
7
votes
1answer
978 views

Snake line with an arrowhead in the middle

in my code i need to draw some Feynmann diagrams with several lines like this one: To draw this image, i usually use this code: \tikzset{White/.style={ draw=white, postaction={decorate}, ...
7
votes
1answer
308 views

Cross-reference of custom environments created with environ and TikZ package

Problem: I want to create an environment named Example, and the environment has a counter (number within chapter). I want to refer to the counter for illustration just as the table, figure and ...
7
votes
1answer
298 views

Determining tikz drawing style, depending on the values of two nested loop iterators

So the question is a tikz one! Assume that you are drawing things inside two nested foreach loops in tikz, and the iterator variables are \x and \y. What I'd like to obtain is to be able to specify a ...
7
votes
0answers
170 views

Is there a better way to display this information? [closed]

I have drawn this picture in tikz. Is there a more visually pleasing and intuitively appealing way of displaying this information? I feel what I have drawn is dull and boring. I have to include more ...
6
votes
5answers
3k views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?
6
votes
3answers
449 views

In tikz is there a way to set a node style to center the center of each node within a given scope

In the following MWE, I know that the commented line works. What I want to know is why the every node/.style approach is not working. \documentclass{article} \usepackage{tikz} \begin{document} \...
6
votes
4answers
332 views

How can I calculate within style values?

Is it possible to calculate (addition etc.) in style values? I wanted to do the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,fit,chains} \newcommand*{\mypath}[3][...
6
votes
3answers
564 views

drawing an orthonormal frame with semi circles

Hi, I have a problem in drawing this frame, and with colors, especially using tikz programs or the hobby the program don't compile with hobby. Can anyone help me in drawing this pic? thank you. i ...
6
votes
3answers
598 views

How to get an arc to sit exactly on a circle?

I have created the following figure: With this segment: \documentclass[a4paper,12pt]{article} \usepackage{parskip} \usepackage{amssymb} \usepackage[fleqn]{amsmath} \usepackage[svgnames]{xcolor} \...
6
votes
1answer
3k views

Using TikZ to draw array figures

I am new in LaTeX and even more on TikZ. I want to use TikZ to draw the kind of figure described in the below picture. I looked for some tutorial or particular topics that deals with that but never ...
6
votes
2answers
886 views

Is there an wasy way to program in Tikz something like the one in the image?

I am able of doing the hexagons and the rectangle, as well as all the nodes and so on. My problem is if there is an easy way to draw the blue arrows of the image, knowing that I have given to ...
6
votes
2answers
2k views

Italics in LaTeX (e. g. when using Tikz)

\bfseries is for bolding but what is for italics in tikz? Example where italics needed for "Not SP graph". \begin{tikzpicture}[scale=1] \tikzstyle{every node}=[draw, circle, fill=white, inner sep=...
6
votes
2answers
10k views

how to decrease the size of a node and a label - tikz package

i trying to draw an automata using tikz package, and i want to decrease the size of node and labels on each edge , im have trying to put the option [scale=0.5] but it doesn't work ! I have : \...
6
votes
3answers
184 views

Tikzpicture Latex: Drawing triangle background

I'm super new to tikzpicture in LaTex. However here is my minimal working example: Minimal Working Example I basically have a graph and would like to group together both "cliques" in the graph. In ...
6
votes
2answers
727 views

How does the angle key from arrows.meta TikZ library work?

The title says it all. How does angle=<angle>:<first dimen> <second dimen> works. More exactly, what do the first length and the second length mean? \usetikzlibrary{arrows.meta} \...
6
votes
2answers
1k views

comma in node name [TikZ]

In my database some objects have name in A,B format, i.e there is comma in between. I wanted to do something like this \node (A,B) {Comma}; \node (x) {normal}; \draw (A,B) -- (x); However, this is ...
6
votes
3answers
1k views

Page numbering in the middle of a line

How can I set up a document to write the page numbering in the middle of a line? Through fancy pagestyle I've got a situation like the following one: --------------------- % this is a line after the ...
6
votes
2answers
591 views

Keeping the same style inside a scaled plot

I have a graph with three different curves, two of which are very small compared to the other. I therefore decided to add a magnification of such curves inside my graph, in the following way: \...
6
votes
2answers
336 views

labels of nodes with drop shadow

in cases, that all nodes in some tikz pictures have shadow. this can be done for example by: every node/.style = {draw, fill=white, drop shadow}, problem arise, if i like to some of this nodes add ...
6
votes
3answers
1k views

How to draw architecture with tikz

I'm learning tiKz packages for the drawing of charts etc in LaTex but I have to draw an architecture that is quite difficult for me. I need to draw the architecture in the figure below and, in ...
6
votes
2answers
493 views

TiKZ and color filling with word spacing on multiple lines

I am attempting to make a figure in TikZ which I want to look like this: I have been able to come up with something close in TikZ, but I would really like to have the above figure instead of my ...
6
votes
1answer
215 views

Help required to understand tikz code?

Following is the code that was posted for my question How to show path gains in block diagrams drawn in tikz environment? It is giving me the desired output. But my problem is that I don't understand ...
6
votes
3answers
425 views

Game tree needs adjustment

I've created the following game tree: I want it to look like this and I'm stuck: (Apologize in advance for the ugly drawing!) This is my code: \documentclass[12pt,twoside]{book}%{book} \usepackage[...
6
votes
2answers
789 views

Orthogonal shift of a line

I want to shift a line by some amount in some direction. Here the direction is fixed, orthogonal to the line. One difficulty is that the line should be drawn like it would be at the origin position. ...
6
votes
2answers
96 views

Aligning two diagrams in tikz environment

I have created to diagrams separately using TikZ package and now I want to make them left-right shown in one figure with a caption. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
6
votes
2answers
795 views

Why does \ifnum not work inside of TikZ style definitions?

I'm trying to write some conditional TikZ styles. This has been tried here before, but I think never in a completely satisfying way. My try is this: \documentclass{article} \usepackage{tikz} \begin{...
6
votes
1answer
5k views

Creating “cylinder with bottom” node shape in TikZ/PGF

How to create custom TikZ node "cylinder with bottom", where hidden line in cylinder bottom is shown using dashed line. Something like the following creation, except node center should be in the ...
6
votes
2answers
4k views

anchor arrow start position

Attached below is the minimum working example. I would like the arrow to end at the west anchor of the node "operation". I tried anchor and few other possibilities but they don't seem to affect the ...
6
votes
2answers
1k views

How do you draw this prism in tikz/pstricks

The numbers are in Persian (side SB=6 and angle SBA=60 degrees).
6
votes
1answer
1k views

How to draw this latex diagram. I need to, how to fix it?

\documentclass{artilce} \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{tikz} \tikzset{ keep name/.style={ prefix after command={ ...
6
votes
1answer
129 views

How to use colon (':') as part of tikz syntax while in \ExplSyntaxOn environment?

I want to create a simple tikz style highlight which will draw ellipse around the object and write label at requested position. To avoid providing the font through the text argument, I've placed it ...
6
votes
1answer
92 views

Where is my understanding of TikZ styles wrong?

I am trying to learn TikZ by reading the manual (p.34). I know my understanding must be completely off the rails, since nothing is working as I think I should; but I'm not sure what I misunderstood. ...
6
votes
1answer
374 views

Drawing Hypergraph using TikZ

I want to draw a Hypergraph using TikZ that looks like this What I have so far: \usepackage{tikz} \usetikzlibrary{calc, positioning, fit, shapes.misc} \begin{document} \begin{tikzpicture} [ he/....