emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Questions about lists and export to latex
@ 2009-08-05 16:15 RC
  2009-08-05 16:40 ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: RC @ 2009-08-05 16:15 UTC (permalink / raw)
  To: emacs-orgmode

Hi,
 I have a couple of questions about lists in org-mode and exporting to latex.
I have attached a example file that illustrates this behavior.
1) When I hit tab on the last item in a list, everything until the next heading
is folded under that item. Is this expected behavior, and is there a way to turn
it off?
2) If I hit TAB after a blank line following a list, the indentation is such
that the new list (List 3 in the file below) exports as a sublist of the
preceding list. Is there a simple way to mark the end of the list?
Thanks for your help in answering thes questions.

RC 

* Heading 1
  List 1
  - Item 1
  - Item 2
  - Item 3

  List 2
  - Item 1
  - Item 2

    List 3
    - Item 1
    - Item 2

* Heading 2
  List 1
  - Item 1
  - Item 2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions about lists and export to latex
  2009-08-05 16:15 Questions about lists and export to latex RC
@ 2009-08-05 16:40 ` Bernt Hansen
  2009-08-05 17:11   ` RC
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2009-08-05 16:40 UTC (permalink / raw)
  To: RC; +Cc: emacs-orgmode

RC <recif@yahoo.com> writes:

> I have a couple of questions about lists in org-mode and exporting to
> latex.  I have attached a example file that illustrates this
> behavior.

> 1) When I hit tab on the last item in a list, everything until the
>    next heading is folded under that item. Is this expected behavior,
>    and is there a way to turn it off?

(setq org-cycle-include-plain-lists nil) maybe?

> 2) If I hit TAB after a blank line following a list, the indentation
>    is such that the new list (List 3 in the file below) exports as a
>    sublist of the preceding list. Is there a simple way to mark the
>    end of the list?  Thanks for your help in answering thes questions.
>
> * Heading 1
>   List 1
>   - Item 1
>   - Item 2
>   - Item 3
>
>   List 2
>   - Item 1
>   - Item 2
>
>     List 3
>     - Item 1
>     - Item 2
>
> * Heading 2
>   List 1
>   - Item 1
>   - Item 2
>

Lists are defined by their indentation.  There is no way to mark the end
of a list explicitly as far as I know.  Just don't indent the content so
that it is part of the list anymore.

In your examples 'List 1', 'List 2', and 'List 3' are not actually part
of your list.  The list is defined by the items alone.

'List 3' is the body part of List 2 Item 2 and Item 2 has a sublist
(your List 3) since it is indented.  Define your list items and use
S-right and S-left to define the hierarchy appropriately - then fill
in body details appropriately indented.

-Bernt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions about lists and export to latex
  2009-08-05 16:40 ` Bernt Hansen
@ 2009-08-05 17:11   ` RC
  0 siblings, 0 replies; 3+ messages in thread
From: RC @ 2009-08-05 17:11 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt <at> norang.ca> writes:

> > 1) When I hit tab on the last item in a list, everything until the
> >    next heading is folded under that item. Is this expected behavior,
> >    and is there a way to turn it off?
> 
> (setq org-cycle-include-plain-lists nil) maybe?
Thanks. That works.

>
> Lists are defined by their indentation.  There is no way to mark the end
> of a list explicitly as far as I know.  Just don't indent the content so
> that it is part of the list anymore.

I will make sure to indent appropriately. It is just that I am importing some
files into org-mode and was trying to use the indent-region command.
Thanks again.
RC
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-05 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05 16:15 Questions about lists and export to latex RC
2009-08-05 16:40 ` Bernt Hansen
2009-08-05 17:11   ` RC

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).