Welcome to Robert Izzard's LyX templates, layouts and bindings for astrophysics. Thanks to Dave Green for help with MNRAS (https://www.mrao.cam.ac.uk/~dag/). ------------------------------------------------------------ Installation requirements You will need to install LaTeX, LyX, required LaTeX packages, and then the files I provide. ------------------------------------------------------------ LATEX You should install LaTeX using your system installer. On Ubuntu Linux, this is the "texlive" package. If you cannot decide in advance which tools you require, install "texlive-full". ------------------------------------------------------------ LyX You can probably install LyX with your system installer. This should be version 2.3 or above. If you want a newer version go to https://www.lyx.org/Download and locate your operating system for instructions. On Ubuntu Linux, you should install "lyx". ------------------------------------------------------------ LaTeX packages (system) You need to install packages which come with your system LaTeX, e.g. bibtex and natbib, and a selection of "class files" and "style files". On Ubuntu Linux, you can install "texlive-full" to get most of the required packages. ------------------------------------------------------------ LaTeX packages (custom) You will need to download the LaTeX style/class/bibliography files appropriate to the journal of your choice. Usually these go in the directory ~/.latex (where ~ means your home directory). After installing these, run the "texhash" command. Astronomy and Astrophysics https://www.aanda.org/author-information https://www.aanda.org/doc_journal/instructions/aadoc.pdf Monthly Notices of the Royal Astronomical Society https://academic.oup.com/mnras/pages/General_Instructions http://mirror.hmc.edu/ctan/macros/latex/contrib/mnras/mnras_guide.pdf ------------------------------------------------------------ LyX layouts First, run LyX to make sure it works. It will do an automatic configuration which may take a few seconds. Quit LyX. Second, make a directory (if it does not already exist) called "~/.lyx". This directory stores your lyx configuration and custom files, it is called your "User Directory". In the following I assume your user directory is at ~/.lyx - you will have to adapt the commands below if it is not. See https://wiki.lyx.org/LyX/UserDir for operating-system dependent details. Next, you will need to download the custom layout and key binding ("bind") files from subdirectories stored here. a) layouts Make a directory "~/.lyx/layouts" if it does not already exist and download the contents of "layouts" to it. Of these files, some marked rgi_astro.lyx, rgi_constants.lyx, rgi_maths.lyx, rgi_units.lyx contain math-macros which are very useful when writing papers. You can load each into LyX to see which macros are defined. You should also load a file corresponding to the journal of choice, e.g. rgi_AA.lyx or rgi_MNRAS.lyx These defined macros which correspond to the formatting style of that journal, e.g. in MNRAS the solar mass symbol is in Roman font, while in A&A it is italic. b) bind Make a directory "~/.lyx/bind" if it does not already exist and download the contents of "bind" to it. Bind files control keyboard shortcuts. You can choose whether or not my bind files are useful to you. If you want to use the "rob-cua" key bindings, in LyX go to "Preferences -> Editing -> Shortcuts" and in the box marked "Bind file" type "rob-cua" (or use the "Browse" button to search for the file). Once you have done all this, start LyX again. Go to "Tools -> Reconfigure". This will take a few seconds. Quit LyX. ------------------------------------------------------------ LyX templates In the "templates" directory are template LyX files for use with Monthly Notices of the Royal Astronomical Society and Astronomy and Astrophysics. To use these, download the template and the images directory to a directory of your choice. These templates are *not* meant to display everything you can do with LyX or with LaTeX. They are, however, fully functional and can be copied and expanded to make your paper. Note: Each template looks for the files it loads (in the "Input:..." boxes at the top of the file once loaded into LyX) from the "layouts" directory in ../layouts/ (i.e. "layouts" should be in the parent directory of your working directory). You can change where LyX looks by editing the template file in a text editor and replacing "../layouts/filename.lyx" with "/filename.lyx". You can also do this by hand if you click on each of the boxes at the top of the template marked "Input: ...".