timor writes:
> The thing is, I have a lot of code blocks that define functions, which
> are named exactly after that function. And as I frequently want to
> reference one of those in the text, I don't want to say
>
> [[test_fun][test_fun]] ..
> [[another_long_function][another_long_function
Hello Nicolas,
2016-06-20 14:52 GMT+02:00 Nicolas Goaziou :
> They have no influence over the link description (which is "1" in both
> cases, as you noticed). If you want to change the description, simply
> provide one:
>
> [[test_fun][whatever]]
Sorry for not being able to express myself more
Hello,
timor writes:
> Ok, if I understand you correctly, implementing the mechanism akin to
> the latex one, setting a new variable `org-html-prefer-user-labels` would
> change the relevant exported HTML for the following piece of org:
>
> --
> #+NAME: test_fun
> #+BEGIN_SRC
Ok, if I understand you correctly, implementing the mechanism akin to
the latex one, setting a new variable `org-html-prefer-user-labels` would
change the relevant exported HTML for the following piece of org:
--
#+NAME: test_fun
#+BEGIN_SRC js :exports code
function test_fun()
Hello,
timor writes:
> Why is the link text set to "1" in both cases?
This is just a nonsensical number because Org does not know what to
number. If you want to number source blocks, you need to add a caption
to them.
> Thanks for the pointer. I tried to see the effect of that variable,
> but
Hello Nicolas,
2016-06-17 9:51 GMT+02:00 Nicolas Goaziou :
>> the exported html code creates to tags, like this:
>>
>>
>> Link to 1
>>
>>
>> and this:
>>
>>
>> Link to 1
>> -
Hello,
timor writes:
> considering the following example:
>
> --
> #+NAME: test_fun
> #+BEGIN_SRC js
> function test_fun() {
>
> } #+END_SRC
>
> Link to [[test_fun]]
>
> #+NAME: another_test_fun
> #+BEGIN_SRC js
> function another_test_fun() {
>
> }
> #+END_SR
Hello,
considering the following example:
--
#+NAME: test_fun
#+BEGIN_SRC js
function test_fun() {
}
#+END_SRC
Link to [[test_fun]]
#+NAME: another_test_fun
#+BEGIN_SRC js
function another_test_fun() {
}
#+END_SRC
Link to [[another_test_fun]]
-