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
1 vote
1 answer
258 views

How to make this header with tikz in latex

I would like to make this header below with tikz in latex for use in tests at the school where I work.
2 votes
2 answers
97 views

Drawing a Flowchart for a Degree Plan

I am new to drawing flowcharts using tikz. I need to draw a flowchart similar to the following one: However, I could not get elbow arrows. I need to get elbow arrows that do not intersect the other ...
0 votes
1 answer
28 views

Tikz: Text not centered within Tikz boxes

I'm trying to construct a flow chart type diagram using tikzpicture package (Mathcha). Why is the text within Tikz boxes not centered? Thanks in advance. \begin{figure}[ht] \vspace{4ex} \centering \...
-1 votes
1 answer
54 views

Circuitikz: How to draw an electromagnetic relay? [closed]

How to draw an electromagnetic relay in circuitikz similar to the one in the figure?
1 vote
1 answer
71 views

Struggling in drawing a path graph in TikZ

As a beginner learning TikZ, I've tried the following: \documentclass[border=0.2cm]{standalone} \usepackage{tikz} \usetikzlibrary{automata, positioning} \begin{document} \begin{tikzpicture} [draw=...
2 votes
1 answer
37 views

Chapter Style Where All Chapter Numbers Appear Above Chapter Title

As part of a document I am designing, I would like to create a chapter style that includes all of the chapter numbers in the document. For example, if there are 6 chapters in total, then the numbers 1 ...
0 votes
1 answer
28 views

Package PGF Math Error: Unknown operator `c' or `co' (in '{4cos(deg(x))}')

For the code given below I am getting the following error: Package PGF Math Error: Unknown operator c' or co' (in '{4cos(deg(x))}'). Package PGF Math Error: Unknown operator p' or pi' (in '2pi'). ...
0 votes
1 answer
98 views

How to Create a Fancy Style of Chapter

I would like to start a new document in the book class that adopts a fancy style of chapter. The idea is outlined in the sketch drawing below. Basically, I'd like to have a small table of contents ...
3 votes
2 answers
100 views

Redoing the align environment with a specific formatting

I want to remake the \begin{align} environment \end{align} with some stylization and I have no idea how I can do this. Well, to be precise, I want two specific things to happen in this environment: ...
1 vote
1 answer
51 views

How I can do this section style better?

I am making a template and trying to customize several things in it, and one of them is the section style. I created a command that makes a hexagon on the left side of the screen, as shown in the ...
0 votes
0 answers
27 views

How to make Tikz Style conditional by comparing two numeric values?

