TeX - LaTeX Asked on June 7, 2021
A short code with pst-euclid
:
documentclass[svgnames, border=2pt]{standalone}
usepackage{pst-eucl, multido}
begin{document}
begin{pspicture}(-2.2,-2.2)(2.2,2.2)
SpecialCoor
pnode(0,0){O}
pstGeonode[PointSymbol=none, PointNameSep=0pt]%
(0,2){A}(2,0){B}(0,-2){C}(-2,0){D}
pnodes{A}(2;85)(2;5)(2;-5)(2;-86)(2;-95)(2;-175)(2;175)(2;93)
psset{nodesepA=1em, arrows=->, arrowinset=0}
multido{ie=0+2,io=1+2}{4}{pstArcnOAB[linewidth=2.5pt]{O}{Aie}{Aio}}
end{pspicture}
end{document}
Correct answer by Bernard on June 7, 2021
This is your diagram done with xy
package (especially to built the commutative diagrams).
documentclass[a4paper,12pt]{article}
usepackage[all,cmtip]{xy}
usepackage{newtxtext,newtxmath}
begin{document}
[xymatrix{
& Aar@/^.9pc/[dr] &
D ar@/^.9pc/[ur]& & Bar@/^.9pc/[dl]
& Car@/^.9pc/[ul] & }]
end{document}
Answered by Sebastiano on June 7, 2021
bending
libraryWhen drawing large lines with arrows, the bending is not respected, unless you use the bending
library (doesn't need anything else than declaring it in the preamble). Now this looks like a real circle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{bending}
begin{document}
begin{tikzpicture}
foreach angle/letter in {90/A,0/B,-90/C,180/D}
node (letter) at (angle:2) {textbf{sffamily huge letter}};
% foreach a/b in {A/B,B/C,C/D,D/A}
% draw[line width=5pt,-latex] (a) to[bend left,looseness=1] (b);
defshft{15}
foreach angle in {0,-90,-180,-270}
{
draw[line width=5pt] (-shft+angle:2) arc(-shft+angle:-70+shft+angle:2);
draw[line width=5pt,-latex] (-70+shft+angle:2) arc(-70+shft+angle:-90+shft+angle:2);
}
end{tikzpicture}
end{document}
Answered by SebGlav on June 7, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP