# How to compile special characters in function name, like δ, by Documenter.jl?

**URL:** <https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [August 11, 2024, 7:56pm UTC](https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070 "2024-08-11T19:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XuJingye2022](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xujingye2022/32/38972_2.png) [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Post date:** [August 11, 2024, 7:56pm UTC](https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070/1 "2024-08-11T19:56:32Z")

</div>

Hello, I encountered an issure while writing my documentation by `Documenter.jl`. And it seems that there are no corresponding examples in the official documentation.

There exists a `∇` character in my function name and it’s description：

```julia
@doc raw"""
    ∇normedVoltage(z, ϕs::Float64, ϕ2s::Float64, r::Float64, h1::Int64, h::Int64, circum::Float64)::Float64

Gradient of normalized voltage.
"""
function ∇normedVoltage(z, ϕs::Float64, ϕ2s::Float64, r::Float64, h1::Int64, h::Int64, circum::Float64)::Float64
    res = cos(ϕs - 2 * h1 * π * z / circum) + r * h * cos(ϕ2s - 2 * h1 * h * π * z / circum)
    -2 * h1 * π / circum * res
end
@doc raw"""
    ∇normedVoltage(z, par::ParDBRF)::Float64

Gradient of normalized voltage.
"""
function ∇normedVoltage(z, par::ParDBRF)::Float64
    ∇normedVoltage(z, par.ϕs, par.ϕ2s, par.r, par.h1, par.h, par.circum)
end

```

I wrote the following content in the markdown file in folder `docs/src/` and run `julia --project make.jl`：

````julia
```@docs
∇normedVoltage
```

````

But something was wrong. And if I don’t write the `\nabla` character , the compilation is OK.

````julia
PS F:\Documents\JuliaProgramme\MyModules\DoubleRFs\docs> julia --project .\make.jl
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates.
┌ Error: undefined binding '∇normedVoltage' in `@docs` block in src\api.md:34-36
│ ```@docs
│ ∇normedVoltage
│ ```
└ @ Documenter C:\Users\16398\.julia\packages\Documenter\qoyeC\src\utilities\utilities.jl:44
[ Info: CrossReferences: building cross-references.
[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
ERROR: LoadError: `makedocs` encountered an error [:docs_block] -- terminating build before rendering.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] runner(::Type{Documenter.Builder.RenderDocument}, doc::Documenter.Document)
   @ Documenter C:\Users\16398\.julia\packages\Documenter\qoyeC\src\builder_pipeline.jl:253
 [3] dispatch(::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Document)
   @ Documenter.Selectors C:\Users\16398\.julia\packages\Documenter\qoyeC\src\utilities\Selectors.jl:170
 [4] #86
   @ C:\Users\16398\.julia\packages\Documenter\qoyeC\src\makedocs.jl:248 [inlined]
 [5] withenv(::Documenter.var"#86#88"{Documenter.Document}, ::Pair{String, Nothing}, ::Vararg{Pair{String, Nothing}})
   @ Base .\env.jl:257
 [6] #85
   @ C:\Users\16398\.julia\packages\Documenter\qoyeC\src\makedocs.jl:247 [inlined]
 [7] cd(f::Documenter.var"#85#87"{Documenter.Document}, dir::String)
   @ Base.Filesystem .\file.jl:101
 [8] #makedocs#84
   @ C:\Users\16398\.julia\packages\Documenter\qoyeC\src\makedocs.jl:247 [inlined]
 [9] top-level scope
   @ F:\Documents\JuliaProgramme\MyModules\DoubleRFs\docs\make.jl:6
in expression starting at F:\Documents\JuliaProgramme\MyModules\DoubleRFs\docs\make.jl:6

````

---

<div class="post-metadata">

**Author:** ![moble](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/moble/32/23535_2.png) [@moble](https://discourse.julialang.org/u/moble)\
**Post date:** [August 13, 2024, 6:41pm UTC](https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070/2 "2024-08-13T18:41:57Z")

</div>

I use unicode extensively in my packages, and never run into any special trouble just because of unicode. This looks like you’re just not exporting `∇normedVoltage`, so you have to write this in the docs:

````
```@docs
DoubleRFs.∇normedVoltage
```

````
