{"action":"created","issue":{"url":"https://api.github.com/repos/doraTeX/TeX2img/issues/52","labels_url":"https://api.github.com/repos/doraTeX/TeX2img/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/doraTeX/TeX2img/issues/52/comments","events_url":"https://api.github.com/repos/doraTeX/TeX2img/issues/52/events","html_url":"https://github.com/doraTeX/TeX2img/issues/52","id":111927181,"number":52,"title":"テキスト形式のEPSを出力する機能","user":{"login":"doraTeX","id":6186180,"avatar_url":"https://avatars.githubusercontent.com/u/6186180?v=3","gravatar_id":"","url":"https://api.github.com/users/doraTeX","html_url":"https://github.com/doraTeX","followers_url":"https://api.github.com/users/doraTeX/followers","following_url":"https://api.github.com/users/doraTeX/following{/other_user}","gists_url":"https://api.github.com/users/doraTeX/gists{/gist_id}","starred_url":"https://api.github.com/users/doraTeX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doraTeX/subscriptions","organizations_url":"https://api.github.com/users/doraTeX/orgs","repos_url":"https://api.github.com/users/doraTeX/repos","events_url":"https://api.github.com/users/doraTeX/events{/privacy}","received_events_url":"https://api.github.com/users/doraTeX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doraTeX/TeX2img/labels/done","name":"done","color":"bfdadc"},{"url":"https://api.github.com/repos/doraTeX/TeX2img/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-10-16T23:05:03Z","updated_at":"2015-10-20T14:41:13Z","closed_at":"2015-10-19T15:06:02Z","body":"テキスト形式のEPSでなければ[問題が起こるケース](http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=1576)に対処するために，eps2write デバイスによってEPS出力する場合に，[pdftops を用いてテキスト形式のEPSに変換する](http://d.hatena.ne.jp/acetaminophen/20150514)機能を付けるとよいのでは。\r\n\r\n## 仕様案\r\n\r\n* TeX2img.app 内に pdftops とその依存ライブラリ（サイズは全2.6MB）を抱え込む。\r\n* GUIに「`テキスト形式で出力する (EPS)`」というオプションを追加。\r\n* CUI版には `--[no-]plain-text` あるいは `--[no-]text-format` といった名前のオプションを追加する。\r\n* CUI版利用時は，mudraw 同様に，既に pdftops がインストールされていればそれを，インストールされていなければGUI版同梱の pdftops をサーチして用いる。\r\n\r\n## 変換経路\r\n\r\nEPS出力かつ gs>=9.15 かつこのオプションがONの場合には，次の変換経路で変換する。\r\n\r\nTeX (→ DVI ) → PDF →[gs(eps2write)でアウトライン化＋クロップ] → EPS →[epstopdf(gs)]→ PDF →[pdftops] → EPS (→[BB情報を編集して余白付与] → EPS)\r\n\r\n## pdftops のオプション\r\n\r\n```\r\npdftops -eps in.pdf out.eps\r\n```"},"comment":{"url":"https://api.github.com/repos/doraTeX/TeX2img/issues/comments/149588408","html_url":"https://github.com/doraTeX/TeX2img/issues/52#issuecomment-149588408","issue_url":"https://api.github.com/repos/doraTeX/TeX2img/issues/52","id":149588408,"user":{"login":"aminophen","id":9957466,"avatar_url":"https://avatars.githubusercontent.com/u/9957466?v=3","gravatar_id":"","url":"https://api.github.com/users/aminophen","html_url":"https://github.com/aminophen","followers_url":"https://api.github.com/users/aminophen/followers","following_url":"https://api.github.com/users/aminophen/following{/other_user}","gists_url":"https://api.github.com/users/aminophen/gists{/gist_id}","starred_url":"https://api.github.com/users/aminophen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminophen/subscriptions","organizations_url":"https://api.github.com/users/aminophen/orgs","repos_url":"https://api.github.com/users/aminophen/repos","events_url":"https://api.github.com/users/aminophen/events{/privacy}","received_events_url":"https://api.github.com/users/aminophen/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T14:41:13Z","updated_at":"2015-10-20T14:41:13Z","body":"equation-916.eps にはテキストエディタである Emacs で開いているのですが、一万行目付近にテキストとは思えないものが多発しますが…\r\n\r\n![equation-916-emacs](https://cloud.githubusercontent.com/assets/9957466/10610698/f0e0b9c4-7783-11e5-943d-f5d0323e57f6.png)"}}