From mboxrd@z Thu Jan 1 00:00:00 1970 From: John MacCallum Subject: Re: Export visible part of tree to latex Date: Fri, 30 Dec 2011 11:23:54 -0800 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgi3b-0007X2-6H for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 14:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rgi3Z-00084Z-BJ for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 14:23:59 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:57544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgi3Z-00084I-21 for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 14:23:57 -0500 Received: by iacb35 with SMTP id b35so28032791iac.0 for ; Fri, 30 Dec 2011 11:23:56 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi everyone, I just wanted to make sure my original questions / problems were clearly = stated since no one responded to my original email. =20 1. I think there is a bug when exporting the visible part of the = outline tree to a latex file (C-c C-e v l). Html export of the visible = part works fine, but the behavior of the latex export is not the same = (please see my original message below). 2. Is there a way to publish a project (C-c C-e X ) and have = it respect the value of org-show-hierarchy-above? Thanks, JM =20 On Dec 29, 2011, at 1:02 PM, John MacCallum wrote: > Hi all, >=20 > I have an org file with this structure: >=20 > * head = =20 > ** topic 1 = :topic: =20 > *** foo = =20 > **** some foo = :foo: =20 > *** bar = =20 > **** some bar = :bar: =20 > ** topic 2 = =20 > *** foo = =20 > **** some other foo = :foo: =20 > *** bar = =20 > **** some other bar = :bar: >=20 > and I would like to collect all entries with the tag foo and export = them to a latex file. I have the variable org-show-hierarchy-above set = to nil, so f I run C-c \ "foo", I get this: >=20 > * head... = =20 > **** some foo = :foo:... =20 > **** some other foo = :foo:... =20 >=20 > which is exactly what I would like to export. But when I go to export = using C-c C-e v l, the resulting latex file doesn't contain any of the = entries below the top ("head") level: >=20 > % Created 2011-12-29 Thu 12:47 = =20 > \documentclass{article} = =20 > \usepackage[utf8]{inputenc} = =20 > \usepackage[T1]{fontenc} = =20 > \usepackage{fixltx2e} = =20 > \usepackage{graphicx} = =20 > \usepackage{longtable} = =20 > \usepackage{float} = =20 > \usepackage{wrapfig} = =20 > \usepackage{soul} = =20 > \usepackage{textcomp} = =20 > \usepackage{marvosym} = =20 > \usepackage{wasysym} = =20 > \usepackage{latexsym} = =20 > \usepackage{amssymb} = =20 > \usepackage{hyperref} = =20 > \tolerance=3D1000 = =20 > \usepackage{fullpage} = =20 > \providecommand{\alert}[1]{\textbf{#1}} = =20 >=20 > \title{org} = =20 > \author{John MacCallum} = =20 > \date{\today} = =20 > \hypersetup{ = =20 > pdfkeywords=3D{}, = =20 > pdfsubject=3D{}, = =20 > pdfcreator=3D{Emacs Org-mode version 7.8.02}} = =20 >=20 > \begin{document} = =20 >=20 > \maketitle = =20 >=20 > \setcounter{tocdepth}{3} = =20 > \tableofcontents = =20 > \vspace*{1cm} = =20 > \section{head} = =20 > \label{sec-1} = =20 >=20 > \end{document} = =20 >=20 > The html export does work as expected, however, and produces a nice = bulleted list of entries tagged "foo". Also, the latex export works = fine if I use it to export the entire file instead of just the visible = portion. >=20 > As an alternative, I tried creating a project by setting the = org-publish-project-alist variable like this: >=20 > (setq org-publish-project-alist = =20 > '(("foo" = =20 > :base-directory "~/toys/org" = =20 > :base-extension "org" = =20 > :publishing-directory "~/toys/org" = =20 > :publishing-function org-publish-org-to-pdf = =20 > :section-numbers nil = =20 > :select-tags ("foo") = =20 > :include ("org.org"))))=20 >=20 > and exported using C-c C-e X "foo", which works ok, but the value of = the variable org-show-hierarchy-above is not respected, so I end up with = a latex file that has the entire hierarchy above the foo-tagged entries, = which is not what I want. >=20 > If someone could point me in the right direction, I'd really = appreciate it. >=20 > Also, I'm using GNU Emacs 24.50.1 from the git repository built a few = weeks ago, and the latest org-mode from git built yesterday. >=20 > Thanks in advance, > JM >=20 >=20