# Inline option for enumitem

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

\begin{enumerate*}
\item
\end{enumerate*}


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? Jul 8, 2017 at 20:16
• @cmhughes It helps!, what is the correct instruction? \PassOptionsToPackage? Jul 8, 2017 at 20:17
• @DanielValencia: \PassOptionsToPackage{inline}{enumitem} before \documentclass.
– Werner
Jul 8, 2017 at 20:20
• You also can write inline among the document class options. 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

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.

\PassOptionsToPackage{inline}{enumitem}
\documentclass[draft]{mdpi}

\Title{title}
\Author{cmh}

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.