Rasmus <ras...@gmx.us> writes:

> Josiah Schwab <jsch...@gmail.com> writes:
>
>>> Why doesn't this cut it:
>>> 
>>> #+BEGIN_SRC org
>>> 1. <<1>> Do something.
>>> 2. Use your answer in part [[1]] to do something else.
>>> #+END_SRC
>>
>> That will work ok in LaTeX I think.
>> But that will export to HTML like
>>
>> <ol class="org-ol">
>> <li><a id="1" name="1"></a> Do something.
>> </li>
>> <li>Use your answer in part <a href="#1">1</a> to do something else.
>> </li>
>> </ol>
>>
>> and the link name will remain "1", even if one adds type="a" to the
>> <ol> tag to adjust the bullet appearance.
>
> If you your type you can use a more advance link [[1][a)].  But that's
> not very nice.
>
> Perhaps, css counters is the way to go:
>
>      https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters
>
> (I did a quick search and I'm not sure css is powerful enough).

It doesn't seem to be easy or pretty to get \ref-\label-like relations
in html.  Here's the best I could find:

http://stackoverflow.com/questions/2651739/how-to-access-css-generated-content-with-javascript

–Rasmus

-- 
When in doubt, do it!


Reply via email to