<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 1/28/21 2:48 PM, Paul A. Rubin
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:46a4ea83-d4c4-6b77-2432-f29aa6ddeee9@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 1/28/21 10:54 AM, Keith Sloan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a2b7a255-a107-a324-0c83-74e9545d7d5f@sloan-home.co.uk">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p><font size="+1">My Uni has supplied me with a tex template
that they want me to use.<br>
I have tried opening a new Lyx document and then importing
the tex file but I get an error see attached.<br>
An error occurred while running:<br>
$$s/../MacOS/text2lyx -f "casestudy.tex"<br>
"casestudy.lyx"<br>
<br>
I am on Mac Catalina 10.15.7<br>
</font></p>
<p><font size="+1">I note the tex file has near the beginning</font></p>
<p><font size="+1">%Example of use of Time Domain Astrophysics
latex class<br>
\documentclass{tda}</font></p>
<p><font size="+1">And they are also supplying a file tda.cls<br>
</font></p>
<p><font size="+1">Not sure where to go to diagnose the problem.<br>
Hope somebody can help advise</font></p>
<p> </p>
<pre class="moz-signature" cols="72">========== Art & Ceramics ===========
<a class="moz-txt-link-freetext" href="https://www.instagram.com/ksloan1952/" moz-do-not-send="true">https://www.instagram.com/ksloan1952/</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
I think you are going to have to do the following:<br>
<ol>
<li>Install tda.cls in your LaTeX setup (park it in an
appropriate location and make sure your LaTeX installation can
find it).</li>
<li>Create a LyX layout file for the tda class, and store that
in your local LyX directory.</li>
<li>Reconfigure LyX so it finds the new layout.</li>
</ol>
<p>See chapter 5 of the LyX Customization manual for details.</p>
</blockquote>
<p>If you're lucky, the tda template will be based upon some
standard LaTeX template (e.g., report or book), and you can get a
working layout very simply: Copy report.layout (say) to
tda.layout, and put that into your LyX user directory. Look at the
tda.cls file (or post it here). You are likely to find some
material that shows what it is based upon.</p>
<p>Riki</p>
<p><br>
</p>
</body>
</html>