TeX - LaTeX Asked by Hany on November 30, 2020
From the answer to this question, I used the following code to draw a quadrant of a cross:
documentclass{beamer}
beamertemplatenavigationsymbolsempty
usepackage{verbatim}
usepackage{tikz}
begin{document}
begin{frame}[t]
frametitle{}
includegraphics[width=6.6cm,keepaspectratio]{./cross_coptic.jpg}
vskip -6.5cm
hskip .04cm
begin{tikzpicture}[scale=.9, transform shape]
node [red] at (0,0) (o){bf .}%do not insert empty lines inbetween
([shift={(90.:3.4cm)}]o.center) node [red] (t){bf .}%topmost
([shift={(180.:3.38cm)}]o.center) node [red] (ol){bf .}
([shift={(90.:.6cm)}]o.center) node [red] (oua){bf .}%up 1 level
([shift={(180.:.6cm)}]oua.center) node [red] (oual){bf .}
([shift={(90.:2.1cm)}]o.center) node [red] (ouaaa){bf .}%up 3 levels
([shift={(180.:1.6cm)}]ouaaa.center) node [red] (ouaaal){bf .}
([shift={(90.:2.45cm)}]o.center) node [red] (ouaaaa){bf .}%up 4 levels
([shift={(180.:.6cm)}]ouaaaa.center) node [red] (ouaaaal){bf .}
;
draw[line width=.1cm,red, fill=red!20!white] (oual.center)
to [out=90,in=-20, looseness=1.] (ouaaal.center)
to [out=50,in=180, looseness=1.] (ouaaaal.center)
to [out=90,in=-150, looseness=1.] (t.center)
to [out=-90,in=90, looseness=1.] (o.center)
to [out=180,in=0, looseness=1.] ([shift={(-90:.6)}]oual.center)
-- cycle
;
end{tikzpicture}
end{frame}
end{document}
Is it possible to omit drawing the outline present inside the cross (connecting nodes t — o — shift={(-90:.6)}]oual — oual), keeping filling the quadrant?
Note sure of what you want to do exactly, but you can remove the line drawn while keeping the background fill by replacing draw
by fill
, as below:
documentclass{beamer}
beamertemplatenavigationsymbolsempty
usepackage{verbatim}
usepackage{tikz}
begin{document}
begin{frame}[t]
frametitle{}
%includegraphics[width=6.6cm,keepaspectratio]{./cross_coptic.jpg}
%vskip -6.5cm
%hskip .04cm
begin{tikzpicture}[scale=.9, transform shape]
node at (0,0) (o){}%do not insert empty lines inbetween
([shift={(90.:3.4cm)}]o.center) node (t){}%topmost
([shift={(180.:3.38cm)}]o.center) node (ol){}
([shift={(90.:.6cm)}]o.center) node (oua){}%up 1 level
([shift={(180.:.6cm)}]oua.center) node (oual){}
([shift={(90.:2.1cm)}]o.center) node (ouaaa){}%up 3 levels
([shift={(180.:1.6cm)}]ouaaa.center) node (ouaaal){}
([shift={(90.:2.45cm)}]o.center) node (ouaaaa){}%up 4 levels
([shift={(180.:.6cm)}]ouaaaa.center) node (ouaaaal){}
;
fill[red!20!white] (oual.center)
to [out=90,in=-20, looseness=1.] (ouaaal.center)
to [out=50,in=180, looseness=1.] (ouaaaal.center)
to [out=90,in=-150, looseness=1.] (t.center)
to [out=-90,in=90, looseness=1.] (o.center)
to [out=180,in=0, looseness=1.] ([shift={(-90:.6)}]oual.center)
-- cycle
;
end{tikzpicture}
end{frame}
end{document}
Notice that I commented out the included figure since I don't have cross_coptic.jpg
. You can uncomment lines 8 to 10.
Answered by jchd on November 30, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP