TransWikia.com

How can a TikZ picture be used as an argument to memoir's fancy break?

TeX - LaTeX Asked on November 23, 2021

Memoir style has fancybreak{@@@} command that take arbitrary arguments. Is it possible to feed it a TikZ picture below and how?

documentclass{memoir}
usepackage{tikz}
usetikzlibrary{knots}

begin{document}

begin{tikzpicture}
draw (0,0)--(1,0);
filldraw (0,0) circle (3pt);
filldraw (1,0) circle (3pt);
end{tikzpicture} 

fancybreak{@@@}

end{document}

One Answer

As per @Ulrike Fischer's comment above, indeed it is very simple!

documentclass{memoir}
usepackage{tikz}
usetikzlibrary{knots}

begin{document}

defdumbell{
begin{tikzpicture}
draw (0,0)--(1,0);
filldraw (0,0) circle (3pt);
filldraw (1,0) circle (3pt);
end{tikzpicture} 
}
fancybreak{dumbell}

end{document}

Another great tip by Ulrike!

Answered by user220975 on November 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP