Importing tex file into Lyx

Paul A. Rubin parubin73 at
Thu Jan 28 19:48:35 UTC 2021

On 1/28/21 10:54 AM, Keith Sloan wrote:
> My Uni has supplied me with a tex template that they want me to use.
> I have tried opening a new Lyx document and then importing the tex 
> file but I get an error see attached.
> An error occurred while running:
> $$s/../MacOS/text2lyx -f "casestudy.tex"
> "casestudy.lyx"
> I am on Mac Catalina 10.15.7
> I note the tex file has near the beginning
> %Example of use of Time Domain Astrophysics latex class
> \documentclass{tda}
> And they are also supplying a file tda.cls
> Not sure where to go to diagnose the problem.
> Hope somebody can help advise
> ========== Art & Ceramics ===========
I think you are going to have to do the following:

 1. Install tda.cls in your LaTeX setup (park it in an appropriate
    location and make sure your LaTeX installation can find it).
 2. Create a LyX layout file for the tda class, and store that in your
    local LyX directory.
 3. Reconfigure LyX so it finds the new layout.

See chapter 5 of the LyX Customization manual for details.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lyx-users mailing list