From mboxrd@z Thu Jan 1 00:00:00 1970 From: John MacCallum Subject: Export visible part of tree to latex Date: Thu, 29 Dec 2011 13:02:20 -0800 Message-ID: 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]:42217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgN7K-0006WH-VO for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 16:02:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgN7J-0007FK-Jl for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 16:02:26 -0500 Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:45155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgN7J-0007FD-DS for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 16:02:25 -0500 Received: by obcwo8 with SMTP id wo8so11759799obc.0 for ; Thu, 29 Dec 2011 13:02:24 -0800 (PST) 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 all, I have an org file with this structure: * 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: 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: * head... = =20 **** some foo = :foo:... =20 **** some other foo = :foo:... =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: % 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. As an alternative, I tried creating a project by setting the = org-publish-project-alist variable like this: (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 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. If someone could point me in the right direction, I'd really appreciate = it. 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. Thanks in advance, JM