I think that the docstring system is looking for a normal string, not a 
string with any string macro.
You can get around this by using the `@doc` macro directly, i.e.
@doc R"""
My docstring $a+\alpha$
""" ->
function myfunc()
end

works fine.

On Wednesday, June 15, 2016 at 7:51:27 PM UTC-4, Marius Millea wrote:
>
> My docstrings often contain Latex so they have $ and \ characters in them, 
> so I'd like to not have to escape them manually every time. I'm trying to 
> do so by defining an R_str macro, but it seems to prevent the docstring 
> from attaching to its function. Is there a way to achieve this?
>
> macro R_str(s)
>     s
> end
>
> R"""
> My docstring $a+\alpha$
> """
> function myfunc()
> end
>
> >?myfunc
>   No documentation found.
>
>
>
> Thanks. 
>

Reply via email to