TransWikia.com

Can default tikz options be altered?

TeX - LaTeX Asked on February 26, 2021

I’m writing a document with lots of tikz figures. Every single one of them starts with begin{tikzpicture}[line join=round, line cap=round]. Is it possible to set line join=round and line cap=round at the beginning of the document so I don’t have to keep setting these options myself?

One Answer

You can add a global style, so to speak, that will be applied to every path by writing this in the preamble, inside of the tikzset:

tikzset{
    every path/.style={line join=round, line cap=round}
}

Correct answer by Alenanno on February 26, 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