emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] COMMENTed Radio Targets: Any comments?


From: Jambunathan K
Subject: [Orgmode] COMMENTed Radio Targets: Any comments?
Date: Sat, 30 Oct 2010 19:39:26 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt)

I am noticing Some inconsistencies with commented out 'Radioed
Targets'. Example is down below. Comments are welcome ...

In the generated HTML,

1. The section titled 'Radioed Target' is not exported because it is
   commented out.
2. References to 'Radioed Target' still get exported as link. It
   points to self.
   
I am not sure what the right behaviour should be ...

I see two options (that I think are consistent):

1. In the Org file, references to 'Radioed Target' is still linkified
   and clicking on it takes me to the right heading (although it is
   COMMENTed out)
   
   The corresponding thing for the HTML exporter is to 'ignore' the
   COMMENT tag on the headline and (still) export it with refrences to
   that headline as internal links.

2. The exported HTML doesn't contain the radioed headline. So
   references to radioed text shouldn't be linkified.
   
Btw, does the behaviour in (1) surprise anyone? 

# Input Org file

#+begin_src emacs-lisp
  (org-link-search-must-match-exact-headline nil)
#+end_src

* Links
** Targets
*** COMMENT <<<Radioed Target>>>
** References
*** References to Radioed Links
    This section has references to Radioed Target.


# Output HTML file
# Shows interesting sections    
    
#+begin_src html
  <div id="text-table-of-contents">
    <ul>
      <li>
        <a href="#sec-1">
          1 Links 
        </a>
        <ul>
          <li>
            <a href="#sec-1_1">
              1.1 Targets 
            </a>
          </li>
          <li>
            <a href="#sec-1_2">
              1.2 References 
            </a>
            <ul>
              <li>
                <a href="#sec-1_2_1">
                  1.2.1 References to Radioed Links 
                </a>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
  </div>
#+end_src

    
#+begin_src html
  <div id="outline-container-1" class="outline-2">
    <h2 id="sec-1">
      <span class="section-number-2">
        1
      </span>
      Links 
    </h2>
    <div class="outline-text-2" id="text-1">
    </div>
    <div id="outline-container-1_1" class="outline-3">
      <h3 id="sec-1_1">
        <span class="section-number-3">
          1.1
        </span>
        Targets 
      </h3>
      <div class="outline-text-3" id="text-1_1">
      </div>
    </div>
    <div id="outline-container-1_2" class="outline-3">
      <h3 id="sec-1_2">
        <span class="section-number-3">
          1.2
        </span>
        References 
      </h3>
      <div class="outline-text-3" id="text-1_2">
      </div>
      <div id="outline-container-1_2_1" class="outline-4">
        <h4 id="sec-1_2_1">
          <span class="section-number-4">
            1.2.1
          </span>
          References to Radioed Links 
        </h4>
        <div class="outline-text-4" id="text-1_2_1">
          <p>
            This section has references to 
            <a href="#sec-1_2_1">
              Radioed Target
            </a>
            .
          </p>
        </div>
      </div>
    </div>
  </div>
#+end_src
    
Jambunathan K.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]