# Tag Info

7

In polar coordinates, like in cartesian coordinates, the components given in u and v are added to the coordinate of the point. So if you plot u=10, v=0, you get arrows that end 10° clockwise from where they start, at the same distance from the centre as the starting point: If you plot u=0, v=0.1, you get arrows pointing outward from the centre (because ...

5

You can use options child anchor=west, edge from parent macro=\myedgefromparent, with \def\myedgefromparent#1#2{ [style=edge from parent,#1] (\tikzparentnode\tikzparentanchor) to #2 (\tikzchildnode\tikzchildanchor) } to get Code: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ grow = right, ...

5

\tcbsidebyside changes internally \linewidth, and as you are using the sidebyside adapt=left, both sides are not affected in the same way. It is better to use an independant length for the scaling. \documentclass[12pt, a4paper, parskip=full]{scrartcl} \usepackage{tikz} \usepackage[most]{tcolorbox} \newlength\mylinewidth \AtBeginDocument{\mylinewidth=\...

5

You can try with forest, I think is quite human readable, ... once you are used to it. \documentclass[border=2mm]{standalone} \usepackage{forest} \begin{document} \begin{forest} box/.style={rounded corners, draw, fill=gray!20} [* Shares, box [encompass [common shares, box [carry [voting rights, box ...

5

As suggested in a comment, a possible approach would be dot and dot2tex. Dot's syntax is very terse. This particular example comes out a bit convoluted, due to the long text in some nodes, but it is nevertheless rather readable: digraph G { node [shape=box, fixedsize=true, width=1.2]; shares [label="*\\\\Shares"]; shares -> "common shares" [label=...

5

This is a first test with tcolorbox. If you can consider it, it could be further customized. \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{bbding} \newtcolorbox[auto counter, number within=section]{mytip}% {enhanced, width=.8\linewidth, before upper={Tip\par}, notitle, overlay={\node[align=center, text width=2cm, anchor=north west, ...

5

You can use as much labels as you need: just declare several label options. But if you want to join label and node with a line/arrow, use pin. \documentclass[border=100pt]{standalone} \usepackage{tikz} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[circle, shading=ball, drop shadow, ball color=red!20!black, minimum width=4cm, ...

5

Like this? The basic idea is to define different \tikzstyle and assign them for different overlay specification. For changing text colours, simply sue \textcolor<2->{red}{Feature Extraction} \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{onslide/.code args={<#1>#2}{% \only<#1>{\pgfkeysalso{#2}} % \...

4

This isn't hugely difficult, and the pictures use nothing that isn't obviously in the manual: \documentclass[varwidth,border=5]{standalone} \usepackage{tikz} \tikzset{ball/.style={shape=circle, shading=ball, ball color=blue!50!cyan!50, minimum size=0.375cm}} \begin{document} \centering \begin{tikzpicture} \draw circle [radius=1]; \foreach \i in {0,...,7} ...

4

here is a solution, using \tkzDrawY and \tkzLabelPoint command. Note one can use \tkzDefPoint \documentclass[11pt,a4paper]{article} \usepackage{tkz-euclide} \usetkzobj{all} \pgfdeclarepatternformonly{myDots}{\pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{1pt}{1pt}}{\pgfqpoint{10pt}{10pt}}% { \pgfpathcircle{\pgfqpoint{0pt}{0pt}}{.5pt} \pgfusepath{fill} } \...

4

That's what a node does, and it can have a fill. What's the purpose of the figure environment? \documentclass{article} \usepackage{tikz} \newcommand{\fourcards}[4]{% \begin{figure} \centering \begin{tabular}{cccc} \tikz \node[draw,fill=green!50] {#1}; & \tikz \node[draw,fill=magenta] {#2}; & \...

4

And this is the solution with the default tcolorbox. \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \begin{document} \lipsum[1-2] \begin{tcolorbox}[enhanced,breakable] \begin{enumerate} \item my item。 \item my item \item my item \item my item \item my item \item my item \item ...

4

Solution with the mdframed package: \documentclass{article} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{calc} \usepackage[framemethod=tikz]{mdframed} \mdfsetup{tikzsetting={draw=red,line width=3pt,dashed,dash pattern= on 10pt off 3pt},linecolor=none} \begin{document} \lipsum[1-2] \centering \begin{mdframed} {\begin{enumerate} \item my item。 ...

4

Another solution. This one uses a tcolorbox for including images with shadows (like in your example), tikzlibrary tikzmark for references inside the text and tikzlibrary calc for placement inside images. \documentclass[twocolumn]{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \usetikzlibrary{tikzmark,calc} \begin{document} \tikzmark{A} \lipsum[...

4

You can use a simple node to include the page as an image. \documentclass{article} \usepackage{tikz} \usepackage{kantlipsum} % For dummy text \begin{document} \begin{tabular}{cp{7cm}} \begin{tikzpicture}[baseline={(current bounding box.north)}] \node[draw,rounded corners,inner sep=0]{\includegraphics[width=4cm,page=156]{pgfmanual}}; \end{tikzpicture} &...

4

You can use the "intersection syntax" to specify coordinates: (A|-B) means the coordinate at the vertical of A and horizontal of B. So, in your case: \draw[-{>[scale=2.5, length=8, width=8]}, line width=0.1cm] (drops) -- (drops|-4172c.south); \draw[-{>[scale=2.5,length=8,width=8]}, line width=0.1cm] (inhibition) -- (inhibition|-4172c....

4

Here is an "indirect" approach, where the borders of the widest nodes are drawn separately. I removed draw,thick from the box style, and added them to a new style narrowbox, which include the box style and text width=4cm. This is used for the five nodes in the center. \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,...

4

Here is a starting point. You should be able to adjust this easily by reading the TikZ manual. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \sgn in {-,+} \draw plot[domain=0:10] ({\sgn 1/20*(3+\x*\x)},\x); \foreach \h in {0,5,10} \draw (0,\h) ellipse[x radius=1/20*(3+\h*\h),y radius=(\h+.5)/20]; \...

3

Unfortunately the question is not very clear to me, so this answer is based on guessing and provided desired images. This means, that your MWE wasn't very helpful. From it I only see, that you expect figure drawn by pgfplots and not by pure tikz ... See, if my result is what you after: Above images is done by the following code: \documentclass[border=...

3

Using the animate package: \documentclass{standalone} \usepackage{animate} \usepackage{tikz, pgfplots} \usetikzlibrary{arrows} \let\Oldvec\vec \renewcommand{\vec}[1]{\ensuremath{\mathbf{#1}}} \begin{document} \begin{animateinline}[controls]{8} \multiframe{21}{rYa=-4+-0.03,rYb=4+-0.03}{ \begin{tikzpicture}[line cap=round,line join=round,>=triangle ...

3

Just a simple way, easy to adapt, (but the lines or not dashed). \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \tkzInit[xmin=-5,xmax=5,ymin=-5,ymax=5] \tkzGrid[sub,color=gray, subxstep=.5,subystep=.5] \tkzAxeXY[very thick] \tkzGrid \end{tikzpicture} \end{document}

3

For fun, here is a solution in ConTeXt. The solution relies on my wrapper around the drops module by Peter Rolf. The drops module uses imagemagic to draw the shadow (which looks more realistic than the tikz-style shadows) \usemodule[dropshadow] \setupexternalfigures[location={local,global,default}] \definedropshadow [polaroid] [flatdark] [...

3

You can use arrows.meta library and looseness key to control the distance from the control point to the two end points as said in the pgfmanual. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usepackage[tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \begin{center} \begin{tikzpicture} \node (a) at (0,0) ...

3

Let convert comments to an answer: Logic for positioning nodes, labels is the same as it is at naming of horizon's sides. For example: always we say south west (synonym for below left) and newer west south (= left below) ... Regarding your MWE: see if the following more concise code of your MWE is useful to you: \documentclass{article} \usepackage{amsmath,...

3

This is my very manual solution since my \pgfmath is almost 0. I manually draw the pattern since we cannot rotate the predefined patterns. In the for-loop, I use a large number to fill in the rectangle. I don't know how to calculate the number of loop base on the box size and on the distance between two consecutive lines. Another downside of my "solution" is ...

3

You can add options to \arrow{>}. For example \arrow[scale=2]{>} will double the size (and line width) of the arrow. If you want a different line width you can also add line width option. For example:

3

\documentclass{beamer} \usetheme{default} \usecolortheme{default} \usepackage[english]{babel} \usepackage[style=verbose,backend=bibtex]{biblatex} \usepackage{mathtools,mathdots,bm,fixltx2e} \usepackage{tikz} \usetikzlibrary{arrows, positioning} \newcommand\ppbb{path picture bounding box} \tikzset{shorten <>/.style = {shorten >=#1, shorten <=#1}, ...

3

A modification of @Jerome Dequeker answer ... Main changes: employed are three additional TikZ libraries: calc, chains and quotes used is correct syntax for positioning (instead for example left of = ... is used left=of ...) for distance between nodes is used only node distance preset in tikzpicture options, so all xshifts are omitted for labels over ...

3

As Torbjørn suggested, you can clip the whole diagram. I did it with a rectangle base on A1 and B1: \clip ([shift={(-2,-2)}]A1) rectangle ([shift={(3,-2)}]B1); but you can select another clipping path. \documentclass{article} \usepackage{tikz} \usetikzlibrary{through,calc,intersections} \usepackage{xparse} \NewDocumentCommand{\bissectrice}{% O{} ...

3

This is what I would to do reproduce that image: Use the actual colors with some RGB definition. Use the arrows.meta library. arrows is still supported, but it's deprecated. I changed some styling in the nodes to be more faithful. Also, this is a matter of preference, but I'd advise against using bold and large font together. Output Code \...

Only top voted, non community-wiki answers of a minimum length are eligible