From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Krehel Subject: Re: Conditional link export? Date: Sat, 07 Nov 2015 14:05:25 +0100 Message-ID: <87d1vmgdt6.fsf@gmail.com> References: <87ziyri8lk.fsf@gmail.com> <878u6buupy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv3BH-00054C-Pt for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 08:05:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zv3BE-0004f3-IM for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 08:05:19 -0500 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:35634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv3BE-0004ez-CI for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 08:05:16 -0500 Received: by wicll6 with SMTP id ll6so45085509wic.0 for ; Sat, 07 Nov 2015 05:05:15 -0800 (PST) Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id c67sm3909066wmh.11.2015.11.07.05.05.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Nov 2015 05:05:14 -0800 (PST) In-Reply-To: <878u6buupy.fsf@gmail.com> (Aaron Ecay's message of "Fri, 06 Nov 2015 13:24:09 +0000") 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 Aaron Ecay writes: Hi Aaron, Thanks for the effort, I might use the code you suggested as a last resort:) I think the issue here is extending the power of Org markup. The task at hand is "Write a manual in Org that exports to both Texinfo and HTML", preferably with zero config outside of the Org file itself. Also preferably without any extra Elisp inside the Org file. Is Org-mode suitable for the task? Currently I have a few questions that I had trouble internet-searching: 1. Does Org-mode support export-based #ifdef #endif escapes? Here's what I have currently: You can read about ELPA in the Emacs manual, see #+HTML: (emacs)Packages. #+TEXINFO: @ref{Packages,,,emacs,}. Note that I'm getting an unwanted newline after "see" in case of HTML export that I'd like to get rid of. Even if that problem is solved, it still looks a bit clunky. Is there a way to make something like this work instead? #+begin_src elisp :inline (cond (ox-htmlp (ox-html-link "(emacs)Packages" "https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html")) (ox-texinfop (ox-texinfo-link "info:emacs#Packages"))) #+end_src 2. Does Org-mode support the kbd markup for denoting keyboard shortcuts? I'm guessing that the answer is no, which is a shame since both Texinfo and Github/StackExchange-flavored Markdown support it. Currently I've customized my Org to export =foo= as code, and ~foo~ as foo. Could we have this or a similar markup as the built-in default? Since Org-mode has so much to do with Emacs, having kbd tags would be very convenient. In some odd cases, ~foo~ wasn't working for me and I've had to use @@html:@@"@@html:@@, which looks quite ugly. 3. I really like http://orgmode.org/manual/index.html. How would I go about producing something like that (i.e. where can I find the sources)? Each time I've seen HTML export, it's always a single page. How to export each heading to its own page and have them all linked? 4. Is Org-mode powerful enough to have all of Emacs' manuals re-written in it, without any change in the final Info output? regards, Oleh