-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreamble_tikz.sty
27 lines (24 loc) · 1.19 KB
/
preamble_tikz.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%%%%% tikz images %%%%%%
\usepackage{tikz, pgfplots} % for tikz images.
\usepackage{tkz-euclide} % for getting some useful geometric commands.
\usepackage{tikz-3dplot} % to draw a visual 3d image with tikz (not with pgfplots).
\usepackage[RPvoltages]{circuitikz} % to draw electric circuits with tikz
\usetikzlibrary{arrows,arrows.meta,decorations.pathmorphing,decorations.pathreplacing,decorations.shapes,decorations.markings,patterns,calc,fillbetween,intersections}
\usepgfplotslibrary{fillbetween, polar}
\pgfplotsset{compat=newest}
%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%
\definecolor{color_blue1}{RGB}{190,190,255}
\definecolor{color_blue2}{RGB}{100,100,255}
\definecolor{color_blue3}{RGB}{0,0,255}
\definecolor{color_blue4}{RGB}{0,0,150}
\definecolor{color_green1}{RGB}{160,240,160}
\definecolor{color_green2}{RGB}{50,200,50}
\definecolor{color_green3}{RGB}{10,150,10}
\definecolor{color_green4}{RGB}{0,80,0}
%% for creating a rainbow shade
\pgfdeclareverticalshading{rainbow}{100bp}{color(0bp)=(red);
color(25bp)=(red); color(35bp)=(yellow); color(45bp)=(green);
color(55bp)=(cyan); color(65bp)=(blue); color(75bp)=(violet);
color(100bp)=(violet)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%