I'm writing an article whith a specific document class. I want to create an inline list. Usually I use \usepackage[inline]{enumitem} and


for this purpose.

The class already has the enumitem package loaded, but without the inline option. Is there an option or command for add the inline option in the main text, avoiding changes in the document class?

Note: I'm using mdpi class provided by Multidisciplinary Digital Publishing Institute

  • There's a command called (something like) PassOptionsToPackage, which you can put before your documentclass command, perhaps that might help?
    – cmhughes
    Jul 8, 2017 at 20:16
  • @cmhughes It helps!, what is the correct instruction? \PassOptionsToPackage? Jul 8, 2017 at 20:17
  • 1
    @DanielValencia: \PassOptionsToPackage{inline}{enumitem} before \documentclass.
    – Werner
    Jul 8, 2017 at 20:20
  • 2
    You also can write inline among the document class options.
    – Bernard
    Jul 8, 2017 at 20:38
  • You can also say \begin{enumerate}[inline] even if the inline option isn't given to the package.
    – cfr
    Jul 8, 2017 at 23:43

1 Answer 1


You have a couple of options:

  • you could use \PassOptionsToPackage as in the following: \PassOptionsToPackage{inline}{enumitem} \documentclass{mdpi}
  • otherwise you could pass the inline option to the documentclass \documentclass[inline]{mdpi}

Here's a complete MWE; note that I've used the draft option so that the logo from the document class wasn't used.


\item one
\item two

For reference, I downloaded mdpi.cls from here: http://www.mdpi.com/authors/latex. I created /texmf/tex/latex/mdpi and unzipped the folder to that directory. See Where do I place my own .sty or .cls files, to make them available to all my .tex files? for more information.

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.