<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Martin,<br>
<br>
This should work. This is partly what I do already but within one
one single layout file.<br>
<br>
However, my concern with this solution is that I should reorganize
user-symbols definitions into one single (or just a few) layout
definitions which need to be copied at the last level of layouts. I
have to think more about such an organization. It does not seem very
natural a-priori but it might be more efficient than redefining to
null the user-symbols.<br>
<br>
Xavier<br>
<br>
<br>
<div class="moz-cite-prefix">Le 13/09/2013 10:22, Martin Sluka a
écrit :<br>
</div>
<blockquote cite="mid:2A8B3635-DD92-4DD0-B5D8-5D7AFC6DB642@mac.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
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
moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Therion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Therion@speleo.sk">Therion@speleo.sk</a>
<a class="moz-txt-link-freetext" href="http://mailman.speleo.sk/mailman/listinfo/therion">http://mailman.speleo.sk/mailman/listinfo/therion</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
> -------------------------
> Xavier Pennec
> Senior Research Scientist / Directeur de recherche
> Asclepios project-team, INRIA Sophia-Antipolis
> 2004 Route des Lucioles, BP93
> F-06902 Sophia-Antipolis Cedex, France
> +33 4 92 38 76 64
> +33 6 78 35 16 90
> <a class="moz-txt-link-freetext" href="http://www-sop.inria.fr/asclepios/">http://www-sop.inria.fr/asclepios/</a>
> -------------------------------
</pre>
</body>
</html>