- 追加された行はこの色です。
- 削除された行はこの色です。
*[[秀丸エディタ:http://hide.maruo.co.jp/software/hidemaru.html]] [#z8c2c3a5]
&color(White,#5F2F2F){ ''◆目次◆'' };&br;
#contents
*秀丸エディタとは [#w73ea51b]
秀丸エディタは国産のテキストエディタです。 (シェアウェア)
-[[秀まるおのホームページ(サイトー企画):http://hide.maruo.co.jp/]]
--[[秀丸エディタ:http://hide.maruo.co.jp/software/hidemaru.html]]
--[[twitter:http://twitter.com/hidemaruinfo]]
-[[秀丸エディタ - 窓の杜ライブラリ:http://www.forest.impress.co.jp/library/software/hidemaru/]]
-[[秀丸エディタ - Vector:http://www.vector.co.jp/soft/win95/writing/se086280.html]]
**動作環境 [#d2be5bb8]
Windows 8, 7, Vista, 2003, XP, 2000, NT4.0, Me, 98, 95
**ChangeLog [#k3ce2677]
-[[秀丸エディタ改版履歴:http://hide.maruo.co.jp/software/hidemaruhist.html]]
-[[秀丸エディタβバージョン改版履歴:http://hide.maruo.co.jp/software/hidemaruhist_pre.html]]
*秀丸エディタフリー制度 [#faebc82e]
秀丸エディタには,特定の条件に当てはまる場合に限り,期間限定で無料で利用できる制度があります。~
対象は,学生([[アカデミックフリー個人:http://hide.maruo.co.jp/support/hmfree1.html]]/[[アカデミックフリー団体:http://hide.maruo.co.jp/support/hmfree2.html]])・[[フリーソフトウェア作者:http://hide.maruo.co.jp/support/hmfree3.html]]・[[ウィンドウズ関係の書籍や雑誌の著者:http://hide.maruo.co.jp/support/hmfree4.html]]
です。~
-[[秀丸エディタフリー制度:http://hide.maruo.co.jp/support/hidemarufree.html]]
*正規表現 [#f7fa3efd]
-[[h-tom's Warehouse - top:http://homepage3.nifty.com/_htom/]]
--[[h-tom's Warehouse - 秀丸エディタ macro:http://homepage3.nifty.com/_htom/macro/]]
---[[hmonig.dll:http://homepage3.nifty.com/_htom/macro/macro_dll.html#label-18]]
*マクロ [#m32041fb]
-[[秀丸エディタ マクロ言語ヘルプ目次:http://homepage3.nifty.com/kons/hidemaru/helpsite/hidemac/html/010_Intro.html]]
**[[祝鳥 (のりてふ)>祝鳥]] [#mdf32e5b]
**[[guishell, TeXmac>guishell]] [#ld68541f]
//**RaTeX0e [#s1e27527]
//-[[RaTeX0e:http://uca-works.com/program/ratex.html]]
//(福中 公輔 さん)
//
//**AutoHotKey スクリプト [#va7fd93d]
//-[[AutoHotKey スクリプト:http://ryo-t.com/diary/?p=94]]
//(谷内 稜 さん)
//
//**秀丸エディタで LaTeX [#ubdba7fd]
//-[[秀丸エディタで LaTeX (hidemacro-070502.tar.gz):http://www.cymric.jp/old/tex/hidemaru.html]]
//(Maxima 普及委員会)
//
//**秀丸で簡単コンパイル [#m6700653]
//-[[秀丸で簡単コンパイル:http://imawamukashi.web.fc2.com/TeX/hidemacro.html]]
//(Outsider's Website)
//
//**秀丸マクロ for TeX editing [#h3f49b53]
//-[[秀丸マクロ for TeX editing:http://wiki.livedoor.jp/fuhmi/d/%CA%AA%C3%D6]]
//(fuhmi さん)
//
//**トリビュート [#qac4762a]
//-[[トリビュート:http://www.vector.co.jp/soft/win95/writing/se259789.html]], [[LaTeX2e 用強調表示定義ファイル:http://homepage2.nifty.com/masema/software/LaTeX_hilight.html]]
//(ませま さん)
//
//**LaTeX Compile HIDEMARU Macro [#w6e15581]
//-[[LaTeX Compile HIDEMARU Macro (LaTeXコンパイル用秀丸マクロ):http://hide.maruo.co.jp/lib/macro/lcm11.html]]
//(岩里 さん)
//
//**TeX用改行コード挿入マクロ [#ndf01264]
//-[[TeX用改行コード挿入マクロ:http://hide.maruo.co.jp/lib/macro/il-fc093.html]] (haze さん)
//
//**TeX Module Control with HIDEMARU Macro [#rff2c60d]
//-[[TeX Module Control with HIDEMARU Macro:http://www.ceres.dti.ne.jp/~sugiura/hidemaru/macros/tex_mc/index.html]]
//(杉浦 方紀 さん)
//
//**LaTeX コンパイル支援マクロ [#ob9080ba]
//-[[LaTeX コンパイル支援マクロ:http://www.seman.cs.uec.ac.jp/~inuzuka/hidemac.html]]
//(犬塚 敦史 さん)
//
//**飛鳥 (ひちょう) HiTeX [#y3147877]
//-[[飛鳥 (ひちょう) HiTeX:http://www.yatex.org/HiTeX/]]
//(安田 晴行 さん)
**pdfpLaTeX.mac [#h4eb5579]
----
call main;
endmacro;
main:
##fso = createobject("Scripting.FileSystemObject");
$$c = callmethod_returnstr(##fso, "GetParentFolderName", filename2);
$$b = callmethod_returnstr(##fso, "GetBaseName", filename2);
$$cd = "cd /d " + "\"" + $$c + "\"";
$$latex = "platex -synctex=1 -guess-input-enc -sjis-terminal";
if ((charset & 0x3F) == 6) {
$$latex = "platex -synctex=1 -no-guess-input-enc -kanji=utf8 -sjis-terminal";
} else if ((charset & 0x3F) == 1) {
$$latex = "platex -synctex=1 -no-guess-input-enc -kanji=sjis -sjis-terminal";
} else if ((charset & 0x3F) == 3) {
$$latex = "platex -synctex=1 -no-guess-input-enc -kanji=euc -sjis-terminal";
} else if ((charset & 0x3F) == 4) {
$$latex = "platex -synctex=1 -no-guess-input-enc -kanji=jis -sjis-terminal";
}
$$latex = $$latex + " " + "-jobname=" + "\"" + $$b + "\"" + " " + "\"" + $$b + "\"";
$$dvipdfm = "dvipdfmx" + " " + "\"" + $$b + "\"";
$$cmd = "cmd /c " + $$cd + " && " + $$latex + " && " + $$dvipdfm;
question $$cmd;
if (result == yes) {
save;
##shell = createobject("WScript.Shell");
callmethod ##shell, "Run", $$cmd;
releaseobject ##shell;
}
releaseobject ##fso;
----
**TeXworks.mac [#r100b824]
----
call main;
endmacro;
main:
##fso = createobject("Scripting.FileSystemObject");
##re = createobject("VBScript.RegExp");
$$currentTeXFile = filename2;
setpropstr ##re, "Pattern", "\.[^.]*$";
$$pdfFile = callmethod_returnstr(##re, "Replace", $$currentTeXFile, ".pdf");
$$texworks = "texworks";
if (!existfile($$pdfFile)) {
$$mainTeXFile = input("Input the path to main TeX file.", callmethod_returnstr(##re, "Replace", $$pdfFile, ".tex"));
if ($$mainTeXFile != "") {
$$pdfFile = callmethod_returnstr(##re, "Replace", $$mainTeXFile, ".pdf");
}
}
$$mainTeXDir = callmethod_returnstr(##fso, "GetParentFolderName", $$pdfFile);
$$cd = "cd /d " + "\"" + $$mainTeXDir + "\"";
$$pdfFile = "\"" + $$pdfFile + "\"";
$$args = $$texworks + " " + $$pdfFile;
$$cmd = "cmd /c " + $$cd + " && echo " + $$args + " | cmd";
##shell = createobject("WScript.Shell");
callmethod ##shell, "Run", $$cmd;
releaseobject ##shell;
releaseobject ##re;
releaseobject ##fso;
----
*Adobe Reader との連携 [#z5e51515]
**pdfpLaTeXA.mac [#q37b5bf9]
----
call main;
endmacro;
main:
##fso = createobject("Scripting.FileSystemObject");
$$c = callmethod_returnstr(##fso, "GetParentFolderName", filename2);
$$b = callmethod_returnstr(##fso, "GetBaseName", filename2);
$$cd = "cd /d " + "\"" + $$c + "\"";
$$latex = "platex -guess-input-enc -sjis-terminal";
if ((charset & 0x3F) == 6) {
$$latex = "platex -no-guess-input-enc -kanji=utf8 -sjis-terminal";
} else if ((charset & 0x3F) == 1) {
$$latex = "platex -no-guess-input-enc -kanji=sjis -sjis-terminal";
} else if ((charset & 0x3F) == 3) {
$$latex = "platex -no-guess-input-enc -kanji=euc -sjis-terminal";
} else if ((charset & 0x3F) == 4) {
$$latex = "platex -no-guess-input-enc -kanji=jis -sjis-terminal";
}
$$latex = $$latex + " " + "-jobname=" + "\"" + $$b + "\"" + " " + "\"" + $$b + "\"";
$$dvipdfm = "dvipdfmx" + " " + "\"" + $$b + "\"";
$$pdf = "\"" + $$b + ".pdf" + "\"";
$$pdfopen = "powershell -Command \"& {$pdf = \"\"" + $$pdf + "\"\"; $pages = (pdfinfo $pdf | Select-String \"^Pages:\"); $page = (-split $pages)[1]; pdfopen --rxi --file $pdf --page $page}\"";
$$pdfclose = "tasklist /fi \"IMAGENAME eq AcroRd32.exe\" /nh | findstr \"AcroRd32.exe\" > nul && pdfopen --rxi --file " + $$pdf + " && pdfclose --rxi --file " + $$pdf;
$$cmd = "cmd /c " + $$cd + " && " + $$pdfclose + " & " + $$latex + " && " + $$dvipdfm + " && " + $$pdfopen;
question $$cmd;
if (result == yes) {
save;
##shell = createobject("WScript.Shell");
callmethod ##shell, "Run", $$cmd;
releaseobject ##shell;
}
releaseobject ##fso;
----
*スクリプト [#w87ef5ac]
**Happy [#q96fb99f]
-[[Happy:http://www.u-gakugei.ac.jp/~takizawa/Happy/]]
--HappyInput (TeX 入力支援スクリプト)
--HappyTeX (TeX タイプセット&プレビュー支援スクリプト)
*関連リンク [#mec8cd02]
-[[TeXLive 2012でLaTeXのエラー発生時に秀丸エディタを起動する設定:http://d.hatena.ne.jp/hyuki/20121016/tex]]
-[[秀丸エディタのお勧めの設定:http://tipszone.jp/20121003_hidemaru-config/]]