I try to define Tikz style, so that I can choose my state color based on its superscript. Say, I want the states with even superscripts be green, and blue otherwise. I already defined separate styles ...
6 votes
1 answer
706 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question (...
1 vote
1 answer
20 views

Foiint: a mixture of fintop and oiint

With this code I tried to create a \fooint-integral latex symbol, but the result is not good. I mean: 1 In the equation (1) I created the symbol I required using \!--spaces and centernot, but soon ...
1 vote
1 answer
25 views

TikZ - LuaLaTeX - Trying to fix the library `phylogenetics`

The following code shows an ugly way to fix the bad vertical positioning of the labels in a top-down phylogenetic graph. How to avoid the special fixing style done by hand? How to find the good style ...
1 vote
0 answers
63 views

Dynamically adapting text area according to a given shape [closed]

I am trying to replicate single parts of this poster, and I was thinking of using TikZ multi-part nodes for filling in images and text, so not to first draw the shape and then figure out how to fit ...
0 votes
0 answers
37 views

Finetuning positions in Newman projections using TikZ pics option

In previous questions Nicholas asked about the possibilities to change the angles of the substituents in a Newman projection using the newman module of the chemmacros package (See here and here). In ...
3 votes
1 answer
36 views

How to better plot the collector and base current of a transistor

MWE is here. \documentclass{standalone} \usepackage{circuitikz} \usetikzlibrary {calc} \begin{document} \begin{circuitikz}[european] \ctikzset{ v/.append style={/tikz/american voltages}, ...
4 votes
1 answer
93 views

Tick Marks on a Grid

I would like to put tick marks on this tikzpicture, I have not used the axis environment. I have a lot of these graphs to draw for my students. This one needed to be x = 2cm y = 1cm grid. I have done ...
0 votes
0 answers
40 views

Why isn't the transform applied to both nodes?

I'm attempting to draw some 3d projections to help explain a concept. I thought I'd use tikz transforms for that, but after a long time trying, I found that transforms don't really work when I use \...
0 votes
1 answer
73 views

Add properties instead replacing them in tikzset

I am working on a project involving several files and i would like to have the possibility to add properties to styles using tikzset and pgfplotsset. I reduced my code to a MWE : \documentclass[border=...
40 votes
3 answers
35k views

Can we define maximum width for a node?

My question is almost opposite to: this question. I have defined a block: \begin{tikzpicture}[node distance = 2cm, auto,->=stealth,point/.style= {circle,fill=red,minimum size=...
1 vote
2 answers
117 views

Draw loops in TikZ of different sizes and shapes

I'm trying to draw a graph in TikZ with different-looking loops. In the graph below, I would like to make one loop smaller and the other larger. I would also like to be able to control the shape or ...
0 votes
1 answer
36 views

Left align using \tikz

The current \tikz I'm using now is this below. \NewDocumentCommand{\signe}{m}{ \tikz[baseline=(O.base)]{\node(O) [baseline,minimum width=25mm,inner sep = 0,align=center] {#1};} } \begin{itemize} ...
-2 votes
1 answer
105 views

How to draw GRU cell [closed]

I'm writing my bachelor's thesis about Deep Learning and Neural Networks. I'm trying to draw GRU cell using tikz picture package but without success. Does anyone know how to do it?
10 votes
4 answers
454 views

Drawing physical diagrams (particle spin)

I'm trying to draw a particle and visualize the rotation of the particle. So far I have done this: \begin{tikzpicture} \def\r{1.5} % Radius des Kreises \filldraw[top color=red,bottom color=...
1 vote
1 answer
44 views

Generalizing the body of my tikzpicture environment in the preamble

I would like to generalize this diagram and place it before the \begin{environment} command, so I can just simply/easily change the numbers as I am rotating the square. I would appreciate if I can be ...
0 votes
1 answer
63 views

Designing a nested Venn Diagram

Is there any way to make these similar diagrams look more beautiful, by adding special designs, colours, etc.? I'll really appreciate if I can be helped out. \documentclass[a4paper, 12pt, openany]{...
0 votes
0 answers
21 views

oval bar plot in latex [duplicate]

I want to plot a histogram plot in latex. However, I want to change the bars to an oval shape. Like this one: Do we have any template or type of shape in latex? I know my question seems dumb! however, ...
1 vote
2 answers
160 views

Gödel codes with rounded corners?

The simplest way to produce Gödel codes is with $\ulcorner$ and $\urcorner$, and we may write $\ulcorner p\urcorner$ to enclose the formula $p$ within codes. Buss programmed a macro which gives a ...
0 votes
1 answer
49 views

Change dot shape for edge in tikz?

I would like to draw an edge between two nodes in tikz, but this edge should be both "dotted" and the dots must be a distinct shape (not dots or dashes). Currently, I am aiming at getting ...
0 votes
1 answer
36 views

scrlttr2 same head back filled as my CV

Lately I just found the scrlttr2 class for my letters, as it has the SN option that gets all I need, in less than 5-10 seconds. But if I would like to use it to make my CV cover letter, I need one ...
13 votes
4 answers
2k views

Verbatim in tikz node

I am trying to have a verbatim environment in a tikz node just next to some other nodes. I have tried \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \...
0 votes
2 answers
31 views

Align center doesn't work when text overflow in tikz

I have an example below. I'm trying to force the text to be in the center of the nodes. \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usepackage{mathtools} \usetikzlibrary{...
1 vote
1 answer
55 views

Fitting a Latex Tikz figure in a page

I am trying to create a figure in latex using Tikz. But its not fitting in a page. I do not need the levels to match for different groups. \documentclass[10pt,twoside,a4paper]{memoir} \usepackage{...
1 vote
1 answer
40 views

Changing arrowhead style

I would like to change the style of my arrowheads. I looked up and found a solution here. However, it doesn't work in my case, and I'm wondering what went wrong. Here is my MWE: \documentclass{article}...
3 votes
1 answer
64 views

TikZ: bad endpoint with "snake it" arc

I'm trying to draw a simple diagram of the type showed in the picture below. I need an arc with a wiggle line. Using proper decoration packages, the option \draw [decorate,decoration=snake] does the ...
0 votes
1 answer
58 views

Giving text as a paramater to the image

I simply modified the clock code in this link: clock Here is my code: \NewDocumentCommand{\Clock}{O{1cm}O{\large}O{cyan}O{\textbf{}}}{% \def\radius{#1}% \begin{tikzpicture}[line cap=rect,line width=0....
5 votes
2 answers
164 views

Feynman diagrams: Package pgfkeys Error: I do not know the key '/tikz/empty dot' and I am going to ignore it. Perhaps you misspelled it

I am trying to draw a specific feynman diagram using tikz-feynman. It plots it almost correctly apart from the fact that I get this error Package pgfkeys Error: I do not know the key '/tikz/empty dot'...
3 votes
1 answer
69 views

TikZ: draw a Neural Network with two sets of outputs layers

I have the following TikZ code, which produces a Neural Network figure. However, I would like to have two sets of different output layers. The first one running from g_{1} to g_{J}, and the other ...
0 votes
1 answer
97 views

TikZ: draw two Neural Networks side by side connected by a softmax layer

I have the following code to draw a Neural Network, which produces the image below \documentclass[border=3pt,tikz]{standalone} \usepackage{amsmath} % for aligned %\usepackage{amssymb} % for \mathbb \...
5 votes
1 answer
75 views

How to fix the style of a tcolorbox based on the tcbcounter?

I would like to define a tcolorbox with an auto counter. The value of the counter will decide some part of the final style of the box. As an example, imagin that the background of the box alternates ...
2 votes
1 answer
119 views

figure TIKZ with a trajecotry visiting regions

I want to create the following figure with tikz with a green backgroud. This is what I ve done so far (with circles) \begin{tikzpicture} \draw (-4,-1) rectangle (4,4); % E \draw (0,0) ++(45:2) circle ...
-1 votes
1 answer
49 views

Free shaping in tikz [closed]

I want to draw these two figure in tikz Is it possible to draw these free shapes in tikz including characters and the dots? My ultimate goal is to make a lot of them and bring one big image but if I ...
1 vote
1 answer
29 views

Place beamer frame title into parallelogram at top left corner

I am trying to place the title of each frame in a parallelogram that adjusts to the length of the title. I want the parallelogram to start at the same position of each frame, for example, at the top ...
3 votes
1 answer
570 views

Weekly calendar with different tasks

I have found a code for a calendar and would like to be able to write different tasks for each day. Basically, to make the command \daytext individual for each day. I have added an example with ...
1 vote
1 answer
54 views

Write the equation, box it and put clock under it by using tikz

I have a long equation and I want to write this equation in the following shape: I want to put some text under each big rectangle and draws the clock in tikz too P.S I have put just the first part of ...
1 vote
1 answer
44 views

TikZ draw command mistake with two dashes and confusing results

I made a silly mistake in my TikZ code and fixed it but I still don't know why so I'll post my question here. First assume that I generate something with an arrow in background like this. \...
2 votes
1 answer
57 views

How to set the box with different height?

There are two boxes draw with multi-part nodes of TiKZ. How to draw the lower box with more height? (the lower box should be with more vertical space) \documentclass[border=10pt]{standalone} \...
4 votes
4 answers
636 views

Adding a shape (square, circle, etc.) to part of a math expression in beamer (tikz and overlay)

This might be a trivial question and I saw similar questions but for some reason, I did not manage to resolve it. Consider this slide \documentclass{beamer} \usefonttheme[onlymath]{serif} \...
10 votes
1 answer
312 views

TikZ - "Hand-like" style a flow chart

I would like to imitate the following formatting. The randomness of the styles should be adjustable by indicating the seed used so that the same diagram is always repeated if necessary. I would also ...

1
2 3 4 5
37