<div dir="ltr"><div>Just define it before loading the .sty file.<br><br></div>When searching the source of an error it is sometimes useful to put \errorcontextlines=9999 just below \documentclass. It will show you the trace, so if the error is encountered somewhere in a .sty file but triggered by something in your file, it is easier to find what happened.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br><div class="gmail_quote">2016-02-07 6:42 GMT+01:00 Shakthi Kannan <span dir="ltr"><<a href="mailto:shakthimaan@gmail.com" target="_blank">shakthimaan@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
--- On Sun, Feb 7, 2016 at 10:09 AM, Shakthi Kannan<br>
<<a href="mailto:shakthimaan@gmail.com">shakthimaan@gmail.com</a>> wrote:<br>
 \f@ncyerh ->\slshape \booktitle<br>
\--<br>
<br>
Just for future reference.<br>
<br>
The \booktitle is found in book-contents.tex, which is where the<br>
booktitle is defined. But, the config.sty file loads much prior to it,<br>
and hence doesn't know about \booktitle.<br>
<br>
Is there a way to dynamically pass and set values to .sty files?<br>
<div class="HOEnZb"><div class="h5"><br>
SK<br>
<br>
--<br>
Shakthi Kannan<br>
<a href="http://www.shakthimaan.com" rel="noreferrer" target="_blank">http://www.shakthimaan.com</a><br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>