{"action":"created","issue":{"url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/389","repository_url":"https://api.github.com/repos/CTeX-org/ctex-kit","labels_url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/389/comments","events_url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/389/events","html_url":"https://github.com/CTeX-org/ctex-kit/issues/389","id":382170243,"node_id":"MDU6SXNzdWUzODIxNzAyNDM=","number":389,"title":"xeCJK：增加选项处理引号的样式","user":{"login":"zepinglee","id":12290822,"node_id":"MDQ6VXNlcjEyMjkwODIy","avatar_url":"https://avatars0.githubusercontent.com/u/12290822?v=4","gravatar_id":"","url":"https://api.github.com/users/zepinglee","html_url":"https://github.com/zepinglee","followers_url":"https://api.github.com/users/zepinglee/followers","following_url":"https://api.github.com/users/zepinglee/following{/other_user}","gists_url":"https://api.github.com/users/zepinglee/gists{/gist_id}","starred_url":"https://api.github.com/users/zepinglee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zepinglee/subscriptions","organizations_url":"https://api.github.com/users/zepinglee/orgs","repos_url":"https://api.github.com/users/zepinglee/repos","events_url":"https://api.github.com/users/zepinglee/events{/privacy}","received_events_url":"https://api.github.com/users/zepinglee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T11:24:08Z","updated_at":"2018-11-20T04:50:17Z","closed_at":null,"author_association":"NONE","body":"Unicode 中的引号、省略号、间隔号的编码是中西文共用的，xeCJK 会设置这几个字符使用中文字体。\r\n我建议增加一个选项允许切换这几个符号使用西文字体，这样可以在以西文为主的文章中插入汉字而不影响引号的字形。\r\n\r\n```TeX\r\n\\documentclass{article}\r\n\\usepackage{xeCJK}\r\n\\setCJKmainfont{SimSun}\r\n\\begin{document}\r\na``a''a'a\\par\r\na“a”a’a\r\n\\end{document}\r\n```\r\n\r\n使用 xelatex 排版的结果是：\r\n![screen shot 2018-11-19 at 7 20 54 pm](https://user-images.githubusercontent.com/12290822/48703934-3f563600-ec30-11e8-93f0-5b314721c097.png)\r\n\r\n去掉 xeCJK 相关的命令后，使用 pdflatex 排版的效果是：\r\n![screen shot 2018-11-19 at 7 21 59 pm](https://user-images.githubusercontent.com/12290822/48704000-657bd600-ec30-11e8-822f-03073e2035e6.png)\r\n\r\n另外，建议 ctex 的文档类在设置 scheme=plain 时，引号等符号使用西文的字形。"},"comment":{"url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/comments/440137333","html_url":"https://github.com/CTeX-org/ctex-kit/issues/389#issuecomment-440137333","issue_url":"https://api.github.com/repos/CTeX-org/ctex-kit/issues/389","id":440137333,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDEzNzMzMw==","user":{"login":"RuixiZhang42","id":39968857,"node_id":"MDQ6VXNlcjM5OTY4ODU3","avatar_url":"https://avatars0.githubusercontent.com/u/39968857?v=4","gravatar_id":"","url":"https://api.github.com/users/RuixiZhang42","html_url":"https://github.com/RuixiZhang42","followers_url":"https://api.github.com/users/RuixiZhang42/followers","following_url":"https://api.github.com/users/RuixiZhang42/following{/other_user}","gists_url":"https://api.github.com/users/RuixiZhang42/gists{/gist_id}","starred_url":"https://api.github.com/users/RuixiZhang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuixiZhang42/subscriptions","organizations_url":"https://api.github.com/users/RuixiZhang42/orgs","repos_url":"https://api.github.com/users/RuixiZhang42/repos","events_url":"https://api.github.com/users/RuixiZhang42/events{/privacy}","received_events_url":"https://api.github.com/users/RuixiZhang42/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T04:50:17Z","updated_at":"2018-11-20T04:50:17Z","author_association":"MEMBER","body":"中西文的标点符号码位共享的确让人头疼。不过，在第一例中，仍然可以通过 TeX 本身的合字获取西文字体的标点：两个 U+0060 ` `` ` 对应西文的左双引号、三个 U+002D `---` 对应西文的 em dash（我的[这条评论](https://github.com/CTeX-org/ctex-kit/issues/382#issuecomment-433667022)）等等。书写长篇西文时，个人并没有通过输入法获取 U+201C `“`、U+2014 `—` 这些字符的经验，基本都是按照 TeX 原生的习惯书写。如果只为插入少数几个汉字，直接搭配 `\\makexeCJKactive`/`\\makexeCJKinactive` 感觉就可以了。\r\n\r\nCTeX 文档类选项 `scheme` 主要涉及汉化，而 `scheme = plain` 时“只提供了中文支持功能”，感觉跟标点符号有些不沾边。同样地，如果引擎是 XeLaTeX，用 `\\makexeCJKactive`/`\\makexeCJKinactive` 也应该够了。"}}
{"actor":{"display_login":"RuixiZhang42"}}