Tag Info

New answers tagged

3

Here is a way that allows for page breaks, based on the ntheorem and the framed packages. I define the Tema environment as a patched leftbar environment (from framed) nested in a theme theorem, defined as a framed-break theorem style theorem. This style is a modification of the standard break style so as to have a framed label, of a special type that lines ...


17

Another option is tcolorbox which offers auto counter, flexible frame definition and handles pagebreaks: \documentclass{article} \usepackage[most]{tcolorbox} \usetikzlibrary{calc} \newtcolorbox[auto counter]{tema}[1][]{colback=white, colframe=white, coltitle=black, title={\textsc{Tema}}~\thetcbcounter,#1, enhanced, breakable, title code={% \draw[very ...


19

no need for tikZ it can be done with simple LaTeX commands: \documentclass{article} \usepackage{tabularx} \usepackage{xcolor} \newcounter{tema} \newenvironment{Tema} {\par\noindent\refstepcounter{tema}\color{blue!80!black!40}\fboxrule=2pt \fbox{\color{black}\bfseries Tema \thetema}\\[-1pt]% interlineskip \color{black}\tabularx{\linewidth} ...


3

I know is almost one year ago question, but I want share my solution. This is the code: \documentclass[tikz,margin=5pt,12pt]{standalone} \usepackage{xparse} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \NewDocumentCommand{\irregularline}{% O {2mm} % Amplitude of irregularity. Optional. Default value = 2mm m % First point ...


0

Just for comparison, in Metapost you can either draw the path directly using halfcircles or use the rboxes library to make rounded boxes. prologues:=3;outputtemplate:="%j%c.eps"; % A macro that returns the path of a rectangle with rounded ends vardef vessel(expr width, height) = halfcircle rotated -90 scaled height shifted (+1/2 width,0) -- ...


4

Is this what you want? Problem 1: Adding the pictures, like database Display Database Instance Relationship with TikZ, for example in the cells (stack-5-6) (stack-6-6) with the name to make an arrow in future. Cells (stack-5-6) (stack-6-6) doesn't exist because you declared option nodes in empty cells=false and no nodes are created in empty cells. But ...


0

Simplified and cleaned up version to produce what i assume you try to achieve. It's partly taken from Jesse's solution and tries to simplify the code for a better understanding. \documentclass[tikz, border=5mm]{standalone} \begin{document} \begin{tikzpicture}[scale=.5] \draw (0,0) -- ++(12,0); \foreach \l [count=\x from 0] in {A,...,L} { \draw ...


2

Would this be what you tried to achieve? When I run your case and added more rectangles into the code, it seems that the rectangle got confused with the coordinates. So this solution uses relative coordinate \draw (A) rectangle ++(x,y) and the problem seems gone. This solution also simplies your code into foreach loop coding. Note: Thanks to @Ignasi's ...


4

We can use the pic environment from PGF 3.0 to define any pattern and just use it as a node wherever we want. Here is an example of a line break of the last pattern as per the OP: \documentclass[tikz,border=2mm]{standalone} \tikzset{ext/.pic={ \path [fill=white] (-0.2,0)to[bend left](0,0.1)to[bend right](0.2,0.2)to(0.2,0)to[bend left](0,-0.1)to[bend ...


5

\documentclass[tikz,border=5mm]{standalone} \usepackage{amssymb} \begin{document} \begin{tikzpicture} \draw (4,0.2) -- node[fill=white,rotate=90,inner sep=-1.25pt,outer sep=0,anchor=center]{$\approx$} (8,0.2); \draw (4,1.8) -- node[fill=white,rotate=0,inner sep=-2.5pt,outer sep=0]{//} (8,1.8); \end{tikzpicture} \end{document}


3

It is a combination of broken path joins and viewer rendering quality. You can draw it at one shot or put a node instead. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[blue,fill=blue!30] (0,0.4) arc (90:270:0.4cm)-- (2,-0.4) arc (-90:90:0.4cm)--cycle; \node[draw=red,fill=red!30,rounded corners=0.4cm,minimum ...


3

A solution with PSTricks just for fun. \documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}(10,4) \pscustom[dimen=m,fillstyle=solid,fillcolor=orange,linewidth=2pt] { \psarc(2,2){2}{90}{-90} \psarc(8,2){2}{-90}{90} \closepath } \end{pspicture} \end{document}



Top 50 recent answers are included