13

As mentioned in the comment of muzimushi the old code depended on a typo which forced pgf to resave the fadings. You can get a similar effect by using a counter: \documentclass[tikz, border=5]{standalone} \usetikzlibrary{decorations,fit,fadings} \newcounter{tracks} % Layers \pgfdeclarelayer{sleeper} \pgfdeclarelayer{rail} \pgfsetlayers{sleeper,rail,main} \...


7

The sizes can be tailored. \bagwd is the full width of the character, \baggaph is the horizontal space on the zero rows, \baggapv is the interrow vertical gap of the bagua character, and \baght is the height of each of the three black rows. \documentclass{article} \usepackage{stackengine} \newlength\bagwd \newlength\baggaph \newlength\baggapv \newlength\...


5

The BaGua are also in Unicode, in the Miscellanous Symbols block. A random sample of fonts: and so part of the font designer's expression. MWE \documentclass{article} \usepackage[table]{xcolor} \usepackage{fontspec} \newcommand\bagua{☰☱☲☳☴☵☶☷ \iffontchar\font`八 八卦\fi} \newcommand\namefbga{DejaVu Sans} \newcommand\namefbgb{FreeMono} \newcommand\namefbgc{...


5

How about the following quick modification from the tikz-based solution of your previous question: \documentclass{article} \usepackage {tikz} \newcommand{\bagua}[1] {% \begin{tikzpicture}[x=0.4ex,y=0.4ex,line width=0.15ex] \pgfmathtruncatemacro\number{#1} \foreach\i in {1,2,3} {% \pgfmathtruncatemacro\digit{Mod(div(\number,pow(10,\i-1))...


4

Update: Thanks to @rmano, the maintainer of circuitikz, since v1.4.1 a new option capacitors/width=<num> is added (and documented), which has the initial value 0.2 and will influence all the capacitor components. For more info, see the package manual, sec. 4.3.3 "Capacitors customizations". \documentclass{article} \usepackage{circuitikz} \...


4

I'm afraid you have to dig into how the split parts are done. Don't know if it's possible to automatize this, maybe with a postaction. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{shapes.multipart} \begin{document} \begin{tikzpicture} \node[rectangle split,rectangle split parts=2,draw,rectangle split draw splits=false] (A) {...


4

This is almost the same solution as my prevoius one. I added a second parameter to the macro that takes values 0/1 for not rotating/rotating (90 degrees). I changed slightly the dimensions too. \documentclass{article} \usepackage {tikz} \newcommand{\bagua}[2] % symbol number, rotation: 0 horizontal / 1 vertical {% \begin{tikzpicture}[rotate=90*#2,x=1ex,...


4

EDIT: A DIRTY TRICK Getting rid of the Textboxes and adding a \vphantom to the \strut made it a little better. Hope it suits your needs. \documentclass[tikz,border=3.14mm]{standalone} \usepackage{mwe} \usetikzlibrary{shapes, arrows.meta, positioning, calc} \tikzset{every picture/.style={/utils/exec={\sffamily\small}}} \newlength\Textwd \setlength\Textwd{...


4

radius is not an parameter to nodes but to circles when using the draw command. Instead, you'll have to use the minimum width parameter, with a value of the desired diameter: \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{calc, shadings, shadows, shapes.arrows} \tikzset{my style/.style={ fill=black!60, opacity=0.5, circle, ...


3

Here's something you can start with: \documentclass[xcolor=dvipsnames, aspectratio=169, 11pt]{beamer} \usepackage{beamerthemeshadow} \usepackage[absolute,overlay]{textpos} \usepackage{tikz} \usetikzlibrary{tikzmark,calc} \begin{document} \section{} \begin{frame} \frametitle{Matplotlib} \framesubtitle{Input} \scriptsize \begin{columns}[T] % ...


3

The idea here is rather using rounded corners than a Bezier curve. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->](0,0)--(5,0) node [below left] {Volume of NaOH}; \draw[->](0,0)-- node [sloped,at end,above left] {Conductivity} (0,5) ; \draw[rounded corners](0,2) node[left]{A} -- (1,1)...


3

I am not good at writing equations -- but I think this is what you want \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{tikz,witharrows} \begin{document} \begin{DispWithArrows*}% [displaystyle, ygap = 2mm, ystart = 0mm, tikz-code = {\draw [red,thick](#1) -- ++(4.5cm,0) |- (#2) ;%<---------new red, thick option \path (#1) -- (#...


3

A tikz-based solution: \documentclass{article} \usepackage {tikz} \newcommand{\bagua}[1] {% \begin{tikzpicture}[x=0.4ex,y=0.4ex,line width=0.15ex] \pgfmathtruncatemacro\number{#1} \foreach\i in {1,2,3} {% \pgfmathtruncatemacro\digit{Mod(div(\number,pow(10,\i-1)),10)} \ifnum\digit = 0 \draw (0 ,3-\i) --++ (1,0); \...


2

This is definitely not the best way to achieve this, especially if you have to do this repeatedly, but it's a good way to understand the syntax, if you're in your way to learn TikZ. \path creates a path from one point to another, but doesn't draw it (except if you write \path[draw]). \draw does exactly the same as \path[draw], it creates a path and draws it. ...


2

A small variation o original answer of @SebGlaw. By defining own strut, for example \def\mystrut{\rule[-0.45ex]{0pt}{1.05em}} seem that OP request is fulfilled by less complex image code: Edit: Added is border to standalone: \documentclass[border=3.141592]{standalone} % <--- \usepackage{mwe} \usepackage{tikz} \usetikzlibrary{positioning, ...


1

As Black Mild suggested, you need to include nodes inside the pic to reference them. Following code shows another version for your switch. The complete switch is a pic and every port is a node with a path picture to draw the hole. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{calc, shadings, shadows, shapes.arrows, matrix} \usetikzlibrary{...


1

Thanks to the help of SebGlav I found an answer. For anyone who is interested and has the same kind of question how to set the text baseline of Bremssystem on the same baseline as Abstandsassistent without changing anything else like box height etc. in a rectangle split you just have to use a raisebox before the text you want to change the positioning of the ...


1

You should write \begin{WithArrows*}%. Otherwise, the options at the following line are not recognized as options of the environment {WithArrows*}: there must be no space between \begin{WithArrows*} and the character [ (and the newline counts as space).


1

\documentclass{article} \usepackage{xlop} \newcommand\hole[1]{$\ast$} \begin{document} \opdiv[% displayintermediary=all,voperation=top,% operandstyle.1.3=\hole,operandstyle.1.2=\hole,% operandstyle.2.2=\hole,% intermediarystyle.1.1=\hole,intermediarystyle.1.2=\hole,% remainderstyle.1.1=\hole,remainderstyle.1.2=\hole,% intermediarystyle.2.1=\hole,...


1

you can read page 10 of xlop's manuel and use as this : \documentclass{article} \usepackage{color,xlop} \newcommand\hole[1]{$\bullet$} \begin{document} \opdiv[displayintermediary=all,voperation=top, operandstyle.1.3=\hole,operandstyle.1.2=\hole, operandstyle.2.2=\hole , resultstyle.1=\hole, remainderstyle.1=\color{red}\hole, intermediarystyle.1.1=\color{blue}...


1

Here's a quick step towards your deisred design: \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{positioning,intersections,calc} \begin{document} \begin{tikzpicture}[>=latex,font=\footnotesize] \draw[<->](0,4)node[rotate=90,above left]{Pressure}|-(4,0)node[below left]{Volume}; \draw[...


1

I do not know if there exist a dashed decoration, but a border decoration with angle=0 will behave like that with straight line segments. \documentclass[tikz, border=1cm]{standalone} \usetikzlibrary {decorations.pathreplacing} \tikzset{LaserCutterOutlineCut/.style={decoration={border, angle=0, amplitude=20pt, segment length=21pt}, decorate, line width=0.04cm}...


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