1

I want to use a new class in LyX. I know where to save the .cls file so that LyX can use it. I have already done that. I also know that I need a layout file and need to save it in the layout folders. My problem is that I do not know which software to use to write the layout file. Any answers?

7
  • welcome to tex.se! lyx?
    – Zarko
    Commented Aug 24, 2017 at 11:18
  • @Zarko lyx.org - a graphical frontend to LaTeX. Commented Aug 24, 2017 at 11:26
  • @TorbjørnT., yes, i assume that op have/use only Lyx. i would write it with standard latex. or i misunderstand question?
    – Zarko
    Commented Aug 24, 2017 at 11:29
  • See Help > Customization > Ctrl+R > Chapter five. The layout is a simple plain text. Any text editor is good for this.
    – Fran
    Commented Aug 24, 2017 at 11:30
  • @Zarko Yes, you seem to have misunderstood the question. Commented Aug 24, 2017 at 11:31

1 Answer 1

1

A .layout file is just a plain text file, so use any plain text editor. E.g. Notepad, Gedit, Kate, Textedit, Notepad++, Sublime Text, Atom, Vim, Emacs etc. Whichever you prefer.

3
  • Thanks.When you save a Notepad file, the file extension is .text not .layout. Notepad does not give the option to change the extension of the file. Is there a way to save a file created with Notepad with a .layout extension?
    – LyX2394
    Commented Aug 24, 2017 at 11:41
  • @LyX2394 Can't you select "All files" or something, and type .layout? (Haven't opened Notepad in years.) Alternatively just rename the file afterwards. Commented Aug 24, 2017 at 11:43
  • @LyX2394 Seems an alternative is to type filename with extension in quotes (lifehacker.com/5883860/…), i.e. write "something.layout" as filename, and even if .txt is selected as filetype, the file will be called something.layout, not something.layout.txt. Commented Aug 24, 2017 at 11:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .