Nested decription lists

Daniel xracoonx at gmx.de
Sat Jan 8 04:46:14 UTC 2022


On 2022-01-08 05:38, Anthony Macks via lyx-users wrote:
>  >>On 2022-01-07 23:09, Anthony Macks via lyx-users wrote:
>  >> Dear LyX users,
>  >>
>  >> I am nesting description lists and want to justify the text within the
>  >> nested list.
>  >>
>  >> I have attached my MWE, output and a copy of what I want the output to
>  >> look like.
>  >>
>  >> I am using the module "Customisable Lists (enumitem)." with the article
>  >> class. When I right click on the description label, an options box is
>  >> produced. However, the options to go in the box (I get the options from
>  >> the enumitem package) are not producing the desired effect.
>  >>
>  >> Warm Regards,
>  >> Anthony
>  >>
> 
>  >Dear Anthony,
> 
>  >I am not sure that it is possible to adjust the width of the label
>  >automatically. Have you tried any of these instead?
> 
>  >https://tex.stackexchange.com/questions/67720/description-list-with-aligned-descriptions <https://tex.stackexchange.com/questions/67720/description-list-with-aligned-descriptions>
> 
>  >Best regards,
>  >Daniel
> 
> Thanks Daniel.
> 
> I have looked at the link. It will require me to create a new 
> environment which I was hoping to avoid.
> 
> I have tried and can create the new environment successfully, however, 
> it looks ugly with all the ERT I have to use.
> 
> Perhaps, I can create the new environment in a local layout. I have 
> written a local layout for an itemized list before.
> How would it differ from a description list?
> 
> I have attached a file below which contains my local layout.
> 
> 
> Warm Regards,
> Anthony
> 
> 
> On Sat, 8 Jan 2022 at 15:26, Daniel via lyx-users 
> <lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>> wrote:
> 
>     On 2022-01-07 23:09, Anthony Macks via lyx-users wrote:
>      > Dear LyX users,
>      >
>      > I am nesting description lists and want to justify the text
>     within the
>      > nested list.
>      >
>      > I have attached my MWE, output and a copy of what I want the
>     output to
>      > look like.
>      >
>      > I am using the module "Customisable Lists (enumitem)." with the
>     article
>      > class. When I right click on the description label, an options
>     box is
>      > produced. However, the options to go in the box (I get the
>     options from
>      > the enumitem package) are not producing the desired effect.
>      >
>      > Warm Regards,
>      > Anthony
>      >
> 
>     Dear Anthony,
> 
>     I am not sure that it is possible to adjust the width of the label
>     automatically. Have you tried any of these instead?
> 
>     https://tex.stackexchange.com/questions/67720/description-list-with-aligned-descriptions <https://tex.stackexchange.com/questions/67720/description-list-with-aligned-descriptions>
> 
>     Best regards,
>     Daniel
> 
> 
>     -- 
>     lyx-users mailing list
>     lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>
>     http://lists.lyx.org/mailman/listinfo/lyx-users
>     <http://lists.lyx.org/mailman/listinfo/lyx-users>
> 
> 

Something went wrong with the attachment. Here is a new one.
-------------- next part --------------
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\begin_preamble
\usepackage{calc}
\end_preamble
\use_default_options true
\begin_modules
enumitem
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 12
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Description
\begin_inset Argument 1
status open

\begin_layout Plain Layout
\begin_inset ERT
status open

\begin_layout Plain Layout

leftmargin=!,labelwidth=
\backslash
widthof{
\backslash
bfseries NestedDescription1}
\end_layout

\end_inset


\end_layout

\end_inset

Description1 Here is the first description.
\end_layout

\begin_deeper
\begin_layout Description
\begin_inset Argument 1
status open

\begin_layout Plain Layout
\begin_inset ERT
status open

\begin_layout Plain Layout

leftmargin=!,labelwidth=
\backslash
widthof{
\backslash
bfseries NestedDescription1}
\end_layout

\end_inset


\end_layout

\end_inset

NestedDescription1 This is the first nested description.
\end_layout

\begin_layout Description
NestedD2 This is the second nested description.
\end_layout

\begin_layout Description
NDescription3 This is the third nested description.
\end_layout

\end_deeper
\begin_layout Description
Description2 This is the second description.
\end_layout

\end_body
\end_document


More information about the lyx-users mailing list