emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with wide labels in description environment


From: Juan Manuel Macías
Subject: Re: Dealing with wide labels in description environment
Date: Fri, 22 Jan 2021 12:20:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hello,

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> I have tried tweaking options such as labelindent and labelwidth in a
> somewhat haphazard manner with, say,
>  
>   #+attr_latex: :options [labelindent=0pt, labelwidth=10ex] 
>
> but most of my attempts seem to have the main effect of just shifting
> the whole list to the right without right-justifying the labels.

The question is more on the side of LaTeX, and the enumitem package
(which you must have loaded for those options. See:
https://www.ctan.org/pkg/enumitem). For the effect you are looking for
you can try this (for horizontal lengths, it is better to use 'em' than
'ex):

#+LATEX_HEADER: \usepackage{enumitem}

#+attr_latex: :options 
[labelindent=0em,itemindent=0em,align=right,labelwidth=10em,labelsep=.5em,leftmargin=15.5em]
- short label :: this looks fine
- very annoying overly long label :: Lorem ipsum dolor sit amet, consectetuer 
adipiscing
  elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam 
nisl,
  tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus 
et magnis
  dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae 
dolor. Nullam
  tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam 
vestibulum
  accumsan nisl.

Regards,

Juan Manuel 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]