KTUGFaq
KTUG FAQ
Let not the sands of time get in your lunch.
FrontPage › EmEditorTip/Execution
EmEditor/Professional + MTeXHelper ÀÇ »ç¿ë TipÀ» Á¦°øÇÏ´Â °÷ÀÔ´Ï´Ù. EmEditorTip |
[ÆíÁý]
1 LaTeX ÄÄÆÄÀÏ, ¹®¼º¸±â (MTeX2) ¶
¿ÞÂÊ Å¬¸¯(setting 1) ±âÁØÀ¸·Î ¼³¸íÇÑ´Ù. ´ëºÎºÐ, ¿À¸¥ÂÊ Å¬¸¯(setting 2)´Â setting 1°ú °°ÀÌ ¼³Á¤µÇ¾î ÀÖ´Ù. Ưº°ÇÑ °æ¿ì¿¡¸¸, setting 2¿¡ ´ëÇØ ¼³¸íÇÑ´Ù.
[ÆíÁý]
1.1 dvips¸¦ »ç¿ëÇÏÁö ¾ÊÀ» ¶§ ¶
- TeX quick build (^+shift+1): latex ÄÄÆÄÀÏ 1ȸ ½ÇÇà
- ¿À¸¥ÂÊ Å¬¸¯(setting 2)¿¡ pdflatexÀÌ ¼³Á¤µÇ ÀÖ´Ù¸é, pdflatex ÄÄÆÄÀÏ 1ȸ ½ÇÇà.
- TeX processing (^+shift+2): "ÃÖÁ¾ÄÄÆÄÀÏ "
- [latex -> (bibtex -> latex ->) latex -> makeindex -> latex]À» ½ÇÇàÇØÁØ´Ù.
- \makeindex°¡ ¼±¾ðµÇÁö ¾ÊÀ¸¸é latex¸¸ µÎ ¹ø ½ÇÇàÇØÁØ´Ù.
- bibtexÀÌ ÇÊ¿äÇÑ °æ¿ì¿¡¸¸, ÀÚµ¿ÀûÀ¸·Î bibtex°ú latexÀ» Ãß°¡ÇÏ¿© ½ÇÇàÇÑ´Ù.
- Âü°í: TeX quick buildÀÌ¿ÜÀÇ ¸ðµç ´ÜÃß°¡ ÃÖÁ¾ÄÄÆÄÀÏ ±â´ÉÀ» °¡Áö°í ÀÖ´Ù. Áï, ÃÖ±ÙÀÇ latex ÄÄÆÄÀÏ ÀÌÈÄ¿¡ ÆÄÀÏ¿¡ ÷»è µîÀÇ º¯µ¿ÀÌ ÀÖ´Â °æ¿ì, ÀÚµ¿À¸·Î "ÃÖÁ¾ÄÄÆÄÀÏ" °úÁ¤À» ´Ù½Ã ½ÇÇàÇÑ ÈÄ, ÇØ´ç ´ÜÃßÀÇ ±â´ÉÀ» ½ÇÇàÇÑ´Ù.
- DVI view (^+shift+3): dviout½ÇÇàÇÏ¿© dvi·Î ÄÄÆÄÀÏ °á°ú È®ÀÎ
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ -> dviview]°¡ ½ÇÇàµÈ´Ù.
Áï, [latex -> latex -> makeindex -> latex -> dviview]°¡ ½ÇÇàµÊ.
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ¾ø´Ù¸é ´Ü¼øÈ÷ foo.dvi¸¦ ºÒ·¯¿Â´Ù.
- dviviewer¿¡ ÀÚµ¿°»½Å ±â´ÉÀÌ ÀÖÀ¸¹Ç·Î, óÀ½¿¡¸¸ ÀÌ ´ÜÃ߸¦ ´·¯ dvioutÀ» ¿°í, ÀÌÈÄ¿¡´Â ¿¸° âÀ» È°¼ºÈ½ÃÅ°¸é ÃÖ±ÙÀÇ °á°ú·Î °»½ÅµÈ´Ù. (µû¶ó¼, ÀÌ ´ÜÃ߸¦ °è¼Ó ´©¸¦ ÇÊ¿ä´Â ¾ø´Ù.)
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ -> dviview]°¡ ½ÇÇàµÈ´Ù.
- DVI->PDF: dvipdfmx¸¦ ½ÇÇàÇÑ´Ù.
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ -> dvipdfmx]°¡ ½ÇÇàµÇ¾î pdfÆÄÀÏÀÌ ¸¸µé¾îÁø´Ù.
- PDF view: adobe reader°¡ ½ÇÇàµÇ¾î pdf°á°úÆÄÀÏÀ» È®ÀÎÇÑ´Ù.
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ -> dvipdfmx -> pdfview]°¡ ½ÇÇàµÇ¾î pdfÆÄÀÏÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
- ¿øŬ¸¯À¸·Î ¸ðµç ÄÄÆÄÀÏ°úÁ¤À» ´Ù °ÅÄ¡°í pdfÆÄÀϱîÁö º¸¿©ÁØ´Ù.
- ÆÄÀÏ¿¡ º¯µ¿ÀÌ ¾øÀ¸¸é, ´Ü¼øÈ÷ foo.pdf¸¦ ¿¾î º¸¿©ÁØ´Ù.
- pdf viewer·Î adobe reader°¡ ¾Æ´Ï¶ó, gsviewÀ» »ç¿ëÇϸé pdfÆÄÀÏÀÌ ÀÚµ¿°»½ÅµÈ´Ù. (ÀÌ °æ¿ì, pdfviewer ´ÜÃ߸¦ °è¼Ó ´©¸¦ ÇÊ¿ä´Â ¾ø´Ù. gsview´Â External Tool·Î µî·ÏÇÏ¿© »ç¿ëÇϸé Æí¸®ÇÏ´Ù.)
- ¸¸ÀÏ, ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ -> dvipdfmx -> pdfview]°¡ ½ÇÇàµÇ¾î pdfÆÄÀÏÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
[ÆíÁý]
1.2 dvips¸¦ »ç¿ëÇÒ ¶§ ¶
- PS make: dvips¸¦ ½ÇÇàÇÑ´Ù.
- ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ+dvips]°¡ ½ÇÇàµÈ´Ù.
- ÆÄÀÏ¿¡ º¯µ¿ÀÌ ¾øÀ¸¸é ´Ü¼øÈ÷ dvips¸¸ ½ÇÇàµÈ´Ù.
- Remark: ¹®¼ ÆíÁý Áß¿¡ ÀÚÁÖ ps°á°ú ÆÄÀÏÀ» È®ÀÎÇØ¾ß ÇÏ´Â °æ¿ì¿¡´Â, °è¼Ó ÃÖÁ¾ÄÄÆÄÀÏ °úÁ¤À» ¹Ýº¹ÇÏ´Â °ÍÀº ¸Å¿ì Âü±â Èûµé´Ù.
- ÀÌ °æ¿ì, MTeX.bat¿¡¼ ÀÛ¾÷ routineÀ» [latex -> dvips] ´Ü¼øȽÃÄÑ »ç¿ëÇϸé Æí¸®ÇÏ°Ô ÀÛ¾÷ÇÒ ¼ö ÀÖ´Ù.
- °£´ÜÇÏ°Ô´Â, External Tool°ú ¹èÄ¡ÆÄÀÏÀ» ÀÌ¿ëÇÏ¿© ÇØ°áÇÒ ¼ö ÀÖ´Ù. (¾Æ·¡ EmEditorTip/Execution#s-3 ÂüÁ¶.)
- PS view: gsveiw·Î ps°á°ú ÆÄÀÏÀ» È®ÀÎÇÑ´Ù.
- ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ+dvips+gsview]°¡ ½ÇÇàµÇ¾î psÆÄÀÏÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
- ÃÖ±Ù¿¡ latex¸¸ ½ÇÇàµÈ °æ¿ì, [dvips+gsview]°¡ ½ÇÇàµÇ¾î psÆÄÀÏÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
- ÃÖ±Ù¿¡ latex + dvips°¡ ½ÇÇàµÈ °æ¿ì, ´Ü¼øÈ÷ gsview¸¸ ½ÇÇàµÇ¾î psÆÄÀÏÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
- PS->PDF: ps2pdf¸¦ ½ÇÇàÇÑ´Ù.
- ÆÄÀÏ¿¡ º¯µ¿ÀÌ ÀÖ¾ú´Ù¸é, [ÃÖÁ¾ÄÄÆÄÀÏ+dvips+ps2pdf]°¡ ½ÇÇàµÈ´Ù.
- ÃÖ±Ù¿¡ latex¸¸ ½ÇÇàµÈ °æ¿ì, [dvips+ps2pdf]¸¦ ½ÇÇàÇÑ´Ù.
- ÃÖ±Ù¿¡ latex + dvips°¡ ½ÇÇàµÈ °æ¿ì, ´Ü¼øÈ÷ ps2pdf¸¸ ½ÇÇàµÈ´Ù.
- pdfÆÄÀÏÀº adobe reader ¶Ç´Â gsview µîÀ¸·Î È®ÀÎÇÑ´Ù.
EmEditor/MTeXHelper#s-8.1·Î µ¹¾Æ°¡±â
[ÆíÁý]
1.3 ´ÜÃßÀç¹è¿ ¶
- ÀÚÁÖ ¹Ýº¹µÇ´Â ÀÛ¾÷À» ÇÒ ¶§¿¡´Â, µ¿¼±À» ª°ÔÇϱâ À§ÇØ, ´ÜÃßÀÇ ¼ø¼¸¦ ¹Ù²Ù¸é Æí¸®ÇÏ´Ù.
- EmEditor/MTeXHelper#s-2 ¶Ç´Â KC2006/óÀ½»ç¿ëÀÚ#s-3.1ÂüÁ¶.
[ÆíÁý]
2 User-defined TeX Process (MTeX2) ¶
MTeXHelper¿¡¼ ±âº»À¸·Î ¼³Á¤µÈ compile¹æ¹ý ÀÌ¿ÜÀÇ compileÀ» ½ÇÇàÇÏ°í ½ÍÀ» ¶§´Â ..\EmEditor\Plugins¿¡ MTeX2Usr.bat¸¦ ¸¸µé¾î »ç¿ëÇÏ¸é µÈ´Ù.
[ÆíÁý]
2.1 pdflatex ÄÄÆÄÀÏ ¶
- ¼³Á¤: ´ÙÀ½ ³»¿ëÀÇ ¹èÄ¡ÆÄÀÏ MTeX2Usr.batÀ» ¸¸µé¾î ..\EmEditor\Plugins¿¡ ³Ö´Â´Ù.
pdfclose --file "%MTeX2_CFName%.pdf" pdflatex "%MTeX2_CFName%.tex" pdfopen --file "%MTeX2_CFName%.pdf"
- »ç¿ë: [49¹ø] (User-defined TeX Process) ´ÜÃ߸¦ Ŭ¸¯Çϸé ÀÛ¾÷ÁßÀÎ ÆÄÀÏÀ» pdflatex ÄÄÆÄÀÏÇÏ°í °á°úÆÄÀÏÀ» ¿¾îÁØ´Ù.
- ÆíÁý³»¿ëÀº ÀÚµ¿À¸·Î saveµÈ´Ù.
- ÄÄÆÄÀÏ Àü, ¿·ÁÀÖ´Â pdf°¡ ÀÖÀ¸¸é ÀÚµ¿À¸·Î ´Ý¾ÆÁØ´Ù.
[ÆíÁý]
2.2 pdflatex, xelatex ÄÄÆÄÀÏ ¶
- ¸ñÀû: pdflatexÀ» setting 1(¿ÞÂÊ Å¬¸¯)¿¡, xelatexÀ» setting 2(¿À¸¥ÂÊ Å¬¸¯)¿¡ ¹èÁ¤ÇÒ ¼öµµ ÀÖ´Ù.
- ¼³Á¤: ¿¹¸¦ µé¾î, MTeX2Usr.batÀ» ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºÇÏ¿© ..\EmEditor\Plugins¿¡ ³Ö´Â´Ù.
@echo off rem ¼³Á¤ 1(¿ÞÂÊŬ¸¯) or ¼³Á¤ 2(¿À¸¥ÂÊŬ¸¯) if "%MTeX2_Set%"=="2" goto set2 rem ¼³Á¤1 :set1 pdfclose --file "%MTeX2_CFName%.pdf" pdflatex "%MTeX2_CFName%.tex" pdfopen --file "%MTeX2_CFName%.pdf" goto end rem ¼³Á¤2 :set2 xelatex -no-pdf "%MTeX2_CFName%.tex" xelatex -no-pdf "%MTeX2_CFName%.tex" pdfclose --file "%MTeX2_CFName%.pdf" xdvipdfmx "%MTeX2_CFName%.xdv" pdfopen --file "%MTeX2_CFName%.pdf" :end
- »ç¿ë: ÀÌÁ¦, 49¹ø ´ÜÃ߸¦ ¿ÞÂÊŬ¸¯Çϸé setting 1ÀÌ ½ÇÇàµÇ°í, ¿À¸¥ÂÊ Å¬¸¯Çϸé setting 2°¡ ½ÇÇàµÈ´Ù.
[ÆíÁý]
2.3 pdflatex ÃÖÁ¾ÄÄÆÄÀÏ (bibtex,makeindex-dhucsÆ÷ÇÔ) ¶
- ¸ñÀû: pdflatexÀ» setting 1(¿ÞÂÊ Å¬¸¯)¿¡, pdflatex ÃÖÁ¾ÄÄÆÄÀÏ(+bibtex+makeindex)¸¦ setting 2(¿À¸¥ÂÊ Å¬¸¯)¿¡ ¹èÁ¤ÇÏ°íÀÚ ÇÔ.
- ¼³Á¤: MTeX2Usr.batÀ» ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºÇÏ¿© ..\EmEditor\Plugins¿¡ ³Ö´Â´Ù.
¶Ç´Â MTeX2Usr.bat.txt (398 Bytes) ¸¦ ´Ù¿î¹Þ¾Æ À̸§À» MTeX2Usr.bat·Î ¹Ù²Û ÈÄ ..\EmEditor\Plugins¿¡ ³Ö´Â´Ù.
@echo off rem ¼³Á¤ 1(¿ÞÂÊŬ¸¯) or ¼³Á¤ 2(¿À¸¥ÂÊŬ¸¯) if "%MTeX2_Set%"=="2" goto set2 rem ¼³Á¤1 :set1 pdfclose --file "%MTeX2_CFName%.pdf" pdflatex "%MTeX2_CFName%.tex" pdfopen --file "%MTeX2_CFName%.pdf" goto end rem ¼³Á¤2 :set2 pdfclose --file "%MTeX2_CFName%.pdf" kcltxmk -pdf "%MTeX2_CFName%.tex" pdfopen --file "%MTeX2_CFName%.pdf" :end
- »ç¿ë: ÀÌÁ¦, [49¹ø ´ÜÃß]¸¦...
- ¿ÞÂÊ(setting 1)Ŭ¸¯Çϸé pdflatexÀÌ 1ȸ ½ÇÇàµÇ°í,
- ¿À¸¥ÂÊ(setting 2)Ŭ¸¯Çϸé bibtex°ú makeindex Çʿ伺À» °Ë»çÇÏ¿© ÇÊ¿äÇÑ °æ¿ì À̸¦ ½ÇÇàÇÑ´Ù.
Áï ´ÙÀ½ ¼ø¼·Î ½ÇÇàµÈ´Ù.
- pdflatex -> (ÇÊ¿äÇÑ °æ¿ì) bibtex -> (ÇÊ¿äÇÑ °æ¿ì) makeindex-dhucs -> pdflatex
- bibtexµµ makeindexµµ ÇÊ¿ä ¾øÀ¸¸é pdflaexÀ» ÇÑ ¹ø¸¸ ½ÇÇàÇÏ°í °á°ú pdf¸¦ º¸¿©ÁØ´Ù.
- ¹°·Ð, ¾î´À °æ¿ìµç pdfÆÄÀÏÀ» ÀÚµ¿À¸·Î ´Ý¾Ò´Ù°¡ ÄÄÆÄÀÏ¿¡ ¼º°øÇÏ¸é ´Ù½Ã ¿¾îÁØ´Ù.
[ÆíÁý]
3 External Tool·Î ½ÇÇàÇϱ⠶
EmEditorÀÇ external tool·Î ¾î¶² °ÍÀÌµç ½ÇÇàÇÒ ¼ö ÀÖ´Ù.
- ½ÇÇà ³»¿ëÀ» batchÆÄÀÏ·Î ÀÛ¼ºÇÏ¿© µî·ÏÇÏ¸é ´Ù¾çÇÑ ÇüÅÂÀÇ ½ÇÇàÀ» ÀÚÀ¯ÀÚÀç·Î ¼öÇàÇÒ ¼ö ÀÖ´Ù.
[ÆíÁý]
3.1 pdflatex 1ȸ ½ÇÇà ¶
- External Tools·Î pdflatex½ÇÇà ´ÜÃ߸¦ ¸¸µé¾î µî·ÏÇÑ ÈÄ, Ŭ¸¯ÇÏ¿© ½ÇÇàÇÑ´Ù.
- ´Ù¸¥ ¹æ¹ý: KCmenu¸¦ ÀÌ¿ëÇÒ ¼öµµ ÀÖ´Ù.
[ÆíÁý]
3.2 pdflatex -> pdfview ÀÏ°ýó¸® ¶
- ¿¹¸¦ µé¸é, ´ÙÀ½ ¹èÄ¡ÆÄÀÏ(make-pdflatex.bat)À» ¸¸µé¾î path°¡ °É¸° Æú´õ(¿¹, c:\2007\TeX\HOME\bin)¿¡ µÐ´Ù.
@echo off pdfclose --file %1.pdf pdflatex %1 pdfopen --file %1.pdf
- ´ÙÀ½°ú °°ÀÌ External Tool¿¡ µî·ÏÇÑ´Ù. (iconÀº ÀûÀýÈ÷ Á¤ÇÑ´Ù.)
- beamer µîÀ» ÀÛ¼ºÇÒ ¶§, Æí¸®ÇÏ´Ù.
[ÆíÁý]
3.3 latex -> dvips -> ps2pdf -> pdfview ÀÏ°ýó¸® ¶
- ¿¹µé µé¸é, ´ÙÀ½ ¹èÄ¡ÆÄÀÏ(make-dvips2pdf.bat)À» ¸¸µé¾î path°¡ °É¸° Æú´õ(¿¹, c:\2007\TeX\HOME\bin)¿¡ µÐ´Ù.
@echo off pdfclose --file %1.pdf latex -src %1 dvips -Ppdf -G0 %1.dvi call ps2pdf %1.ps %1.pdf pdfopen --file %1.pdf
- ´ÙÀ½°ú °°ÀÌ External Tool¿¡ µî·ÏÇÑ´Ù. (iconÀº ÀûÀýÈ÷ Á¤ÇÑ´Ù.)
- [dvips]¿É¼ÇÀ¸·Î beamer ¸¦ ÀÛ¼ºÇÒ ¶§¸¦ Æ÷ÇÔÇÏ¿© pstricks¸¦ ÀÌ¿ëÇÒ ¶§ Æí¸®ÇÏ´Ù.
EmEditorTip À¸·Î µ¹¾Æ°¡±â