- 追加された行はこの色です。
- 削除された行はこの色です。
*[[Texmaker:http://www.xm1math.net/texmaker/]] → かな漢字変換をする際に,文字と背景が黒く表示され,読めなくなる場合は Dark theme を選択する [#x838d855]
#ref(http://www.xm1math.net/texmaker/texmaker128.png,right,around,nolink,Texmaker)
&color(White,#5F2F2F){ ''◆CONTENTS◆'' };&br;
#contents
#img(,clear)
*Texmaker とは [#y02c99e4]
Texmaker は,LaTeX エディタ (統合環境) です.~
SyncTeX がサポートされています.~
Texmaker のデフォルトの文字コードは UTF-8 です.~
-[[Texmaker (free cross-platform latex editor):http://www.xm1math.net/texmaker/]]
--[[User manual:http://www.xm1math.net/texmaker/doc.html]]
-[[Texmaker Project on Google Code:https://code.google.com/p/texmaker/]]
**動作環境 [#tf7debca]
Windows, OS X, Linux~
**License [#l7d7100c]
GPLv2
**リリース情報/ChangeLog [#g3ccd7ae]
[[ChangeLog:http://www.xm1math.net/texmaker/log.html]]
**[[スクリーンショット:http://www.xm1math.net/texmaker/shots.html]] [#x2eee2d6]
[[&ref(http://www.xm1math.net/texmaker/texmakertop.png,around,nolink,the structure, the document and the embedded pdf viewer side by side);>http://www.xm1math.net/texmaker/texmakertop_big.png]]&br;
(the structure, the document and the embedded pdf viewer side by side)&br;
&br;
[[&ref(http://www.xm1math.net/texmaker/sidebyside.png,around,nolink,two documents side by side);>http://www.xm1math.net/texmaker/sidebyside_big.png]]&br;
(two documents side by side)&br;
[[&ref(http://www.xm1math.net/texmaker/thumblinux.png,around,nolink,Linux で動作する Texmaker);>http://www.xm1math.net/texmaker/texmakerlinux.png]]
[[&ref(http://www.xm1math.net/texmaker/thumbmacos.png,around,nolink,OS X で動作する Texmaker);>http://www.xm1math.net/texmaker/texmakermacos.png]]&br;
Texmaker at work on Linux Texmaker at work on OS X&br;
&br;
[[&ref(http://www.xm1math.net/texmaker/thumbw32.png,around,nolink,Windows 7 で動作する Texmaker);>http://www.xm1math.net/texmaker/texmakerw32.png]]
[[&ref(http://www.xm1math.net/texmaker/thumbgnome3.png,around,nolink,GNOME 3 で動作する Texmaker);>http://www.xm1math.net/texmaker/texmakergnome3.png]]&br;
Texmaker at work on Windows 7 Texmaker at work on GNOME 3&br;
&br;
[[&ref(http://www.xm1math.net/texmaker/thumbqt5.png,around,nolink,Qt5 でコンパイルされた Texmaker);>http://www.xm1math.net/texmaker/texmakerqt5.png]]
[[&ref(http://www.xm1math.net/texmaker/thumbwindows8.png,around,nolink,Windows 8 で動作する Texmaker);>http://www.xm1math.net/texmaker/windows8.png]]&br;
Texmaker compiled with Qt5 Texmaker at work on Windows 8&br;
&br;
[[&ref(http://www.xm1math.net/texmaker/thumbtexmakerQT5_ubuntu.png,around,nolink,Ubuntu で動作する Qt5 バージョンの Texmaker);>http://www.xm1math.net/texmaker/texmakerQT5_ubuntu.png]]&br;
Qt5 version of Texmaker on Ubuntu&br;
**[[特徴>http://www.xm1math.net/texmaker/#features]] [#m6bf2399]
>
|BGCOLOR(#CCF):Unicode 対応エディタ|BGCOLOR(#CCF):スペルチェッカー|
|[[&ref(http://www.xm1math.net/texmaker/pics/unicode_s.png,around,nolink,Unicode 対応エディタ);>http://www.xm1math.net/texmaker/pics/unicode.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/spell_s.png,around,nolink,スペルチェッカー);>http://www.xm1math.net/texmaker/pics/spell.png]]|
|BGCOLOR(#CCF):折りたたみ|BGCOLOR(#CCF):補完|
|[[&ref(http://www.xm1math.net/texmaker/pics/folding_s.png,around,nolink,折りたたみ);>http://www.xm1math.net/texmaker/pics/folding.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/completion_s.png,around,nolink,補完);>http://www.xm1math.net/texmaker/pics/completion.png]]|
|BGCOLOR(#CCF):アウトライン|BGCOLOR(#CCF):"マスター"モード|
|[[&ref(http://www.xm1math.net/texmaker/pics/structure_s.png,around,nolink,アウトライン);>http://www.xm1math.net/texmaker/pics/structure.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/master_s.png,around,nolink,マスターモード);>http://www.xm1math.net/texmaker/pics/master.png]]|
|BGCOLOR(#CCF):組み込みの PDF ビューア|BGCOLOR(#CCF):簡単コンパイル|
|[[&ref(http://www.xm1math.net/texmaker/pics/pdfsync_s.png,around,nolink,組み込みの PDF ビューア);>http://www.xm1math.net/texmaker/pics/pdfsync.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/quickbuild_s.png,around,nolink,簡単コンパイル);>http://www.xm1math.net/texmaker/pics/quickbuild.png]]|
|BGCOLOR(#CCF):数学記号|BGCOLOR(#CCF):作成ウィザード|
|[[&ref(http://www.xm1math.net/texmaker/pics/math_s.png,around,nolink,数学記号);>http://www.xm1math.net/texmaker/pics/math.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/wizard_s.png,around,nolink,作成ウィザード);>http://www.xm1math.net/texmaker/pics/wizard.png]]|
|BGCOLOR(#CCF):LaTeX リファレンス|BGCOLOR(#CCF):エラーハンドリング|
|[[&ref(http://www.xm1math.net/texmaker/pics/latexdoc_s.png,around,nolink,LaTeX リファレンス);>http://www.xm1math.net/texmaker/pics/latexdoc.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/log_s.png,around,nolink,エラーハンドリング);>http://www.xm1math.net/texmaker/pics/log.png]]|
|BGCOLOR(#CCF):矩形選択|BGCOLOR(#CCF):フォルダー内のテキスト検索|
|[[&ref(http://www.xm1math.net/texmaker/pics/block_s.png,around,nolink,矩形選択);>http://www.xm1math.net/texmaker/pics/block.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/findfolder_s.png,around,nolink,フォルダー内のテキスト検索);>http://www.xm1math.net/texmaker/pics/findfolder.png]]|
|BGCOLOR(#CCF):PDF ビューアの表示を回転|BGCOLOR(#CCF):TeX4ht で html, odt エクスポート|
|[[&ref(http://www.xm1math.net/texmaker/pics/rotate_s.png,around,nolink,PDF ビューアの表示を回転);>http://www.xm1math.net/texmaker/pics/rotate.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/export_s.png,around,nolink,TeX4ht で html, odt エクスポート);>http://www.xm1math.net/texmaker/pics/export.png]]|
|BGCOLOR(#CCF):正規表現|BGCOLOR(#CCF):Asymptote|
|[[&ref(http://www.xm1math.net/texmaker/pics/regular_s.png,around,nolink,正規表現);>http://www.xm1math.net/texmaker/pics/regular.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/asymptote_s.png,around,nolink,Asymptote);>http://www.xm1math.net/texmaker/pics/asymptote.png]]|
|BGCOLOR(#CCF):スニペット|BGCOLOR(#CCF):Qt5 対応|
|[[&ref(http://www.xm1math.net/texmaker/pics/snippets_s.png,around,nolink,スニペット);>http://www.xm1math.net/texmaker/pics/snippets.png]]|[[&ref(http://www.xm1math.net/texmaker/pics/qt5_s.png,around,nolink,Qt5 対応);>http://www.xm1math.net/texmaker/pics/qt5.png]]|
<
**派生版 [#n8123b82]
-[[TeXstudio]]
-[[bidiTeXmaker3:https://bitbucket.org/srazi/biditexmaker3]]
*ダウンロード/インストール [#q69dea61]
[[Texmaker/インストール]] を参照.
*不具合 [#h6093782]
-[[Issues:https://code.google.com/p/texmaker/issues/list]]
//--[[Issue 46: The problem with Japanese input:https://code.google.com/p/texmaker/issues/detail?id=46]]
//--[[Issue 104: Apple JIS keyword issue:https://code.google.com/p/texmaker/issues/detail?id=104]]
//--[[Issue 364: Embedded PDF viewer doesn't show text in a certain font:https://code.google.com/p/texmaker/issues/detail?id=364]]
//--[[Issue 420: SumatraPDF forward search:https://code.google.com/p/texmaker/issues/detail?id=420]] → Done
//--[[Issue 473: Subdirectories in # parameter:https://code.google.com/p/texmaker/issues/detail?id=473]]
**OS X の Texmaker で,文字コードが UTF-8 の場合に Backslash (U+005C) が入力できず 円記号 (U+00A5) になってしまう → [[Karabiner]] で Backslash が優先されるようにキーバインドを変更する [#u2a90df7]
//-[[Issue 104: Apple JIS keyword issue:https://code.google.com/p/texmaker/issues/detail?id=104]]
//-[[ただし,''MacOSX SnowLeopardの環境では,半角のバックスラッシュが入力できず,半角の¥になってしまうという問題があります.''もっとも原始的な(笑)コピペよりもう少しましな方法として,次のようにすることでとりあえず回避できます.&br;▷ ことえりの「環境設定」の「入力文字」の「JISキーボードの¥キーで入力する文字」を「バックスラッシュ」に設定&br;▷ ことえりの辞書に「読み:半角バックスラッシュ→単語:半角バックスラッシュ」として登録&br;▷ ひらがな(全角入力)モードで「¥」キーを入力&br;変換確定のためreturnキーを一度叩く必要はあるものの入力は可能です.ただし''必ず全角入力モードでないとだめ''です.半角英数モードだと,当然ながら半角の¥マークになります.とりあえず,対処療法ですが,目的は達成できます(笑).ただその弊害として全角の¥記号が打てなくなりますが,こちらは「option+Y」で入力できます.:http://www.sip-ac.jp/sip/tex02.html]]
OS X の Qt アプリケーションで [[Backslash>Wikipedia.ja:バックスラッシュ]] (U+005C) が [[円記号>Wikipedia.ja:円記号]] (U+00A5) に変換されるバグがあるようです.→ [[Backslash is converted to YEN SIGN on Qt for Mac with JIS keyboard.:https://bugreports.qt-project.org/browse/QTBUG-10543]]~
[[Karabiner]] で Backslash が優先されるようにキーバインドを変更するといいようです.~
----
&color(#595857,#DFDFDF){%%% &color(#FF0000,#DFDFDF){●}; &color(#FFD700,#DFDFDF){●}; &color(#C9C9C9,#DFDFDF){●}; ''Karabiner'' %%%};&br;
%%%&color(#F1F1F1,#0F7FFF){&color(#0F7FFF){[}; ''Change Key'' &color(#0F7FFF){]};};&color(Black,White){[ ''Key Repeat'' ][ ''Status Message'' ][ ''MenuBar'' ][ ''AXNotifier'' ][ ''Misc & Uninstall'' ]};%%%&br;
&color(Black,#FAFAFA){[%%%🔍 Change Yen %%%]}; ☐ Show enabled only (1 item) %%%[ ''↻'' ReloadXML ]%%%&br;
remapping&br;
&color(#595857){▼};For Japanese&br;
&color(#595857){▼};Change Yen(¥) Key&br;
&color(White,#0F7FFF){☑}; JIS Yen(¥) to Backslash(\)&br;
(except virtual machine, X11, RDC)&br;
----
**かな漢字変換をする際に,文字と背景が黒く表示され,読めなくなる → Dark theme を選択する [#c698d89f]
Texmaker には,かな漢字変換をする際に変換候補の文字色とその背景色がともに「黒」となって読めなくなるという不具合があります.~
OS やインプットメソッドフレームワークの種類などの違いでこの不具合が発生しない場合もあるようです.~
Windows, Linux で不具合が発生します.~
OS X では不具合が発生しないようです.~
***Windows の場合 [#z3a8b3e4]
Windows の場合は Dark theme を選択することで回避できます.~
Dark theme を選択しても読めない場合は 派生版の [[TeXstudio]] を使用してください.~
----
&color(#9BC527,#9BC527){%%% &color(Black){''Texmaker の設定''}; &color(#9BC527,#9BC527){%%%[ &color(Black){''?''}; ]%%%};&color(#DD4444,#DD4444){%%%[ &color(White){''×''}; ]%%%};%%%};&br;
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configtools.png,left,around,nolink,コマンド)
&color(Black,#F5F5F5){エディタ};&br;
&color(Black,#F5F5F5){フォント名 };%%%メイリオ ''ᐯ''%%%&color(Black,#F5F5F5){ ☑ ワードラップ};&br;
&color(Black,#F5F5F5){サイズ };%%%12 [''⇕'']%%%&color(Black,#F5F5F5){ ☑ 補完};&br;
&color(Black,#F5F5F5){文字コード };&color(Black,#EEEEEE){%%%[UTF-8 ▼]%%%};&color(Black,#F5F5F5){ ☑ 行番号の表示};&br;
''コマンド'' &color(Black,#F5F5F5){☐ 外部からの変更をチェックする ☑ 10 分ごとにバックアップをとる};&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configquick.png,left,around,nolink,クイックビルド)
&color(Black,#F5F5F5){スペルチェック辞書 };%%%C:/texmakerwin32usb/en_US.dic %%%&color(Black,#F5F5F5){ &color(black,yellow){''☐ インライン ← 日本語の文書を作成する場合はチェックをはずす''};};&br;
&color(Black,#F5F5F5){タブ幅 (スペースの数) };%%%4 [''⇕'']%%%&color(Black,#F5F5F5){ ☐ タブをスペースで置き換える};&br;
&color(Black,#F5F5F5){色};&br;
&br;
''クイックビルド''&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configeditor.png,left,around,nolink,エディタ)
&br;
&br;
&br;
&br;
&color(Black,#DAEAFF){ ''エディタ'' };&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configkeys.png,left,around,nolink,ショートカット)
>
>>
>>>
:|
>
>>
>>>
::|
>
|COLOR(#555):Background|#ffffff |
|COLOR(#555):Current line|#ececec|
|COLOR(#555):Highlighted line|#ff0000|
|COLOR(#555):Text|#000000|
|COLOR(#555):Comment|#606060|
|COLOR(#555):Math|#008000|
|COLOR(#555):...|...|
<
&color(Black,#EEEEEE){[ ダークテーマ ]};&color(black,yellow){''← かな漢字変換をする際に,文字と背景が黒く表示され,読めなくなる場合は Dark theme を選択する''};&br;
&color(Black,#EEEEEE){[ デフォルトのテーマ ]};&br;
#img(,clear)
&br;
&color(Black,#EEEEEE){[ OK ]}; &color(Black,#EEEEEE){[ キャンセル ]};&br;
----
***Linux の場合 [#nd7d6ba8]
■ ibus を使用している場合~
Arch Linux の ibus-kkc では特に問題なく日本語入力できています.~
Linux Mint で ibus を使用している場合は ibus-qt4, qt4-qtconfig をインストールして Qt 設定ツールの [インターフェース]-[デフォルトのインプットメソッド] から ibus を選択することで回避できます.~
Fedora で ibus-kkc を使用している場合は ibus-qt, qt-config をインストールして Qt 設定ツールの [インターフェース]-[デフォルトのインプットメソッド] から ibus を選択することで回避できます.~
■ fcitx を使用している場合~
fcitx の [設定]-[アドオン]-[拡張を ON]-[Fcitx XIM Frontend をダブルクリック] で 「XIMで On The Spot スタイルを使う」 が OFF の場合は変換候補の場所に文字が表示されるので文字が確認できます.~
fcitx の [設定]-[アドオン]-[拡張を ON]-[Fcitx XIM Frontend をダブルクリック] で 「XIMで On The Spot スタイルを使う」 が ON の場合は背景が黒く表示されて読めなくなることがあるようです.~
■ uim を使用している場合~
uim を使用している場合は背景が黒く表示されて読めなくなることがあるようです.~
//バージョン 1.3 の公式バイナリではこの不具合は発生しませんが,1.3 のソースを Qt 4.7.2 でビルドしてみるとこの不具合が発生します.~
//また,同じく Qt を使用している [[TeXworks でもハイライトに関する不具合が存在する>TeXworks#s5bfc44e]]ので,もしかすると Qt の不具合 (仕様?) かもしれません.~
***修正方法 (Windows) [#e1ab5b1e]
Texmaker のソースコードを修正してビルドすれば日本語入力に関する不具合を回避できます.~
-[[Poppler]] をインストールします.
-Texmaker のソースコードを修正してビルドします.
$ curl -R -L -O http://www.xm1math.net/texmaker/texmaker-4.4.1.tar.bz2
$ tar xvf texmaker-4.4.1.tar.bz2
$ cd texmaker-4.4.1
Texmaker は texmaker.cpp に記述されている Texmaker::GeneralOptions() メソッドの中の
if (QColor::isValidColor(confDlg->ui.colortableWidget->item(3,1)->text())) colorStandard=QColor(confDlg->ui.colortableWidget->item(3,1)->text());
という処理でテキストの色を設定しています.~
デフォルトではテキストの色は黒です.~
日本語変換時にも,この色が適用され,文字の色が黒くなってしまうので [[latexhighlighter.cpp:https://bitbucket.org/srazi/biditexmaker3/src/tip/latexhighlighter.cpp]] の
setFormat( i, 1,ColorStandard);
と書かれている箇所を全て
//setFormat( i, 1,ColorStandard);
としてコメントアウトしてビルドすれば,日本語変換時に黒くなる現象を回避できます.~
Qt 5 を使用する場合は texmaker.pro を修正します.~
----
## QT4
#QT += xml webkit network
## QT5
QT += xml webkitwidgets network widgets printsupport concurrent
----
poppler-qt4.h, poppler-qt5.h を参照できるようにするため,texmaker.pro に INCLUDEPATH を追加して LIBS に -lpoppler-qt5 を追加します.
Portable バージョンを作成する場合は #DEFINES += USB_VERSION の # を外します.
----
win32 {
INCLUDEPATH += C:\QtSDK\mingw\include
INCLUDEPATH += C:\poppler
INCLUDEPATH += /mingw/include/poppler/qt4
INCLUDEPATH += /mingw/include/poppler/qt5
LIBS += -LC:\poppler -lpoppler-qt4 -lpoppler-qt5
RC_FILE = win.rc
DEFINES += USB_VERSION
----
$ qmake texmaker.pro
$ make release
$ cd release
$ ./texmaker &
-かな漢字変換をする際に,文字が黒くならないことを確認します.
-日本語のフォントが埋め込まれていない PDF ファイルが組み込みビューアで表示できることを確認します.
-このままの状態ではエクスプローラーからダブルクリックして起動する場合に dll が見つからないといったエラーメッセージが表示されるので,Texmaker の実行に必要なライブラリ (DLL ファイル) の確認をします.~
objdump の他に [[Dependency Walker:http://www.dependencywalker.com/]] ([[Dependency Walker 日本語化パッチ:http://blog.livedoor.jp/blackwingcat/archives/1000078.html]]) を使って確認することも可能です.
$ objdump -p texmaker.exe | grep -i -E "\.dll" | sort | uniq
DLL Name: KERNEL32.dll
DLL Name: Qt5Core.dll
DLL Name: Qt5Gui.dll
DLL Name: Qt5Network.dll
DLL Name: Qt5PrintSupport.dll
DLL Name: Qt5WebKitWidgets.dll
DLL Name: Qt5Widgets.dll
DLL Name: Qt5Xml.dll
DLL Name: libgcc_s_dw2-1.dll
DLL Name: libpoppler.dll
DLL Name: libstdc++-6.dll
DLL Name: msvcrt.dll
DLL Name: zlib1.dll
$ objdump -p /mingw/bin/libpoppler.dll | grep "DLL Name" | sort | uniq
DLL Name: ADVAPI32.DLL
DLL Name: GDI32.dll
DLL Name: KERNEL32.dll
DLL Name: USER32.dll
DLL Name: libcurl-4.dll
DLL Name: libfontconfig-1.dll
DLL Name: libfreetype-6.dll
DLL Name: libgcc_s_dw2-1.dll
DLL Name: libjpeg-9.dll
DLL Name: liblcms2-2.dll
DLL Name: libopenjp2.dll
DLL Name: libpng16-16.dll
DLL Name: libstdc++-6.dll
DLL Name: libtiff-5.dll
DLL Name: msvcrt.dll
DLL Name: zlib1.dll
$ objdump -p /mingw/bin/libfontconfig-1.dll | grep "DLL Name" | sort | uniq
DLL Name: KERNEL32.dll
DLL Name: libfreetype-6.dll
DLL Name: libxml2-2.dll
DLL Name: msvcrt.dll
$ objdump -p /mingw/bin/libxml2-2.dll | grep "DLL Name" | sort | uniq
DLL Name: KERNEL32.dll
DLL Name: WS2_32.dll
DLL Name: libiconv-2.dll
DLL Name: liblzma-5.dll
DLL Name: msvcrt.dll
DLL Name: zlib1.dll
-C:\MinGW\bin と C:\Qt\Qt5.3.2\5.3.2\mingw48_32\bin に PATH を通せばエクスプローラーからダブルクリックして起動できるようになります.
-C:\MinGW\bin と C:\Qt\Qt5.4.0\5.4\mingw491_32\bin に PATH を通せばエクスプローラーからダブルクリックして起動できるようになります.
**Linux 版の Texmaker で \section{ を入力した直後に日本語入力をしようとすると日本語入力が ON にならなかったり,正しいかな漢字変換ができなかったりすることがある → [[TeXstudio]] を使用する [#i1222dd8]
Linux 版の Texmaker で \section{ を入力した直後に日本語入力をしようとすると日本語入力が ON にならなかったり,正しいかな漢字変換ができなかったりすることがあります.~
fcitx-mozc では \section{ の直後で日本語入力が ON にならないことがあります.\section{ の直後に日本語入力が ON にならない場合に手動で日本語入力を ON にした状態で \section{ の直後で 「かんじ」 を 「漢字」 に変換しようとすると 「k暗示」 と変換されます.~
ibus-kkc も同様に \section{ の直後では日本語入力が ON にならないことがあります.~
[[TeXstudio]] を使用することで回避できます.~
**コマンドの設定に使用するパラメータのパースの仕方に問題がある → [[TeXstudio]] または Ruby, Windows PowerShell, バッチファイル, シェルスクリプト などを使用する [#t0aace20]
Texmaker はコマンドの設定に使用するパラメータのパースの仕方に問題があります.~
[[TeXstudio]] はコマンドの設定に使用するパラメータが正しく処理されています.~
Texmaker の場合は例えばコマンドの設定に % という表示が必要になった場合に %% と記述すればよいとありますが,%% と記述しても期待したように処理されません.~
Ruby では
0x25.chr
Windows PowerShell では
[char]0x25
で % を表示できます.~
このようにして Ruby や Windows PowerShell を使用して表示したい文字を「数値→文字」の変換で表現して設定を記述すれば OK です.~
Ruby, Windows PowerShell の他に バッチファイルやシェルスクリプトを使用しても OK です.~
**Windows PowerShell を使用して設定を記述して実行すると Texmaker が応答しなくなることがある → Ruby を使用して設定を記述する [#o6c242bd]
Windows PowerShell を使用して設定を記述して実行すると Texmaker が応答しなくなることがあります.~
この場合は Ruby を使用して設定を記述してください.~
**W32TeX を使用して \usepackage{mathptmx} で \sum を使用した場合に組み込みの PDF ビューアで表示されない → TeX Live を使用するまたは dvipdfmx -f dlbase14.map %.dvi を設定してフォントを埋め込む [#t68c551e]
//-[[Issue 364: Embedded PDF viewer doesn't show text in a certain font:https://code.google.com/p/texmaker/issues/detail?id=364]]
-[[Windows にTexmakerを導入:http://blog.sqr-main.net/2012/06/windows-texmaker.html]]
W32TeX を使用して \usepackage{mathptmx} で \sum を使用した場合に組み込みの PDF ビューアで表示されません.~
TeX Live では表示されます.~
dvipdfmx -f dlbase14.map %.dvi
を設定してフォントを埋め込めば表示されるようになります.~
通常はフォントを埋め込まない設定にしておきたい場合は,TeX ファイルのプリアンブルに
\AtBeginDvi{\special{pdf:mapfile dlbase14.map}}
を記述してください.
PDF ファイルのフォントの埋め込みについては
-[[PDFの作り方#フォントの埋め込み設定>PDFの作り方#z0e1001a]]
を参照してください.
*文字コードの変換 [#y2f21c8a]
Texmaker で使用する文字コードはデフォルトでは UTF-8 です.~
Shift_JIS, ISO-2022-JP, EUC-JP の文字コードを使用しているファイルを UTF-8 で表示する場合はファイルの文字コードを UTF-8 に変換する必要があります.~
[[W32TeX]] には,標準で文字コード変換プログラムである [[nkf:http://sourceforge.jp/projects/nkf/]] が含まれています.~
nkf の場所は以下のようにして確認できます.~
-Windows PowerShell の場合
PS > Get-Command nkf | Select-Object Path
エイリアスを使用した場合は
PS > gcm nkf | select path
Path
----
C:\w32tex\bin64\nkf.exe
C:\w32tex\bin\nkf.exe
-コマンド プロンプトの場合
>where nkf
C:\w32tex\bin64\nkf.exe
C:\w32tex\bin\nkf.exe
使用方法は [[UTF-8への変換:http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=545]] などを参照してください.~
Windows PowerShell またはコマンド プロンプトに慣れていない場合は,[[メモ帳で UTF-8 に変換する:http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=496#p2654]]方法もあります.~
メモ帳で UTF-8 に変換した場合は BOM が付加されます.~
nkf やメモ帳以外の変換ツールを使用したい場合は[[サクラエディタ]]などのエディタを使っても OK です.~
*組み込みの PDF ビューアに日本語を表示させる [#a258817b]
**OS X の場合 [#m8993d2f]
OS X の Texmaker で組み込みの PDF ビューアで日本語が表示されない場合は poppler-data を /Users/pascalbrachet/poppler64/share/poppler に配置します.~
poppler-data は [[Poppler の公式サイト:http://poppler.freedesktop.org/]]から入手できます.~
[[TeXworks]] をインストールしている場合は TeXworks に含まれている poppler-data を /Users/pascalbrachet/poppler64/share/poppler にコピーして使用することもできます.~
poppler-data を配置する場所は
$ strings -a /Applications/texmaker.app/Contents/Frameworks/libpoppler.??.dylib | grep poppler
@executable_path/../Frameworks/libpoppler.??.dylib
Unknown CID font collection, please report to poppler bugzilla.
/Users/pascalbrachet/poppler64/share/poppler
%Produced by poppler pdftops version: {0:s} (http://poppler.freedesktop.org)
で調べることができます.~
この場合は /Users/pascalbrachet/poppler64/share/poppler が poppler-data を配置するディレクトリになります.~
コマンドラインから poppler-data を /Users/pascalbrachet/poppler64/share/poppler に配置する場合は以下のように実行します.~
$ brew install poppler
$ sudo mkdir -p /Users/pascalbrachet/poppler64/share
$ sudo ln -s /usr/local/share/poppler /Users/pascalbrachet/poppler64/share/poppler
または
$ cd ~
$ curl -O http://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz
$ tar xvf poppler-data-0.4.7.tar.gz
$ sudo mkdir -p /Users/pascalbrachet/poppler64/share/poppler
$ sudo cp -pR ~/poppler-data-0.4.7/* /Users/pascalbrachet/poppler64/share/poppler
----
/
└─Users/
└─pascalbrachet/
└─poppler64/
└─share/
└─poppler/
├─cidToUnicode/
├─cMap/
├─nameToUnicode/
├─unicodeMap/
├─CMakeLists.txt
├─COPYING
├─COPYING.adobe
├─COPYING.gpl2
├─Makefile
└─README
----
*組み込みの PDF ビューアで日本語を表示するために使用される代替フォント [#h2a20ebd]
**Windows の Texmaker の場合 [#h82370cc]
Texmaker の Windows 版は poppler-data が適切な位置に配置されており fontconfig も適切に設定されています.~
----
C:.
└─Program Files (x86) または Program Files
└─Texmaker
├─texmaker.exe
└─share
└─poppler
----
fontconfig を適切に設定すれば PDF ファイルに日本語のフォントが埋め込まれていなくても日本語を表示することが可能になります.~
日本語のフォントを埋め込んでいない PDF ファイルを表示すると texmaker.exe と同じフォルダーに WINDOWSTEMPDIR_FONTCONFIG_CACHE フォルダーが作成され,日本語が表示されます.~
なお,''初回の表示ではフォントキャッシュを作成するため時間がかかり,応答なしの状態になってしまう''かもしれませんが,作成されれば通常通り表示されるようになります.~
----
C:.
└─Program Files (x86) または Program Files
└─Texmaker
├─texmaker.exe
└─WINDOWSTEMPDIR_FONTCONFIG_CACHE
----
PDF ビューアで表示される代替フォントは texmaker.exe と同じフォルダーに存在する etc\fonts\local.conf で設定されています.~
----
C:.
└─Program Files (x86) または Program Files
└─Texmaker
├─texmaker.exe
└─etc
└─fonts
├─conf.d
├─fonts.conf
├─fonts.dtd
└─local.conf
----
デフォルトでは Ryumin-Light (明朝体) は MS Mincho,GothicBBB-Medium (ゴシック体) は MS Gothic で表示されます.~
----
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- local.conf file to configure local font access -->
<fontconfig>
<dir>c:/texlive/2014/texmf-dist/fonts/opentype</dir>
<dir>c:/texlive/2014/texmf-dist/fonts/truetype</dir>
<dir>c:/Windows/Fonts</dir>
<match target="pattern">
<test qual="any" name="family">
<string>Ryumin</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>MS Mincho</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>GothicBBB</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>MS Gothic</string>
</edit>
</match>
<alias binding="same">
<family>ZapfDingbats</family>
<accept><family>Dingbats</family></accept>
</alias>
</fontconfig>
----
**Linux の Texmaker の場合 [#o71b53f0]
[[代替フォントの設定>Evince#substitute]] を参照して代替フォントの設定をします.~
*設定 [#e3cd1932]
[[Texmaker/設定]] を参照.
*使い方 [#qb8bff72]
[[Texmaker/使い方]] を参照.
*関連リンク [#n5a9b95f]
-http://fossies.org/dox/texmaker/
-[[Newest 'texmaker' Questions - TeX - LaTeX:http://tex.stackexchange.com/questions/tagged/texmaker]]
--[[Forward/inverse search for Texmaker on OS X:http://tex.stackexchange.com/questions/9904/forward-inverse-search-for-texmaker-on-os-x]]
--[[Configure forward search with Texmaker + SumatraPDF:http://tex.stackexchange.com/questions/37327/configure-forward-search-with-texmaker-sumatrapdf]]
-http://research.informagic.org/latex-tweaks
-[[Texmakerにスペルチェックを追加する:http://sweettips.take-uma.net/latex/texmaker%E3%81%AB%E3%82%B9%E3%83%9A%E3%83%AB%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B]]
-[[MacTeX 2014+texmaker+GhostView の環境で日本語PDFを作成する方法:http://qiita.com/mmurasawa/items/25a88b0c5548c96f6196]]
-[[LyX、TeXstudio、Texmakerを少しだけ試用:http://blawat2015.no-ip.com/~mieki256/diary/201409211.html]]
-http://linuxg.net/how-to-install-texmaker-4-1-on-ubuntu-13-10-13-04-12-10-12-04-linux-mint-16-15-14-13-pear-os-8-7-elementary-os-0-2-debian-wheezy-and-kwheezy/
-[[Texmakerのインストール:http://dtptools.blogspot.jp/2013/08/texmaker.html]]
-[[GateKeeperに引っかかった時の対処(OS X):http://hnsn1202.hateblo.jp/entry/2013/04/09/193136]]
-[[TeXmakerで使用可能なファイル名について:http://fagahhe2645.hatenablog.com/entry/2013/02/07/231005]]
-[[texのエディタ:http://masashiabe665.wordpress.com/2014/07/14/tex%E3%81%AE%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF/]]
-[[Texmaker+makefile+Built-in Viewer:http://d.hatena.ne.jp/NU_Pan/20140723/1406103369]]