{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/1119","repository_url":"https://api.github.com/repos/JuliaDocs/Documenter.jl","labels_url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/1119/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/1119/comments","events_url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/1119/events","html_url":"https://github.com/JuliaDocs/Documenter.jl/pull/1119","id":486893472,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEyMjY1MTA3","number":1119,"title":"Fix PDF output format with `julia` code block.","user":{"login":"June-6th","id":27896704,"node_id":"MDQ6VXNlcjI3ODk2NzA0","avatar_url":"https://avatars2.githubusercontent.com/u/27896704?v=4","gravatar_id":"","url":"https://api.github.com/users/June-6th","html_url":"https://github.com/June-6th","followers_url":"https://api.github.com/users/June-6th/followers","following_url":"https://api.github.com/users/June-6th/following{/other_user}","gists_url":"https://api.github.com/users/June-6th/gists{/gist_id}","starred_url":"https://api.github.com/users/June-6th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/June-6th/subscriptions","organizations_url":"https://api.github.com/users/June-6th/orgs","repos_url":"https://api.github.com/users/June-6th/repos","events_url":"https://api.github.com/users/June-6th/events{/privacy}","received_events_url":"https://api.github.com/users/June-6th/received_events","type":"User","site_admin":false},"labels":[{"id":1147114209,"node_id":"MDU6TGFiZWwxMTQ3MTE0MjA5","url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/labels/Format:%20LaTeX","name":"Format: LaTeX","color":"a0c7f7","default":false},{"id":382774665,"node_id":"MDU6TGFiZWwzODI3NzQ2NjU=","url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/labels/Type:%20Bug","name":"Type: Bug","color":"4d004b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-08-29T11:10:06Z","updated_at":"2019-11-07T13:51:54Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/pulls/1119","html_url":"https://github.com/JuliaDocs/Documenter.jl/pull/1119","diff_url":"https://github.com/JuliaDocs/Documenter.jl/pull/1119.diff","patch_url":"https://github.com/JuliaDocs/Documenter.jl/pull/1119.patch"},"body":"- Don't failed to generate PDF format with `julia` code block that\r\ncontain `%`.(Fixes #1118)\r\n- Don't eat the last line of `julia` code block.\r\n\r\nBefore this PR:\r\n\r\n![Screenshot_20190829_190510](https://user-images.githubusercontent.com/27896704/63935811-da6a1f00-ca90-11e9-811f-92dc2cb6bb11.png)\r\n\r\nAfter this PR:\r\n\r\n![Screenshot_20190829_190630](https://user-images.githubusercontent.com/27896704/63935841-e8b83b00-ca90-11e9-8016-0b66578eb759.png)"},"comment":{"url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/comments/551087754","html_url":"https://github.com/JuliaDocs/Documenter.jl/pull/1119#issuecomment-551087754","issue_url":"https://api.github.com/repos/JuliaDocs/Documenter.jl/issues/1119","id":551087754,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MTA4Nzc1NA==","user":{"login":"findmyway","id":5612003,"node_id":"MDQ6VXNlcjU2MTIwMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/5612003?v=4","gravatar_id":"","url":"https://api.github.com/users/findmyway","html_url":"https://github.com/findmyway","followers_url":"https://api.github.com/users/findmyway/followers","following_url":"https://api.github.com/users/findmyway/following{/other_user}","gists_url":"https://api.github.com/users/findmyway/gists{/gist_id}","starred_url":"https://api.github.com/users/findmyway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/findmyway/subscriptions","organizations_url":"https://api.github.com/users/findmyway/orgs","repos_url":"https://api.github.com/users/findmyway/repos","events_url":"https://api.github.com/users/findmyway/events{/privacy}","received_events_url":"https://api.github.com/users/findmyway/received_events","type":"User","site_admin":false},"created_at":"2019-11-07T13:51:53Z","updated_at":"2019-11-07T13:51:53Z","author_association":"NONE","body":"> What seems to work is to add this to `documenter.sty`:\r\n> \r\n> ```\r\n> \\newfontfamily\\unicodevbarfont{DejaVu Sans Mono}[Scale=MatchLowercase]\r\n> \\newcommnd\\unicodevbar{{\\unicodevbarfont ^^7c}}\r\n> ```\r\n> \r\n> and then do the code blocks as follows:\r\n> \r\n> ```\r\n> \\begin{lstlisting}[escapeinside=||]\r\n> 1 % 2\r\n> 1 |\\unicodeveebar| 2\r\n> 1 |\\unicodevbar| 2\r\n> \\end{lstlisting}\r\n> \r\n> \\begin{minted}[escapeinside=||]{julia}\r\n> 1 % 2\r\n> 1 |\\unicodeveebar| 2\r\n> 1 |\\unicodevbar| 2\r\n> \\end{minted}\r\n> ```\r\n> \r\n> Edit: should be DejaVu Sans Mono for this symbol.\r\n\r\nHi @June-6th , can you confirm this works and make the change correspondingly?\r\n\r\n<hr>\r\n\r\n> Right, I was wondering if it might be something like that. Mine is 1.0.4. But that's from the Ubuntu 18.04 repositories, so this will break things if we build with our current Docker image.\r\n\r\nI think when https://github.com/JuliaDocs/Documenter.jl/issues/979 gets resolved, this will not be a big problem. (At least it's not a big problem for us right now. Because we are using a customized docker image [here](https://github.com/JuliaCN/JuliaZH.jl/blob/master/contrib/LaTeXWriter.jl#L6))"}}
{"actor":{"display_login":"findmyway"}}