[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: information/feature request: org analog to latex \descript
From: |
Bernt Hansen |
Subject: |
[Orgmode] Re: information/feature request: org analog to latex \description environment |
Date: |
Tue, 09 Sep 2008 17:04:02 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
"Eric Schulte" <address@hidden> writes:
> Does org currently support any syntax like the latex \desciption
> environment, something that would look like
>
> ,----
> | first: a description/definition of first
> | another: another item to be defined
> `----
>
> or
>
> ,----
> | - first: a description/definition of first
> | - another: another item to be defined
> `----
>
> in org, and would export to something like
>
> ,----
> | \begin{description}
> | \item[first] a description/definition of first
> | \item[another] another item to be defined
> | \end{description}
> `----
>
> in latex? If not would it be difficult/desirable to add?
>
> Thanks -- Eric
By default org export to latex creates description lists for headlines
when you go more than 3 levels deep.
Here's a sample org file where heading levels 2 and greater become
description lists.
,----[ play.org ]
| #+STARTUP:
| #+TITLE: play.org
| #+OPTIONS: H:1 num:t toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t
LaTeX:nil skip:nil d:nil tags:not-in-toc
| #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
path:http://orgmode.org/org-info.js
| * Test file
| ** TODO Furniture
| *** TODO Chairs
| *** TODO Tables
| **** TODO Coffee Table
| Stuff goes here
| **** TODO Buffer Table
| More stuff goes here
`----
exorted with C-c C-e L
,----[ play.tex ]
| % Created 2008-09-09 Tue 17:00
| \documentclass[11pt,a4paper]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{hyperref}
|
|
| \title{play.org}
| \author{Bernt Hansen}
| \date{09 September 2008}
|
| \begin{document}
|
| \maketitle
|
| \section{Furniture}
|
| \begin{description}
|
| \item[Chairs]
|
|
| \end{description}
| \begin{description}
|
| \item[Tables]
|
|
| \begin{description}
|
| \item[Coffee Table]
|
|
| Stuff goes here
| \end{description}
| \begin{description}
|
| \item[Buffer Table]
|
|
| More stuff goes here
| \end{description}
| \end{description}
|
| \end{document}
`----
You can set the number of heading levels to export as headings in the
export options line (H:1)
-Bernt