[julia-users] Re: Custom string escaping in docstrings

2016-06-16 Thread Marius Millea
Ah, works perfectly, thanks! On Thursday, June 16, 2016 at 10:12:51 AM UTC+2, Michael Hatherly wrote: > > You should use the @doc_str macro when you have LaTeX characters that > need escaping. > http://docs.julialang.org/en/latest/manual/documentation/#syntax-guide > > — Mike > On Thursday, 16

[julia-users] Re: Custom string escaping in docstrings

2016-06-16 Thread Michael Hatherly
You should use the @doc_str macro when you have LaTeX characters that need escaping. http://docs.julialang.org/en/latest/manual/documentation/#syntax-guide — Mike On Thursday, 16 June 2016 01:51:27 UTC+2, Marius Millea wrote: > > My docstrings often contain Latex so they have $ and \ characters

[julia-users] Re: Custom string escaping in docstrings

2016-06-15 Thread Scott Jones
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,