The nosep option, used as in. enumitem: levels with inline option. The formatting of description labels is controlled by the command descriptionlabel. Put the following code into your latex-document or in my case into the lyx-preamble: What this does is to surround every number (in this case arabic) with a tikz-circle. LaTex enumitem - controlling alignment of. 3 Creating a new list with enumitem. A quick example of it: \documentclass [11pt] {article} \usepackage {paralist} \begin {document} This includes: \begin {inparaenum} [ (i)] \item first task, \item second task and \item third task \end. I didn't see an easy way to use enumitem to make enumerate work this way (but Lucas was smarter!), so I thought that you had only two options:. However, I do not fully understand how to define my own list environment in which the items are presented horizontally, without affecting the vertical. Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their. The above MWE provides itemize* that takes a single optional argument (<num>), setting a "list" inline (like enumitem 's [inline] option). In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. 5. 2. egin {enumerate*} item end. sty or gb4e. That’s not what we want, so we have to add another layer of boxing. Using enumitem & setlist, itemsep doesn't work with pandoc. You just need to replace enumiitem settings in your initial MWE to this: % ENUMITEM SETTINGS setlist {labelsep=32. For the second level list you can use egin {enumerate} [label=arabic*] and for subsequent lists where you want the numbering to continue you need to indicate that the numbering is to continue: egin {enumerate} [label=arabic*, resume*]. Most of them are available in inline lists, where further keys are available (see 4). 10. – Peter Grill. 5cm,right=1. 1 Answer. EXAMPLE Consider: egin{enumerate}[label=arabic*(a), leftmargin=1cm, series=l_after] item A item B end{enumerate} You get: 1(a) 2(a). Very little wear/use and in exceptional condition. You might also want to look at using. I narrowed the issue down to the hyperref package only. The style of the title is easy to change. Vertical spacing with enumitem inline. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. This is how it looks for me: This is the code to reproduce: documentclass [letterpaper, 12pt] {article} usepackage [utf8] {inputenc} usepackage [margin=1. 2 Answers. Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsSince enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. The real remedy is for you to stop using dfrac for inline-math expressions. This section describes the keys in displayed lists. The second one lost the bullets and I wonder why. While we’re at it, we add a formatting command for the user to customize. I have two enumerate environments. I have been using align for referencing equations, however now in a list, using inline math mode and trying to reference an equation, there is text on the line hence why i don't want to begin an equation however do want it to uphold referencing numbers, MWE as follows. You can either make direct modifications to LaTeX’s standard list types or, preferably, use the highly versatile enumitem package to do it for. Then you can combine your inline item with an enumerate-type list. We do something to show Case A. You are free: to share – to copy, distribute and transmit the work; to remix – to adapt the work; Under the following conditions: attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. egin {enumerate}. Following 'minimal' document has the same issue as from the OP: crefname {foolist} {foo} {foos} is called too late here, unless shifted to egin {document}. \usepackage [inline] {enumitem} and \begin {enumerate*}\end {enumerate*} (with asterisks) should do your work. That’s not what we want, so we have to add another layer of boxing. enumitem documentation. While we’re at it, we add a formatting command for the user to customize. Aside from not mixing enumerate with enumitem, the latter is not compatible with beamer. I can easily do this using enumerate* form the the enumitem package, but when I attempt to wrap this in a macro, I get: Extra }, or forgotten endgroup. The key itemjoin sets the format for in between the items, while the key itemjoin* sets the format for before the last item, overriding the itemjoin setting. Jan 13, 2013 at 7:17. Environments like labeling and tasks can be changed differently, details can be found in the package documentation respectively. The second one lost the bullets and I wonder why. Besides the inline environments for the standard lists, the package also provides support to format the labels (bullets, numbering, etc. You can continue with:. Can the alignment be made to work as desired using built in enumitem options?Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsOK, I was clearly not entirely awake when I answered you yesterday xD The skeldoc package doesn't take any options to usepackage (partly because of some expansion issues that occur there that I'd rather not deal with). The problem seems to be due to the extra heights of the sigmas. In other words, the package provides a way to create inline lists placed within normal text. singlespacing affects a whole paragraph and when it is issued at the end of a. Properties. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. But, when the custom settings are needed again, you will have to re-issue your three custom settings and so on. 1. Use existing formatting. Have a look at Section 4 of the enumitem manual. to set spacing between items and between paragraphs within items. I'm writing an article whith a specific document class. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. That way, \changeitem will operate each time on the standard LaTeX \item. You could use the itemjoin key to customize the horizontal distance between adjacent items. 5in] Here's a MWE:I'm redoing my résumé and would like to produce a certain style of lists using enumitem, as shown in the image below. This section describes the keys in displayed lists. 9 l_new:N l__gatherenum_itemformatUnknown option inline' for packageenumitem'. I also tried to remove the vertical white space between item [a. g. Seomthing like documentclass {article} usepackage [inline] {enumitem} egin {document} egin {itemize*} [itemjoin= {hspace {1cm}}] item Item 1 item Item 2 item Item 3 item Item 4 end {itemize*} end {document} or any other width of your. 5cm. enumitem – Control layout of itemize, enumerate, description. However, when it breaks into new line, the second line is not aligned the same as the first one. How to make it bigger? This section describes the keys in displayed lists. It seems that paralist and enumitem are incompatible to each other. All enumitem label possibilities such as Alph*, arabic* use the star to indicate, that the command Alph{enum. WARNING If the value is completely enclosed in braces, they are stripped off. The Overflow Blog Build vs. Have a look at the current version of the enumitem manual. Better use an inline math block building environment with alignment, such. You don;t need to use the paralist package at all. Tabular and grid typesetting. Note that this package is much more powerful than paralist and offers several more bells and whistles. The latter provides an optional argument where you can specify the item number format using a generic representation while the former provides a key-value interface where one can specify number format representation in addition to a host of other list-related. You can use the enumitem package that also frees you from manually adding the separators. 9 l_new:N l__gatherenum_itemformatSince enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. item [*3. I haven't found anything like this at the enumitem documentation and I would also suggest daleif's answer using theorems. While we’re at it, we add a formatting command for the user to customize. Answer due to the comment by @JavierBezos changing the mode to unboxed: documentclass {article} usepackage [inline] {enumitem} egin {document} text before inline itemize environment egin {enumerate*} [mode=unboxed] item this is an inline itemize environment with math environment egin {equation} E= mc^2 end {equation}. I use \setlist{wide} with the package enumitem to unindent a subsequent line in an item in vertical (normal) lists. Code: documentclass{article} usepackage{enumitem} setlist{nosep,after=vspace{aselineskip}} egin{document} I like the lack of vertical space between the end of this paragraph and the beginning of the. Thanks for the customized environment, and the cleaner code. The autoref still shows "item" instead of "figure". You are correct about the typo in the enumitem manual: If you added, say, itemjoin*= { {, and }} to your 4th example, then the following appears in the . The problem is when I write an inline list extra space between the label and the content of an item sometimes emerges. ] \item This is the first \item This is the second \end {enumerate} \end {document} but. I'm trying to typeset a numbered list in which I'm overriding the default enumerate behaviour using enumitem so that there's text in addition to a number. According to a comment to the original question, the purpose is to get description items numbered; in this case, you can use an enumerate environment (setting the label key appropriately to get the desired numbering) and a variant of \item to emulate the format of a description list; something along. end{enumerate*} Text after list. The vertical space between two lines of tables are too small. Item three 1 A 2. documentclass{article} usepackage[inline]{enumitem} egin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. ctor \relax \fi }\color@endgroup \egroup \enit@outeritem. 11. item This one is another ordinary question. 2. The enumitem package is my favourite way to do this sort of thing; it has many options and parameters that can be varied, either for all lists or for each list individually. \end {document} For more examples, please visit overleaf. the counter formatting macro for the current level of enumeration. 3. ] This one is a hard one, I want to add an asterisk to the label. Well, what I need is not only lists, but rather free usage of roman numerals. enumitem: levels with inline option. Let me kindly remark that I want to "inline" the environment part, because I use it in my exercises with the option addpoints, where the parts are given. As the comments and the enumitem documentation says, you need to pass the option mode=unboxed in such situations. 8 votes. Indenting in enumerate (TeX/LaTeX) I'm making a numbered list with the enumerate environment. You are free: to share – to copy, distribute and transmit the work; to remix – to adapt the work; Under the following conditions: attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. \item[Case B. So maybe you start from scratch with a simple drawing to. While we’re at it, we add a formatting command for the user to customize. Just to elaborate on Hugos answer, use the enumitem package it is a great package for configuring lists. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. ] Now we proooooooooove Case B. 更新版:2017/04/15 (旧題:enumitem. However, what I'd really like to do is have this in an inline list, and if I change enumerate to enumerate*, ef {A} prints 1 instead of A. You should load neither enumerate nor enumitem with beamer; in any case, the two packages should never be loaded together. Jul 24, 2018 at 7:38. The code below does not compile, presumably because enumitem does not like an equation environment inside an enumerate* environment. Vertical spacing with enumitem inline. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. item. If you want the braces, they must be duplicated. Users browsing this forum: No registered users and 5 guestsThis is a follow up question to the one I asked a while back: Horizontal enumeration in multiple columns. The fact that the output isn't satisfactory in no way implies, though, that TeX is doing something wrong. The enumitem package has an inline option which implements inline versions of the standard lists using starred versions of the basic list. 10. I have the problem of making this table fit inside a list in such a way that the long inline math expression can be nicely broken. sty to use \RequirePackage[inline]{enumitem}, works. Since your label is empty this unbreakable space connects two consecutive items, so that they cannot be broken. In fact, the paragraph immediately after your cited paragraph states that. If you need it to be zero, just choose the [leftmargin=*] option. Writing enumitem's to a file. This section describes the keys in displayed lists. In typesetting math in LaTeX, there is inline mode (math inside text) and display mode (separate equations outside text). I removed all unnecessary packages; restore them, but don't load enumitem once with options and once without; also hyperref should go last; Insted of mathrm you want ext for the words “then” and “so”. 2 Answers. While we’re at it, we add a formatting command for the user to customize. While we’re at it, we add a formatting command for the user to customize. The other items come from an enumerate environment, belonging to the tobecont series, with suitable values of. Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsFollow-up question to For the inline enumerate: controlling the item spacing. ] Now we proooooooooove Case B. You can combine enumitem with beamer features and templates. You'll get an inline enumerated list if you (a) load the enumitem package with the inline option and (b) use the enumerate* environment: documentclass{article} usepackage[inline]{enumitem} egin{document} A graph can be cut in several ways including egin {enumerate*} [label=itshapealph*upshape)] item. 9 l_new:N l__gatherenum_itemformat% This package is not for you if you want free-flow enumeration in a paragraph, % since pkg{enumitem} already provides a reasonable one, and you probably do % not want to share that many settings with regular env{enumerate} due to the % very different nature and look of inline enumerations. First, I think that from a layout/design perspective, with two. tex file, I've tried running texhash. That’s not what we want, so we have to add another layer of boxing. I'm writing an article whith a specific document class. It is a presentation with one slide per "technique" which include some explanatory comments. A variant using the medium-sized fractions from nccmath has a better vertical spacing: documentclass {article} % or some other suitable document class usepackage. Keep in-line equation inside page margin. This is a little late to the party but another solution that is really clean and easy to use is the paralist package. Align all. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. Enumitem also permits manipulation of the label format in a more “basic” (and therefore more flexible) manner than the enumerate package does. S1, Fig. The [inline] option of enumitem isn't designed for lists aligned in columns, but for horizontals lists with a constant horizontal spacing between items, like the inparaenum and inparaitem environments from paralist. . The latter provides an optional argument where you can specify the item number format using a generic representation while the former provides a key-value interface where one can specify number format representation in addition to a host of other list-related settings (or perform these settings globally). item My second in list. 9 l_new:N l__gatherenum_itemformatdocumentclass{article} usepackage{enumitem} egin{document} egin{description}[style=nextline] item[Label 1] {sffamilyLARGE item text 1} item[Label2] Item text 2 end{description} end{document} My issue is that I would like LARGE to change the size of the item text but not the label. Currently, with. Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build. parsep controls the amount of space between paragraphs, itemsep that between items: see other page on this site. \documentclass [12pt,a4paper] {article} \usepackage {amsmath, amsfonts, amssymb} \usepackage [left=1. Nov 11, 2022 at 21:33. This requires some manual adjustment, as you have to modify the argument for widest to be the widest number in the list. I've tried all of the commands of enumitem*, like itemsep, labelsep, labelwidth etc, but no lack. It supersedes both enumerate and mdwlist (providing well-structured replacements for all their funtionality), and in addition provides functions to compute. It relies on putting some vertical space by way of a zero width ule at every instance of item. . Horizontal space of inline-listed labels. I think the usage of protected did the trick. I am using the enumitem package and need to access the counter values after the end of the environment. Edit: Here is what I have tried,Vertical spacing with enumitem inline The MWE below produces the following picture: The problem is to obtain better vertical spacing between the inline rows. I tried to make a horizontal list using usepackage [inline] {enumitem}. I think that in my case it does, since some items contain more than 10 lines with lots of formulas (so I need more space per line. A big plus point is also the resuming of enumerate counters after a break. Share. Exsheets counters. . I have a mixed list of normal and enumitem numbered items. Value: number. 3. enumitem | Optional Arguments for 'enumerate*' environment. 4 votes. | % +-----+ % % Copyright (c) 2003-2011 by Javier Bezos. That’s not what we want, so we have to add another layer of boxing. I want to create an inline list. There is something that is making this weird behaviour. 1 Answer. I am guessing that somehow the inline lists don't use \@currentlabel or use it differently, but I am at a loss. Just use the starred variant of the environments from the enumitem package-- requires to add the inline option to the enumitem package: If you don't want the enumerat in the tabular to be on its own line you can tweak all the paramaters used for vertical spacing. I want to create an inline list. Enumerate and itemize undefined + captions not working. How would I do/implement inparaenum with enumitem? (Related is this question but it doesn't really answer my specific question about inparaenum . Comment out hyperref and, you. 1 Answer. We do something to show Case A. E. The strong point of paralist is the. It seems to be a general theme from Does enumitem conflict with beamer for lists that you need to use setlist to get beamer and enumitem to play well together. 3. If you want the braces, they must be duplicated. How align paragraph with labels before resume enumitem list. Most of them are available in inline lists, where further keys are available (see 4). The [inline] option of enumitem isn't designed for lists aligned in columns, but for horizontals lists with a constant horizontal spacing between items, like the inparaenum and inparaitem environments from paralist. documentclass{article} usepackage[inline]{enumitem} egin{document}. documentclass {article} usepackage {mathtools} usepackage [inline] {enumitem} egin {document} Determine which of the following. This tag is used for inline mode. ] item Nested item 1 item Nested item 2. It should be a numbered list. I want to create a macro that yields an inline lists. egin {itemize} item [$checkmark$] This will give a checkmark bullet. It seems to work with enumerate but not with the starred enumerate*. md","path":"README. . I'm writing a multiple choice text in latex, and I've been having some problems with the identation. A new command has been added for restarting the counter in the middle of the document: \restartlist {<list-name>} It is based solely in the list name, not the list type, which means enumerate* as defined with the package. レイアウトをユーザーが制御できるようにします.. Thank you so much! – 4ae1e1. ). That’s not what we want, so we have to add another layer of boxing. Change title of question in exsheets. I have trouble combining two things for a set of slides: Adjust item separation globally. lists. Producing exams with exam class, I want to know if there is a command like inlineitem, for parts, where I can write parts of a question in the same line, something like part, inlinepart. Dear @Bernard, yes! To be more precise here is my code: egin {enumerate*} item My first in list. This section describes the keys in displayed lists. I can't guarantee that it will continue to work if enumitem receives a big update. In stock and ready to ship. I have set itemindent to 10. 0. That’s not what we want, so we have to add another layer of boxing. 2a,可在待修改图片前面使用以下语法: 如果我们想要得到的是Fig. 25pt,topsep=3. 9 l_new:N l__gatherenum_itemformatQ&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsI am trying to implement to solution to this problem Indentation on items but something is not working together with my header. @Bernard I added the code in the original post. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or. This section describes the keys in displayed lists. 2 Answers. increment counter before its use. ewlist {Example} {enumerate} {2} for instance, the counter value is simply the. Sorted by: 5. 4. enumitem expects a key-value sequence and therefore doesn't expand the optional argument that is supplied. Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Here's a solution that doesn't use a multicols environment. Improve this answer. beamer already loads the geometry package for you. Reverting. After <num> entries, a paragraph break par is inserted. usepackage [inline] {enumitem} setlist [itemize] {before= olinebreak} I repeated this with before=unskip but neither worked. The package I am using is enumitem. \setlist {align=left,noitemsep,nosep,left=0pt} However, I also want to use the inline lists, but now they have a lot of horizontal spacing: For completeness, without the custom list settings, you get: \documentclass. Prevent linebreak before enumerate. , it has to be computed from the other values, as described below. You are correct about the typo in the enumitem manual: If you added, say, itemjoin*= { {, and }} to your 4th example, then the following appears in the . Something like this: ewcounter {xmpl} ewenvironment {example}. I couldn't figure out how to get the text to be flush with the edge. I want to start an enumerate after some words and I don't want to change to a new line. – Steven B. The side effects of this must be mentioned by the community member who answered this. Most of them are available in inline lists, where further keys are available (see 4). 他の箇条書きの例も試してみましょう.Enumitem パッケージには Enumitem. 9 l_new:N l__gatherenum_itemformatQ&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsQ&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsSince enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. Here I show the out-of-the-box behaviour of an inline itemized list, and then a workaround that achieves the look I'm after. tex to get the documentation. documentclass. Here is an example on how to use the inline option of enumerate or the tasks package: documentclass{article} usepackage[inline]{enumitem} usepackage{tasks} egin{document} egin{enumerate*}[label=(alph*)] item first item item second item end{enumerate*} egin{tasks}(2) ask first item ask second item end{tasks}. This parameter is added in enumitem for the blank space from the margin of the enclosing list/text to the left edge of the label box. Instead, it loads the enumitem package with the option inline and uses an enumerate* environment. In the following screenshot, the alignment of the 2nd A) and the space between the label of the 2nd list and the fraction have been obtained empirically n: see hspace*{1. 24. 9 l_new:N l__gatherenum_itemformatSince enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. – Crissov. Manually just once use. EDIT 2017-01-24: My original example used. In the MWE, the numbers in the second environment are seemingly right-aligned with the numbers in the first, I would like to left. 9 l_new:N l__gatherenum_itemformatQ&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsQ&A for users of TeX, LaTeX, ConTeXt, and related typesetting systemsMy latex setup. Enumerate items with respect to chapters. The problem is when I write an inline list extra space between the label and the content of an item sometimes emerges. To replicate the issue you're reporting, it turns out to be necessary to load the enumitem package in addition to the hyperref (or nameref) package. Easylist package [edit | edit source]. However, one needs to specify the width in that case, and that align* would center the contents. The source of confusion was the fact that amsthm does not place a space after $ extbf{Fact. 1. Trouble is, as in the picture below, the lines of an item besides the first. This section describes the keys in displayed lists. These packages allow you to have sequential numbering. Problem with interaction of enumitem and ocgx packages. Most of them are available in inline lists, where further keys are available (see 4). 1. 22. This no indentation rule is a publisher guideline that I cannot change. This section describes the keys in displayed lists. You can use the enumitem package that also frees you from manually adding the separators. LaTeX’s lists are highly configurable, providing plenty of scope for the creation of many different types of customized list. That’s not what we want, so we have to add another layer of boxing. That’s not what we want, so we have to add another layer of boxing. I know that inline enumeration can be achieved using inline option of enumitem package. Minimal example \documentclass. The enumitem package has an inline option which implements inline versions of the standard lists using starred versions of the basic list environments. Segletes. WARNING If the value is completely enclosed in braces, they are stripped off. option. Inconsistent interline spacing in enumitem. enumitem redefines beamer list features. 9 l_new:N l__gatherenum_itemformatOh, great! I used enumitem to do labeling in enumerate environment, but never realized that there are inline lists. CEO update: Giving thanks and building upon our product & engineering foundation. Feb 15, 2016 at 18:52. item 2. Since enumitem inline enumerations are intended for pararaph-like enumerations, the item content is unpacked with unhbox even in boxed mode. Besides the inline environments for the standard lists, the package also provides support to format the labels (bullets, numbering, etc. Sorted by: 2. 最近それなりに長い文書(100ページほど)をSATySFiで書いているのですが,そのときに必要になってやったものを適当に書いてみようと思います.だらだら. documentclass [12pt] {article} %% (I've simplified the. 2 answers. That’s not what we want, so we have to add another layer of boxing. I hope that helps. , the following MWE documentclass{article} usepackage{enumitem} usepackage[colorlinks]{hyperref} % or: usepackage{nameref} egin{document} egin{description}. enumitem パッケージは,3つの基本的なリスト環境(enumerate、itemize、およびdescription)の. (Please see the MWE: there is apparent. 3 The description environment 3 Changing the label of individual. While we’re at it, we add a formatting command for the user to customize. 的排序,可在document前使用以下语法: 表格同理,只需要将. However, in my actual. 9 l_new:N l__gatherenum_itemformatHow can I fix the spacing in enumitem inline lists? 0. Usually I use usepackage [inline] {enumitem} and. Beamer inline itemize and enumeration. My method is not good. 3. Most of them are available in inline lists, where further keys are available (see 4). Open School BC helps teachers. Don't use the enumitem package with beamer, they are not compatible. 8. . From what I read, maybe enumitem is the better solution (right?). Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this siteThe second line keeps it's horizontal spacing without change. <num> is set by default to 1234 (just a large enough number). 1 Using \setlist to configure a custom list created with enumitem; 5. While we’re at it, we add a formatting command for the user to customize. Most of them are available in inline lists, where further keys are available (see 4). 9 l_new:N l__gatherenum_itemformatLatex自定义图表序号. In order to keep the displayed list numeric while the inline list alphabetical, you would have to create a new list, as the \enumerate and \enumerate* environments share the same. As an attempt to fix. +Mas as vezes queremos efetuar controle mais refinado ou controlar o rótulo de listas não enumeradas também. Answer due to the comment by @JavierBezos changing the mode to unboxed: \documentclass {article} \usepackage [inline] {enumitem} \begin {document} text before inline itemize environment \begin {enumerate*} [mode=unboxed] \item this is an inline itemize environment with math environment \begin {equation} E= mc^2 \end {equation} \end {enumerate. You can do that with the resume option of enumitem: you interrupt the enumeration, insert the display, then resume the enumeration.