3

I am using the mcexam package. How to remove the yellow space shown in the picture?

\documentclass[11pt]{article}

% Packages

\usepackage[a4paper,margin=1.5cm, portrait]{geometry}
\usepackage{amsmath}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[output=exam]{mcexam}

% Document
\begin{document}

\begin{mcquestions}
    \question Test question I
        \begin{mcanswerslist}
            \answer answer a
            \answer[correct] answer b
            \answer answer c
            \answer answer d
        \end{mcanswerslist}
     \question Test question II
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
        \end{mcanswerslist}
        \question Test question III
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
        \end{mcanswerslist}
    \question Test question IV
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
\end{mcanswerslist}
\end{mcquestions}

\end{document}

This picture

1

1 Answer 1

4

The lists of mcexam are defined using enumitem, and the spacing can be adjusted using its command setlist. From the documentation of mcexam, I think the list of which you want to reduce the spacing is called setmcquestions, and its default settings (as given on page 14 of the documentation) are

\setlist[setmcquestions]{label=\mcquestionlabelfmt{*}.,
    ref=\mcquestionlabelfmt{*},
    itemsep=2\baselineskip,
    topsep=2\baselineskip}

The spacing that you find too large is the spacing between different items, which is given by the value of itemsep. Setting a lower value will reduce the spacing.

In the following example, I reduced the spacing to .5\baselineskip.

\documentclass[11pt]{article}

% Packages

\usepackage[a4paper,margin=1.5cm, portrait]{geometry}
\usepackage{amsmath}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[output=exam]{mcexam}

\setlist[setmcquestions]{
    label=\mcquestionlabelfmt{*}.,
    ref=\mcquestionlabelfmt{*},
    itemsep=.5\baselineskip,
    topsep=2\baselineskip}

% Document
\begin{document}

\begin{mcquestions}
    \question Test question I
        \begin{mcanswerslist}
            \answer answer a
            \answer[correct] answer b
            \answer answer c
            \answer answer d
        \end{mcanswerslist}
     \question Test question II
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
        \end{mcanswerslist}
        \question Test question III
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
        \end{mcanswerslist}
    \question Test question IV
        \begin{mcanswerslist}
            \answer answer a
            \answer answer b
            \answer answer c
            \answer[correct] answer d
\end{mcanswerslist}
\end{mcquestions}

\end{document}
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .