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 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. >