<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">My idea was to divide your layout into small parts, each one with one metapost definition of user symbol and use the command in thconfig file:<div><br></div><div><div style="margin: 0px; font-size: 12px; "><font color="#0056d6">input</font><font color="#0042aa"> - w</font>orks like <span style="color: rgb(4, 51, 255); ">input </span>command in data files - includes other files.</div></div><div><br></div><div><div style="margin: 0px; font-size: 12px; "> <span style="color: #0433ff">copy <source layout id> </span>. set properties here that are not modied based on the given source layout. - in your layout.</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">file: layout_foo:</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">layout u_foo</div><div style="margin: 0px; font-size: 12px; "> code metapost</div><div style="margin: 0px; font-size: 12px; "> definition of u:foo</div><div style="margin: 0px; font-size: 12px; "> endcode</div><div style="margin: 0px; font-size: 12px; ">endlayout</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">thconfig file:</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">input layout_foo</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">layout my_layout</div><div style="margin: 0px; font-size: 12px; "> <b>#</b>copy u_foo <b>#this is the line which could be commented </b></div><div style="margin: 0px; font-size: 12px; ">endlayout</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">export foo_off</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">it was not tested prior post!</div><div style="margin: 0px; font-size: 12px; "><br></div><div style="margin: 0px; font-size: 12px; ">m.</div><div><br><div><div>Sep 13, 2013 v 8:27 AM, Xavier Pennec <<a href="mailto:Xavier.Pennec@inria.fr">Xavier.Pennec@inria.fr</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">Well, I gathered my layout definitions in a single file to avoid repeating and duplicating everything in my 50 thconfig files. This allows me to modify only one layout file to modify consistently all the layouts of all caves. I think heritage + redefinition is a more structured<span class="Apple-converted-space"> </span></span></blockquote></div><br>
<br></div></div></body></html>