<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hallo again Ovi — Rather like your previous question, this is not so much a TeXworks issue as a more general one.  However, since you (presumably) have (at least) two installation of TeXworks, one that runs under Windows and one
 that runs under MacOS, then you <i>might </i>be able to create a local copy of "gnuplottex.sty" in your Windows installation that slaves the system-wide copy but passes the additional "[miktex]" optional parameter.  That is, your mainline code would read "<span><span>\usepackage
 {gnuplottex}</span></span>", and your local "gnuplottex.sty" would then load the system version passing the additional optional parameter.  And of course under MacOS this would not be needed.  But as I know less than anyone about how LaTeX handles these things,
 I cannot give any more specific advice and I may well be completely mistaken.  Maybe ask on the TeXhax list, where you will be sure of reaching some more informed readers.<br>
<br>
<i>Philip Taylor<br>
--------<br>
</i>Ovi Chitayat wrote:<br>
</div>
<blockquote type="cite" cite="mid:706255651.66766.1584864218708@mail.yahoo.com">
<div class="yahoo-style-wrap" style="font-family:verdana,
        helvetica, sans-serif;font-size:16px;">
<div dir="ltr" data-setdir="false">Hi,</div>
<div dir="ltr" data-setdir="false">I just figured out that </div>
<div dir="ltr" data-setdir="false"><span>\usepackage[miktex]{gnuplottex}</span><br>
</div>
<div dir="ltr" data-setdir="false"><span>is required for gnuplot to work under windows/miktex while running the same job under MacOS</span></div>
<div dir="ltr" data-setdir="false"><span>requires </span></div>
<div dir="ltr" data-setdir="false"><span><span>\usepackage{gnuplottex}</span><br>
</span></div>
<div dir="ltr" data-setdir="false"><span><span>Is there a way to accomplish a conditional loading of packages based on the platform?</span></span></div>
<div dir="ltr" data-setdir="false"><span><span>Or an 'optional option' passed to the package loader somehow?</span></span></div>
<div dir="ltr" data-setdir="false"><span><span>Ovi</span></span></div>
<div dir="ltr" data-setdir="false"><span><span><br>
</span></span></div>
</div>
</blockquote>
<br>
<p>This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted.
 If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of
 London. It is your responsibility to ensure that this email and any attachments are virus free.</p>
<p></p>
</body>
</html>