How To Specify a Different LaTeX Style Class

If you need to define a lot of new LaTeX environments and commands in your Authorea documents, a good idea is to place them in the header.tex file. However, if you need to export your paper in a very customized format, you may need to use custom LaTeX and bibliography style files (.cls, .sty and .bst).

Use your own custom style files in Authorea with these simple steps:

  1. 1.

    Go to folder view

  2. 2.

    Upload your customized yourstyle.sty / yourbibliography.bst files

  3. 3.

    Edit the header.tex file by adding as many instances of \usepackage{yourstyle} as you need

You should now be able to export your document to PDF using your custom defined style.

Important: Customized styles and classes do not render in the web version of the Authorea article, but only in the exported PDF!


Q: How do I disable errors I get in the web view, when using third-party custom macros?

If you want to use a macro from an external/custom style file, say \example , it could often appear broken in the web view, while working fine in your PDF export. To suppress the errors / redefine the macro for web use, there is a temporary workaround you can add to header.tex in your document:

  1. 1.
  2. 2.

    Make macros conditional on web/PDF workflow via \iflatexml :

       \iflatexml % web-only
        \newcommand{\example}{\relax} % \relax disables the macro
       \else %pdf-only

[Someone else is editing this]