Double line is displayed as a rectangle [duplicate]Unwanted faint lines connecting dashed double lineTikZ: Intersection point with a double-line pathTwo problems with double lines in TikZRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Tikzpicture: Line break in node label to rightWhy do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?beginfigure… endfigure is not working with tikz package
I unknowingly submitted plagarised work
Employer demanding to see degree after poor code review
Why colon to denote that a value belongs to a type?
I think I may have violated academic integrity last year - what should I do?
Popcorn is the only acceptable snack to consume while watching a movie
Were pens caps holes designed to prevent death by suffocation if swallowed?
What are these arcade games in Ghostbusters 1984?
What is the largest (size) solid object ever dropped from an airplane to impact the ground in freefall?
Binary Search in C++17
Adding spaces to string based on list
Simple fuzz pedal using breadboard
Website returning plaintext password
My employer faked my resume to acquire projects
What is the environment variable XDG_VTNR?
What is a Centaur Thief's climbing speed?
How should I introduce map drawing to my players?
When and what was the first 3D acceleration device ever released?
Using credit/debit card details vs swiping a card in a payment (credit card) terminal
Ticket to ride, 1910: What are the big cities
If a person had control of every single cell of their body, would they be able to transform into another creature?
Should breaking down something like a door be adjudicated as an attempt to beat its AC and HP, or as an ability check against a set DC?
How to use Palladio font in text body but Computer Modern for Equations?
Employer asking for online access to bank account - Is this a scam?
Why do Ryanair allow me to book connecting itineraries through a third party, but not through their own website?
Double line is displayed as a rectangle [duplicate]
Unwanted faint lines connecting dashed double lineTikZ: Intersection point with a double-line pathTwo problems with double lines in TikZRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Tikzpicture: Line break in node label to rightWhy do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?beginfigure… endfigure is not working with tikz package
This question already has an answer here:
Unwanted faint lines connecting dashed double line
1 answer
MWE:
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[double,double distance=2mm] (x) -- (y);
endtikzpicture
enddocument
How to remove the thin lines?
tikz-pgf
marked as duplicate by The old JouleV, Stefan Pinnow, Phelype Oleinik, Raaja, siracusa May 13 at 18:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Unwanted faint lines connecting dashed double line
1 answer
MWE:
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[double,double distance=2mm] (x) -- (y);
endtikzpicture
enddocument
How to remove the thin lines?
tikz-pgf
marked as duplicate by The old JouleV, Stefan Pinnow, Phelype Oleinik, Raaja, siracusa May 13 at 18:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
See the answer of this question for instance.
– marmot
May 13 at 14:38
Or this one may even be simpler.
– marmot
May 13 at 14:41
add a comment |
This question already has an answer here:
Unwanted faint lines connecting dashed double line
1 answer
MWE:
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[double,double distance=2mm] (x) -- (y);
endtikzpicture
enddocument
How to remove the thin lines?
tikz-pgf
This question already has an answer here:
Unwanted faint lines connecting dashed double line
1 answer
MWE:
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[double,double distance=2mm] (x) -- (y);
endtikzpicture
enddocument
How to remove the thin lines?
This question already has an answer here:
Unwanted faint lines connecting dashed double line
1 answer
tikz-pgf
tikz-pgf
asked May 13 at 14:33
bodqhrohrobodqhrohro
25516
25516
marked as duplicate by The old JouleV, Stefan Pinnow, Phelype Oleinik, Raaja, siracusa May 13 at 18:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by The old JouleV, Stefan Pinnow, Phelype Oleinik, Raaja, siracusa May 13 at 18:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
See the answer of this question for instance.
– marmot
May 13 at 14:38
Or this one may even be simpler.
– marmot
May 13 at 14:41
add a comment |
See the answer of this question for instance.
– marmot
May 13 at 14:38
Or this one may even be simpler.
– marmot
May 13 at 14:41
See the answer of this question for instance.
– marmot
May 13 at 14:38
See the answer of this question for instance.
– marmot
May 13 at 14:38
Or this one may even be simpler.
– marmot
May 13 at 14:41
Or this one may even be simpler.
– marmot
May 13 at 14:41
add a comment |
2 Answers
2
active
oldest
votes
Although I voted to close your question as duplicate (sorry), this is a different approach which give you a real, literal equal sign.
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) $X$;
node[above right=1mm and 2mm of x] (y) $Y$;
path (x) -- (y) node[midway,sloped] $=$;
endtikzpicture
enddocument
add a comment |
Since this is a repeating question, here is a decoration that draws the double as two paths rather than a thick line with a white line on top, which is why you get the thin lines on the ends (for certain viewers, I think). The syntax is as simple as
draw[alt double,alt double distance=2mm] (x) -- (y);
and also works for curved lines, see
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
Here is the code.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations,positioning
pgfkeys/tikz/.cd,
alt double distance/.initial=5pt,
alt double step/.initial=1pt,
pgfdeclaredecorationdouble decoinitial
% initial arrow butt
stateinitial[width=pgfkeysvalueof/tikz/alt double step,next state=cont]
pgfmovetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint0.3pgflinewidthpgfkeysvalueof/tikz/alt double distance/2
pgfpathmovetopgfpoint0.3pgflinewidth-pgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpoint1ptpgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
statecont[width=pgfkeysvalueof/tikz/alt double step]
pgfmovetopgfpointanchorlastupcenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfmovetopgfpointanchorlastdowncenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
statefinal[width=0pt]
% perhaps unnecessary but doesn't hurt either
pgfmovetopgfpointdecoratedpathlast
tikzsetalt double/.style=decorate,decoration=double deco
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[alt double,alt double distance=2mm] (x) -- (y);
node[above right=1cm and 2cm of y] (z) Z;
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
endtikzpicture
enddocument
Using this decoration should also allow one to compute intersections with the double line.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Although I voted to close your question as duplicate (sorry), this is a different approach which give you a real, literal equal sign.
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) $X$;
node[above right=1mm and 2mm of x] (y) $Y$;
path (x) -- (y) node[midway,sloped] $=$;
endtikzpicture
enddocument
add a comment |
Although I voted to close your question as duplicate (sorry), this is a different approach which give you a real, literal equal sign.
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) $X$;
node[above right=1mm and 2mm of x] (y) $Y$;
path (x) -- (y) node[midway,sloped] $=$;
endtikzpicture
enddocument
add a comment |
Although I voted to close your question as duplicate (sorry), this is a different approach which give you a real, literal equal sign.
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) $X$;
node[above right=1mm and 2mm of x] (y) $Y$;
path (x) -- (y) node[midway,sloped] $=$;
endtikzpicture
enddocument
Although I voted to close your question as duplicate (sorry), this is a different approach which give you a real, literal equal sign.
documentclassarticle
usepackagetikz
usetikzlibrarypositioning
begindocument
begintikzpicture
node (x) $X$;
node[above right=1mm and 2mm of x] (y) $Y$;
path (x) -- (y) node[midway,sloped] $=$;
endtikzpicture
enddocument
answered May 13 at 14:45
The old JouleVThe old JouleV
19.5k33175
19.5k33175
add a comment |
add a comment |
Since this is a repeating question, here is a decoration that draws the double as two paths rather than a thick line with a white line on top, which is why you get the thin lines on the ends (for certain viewers, I think). The syntax is as simple as
draw[alt double,alt double distance=2mm] (x) -- (y);
and also works for curved lines, see
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
Here is the code.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations,positioning
pgfkeys/tikz/.cd,
alt double distance/.initial=5pt,
alt double step/.initial=1pt,
pgfdeclaredecorationdouble decoinitial
% initial arrow butt
stateinitial[width=pgfkeysvalueof/tikz/alt double step,next state=cont]
pgfmovetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint0.3pgflinewidthpgfkeysvalueof/tikz/alt double distance/2
pgfpathmovetopgfpoint0.3pgflinewidth-pgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpoint1ptpgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
statecont[width=pgfkeysvalueof/tikz/alt double step]
pgfmovetopgfpointanchorlastupcenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfmovetopgfpointanchorlastdowncenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
statefinal[width=0pt]
% perhaps unnecessary but doesn't hurt either
pgfmovetopgfpointdecoratedpathlast
tikzsetalt double/.style=decorate,decoration=double deco
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[alt double,alt double distance=2mm] (x) -- (y);
node[above right=1cm and 2cm of y] (z) Z;
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
endtikzpicture
enddocument
Using this decoration should also allow one to compute intersections with the double line.
add a comment |
Since this is a repeating question, here is a decoration that draws the double as two paths rather than a thick line with a white line on top, which is why you get the thin lines on the ends (for certain viewers, I think). The syntax is as simple as
draw[alt double,alt double distance=2mm] (x) -- (y);
and also works for curved lines, see
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
Here is the code.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations,positioning
pgfkeys/tikz/.cd,
alt double distance/.initial=5pt,
alt double step/.initial=1pt,
pgfdeclaredecorationdouble decoinitial
% initial arrow butt
stateinitial[width=pgfkeysvalueof/tikz/alt double step,next state=cont]
pgfmovetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint0.3pgflinewidthpgfkeysvalueof/tikz/alt double distance/2
pgfpathmovetopgfpoint0.3pgflinewidth-pgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpoint1ptpgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
statecont[width=pgfkeysvalueof/tikz/alt double step]
pgfmovetopgfpointanchorlastupcenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfmovetopgfpointanchorlastdowncenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
statefinal[width=0pt]
% perhaps unnecessary but doesn't hurt either
pgfmovetopgfpointdecoratedpathlast
tikzsetalt double/.style=decorate,decoration=double deco
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[alt double,alt double distance=2mm] (x) -- (y);
node[above right=1cm and 2cm of y] (z) Z;
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
endtikzpicture
enddocument
Using this decoration should also allow one to compute intersections with the double line.
add a comment |
Since this is a repeating question, here is a decoration that draws the double as two paths rather than a thick line with a white line on top, which is why you get the thin lines on the ends (for certain viewers, I think). The syntax is as simple as
draw[alt double,alt double distance=2mm] (x) -- (y);
and also works for curved lines, see
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
Here is the code.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations,positioning
pgfkeys/tikz/.cd,
alt double distance/.initial=5pt,
alt double step/.initial=1pt,
pgfdeclaredecorationdouble decoinitial
% initial arrow butt
stateinitial[width=pgfkeysvalueof/tikz/alt double step,next state=cont]
pgfmovetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint0.3pgflinewidthpgfkeysvalueof/tikz/alt double distance/2
pgfpathmovetopgfpoint0.3pgflinewidth-pgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpoint1ptpgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
statecont[width=pgfkeysvalueof/tikz/alt double step]
pgfmovetopgfpointanchorlastupcenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfmovetopgfpointanchorlastdowncenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
statefinal[width=0pt]
% perhaps unnecessary but doesn't hurt either
pgfmovetopgfpointdecoratedpathlast
tikzsetalt double/.style=decorate,decoration=double deco
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[alt double,alt double distance=2mm] (x) -- (y);
node[above right=1cm and 2cm of y] (z) Z;
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
endtikzpicture
enddocument
Using this decoration should also allow one to compute intersections with the double line.
Since this is a repeating question, here is a decoration that draws the double as two paths rather than a thick line with a white line on top, which is why you get the thin lines on the ends (for certain viewers, I think). The syntax is as simple as
draw[alt double,alt double distance=2mm] (x) -- (y);
and also works for curved lines, see
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
Here is the code.
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations,positioning
pgfkeys/tikz/.cd,
alt double distance/.initial=5pt,
alt double step/.initial=1pt,
pgfdeclaredecorationdouble decoinitial
% initial arrow butt
stateinitial[width=pgfkeysvalueof/tikz/alt double step,next state=cont]
pgfmovetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint0.3pgflinewidthpgfkeysvalueof/tikz/alt double distance/2
pgfpathmovetopgfpoint0.3pgflinewidth-pgfkeysvalueof/tikz/alt double distance/2
pgfpathlinetopgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpoint1ptpgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpoint1pt-pgfkeysvalueof/tikz/alt double distance/2
statecont[width=pgfkeysvalueof/tikz/alt double step]
pgfmovetopgfpointanchorlastupcenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastuppgfpointpgfkeysvalueof/tikz/alt double steppgfkeysvalueof/tikz/alt double distance/2
pgfmovetopgfpointanchorlastdowncenter
pgfpathlinetopgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
pgfcoordinatelastdownpgfpointpgfkeysvalueof/tikz/alt double step-pgfkeysvalueof/tikz/alt double distance/2
statefinal[width=0pt]
% perhaps unnecessary but doesn't hurt either
pgfmovetopgfpointdecoratedpathlast
tikzsetalt double/.style=decorate,decoration=double deco
begindocument
begintikzpicture
node (x) X;
node[above right=1mm and 2mm of x] (y) Y;
draw[alt double,alt double distance=2mm] (x) -- (y);
node[above right=1cm and 2cm of y] (z) Z;
draw[alt double,alt double distance=2mm] (y) to[out=90,in=180] (z);
endtikzpicture
enddocument
Using this decoration should also allow one to compute intersections with the double line.
answered May 13 at 15:05
marmotmarmot
130k6164312
130k6164312
add a comment |
add a comment |
See the answer of this question for instance.
– marmot
May 13 at 14:38
Or this one may even be simpler.
– marmot
May 13 at 14:41