Using LaTeX

About 10% of authors to our journals submit their papers in LaTeX, but what exactly is LaTeX and what are the pros and cons?

What is LaTeX?

LaTeX is a type-setting language. Unlike Microsoft Word, it isn’t a WYSIWYG, it is a markup language where labels in the file define formatting and style. LaTeX is a particular favourite of mathematicians and physicists, because complex equations can be easily and precisely represented. It is based on TeX, from Donald Knuth, and the first version was written by Leslie Lamport in 1985.

A tex file contains the words you want to put in the final output along with some tags to say what kind of text it is, e.g. an equation, title or bullet point. Many publishers offer an sty file containing style information that you just need to put into the same folder as your tex file when you compile. You can compile the tex file to create a beautifully formatted PDF, many LaTeX editors have a single button to do this.

latex example

The text on the left is used to generate the PDF file on the right. Text tags (in red and blue) contain all the instructions for formatting.

Why use LaTeX?

Here’s a few reasons authors choose to write in LaTeX:

  • It’s quicker than a word processor if there are lots of equations
  • Formatting takes care of itself
  • References can easily be rendered in different styles (using BibTeX)
  • It’s free and open source
  • LaTeX is a standard software in many disciplines

There are some things that become more difficult with LaTeX, but very few that can’t be overcome:

  • There is a learning curve, but once you’ve mastered a few commands it becomes much easier, and there are lots of online help guides and templates. A good editor will have common functions in menus and icons.
  • Custom formatting can be tricky. Almost anything is possible, but some changes are easier to implement than others.
  • Once you start writing in LaTeX, you can’t easily switch to a word processor: your colleagues also need to use LaTeX, or you can send them a PDF to annotate.

Learning LaTeX

There are many LaTeX tools, website and forums, including for absolute beginners. Here are a few that can help you get started:

https://latex-project.org/guides/
https://www.overleaf.com/tutorial
https://tobi.oetiker.ch/lshort/lshort.pdf

LaTeX at MDPI

MDPI editors are trained to use LaTeX. To submit, you can use our style files on the MDPI website. If you have questions or problems, you can also email latex support. And if you are an Overleaf user, you can submit directly to any MDPI journal from the platform.

 

Posted in Editorial, LaTex, MDPI News, Open Access Publishing, Peer-Review, Uncategorized and tagged , , , , , .

12 Comments

  1. Dear Sir/Madam,

    I try to put symbol of square. I tried Square, square, Box. None of them works. Would you please guide me what I should do?

  2. Dear Sir/Madam,
    How can I use the command \cite to make a citation, for example: [1, 5-10] in MDPI Latex template?

    • Thanks for the question. First, if you’re not familiar with citations in LaTeX, there are a number of good primers available online, e.g. https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management.

      The MDPI citation style uses the standard LaTeX mechanism. Make sure you have the correct entry in your bibliography with a label, e.g. @article {myref,… (either at the end of the tex file or in a bib file) then add your citation to the main text using the \cite{myref}. When you compile to PDF, make sure that either bibtex is called at the same time, or compile bibtex separately (biber should also work).

      If you are still having difficulties, you can email latex@mdpi.com or try some online LaTeX forums.

  3. Respected Viewers! kindly guide me i am using “\documentclass[mathematics,article,submit,moreauthors,pdftex,10pt,a4paper]{mdpi}” this class but also using some mathematical symbols like \digamma, \bigwedge but this type error of undefined control sequence while executing. if possible guideme whta i have to do now?
    Thank you

    Azeem.

    • Thanks for getting in touch. It looks like these commands are included in the mathdesign package, which isn’t loaded by default in the template. Add the following somewhere between the \documentclass declaration and the \begin{document} command:

      \usepackage{mathdesign}

      That should solve the problem.

  4. Hello,
    I’m unable to set the journal name in the Latex file. Due to this the footnote on my manuscript shows ‘Submitted to Journal Not Specified’. How can I set it? I can see a journalnames.tex file inside the Definitions folder of MDPI Latex Template.

    Any idea, please?

    Thank you.

    • Sorry for the difficulties. First, make sure you have the latest version of the latex template (from https://www.mdpi.com/authors/latex). Some new journals will not be added. Also check for capitalization of the journal title: it is case sensitive.

      If you can’t quickly solve the problem, don’t worry. Just submit the paper and our editorial office will take care of it. As long as you select the correct journal in the submission system you will not have any problems.

  5. Dear Sirs,
    I am preparing a manuscript using the MDPI LateX template. I am not able to include the plus minus symbol (typically included by $\pm$ ), the Angstrom symbol and the arrows in the text. Could you please send me some indications to fix this problems?
    Thank you in advance

    • Hi Marco,

      Sorry for being late to follow up on your comment, I hope you found a solution. The symbols you mention are native LaTeX symbols, so they should still with our template. A few things you could try:

      – See if they work when not using the MDPI template.
      – Download the style file again from our website (at https://www.mdpi.com/authors/latex) to make sure you have the latest version.
      – Try using a different PDF viewer. It might be a fault with the viewer, not LaTeX.
      – If you can’t find a solution, send your tex file to latex@mdpi.com, they can check and give you some advice.

  6. How to cite a web page in latex of MPDI SENSORS JOURNAL
    For exmple:
    @ONLINE{ref1,
    author = {CST},
    title = { Computer simulation technology. CST Computer Simulation Technology AG{@ONLINE}},
    month =July,
    year = {2019},
    url ={http://www.CST.com}
    }

Leave a Reply

Your email address will not be published. Required fields are marked *