{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/410","repository_url":"https://api.github.com/repos/jupyter/nbconvert","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/410/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/410/events","html_url":"https://github.com/jupyter/nbconvert/pull/410","id":177309123,"number":410,"title":"add cjk font commands by default, use fonts included in MacTeX","user":{"login":"michaelpacer","id":2482408,"avatar_url":"https://avatars.githubusercontent.com/u/2482408?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelpacer","html_url":"https://github.com/michaelpacer","followers_url":"https://api.github.com/users/michaelpacer/followers","following_url":"https://api.github.com/users/michaelpacer/following{/other_user}","gists_url":"https://api.github.com/users/michaelpacer/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelpacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelpacer/subscriptions","organizations_url":"https://api.github.com/users/michaelpacer/orgs","repos_url":"https://api.github.com/users/michaelpacer/repos","events_url":"https://api.github.com/users/michaelpacer/events{/privacy}","received_events_url":"https://api.github.com/users/michaelpacer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-15T22:49:12Z","updated_at":"2016-09-15T23:39:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/nbconvert/pulls/410","html_url":"https://github.com/jupyter/nbconvert/pull/410","diff_url":"https://github.com/jupyter/nbconvert/pull/410.diff","patch_url":"https://github.com/jupyter/nbconvert/pull/410.patch"},"body":"Closes #409 \r\nShould also address https://github.com/jupyter/notebook/issues/1674\r\n\r\nRight now I use the Fandol fonts as per [this stack overflow answer](http://tex.stackexchange.com/questions/223893/how-do-i-find-out-what-chinese-fonts-are-installed-with-my-mactex-installation) regarding the fonts that are installed by default with MacTeX. I feel like those are the only fonts we can expect to be installed by default. \r\n\r\nIf that isn't cross platform compatible, we may need to ship a font with nbconvert to solve this problem. \r\n\r\nWe should probably document that if people want to they can probably use custom fonts by using the command, \\CJKfontspec{} in a rawNBconvert cell. That should work for any font that XeLaTeX can find."},"comment":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/comments/247484331","html_url":"https://github.com/jupyter/nbconvert/pull/410#issuecomment-247484331","issue_url":"https://api.github.com/repos/jupyter/nbconvert/issues/410","id":247484331,"user":{"login":"michaelpacer","id":2482408,"avatar_url":"https://avatars.githubusercontent.com/u/2482408?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelpacer","html_url":"https://github.com/michaelpacer","followers_url":"https://api.github.com/users/michaelpacer/followers","following_url":"https://api.github.com/users/michaelpacer/following{/other_user}","gists_url":"https://api.github.com/users/michaelpacer/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelpacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelpacer/subscriptions","organizations_url":"https://api.github.com/users/michaelpacer/orgs","repos_url":"https://api.github.com/users/michaelpacer/repos","events_url":"https://api.github.com/users/michaelpacer/events{/privacy}","received_events_url":"https://api.github.com/users/michaelpacer/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T23:39:11Z","updated_at":"2016-09-15T23:39:11Z","body":"if you run nbconvert from the command line and then export to LaTeX are the lines \r\n\r\n```latex\r\n    \\usepackage{xeCJK}  % this and the following needed to support chinese language\r\n    \\setCJKmainfont[BoldFont=FandolSong-Bold.otf]{FandolSong-Regular.otf}\r\n    \\setCJKsansfont[BoldFont=FandolHei-Bold.otf]{FandolHei-Regular.otf}\r\n    \\setCJKmonofont{FandolFang-Regular.otf}\r\n    \\newCJKfontfamily\\kaiti{FandolKai-Regular.otf} \r\n```\r\n\r\nin your tex output?"}}
{"actor":{"display_login":"michaelpacer"}}