Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX rendering trickiness #1200

Closed
fredrikekre opened this issue Nov 28, 2019 · 4 comments · Fixed by #1269
Closed

LaTeX rendering trickiness #1200

fredrikekre opened this issue Nov 28, 2019 · 4 comments · Fixed by #1269
Labels
Format: LaTeX Related to the LaTeX / PDF output

Comments

@fredrikekre
Copy link
Member

fredrikekre commented Nov 28, 2019

Here is a code block that seems to fail the build (Edit: doesn't actually fail the build, just that the output is empty):

```julia
+=  -=  *=  /=  \=  ÷=  %=  ^=  &=  |=  ⊻=  >>>=  >>=  <<=
```

becomes

\begin{minted}[escapeinside=\%\%]{julia}
+=  -=  *=  /=  \=  ÷=  %\%%=  ^=  &=  |=  %\unicodeveebar%=  >>>=  >>=  <<=\end{minted}

and same with julia-repl. No language works though, i.e.

\begin{lstlisting}[escapeinside=\%\%]
+=  -=  *=  /=  \=  ÷=  %\%%=  ^=  &=  |=  %\unicodeveebar%=  >>>=  >>=  <<=\end{lstlisting}

so seems to be something with minted.

@fredrikekre
Copy link
Member Author

fredrikekre commented Nov 28, 2019

Here are all the blocks that fail the pdf build for the Julia manual:

```julia-repl
julia> 127 % Int8
127
```

```julia-repl
julia> for i = 1:10
           if i % 3 != 0
               continue
           end
           println(i)
       end
3
6
9
```

It is still not permitted to be interpolated into Cmds
(i.e. ``echo `$(nothing)` `` will still error without
running anything.)

```julia-repl
julia> @time advection_serial!(q, u);
(irange,jrange,trange) = (1:500,1:500,1:499)
 830.220 milliseconds (216 allocations: 13820 bytes)

julia> @time advection_parallel!(q, u);
   2.495 seconds      (3999 k allocations: 289 MB, 2.09% gc time)

julia> @time advection_shared!(q,u);
        From worker 2:       (irange,jrange,trange) = (1:500,1:125,1:499)
        From worker 4:       (irange,jrange,trange) = (1:500,251:375,1:499)
        From worker 3:       (irange,jrange,trange) = (1:500,126:250,1:499)
        From worker 5:       (irange,jrange,trange) = (1:500,376:500,1:499)
 238.119 milliseconds (2264 allocations: 169 KB)
```

Edit: Actually lots more, but the same problem with escaping %.

@fredrikekre
Copy link
Member Author

Maybe #1066 is the problem?

@fredrikekre
Copy link
Member Author

Also #1166, maybe it just failed silently before?

mortenpi added a commit that referenced this issue Nov 28, 2019
@mortenpi
Copy link
Member

To simplify debugging in the future: running

DOCUMENTER_TEST_EXAMPLES=latex_simple julia --project test/examples/make.jl

on the mp/mwe-1200 branch replicates this I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: LaTeX Related to the LaTeX / PDF output
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants