put a square for 90 degrees angle
How should I put a square for 90 degrees angle?
my code is;
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, grey](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, grey](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
tikz-pgf
add a comment |
How should I put a square for 90 degrees angle?
my code is;
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, grey](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, grey](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
tikz-pgf
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58
add a comment |
How should I put a square for 90 degrees angle?
my code is;
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, grey](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, grey](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
tikz-pgf
How should I put a square for 90 degrees angle?
my code is;
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, grey](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, grey](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
tikz-pgf
tikz-pgf
asked Mar 7 '18 at 18:50
AbbasAbbas
424
424
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58
add a comment |
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58
add a comment |
4 Answers
4
active
oldest
votes
In this case it might be simplest to do that by hand. (I also replaced grey by gray.)
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
EDIT: Here comes a perhaps even simpler alternative with explanation.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
% the slope of the first line is -12/8, so this defines the rotation angle
draw[rotate around={atan2(8,-12):(0,2)}] (0,2) rectangle ++(-0.3,0.3);
%draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
add a comment |
i would redraw your image as follows:
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{angles,
backgrounds,
intersections,
quotes}
begin{document}
begin{tikzpicture}[%[scale=1.3]
al/.style = {font=Huge},% axis label
myangle/.style = {angle radius=7mm, angle eccentricity=1.6, fill=yellow, font=scriptsize},
]
draw[->, ultra thick, gray] (0,-6)--(0,6) node[al,right]{$x$};
draw[name path=A,->, ultra thick, gray] (-6,0)--(6,0) node[al,above]{$y$};
draw[name path=B] (-6,6) -- node[draw, minimum size=5mm, outer sep=0pt, sloped, % <--
below right] {} (6,-2);
draw[name path=C] (-4,-4)--(2,5);
%
path[name intersections={of=A and B, by=a}];
path[name intersections={of=A and C, by=b}];
path[name intersections={of=B and C, by=c}];
%
begin{scope}[on background layer]
pic[myangle, "$tantheta_1$"] {angle = a--b--c};
pic[myangle, "$tantheta_2$"] {angle = c--a--b};
end{scope}
end{tikzpicture}
end{document}
which gives:
add a comment |
Works even in 3D !
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc,intersections}
pgfkeys{/tikz/.cd,
AngleDt length/.store in=AngleDtLgth,
AngleDt length=5pt}
tikzset{% Angle droit
AngleDt/.style={very thin},
pics/.cd,
AngleDt/.style args={#1-#2-#3}{%
code = {%
draw[AngleDt] ($(#2)!AngleDtLgth!(#1)$)
--($(#2)!2!($($(#2)!AngleDtLgth!(#1)$)!.5!($(#2)!AngleDtLgth!(#3)$)$) $)
--($(#2)!AngleDtLgth!(#3)$) ; ;
}
}}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw[name path=P1] (6,-2) coordinate (A) --(-6,6);
draw[name path=P2] (-4,-4)--(2,5) coordinate (C);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
path[name intersections={of= P1 and P2,by=B}] ;
path pic[AngleDt length=7mm,red] {AngleDt={A-B-C}} ;
end{tikzpicture}
begin{tikzpicture}[line join=round,
x={(40:2.6cm)},
y={(180:4cm)},
z={(0cm,4cm)}]
coordinate (C) at (1,0,0) ;
coordinate (B) at (0,0,0) ;
coordinate (A) at (0,1,0) ;
coordinate (D) at (1,1,0) ;
coordinate (H) at (.5,.5,.707) ;
coordinate (h) at (.5,.5,0) ;
fill[blue!15] (A)--(B)--(H)--cycle ;
fill[blue!30] (B)--(C)--(H)--cycle ;
draw (A)--(B)--(C)--(H)--cycle ;
draw (B)--(H) ;
draw[dashed] (A)--(D)--(C) ;
draw[dashed] (H)--(D) ;
draw[dotted] (A)--(C) ;
draw[dotted] (B)--(D) ;
draw[dotted] (H)--(h) node[midway,anchor=east] {$h$};
path pic {AngleDt={H-h-A}} ;
path pic {AngleDt={B-h-H}} ;
foreach Coor/Text/Pos in
{A/$A$/215,
B/$B$/-45,
C/$C$/0,
D/$D$/-92,
H/$H$/90%
} {%
node[shift=(Pos:8pt),anchor=center] at (Coor) {smallText} ;
}
end{tikzpicture}
end{document}
add a comment |
This is how I would redraw your image using right angle
from TikZ 3.1:
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{angles}
begin{document}
tikz[nodes={scale=.7}]
path
% axes
(4,0) edge[latex-] (-2,0) coordinate (X) node[above]{$x$}
(0,3) edge[latex-] (0,-1) coordinate (Y) node[right]{$y$}
% points
foreach x/y/n in {0/0/O,-1.3/0/A,3/0/B,0/2/C}{
(x,y) coordinate(n)
}
% sloped lines
(A) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
(B) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
% angles
pic[fill=yellow,angle eccentricity=2.1,pic text=$tantheta_1$]{angle=X--A--C}
pic[fill=yellow,angle eccentricity=1.5,pic text=$tantheta_2$]{angle=X--B--C}
pic[fill=red,angle radius=4mm]{right angle=A--C--B}
;
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f418965%2fput-a-square-for-90-degrees-angle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
In this case it might be simplest to do that by hand. (I also replaced grey by gray.)
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
EDIT: Here comes a perhaps even simpler alternative with explanation.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
% the slope of the first line is -12/8, so this defines the rotation angle
draw[rotate around={atan2(8,-12):(0,2)}] (0,2) rectangle ++(-0.3,0.3);
%draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
add a comment |
In this case it might be simplest to do that by hand. (I also replaced grey by gray.)
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
EDIT: Here comes a perhaps even simpler alternative with explanation.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
% the slope of the first line is -12/8, so this defines the rotation angle
draw[rotate around={atan2(8,-12):(0,2)}] (0,2) rectangle ++(-0.3,0.3);
%draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
add a comment |
In this case it might be simplest to do that by hand. (I also replaced grey by gray.)
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
EDIT: Here comes a perhaps even simpler alternative with explanation.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
% the slope of the first line is -12/8, so this defines the rotation angle
draw[rotate around={atan2(8,-12):(0,2)}] (0,2) rectangle ++(-0.3,0.3);
%draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
In this case it might be simplest to do that by hand. (I also replaced grey by gray.)
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
EDIT: Here comes a perhaps even simpler alternative with explanation.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick, gray](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick, gray](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw (6,-2)--(-6,6);
draw (-4,-4)--(2,5);
% the slope of the first line is -12/8, so this defines the rotation angle
draw[rotate around={atan2(8,-12):(0,2)}] (0,2) rectangle ++(-0.3,0.3);
%draw (0.3,{2-0.2}) -- ++(-0.2,-0.3)--++(-0.3,0.2);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
end{tikzpicture}
end{document}
edited Mar 7 '18 at 20:22
answered Mar 7 '18 at 19:17
marmotmarmot
111k5137256
111k5137256
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
add a comment |
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
Thank you but how you chose those coordinates?I can't make sense of it.
– Abbas
Mar 7 '18 at 19:42
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
@Abbas Well, the slopes of your lines are -8/12 and +12/8. I just started from the point at which the lines intersect and, went a bit along the slope of the first line, than parallel to the second, and then parallel to the first.
– marmot
Mar 7 '18 at 19:52
add a comment |
i would redraw your image as follows:
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{angles,
backgrounds,
intersections,
quotes}
begin{document}
begin{tikzpicture}[%[scale=1.3]
al/.style = {font=Huge},% axis label
myangle/.style = {angle radius=7mm, angle eccentricity=1.6, fill=yellow, font=scriptsize},
]
draw[->, ultra thick, gray] (0,-6)--(0,6) node[al,right]{$x$};
draw[name path=A,->, ultra thick, gray] (-6,0)--(6,0) node[al,above]{$y$};
draw[name path=B] (-6,6) -- node[draw, minimum size=5mm, outer sep=0pt, sloped, % <--
below right] {} (6,-2);
draw[name path=C] (-4,-4)--(2,5);
%
path[name intersections={of=A and B, by=a}];
path[name intersections={of=A and C, by=b}];
path[name intersections={of=B and C, by=c}];
%
begin{scope}[on background layer]
pic[myangle, "$tantheta_1$"] {angle = a--b--c};
pic[myangle, "$tantheta_2$"] {angle = c--a--b};
end{scope}
end{tikzpicture}
end{document}
which gives:
add a comment |
i would redraw your image as follows:
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{angles,
backgrounds,
intersections,
quotes}
begin{document}
begin{tikzpicture}[%[scale=1.3]
al/.style = {font=Huge},% axis label
myangle/.style = {angle radius=7mm, angle eccentricity=1.6, fill=yellow, font=scriptsize},
]
draw[->, ultra thick, gray] (0,-6)--(0,6) node[al,right]{$x$};
draw[name path=A,->, ultra thick, gray] (-6,0)--(6,0) node[al,above]{$y$};
draw[name path=B] (-6,6) -- node[draw, minimum size=5mm, outer sep=0pt, sloped, % <--
below right] {} (6,-2);
draw[name path=C] (-4,-4)--(2,5);
%
path[name intersections={of=A and B, by=a}];
path[name intersections={of=A and C, by=b}];
path[name intersections={of=B and C, by=c}];
%
begin{scope}[on background layer]
pic[myangle, "$tantheta_1$"] {angle = a--b--c};
pic[myangle, "$tantheta_2$"] {angle = c--a--b};
end{scope}
end{tikzpicture}
end{document}
which gives:
add a comment |
i would redraw your image as follows:
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{angles,
backgrounds,
intersections,
quotes}
begin{document}
begin{tikzpicture}[%[scale=1.3]
al/.style = {font=Huge},% axis label
myangle/.style = {angle radius=7mm, angle eccentricity=1.6, fill=yellow, font=scriptsize},
]
draw[->, ultra thick, gray] (0,-6)--(0,6) node[al,right]{$x$};
draw[name path=A,->, ultra thick, gray] (-6,0)--(6,0) node[al,above]{$y$};
draw[name path=B] (-6,6) -- node[draw, minimum size=5mm, outer sep=0pt, sloped, % <--
below right] {} (6,-2);
draw[name path=C] (-4,-4)--(2,5);
%
path[name intersections={of=A and B, by=a}];
path[name intersections={of=A and C, by=b}];
path[name intersections={of=B and C, by=c}];
%
begin{scope}[on background layer]
pic[myangle, "$tantheta_1$"] {angle = a--b--c};
pic[myangle, "$tantheta_2$"] {angle = c--a--b};
end{scope}
end{tikzpicture}
end{document}
which gives:
i would redraw your image as follows:
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{angles,
backgrounds,
intersections,
quotes}
begin{document}
begin{tikzpicture}[%[scale=1.3]
al/.style = {font=Huge},% axis label
myangle/.style = {angle radius=7mm, angle eccentricity=1.6, fill=yellow, font=scriptsize},
]
draw[->, ultra thick, gray] (0,-6)--(0,6) node[al,right]{$x$};
draw[name path=A,->, ultra thick, gray] (-6,0)--(6,0) node[al,above]{$y$};
draw[name path=B] (-6,6) -- node[draw, minimum size=5mm, outer sep=0pt, sloped, % <--
below right] {} (6,-2);
draw[name path=C] (-4,-4)--(2,5);
%
path[name intersections={of=A and B, by=a}];
path[name intersections={of=A and C, by=b}];
path[name intersections={of=B and C, by=c}];
%
begin{scope}[on background layer]
pic[myangle, "$tantheta_1$"] {angle = a--b--c};
pic[myangle, "$tantheta_2$"] {angle = c--a--b};
end{scope}
end{tikzpicture}
end{document}
which gives:
answered Mar 7 '18 at 19:41
ZarkoZarko
127k868167
127k868167
add a comment |
add a comment |
Works even in 3D !
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc,intersections}
pgfkeys{/tikz/.cd,
AngleDt length/.store in=AngleDtLgth,
AngleDt length=5pt}
tikzset{% Angle droit
AngleDt/.style={very thin},
pics/.cd,
AngleDt/.style args={#1-#2-#3}{%
code = {%
draw[AngleDt] ($(#2)!AngleDtLgth!(#1)$)
--($(#2)!2!($($(#2)!AngleDtLgth!(#1)$)!.5!($(#2)!AngleDtLgth!(#3)$)$) $)
--($(#2)!AngleDtLgth!(#3)$) ; ;
}
}}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw[name path=P1] (6,-2) coordinate (A) --(-6,6);
draw[name path=P2] (-4,-4)--(2,5) coordinate (C);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
path[name intersections={of= P1 and P2,by=B}] ;
path pic[AngleDt length=7mm,red] {AngleDt={A-B-C}} ;
end{tikzpicture}
begin{tikzpicture}[line join=round,
x={(40:2.6cm)},
y={(180:4cm)},
z={(0cm,4cm)}]
coordinate (C) at (1,0,0) ;
coordinate (B) at (0,0,0) ;
coordinate (A) at (0,1,0) ;
coordinate (D) at (1,1,0) ;
coordinate (H) at (.5,.5,.707) ;
coordinate (h) at (.5,.5,0) ;
fill[blue!15] (A)--(B)--(H)--cycle ;
fill[blue!30] (B)--(C)--(H)--cycle ;
draw (A)--(B)--(C)--(H)--cycle ;
draw (B)--(H) ;
draw[dashed] (A)--(D)--(C) ;
draw[dashed] (H)--(D) ;
draw[dotted] (A)--(C) ;
draw[dotted] (B)--(D) ;
draw[dotted] (H)--(h) node[midway,anchor=east] {$h$};
path pic {AngleDt={H-h-A}} ;
path pic {AngleDt={B-h-H}} ;
foreach Coor/Text/Pos in
{A/$A$/215,
B/$B$/-45,
C/$C$/0,
D/$D$/-92,
H/$H$/90%
} {%
node[shift=(Pos:8pt),anchor=center] at (Coor) {smallText} ;
}
end{tikzpicture}
end{document}
add a comment |
Works even in 3D !
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc,intersections}
pgfkeys{/tikz/.cd,
AngleDt length/.store in=AngleDtLgth,
AngleDt length=5pt}
tikzset{% Angle droit
AngleDt/.style={very thin},
pics/.cd,
AngleDt/.style args={#1-#2-#3}{%
code = {%
draw[AngleDt] ($(#2)!AngleDtLgth!(#1)$)
--($(#2)!2!($($(#2)!AngleDtLgth!(#1)$)!.5!($(#2)!AngleDtLgth!(#3)$)$) $)
--($(#2)!AngleDtLgth!(#3)$) ; ;
}
}}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw[name path=P1] (6,-2) coordinate (A) --(-6,6);
draw[name path=P2] (-4,-4)--(2,5) coordinate (C);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
path[name intersections={of= P1 and P2,by=B}] ;
path pic[AngleDt length=7mm,red] {AngleDt={A-B-C}} ;
end{tikzpicture}
begin{tikzpicture}[line join=round,
x={(40:2.6cm)},
y={(180:4cm)},
z={(0cm,4cm)}]
coordinate (C) at (1,0,0) ;
coordinate (B) at (0,0,0) ;
coordinate (A) at (0,1,0) ;
coordinate (D) at (1,1,0) ;
coordinate (H) at (.5,.5,.707) ;
coordinate (h) at (.5,.5,0) ;
fill[blue!15] (A)--(B)--(H)--cycle ;
fill[blue!30] (B)--(C)--(H)--cycle ;
draw (A)--(B)--(C)--(H)--cycle ;
draw (B)--(H) ;
draw[dashed] (A)--(D)--(C) ;
draw[dashed] (H)--(D) ;
draw[dotted] (A)--(C) ;
draw[dotted] (B)--(D) ;
draw[dotted] (H)--(h) node[midway,anchor=east] {$h$};
path pic {AngleDt={H-h-A}} ;
path pic {AngleDt={B-h-H}} ;
foreach Coor/Text/Pos in
{A/$A$/215,
B/$B$/-45,
C/$C$/0,
D/$D$/-92,
H/$H$/90%
} {%
node[shift=(Pos:8pt),anchor=center] at (Coor) {smallText} ;
}
end{tikzpicture}
end{document}
add a comment |
Works even in 3D !
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc,intersections}
pgfkeys{/tikz/.cd,
AngleDt length/.store in=AngleDtLgth,
AngleDt length=5pt}
tikzset{% Angle droit
AngleDt/.style={very thin},
pics/.cd,
AngleDt/.style args={#1-#2-#3}{%
code = {%
draw[AngleDt] ($(#2)!AngleDtLgth!(#1)$)
--($(#2)!2!($($(#2)!AngleDtLgth!(#1)$)!.5!($(#2)!AngleDtLgth!(#3)$)$) $)
--($(#2)!AngleDtLgth!(#3)$) ; ;
}
}}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw[name path=P1] (6,-2) coordinate (A) --(-6,6);
draw[name path=P2] (-4,-4)--(2,5) coordinate (C);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
path[name intersections={of= P1 and P2,by=B}] ;
path pic[AngleDt length=7mm,red] {AngleDt={A-B-C}} ;
end{tikzpicture}
begin{tikzpicture}[line join=round,
x={(40:2.6cm)},
y={(180:4cm)},
z={(0cm,4cm)}]
coordinate (C) at (1,0,0) ;
coordinate (B) at (0,0,0) ;
coordinate (A) at (0,1,0) ;
coordinate (D) at (1,1,0) ;
coordinate (H) at (.5,.5,.707) ;
coordinate (h) at (.5,.5,0) ;
fill[blue!15] (A)--(B)--(H)--cycle ;
fill[blue!30] (B)--(C)--(H)--cycle ;
draw (A)--(B)--(C)--(H)--cycle ;
draw (B)--(H) ;
draw[dashed] (A)--(D)--(C) ;
draw[dashed] (H)--(D) ;
draw[dotted] (A)--(C) ;
draw[dotted] (B)--(D) ;
draw[dotted] (H)--(h) node[midway,anchor=east] {$h$};
path pic {AngleDt={H-h-A}} ;
path pic {AngleDt={B-h-H}} ;
foreach Coor/Text/Pos in
{A/$A$/215,
B/$B$/-45,
C/$C$/0,
D/$D$/-92,
H/$H$/90%
} {%
node[shift=(Pos:8pt),anchor=center] at (Coor) {smallText} ;
}
end{tikzpicture}
end{document}
Works even in 3D !
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc,intersections}
pgfkeys{/tikz/.cd,
AngleDt length/.store in=AngleDtLgth,
AngleDt length=5pt}
tikzset{% Angle droit
AngleDt/.style={very thin},
pics/.cd,
AngleDt/.style args={#1-#2-#3}{%
code = {%
draw[AngleDt] ($(#2)!AngleDtLgth!(#1)$)
--($(#2)!2!($($(#2)!AngleDtLgth!(#1)$)!.5!($(#2)!AngleDtLgth!(#3)$)$) $)
--($(#2)!AngleDtLgth!(#3)$) ; ;
}
}}
begin{document}
begin{tikzpicture}[scale=1.3]
draw [->, ultra thick](0,-6)--(0,6) node[right,font=fontsize {30}
{30}selectfont]{$x$};
draw [->,ultra thick](-6,0)--(6,0) node[above,font=fontsize {30}
{30}selectfont]{$y$};
draw[name path=P1] (6,-2) coordinate (A) --(-6,6);
draw[name path=P2] (-4,-4)--(2,5) coordinate (C);
draw[font=fontsize{15}{15}selectfont,black]
--(3,1) node {$tantheta_2$};
fill[yellow] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;
fill[yellow] (-1.333333333,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;
draw[font=fontsize{10}{10}selectfont, black]
--(-.5,.4) node {$tantheta_1$};
path[name intersections={of= P1 and P2,by=B}] ;
path pic[AngleDt length=7mm,red] {AngleDt={A-B-C}} ;
end{tikzpicture}
begin{tikzpicture}[line join=round,
x={(40:2.6cm)},
y={(180:4cm)},
z={(0cm,4cm)}]
coordinate (C) at (1,0,0) ;
coordinate (B) at (0,0,0) ;
coordinate (A) at (0,1,0) ;
coordinate (D) at (1,1,0) ;
coordinate (H) at (.5,.5,.707) ;
coordinate (h) at (.5,.5,0) ;
fill[blue!15] (A)--(B)--(H)--cycle ;
fill[blue!30] (B)--(C)--(H)--cycle ;
draw (A)--(B)--(C)--(H)--cycle ;
draw (B)--(H) ;
draw[dashed] (A)--(D)--(C) ;
draw[dashed] (H)--(D) ;
draw[dotted] (A)--(C) ;
draw[dotted] (B)--(D) ;
draw[dotted] (H)--(h) node[midway,anchor=east] {$h$};
path pic {AngleDt={H-h-A}} ;
path pic {AngleDt={B-h-H}} ;
foreach Coor/Text/Pos in
{A/$A$/215,
B/$B$/-45,
C/$C$/0,
D/$D$/-92,
H/$H$/90%
} {%
node[shift=(Pos:8pt),anchor=center] at (Coor) {smallText} ;
}
end{tikzpicture}
end{document}
edited Mar 9 '18 at 8:21
answered Mar 8 '18 at 19:50
TarassTarass
11.5k42677
11.5k42677
add a comment |
add a comment |
This is how I would redraw your image using right angle
from TikZ 3.1:
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{angles}
begin{document}
tikz[nodes={scale=.7}]
path
% axes
(4,0) edge[latex-] (-2,0) coordinate (X) node[above]{$x$}
(0,3) edge[latex-] (0,-1) coordinate (Y) node[right]{$y$}
% points
foreach x/y/n in {0/0/O,-1.3/0/A,3/0/B,0/2/C}{
(x,y) coordinate(n)
}
% sloped lines
(A) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
(B) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
% angles
pic[fill=yellow,angle eccentricity=2.1,pic text=$tantheta_1$]{angle=X--A--C}
pic[fill=yellow,angle eccentricity=1.5,pic text=$tantheta_2$]{angle=X--B--C}
pic[fill=red,angle radius=4mm]{right angle=A--C--B}
;
end{document}
add a comment |
This is how I would redraw your image using right angle
from TikZ 3.1:
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{angles}
begin{document}
tikz[nodes={scale=.7}]
path
% axes
(4,0) edge[latex-] (-2,0) coordinate (X) node[above]{$x$}
(0,3) edge[latex-] (0,-1) coordinate (Y) node[right]{$y$}
% points
foreach x/y/n in {0/0/O,-1.3/0/A,3/0/B,0/2/C}{
(x,y) coordinate(n)
}
% sloped lines
(A) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
(B) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
% angles
pic[fill=yellow,angle eccentricity=2.1,pic text=$tantheta_1$]{angle=X--A--C}
pic[fill=yellow,angle eccentricity=1.5,pic text=$tantheta_2$]{angle=X--B--C}
pic[fill=red,angle radius=4mm]{right angle=A--C--B}
;
end{document}
add a comment |
This is how I would redraw your image using right angle
from TikZ 3.1:
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{angles}
begin{document}
tikz[nodes={scale=.7}]
path
% axes
(4,0) edge[latex-] (-2,0) coordinate (X) node[above]{$x$}
(0,3) edge[latex-] (0,-1) coordinate (Y) node[right]{$y$}
% points
foreach x/y/n in {0/0/O,-1.3/0/A,3/0/B,0/2/C}{
(x,y) coordinate(n)
}
% sloped lines
(A) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
(B) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
% angles
pic[fill=yellow,angle eccentricity=2.1,pic text=$tantheta_1$]{angle=X--A--C}
pic[fill=yellow,angle eccentricity=1.5,pic text=$tantheta_2$]{angle=X--B--C}
pic[fill=red,angle radius=4mm]{right angle=A--C--B}
;
end{document}
This is how I would redraw your image using right angle
from TikZ 3.1:
documentclass[tikz,border=7pt]{standalone}
usetikzlibrary{angles}
begin{document}
tikz[nodes={scale=.7}]
path
% axes
(4,0) edge[latex-] (-2,0) coordinate (X) node[above]{$x$}
(0,3) edge[latex-] (0,-1) coordinate (Y) node[right]{$y$}
% points
foreach x/y/n in {0/0/O,-1.3/0/A,3/0/B,0/2/C}{
(x,y) coordinate(n)
}
% sloped lines
(A) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
(B) edge[gray,shorten <=-7mm,shorten >=-7mm] (C)
% angles
pic[fill=yellow,angle eccentricity=2.1,pic text=$tantheta_1$]{angle=X--A--C}
pic[fill=yellow,angle eccentricity=1.5,pic text=$tantheta_2$]{angle=X--B--C}
pic[fill=red,angle radius=4mm]{right angle=A--C--B}
;
end{document}
answered 12 mins ago
KpymKpym
16.7k24089
16.7k24089
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f418965%2fput-a-square-for-90-degrees-angle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Someone might answer, in the mean time see if you can make tex.stackexchange.com/a/356805/586 work. You might find other solutions as well with a search like tex.stackexchange.com/search?q=tikz+mark+right+angle
– Torbjørn T.
Mar 7 '18 at 18:58