From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: LaTeX export: Skip headline lines? "Paragraph" sectioning? Date: Mon, 30 Aug 2010 06:14:48 +0100 Message-ID: References: <15790.1283141198@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0641558699==" Return-path: Received: from [140.186.70.92] (port=45363 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Opwi8-00067L-HI for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 01:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Opwi7-0005UV-8W for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 01:15:12 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:61779) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Opwi6-0005UC-QK for emacs-orgmode@gnu.org; Mon, 30 Aug 2010 01:15:11 -0400 Received: by ewy28 with SMTP id 28so3447208ewy.0 for ; Sun, 29 Aug 2010 22:15:09 -0700 (PDT) In-Reply-To: <15790.1283141198@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: org-mode --===============0641558699== Content-Type: multipart/alternative; boundary=0015174c37ae5a34ca048f038c89 --0015174c37ae5a34ca048f038c89 Content-Type: text/plain; charset=ISO-8859-1 He wants to write up a document using org-mode's outline facilities as a skeleton to help him build up, navigate and visualize his document, but then he wants only to use SOME of the headlines but ALL of the text when he actually makes a printed version for others to read. I've wanted this as well, since when you think about it the structure you need as a writer may not be the structure you want to pass on to your readers. I'd be glad to see a formal feature for this in org-mode, and even more glad if I could figure out a good way to basically keep up to two headlines per 'node' (org section): one for me while I'm writing (the outline of my argument, in sentence form, say) and another for export (the catchy 'heading' which goes---for some headings only---in the printed output). Until we get something like that, Alan, you could just use a little manual work (or some elisp and one of org's export hooks) to help manage something like this: 1) choose a :tag: for "don't print this headline (just the text under it)" 2) If you want to keep those headings in the file (I assume you do), then when you want to export, you'll want to make a temporary (saved) copy of the file somewhere then: 3) use emacs' "M-x flush-lines" to kill lines with that tag just before export. As for exporting lists as \paragraph{} sections, I'm not sure. But on this you might take nick's suggestion and give a sample input and output file to help visualize (and show us) what you're asking for. And do make sure your org lists are compatible with the new list definitions (see recent discussions elsewhere on this list). When you do this kind of thing it becomes critical that you pay attention to what constitutes a new item and the end of the list. As you'll see org-mode's latex export is currently designed to use org for basic document structuring and only allows for a limited set of mappings between org's structure and latex structure. But you'll see in the latex configuration documentation that it is possible to define what kind of \section{}, \chapter{}, or \subsubparagraph{} is exported for each level of org's headlines. Also have a look at the documentation for the latex package 'easylist' It's not what you're asking for here, but you may find it interesting if you want to get structured thought-outlines out to paper. It basically takes something like an org-mode header list and typesets in latex as nested (numbered or un-numbered) lists, i.e. not as LaTeX headers. Scot On Mon, Aug 30, 2010 at 5:06 AM, Nick Dokos wrote: > Alan E. Davis wrote: > > > Sometimes, I have used outliners, like ThinkTank, to organize my > > thoughts, and reorganize the structure of a document of whatever kind. > > I don't need headings or sectioning in some cases. > > > > I have not found a way to exclude heading lines from > > LaTeX output in Orgmode, nor have I found a > > tag to say, "omit this headline." I do see the variables > > org-export-exclude-tags, and org-export-select tags; as well as an > > option to include a specific number of headings as LaTeX sections. In > > the later case, other headings are exported as plain list items, not > > what I have in mind. > > > > A related issue perhaps: what would it take to export, say list items, > > as "paragraph" and "subparagraph" sections in LaTeX. > > > > The ability to export a pdf almost automatically through LaTeX, even > > with images, is magical. Many thanks for this. > > > > Some examples might help. I may be particularly dense tonight but I have > read your mail a few times and I still have no idea what you are asking > (or rather I have multiple ideas, none of which make much sense to me.) > > Thanks, > Nick > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0015174c37ae5a34ca048f038c89 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable He wants to write up a document using org-mode's outline facilities as = a skeleton to help him build up, navigate and visualize his document, but t= hen he wants only to use SOME of the headlines but ALL of the text when he = actually makes a printed version for others to read.=A0=A0 I've wanted = this as well, since when you think about it the structure you need as a wri= ter may not be the structure you want to pass on to your readers.

I'd be glad to see a formal feature for this in org-mode, and even = more glad if I could figure out a good way to basically keep up to two head= lines per 'node' (org section): one for me while I'm writing (t= he outline of my argument, in sentence form, say) and another for export (t= he catchy 'heading' which goes---for some headings only---in the pr= inted output).

Until we get something like that, Alan, you could just use a little man= ual work (or some elisp and one of org's export hooks) to help manage s= omething like this:

1) choose a :tag: for "don't print this= headline (just the text under it)"
2) If you want to keep those headings in the file (I assume you do), then w= hen you want to export, you'll want to make a temporary (saved) copy of= the file somewhere then:
3) use emacs' "M-x flush-lines" = to kill lines with that tag just before export.=A0=A0

As for exporting lists as \paragraph{} sections, I'm not sure.=A0 B= ut on this you might take nick's suggestion and give a sample input and= output file to help visualize (and show us) what you're asking for.=A0= And do make sure your org lists are compatible with the new list definitio= ns (see recent discussions elsewhere on this list).=A0 When you do this kin= d of thing it becomes critical that you pay attention to what constitutes a= new item and the end of the list.

As you'll see org-mode's latex export is currently designed to = use org for basic document structuring and only allows for a limited set of= mappings between org's structure and latex structure.=A0 But you'l= l see in the latex configuration documentation that it is possible to defin= e what kind of \section{}, \chapter{}, or \subsubparagraph{} is exported fo= r each level of org's headlines.

Also have a look at the documentation for the latex package 'easyli= st'=A0 It's not what you're asking for here, but you may find i= t interesting if you want to get structured thought-outlines out to paper.= =A0 It basically takes something like an org-mode header list and typesets = in latex as nested (numbered or un-numbered) lists, i.e. not as LaTeX heade= rs.=A0


Scot









On Mon, Aug 30, 2010 at 5:06 AM, Nick Dokos <nicholas.dokos@hp.com> wr= ote:
<= div class=3D"h5">Alan E. Davis <lng= ndvs@gmail.com> wrote:

> Sometimes, I have used outliners, like ThinkTank, to organize my
> thoughts, and reorganize the structure of a document of whatever kind.= =A0
> I don't need headings or sectioning in some cases.
>
> I have not found a way to exclude heading lines from=A0
> LaTeX output in Orgmode, nor have I found a
> tag to say, "omit this headline." =A0I do see the variables<= br> > org-export-exclude-tags, and org-export-select tags; as well as an
> option to include a specific number of headings as LaTeX sections. =A0= In
> the later case, other =A0headings are exported as plain list items, no= t
> what I have in mind.
>
> A related issue perhaps: what would it take to export, say list items,=
> as "paragraph" and "subparagraph" sections in LaTe= X.
>
> The ability to export a pdf almost automatically through LaTeX, even > with images, is magical. =A0Many thanks for this.
>

Some examples might help. I may be particularly dense tonight b= ut I have
read your mail a few times and I still have no idea what you are asking
(or rather I have multiple ideas, none of which make much sense to me.)

Thanks,
Nick



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0015174c37ae5a34ca048f038c89-- --===============0641558699== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0641558699==--