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?

  • welcome to tex.se! lyx? – Zarko Aug 24 '17 at 11:18
  • @Zarko lyx.org - a graphical frontend to LaTeX. – Torbjørn T. Aug 24 '17 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 Aug 24 '17 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 Aug 24 '17 at 11:30
  • @Zarko Yes, you seem to have misunderstood the question. – Torbjørn T. Aug 24 '17 at 11:31

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.

| improve this answer | |
  • 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 Aug 24 '17 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. – Torbjørn T. Aug 24 '17 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. – Torbjørn T. Aug 24 '17 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.