KTUGFaq
KTUG FAQ
You have a will that can be influenced by all with whom you come in contact.
FrontPage › WinEdtTip/SlideÆíÁý
[ÆíÁý]
1 µé¾î°¡´Â ¸» ¶
LaTeX2eÀÇ ´Ù¼¸ °³ÀÇ Ç¥ÁØ ¹®¼ Ŭ·¡½º(Standard Document Classes: article, report, book, slides, letter) ÁßÀÇ ÇϳªÀÎ slides Ŭ·¡½º´Â "ÇÁ¸®Á¨Å×À̼Ç"¿ëÀ¸·Î ¾µ ¼ö ÀÖµµ·Ï °í¾ÈµÇ¾ú½À´Ï´Ù. LaTeX ÀÌÀü¿¡ ¾²´ø SLiTeXÀÌ LaTeX 2.09¿¡¼´Â slides.sty·Î ¹Ù²î¾ú°í, LaTeX2e¿¡¼´Â slides.cls·Î ¹Ù²î¾ú½À´Ï´Ù. ¿ø·¡ SLiTeXÀº DVI¿¡ ±â¹ÝÀ» µÐ "ÇÁ¸®Á¨Å×À̼Ç"¿ëÀÌÁö¸¸ slides Ŭ·¡½º¸¦ ¾´ LaTeX2e ¹®¼´Â pdf¿¡¼ È¿°ú°¡ 100%·Î ³ªÅ¸³³´Ï´Ù. ÇѱÛ[1]°úµµ Àß ¾î¿ï¸³´Ï´Ù. TeX ÆÄÀÏ, doc ¹®¼, hwp ¹®¼¿¡¼ ½½¶óÀ̵带 ¸¸µé ¶§µµ ÆÄ¿öÆ÷ÀÎÆ®¸¦ ¾²´Â °Íº¸´Ù slides Ŭ·¡½º¸¦ ¾²´Â °ÍÀÌ ÆíÇÕ´Ï´Ù.
WinEdt¿¡´Â slides Ŭ·¡½º¿¡ ¸ÂÃß¾îÁø »É(Template)°ú »ùÇÃÀÌ ÀÖ½À´Ï´Ù. ±×·¡¼ ¸¹Àº »ç¶÷µéÀº ÀÌ°ÍÀ» ±×³É "WinEdt ½½¶óÀ̵å"¶ó°í ÇÏ´Â ¸ð¾çÀÔ´Ï´Ù. "Slides ÆÐÅ°Áö"´Â ¾ö¹ÐÈ÷ ¸»Çϸé WinEdt Slide´Â ¾Æ´Õ´Ï´Ù. ¾î¶»´ø AMSLaTeX°ú Àß ¾î¿ï·Á¼ ¼ö½Ä Ç¥ÇöÀÌ Àß ³ªÅ¸³³´Ï´Ù. ±×·¡¼ WinEdt¿¡¼ LaTeX: Slides MainÀÇ »É(Template)À» ³ÖÀ¸¸é¼ µÑ° Çà(¾Æ·¡ ±×¸² ÂüÁ¶)¿¡
% "AMS-LaTeX definitions for Slides"¶ó°í ÇÑ °Í °°½À´Ï´Ù. WinEdt¿¡¼ "ÇÁ¸®Á¨Å×À̼Ç"¿ëÀ¸·Î ¾µ ¼ö ÀÖ´Â TeX ¹®¼ÀÇ »É°ú »ùÇÃÀº "Slides ÆÐÅ°Áö"¸¦ ¾²´Â °Í ¹Û¿¡ ¾ø½À´Ï´Ù.
slides Ŭ·¡½º¸¦ ½á¼ ½½¶óÀ̵带 ¸¸µé¸é ´Ù¸¥ "ÇÁ¸®Á¨Å×À̼Ç"¿ë Ŭ·¡½º³ª ÆÄ¿öÆ÷ÀÎÆ®¸¦ ¾´ ½½¶óÀ̵å ó·³ Âù¶õÇÏÁö ¾ÊÀ» ¼öµµ ÀÖ°í ¿©·¯°¡Áö È¿°ú¸¦ ³»´Â ±â±³°¡ ¾î·Á¿ï ¼öµµ ÀÖÁö¸¸ Ç¥, ¼ö½Ä, ±×¸² µîÀ» ³Ö´Â µ¥´Â ±×Àú ±×¸¸ÀÔ´Ï´Ù. ½½¶óÀ̵å ÆÄÀÏÀº Àμâ¼Ò¿¡ º¸³»¼ Çʸ§À¸·Î Ãâ·ÂÇÒ °ÍÀÌ ¾Æ´Ï¹Ç·Î psfrag µîÀÇ ±â±³¸¦ ¾²Áö ¾Ê¾Ò´Ù¸é ps ÆÄÀÏÀ» ¸¸µéÁö ¸»°í ¹Ù·Î PDFTeXify ´ÜÃß[2]¸¦ ´·¯ pdf ÆÄÀÏÀ» ¸¸µå´Â °ÍÀÌ ½Ã°£µµ Àý¾àÇÏ°í ¸Þ¸ð¸®µµ Àû°Ô ¾¹´Ï´Ù. ¸¸¾à psfrag µîÀ» ½è´Ù¸é TeXify, dvi->ps, ps->pdfÀÇ °úÁ¤À» °ÅÃÄ¾ß pdf¸¦ ¸¸µé ¼ö ÀÖ½À´Ï´Ù.
ÀÌ¹Ì ÀÔ·ÂÇÏ¿© ³õÀº TeX, doc, hwp ÆÄÀÏ¿¡¼ ÇÊ¿äÇÑ °÷À» º¹»çÇÏ¿© slides Ŭ·¡½º¸¦ ¾´ TeX ÆÄÀÏ(main ¶Ç´Â input ÆÄÀÏ)¿¡ ºÙ¿© ³Ö°í Áß°£ Áß°£ Àû´çÇÑ °÷¿¡
\end{slide} \begin{slide}{}¸¸ ³ÖÀ¸¸é ÀúÀý·Î ÆäÀÌÁö°¡ ³ª´µ¸é¼ ½½¶óÀ̵尡 ¸¸µé¾îÁý´Ï´Ù.
----
- [1] slides Ŭ·¡½º¿Í HLaTeX 1.0.1 ¼Ó¿¡ µé¾î ÀÖ´Â hangul.sty ´Â Ãæµ¹(See 19289, 3529)ÀÌ ÀÖ½À´Ï´Ù. Àº±¤Èñ ´ÔÀÌ 14418¿¡ ÷ºÎÇÑ hangul.sty ¸¦ ¾²¸é µË´Ï´Ù.
- [2] ÆíÁýÇÏ´Â µµÁß¿¡´Â PDFTeXify°¡ º°·Î ÁÁÁö ¾Ê½À´Ï´Ù. Ãâ·Â¹°ÀÌ ¸¶À½¿¡ µéÁö ¾ÊÀ» ¶§ ¼Ò½º¸¦ ã±â(Inverse Search)°¡ ¾ÈµË´Ï´Ù. TeXify ¶Ç´Â LaTeX¸¦ ÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.
[ÆíÁý]
2 ÆíÁý ¿ä·É ¶
WinEdt¿¡ »É°ú »ùÇÃÀÌ ÀÖÀ¸¹Ç·Î °Å±â¿¡ ¸ÂÃß¾î ¸»¾¸µå¸®°Ú½À´Ï´Ù.
À§ÀÇ ±×¸²¿¡¼ Èò È»ìÇ¥°¡ °¡¸®Å°´Â ´ÜÃß(New Document...(Shift+Ctrl+N))¸¦ Ŭ¸¯Çϸé New Document¶ó´Â ´ëÈ»óÀÚ°¡ ¶ß´Âµ¥ ¿©±â¼ LaTeX: Slides MainÀ» ´õºíŬ¸¯Çϸé À§ÀÇ ±×¸²°ú °°Àº »É(Template)ÀÌ ¶å´Ï´Ù. Input ¿ëÀ¸·Î ¾µ ÆÄÀÏÀÌ ÇÊ¿äÇϸé LaTeX: Slides¸¦ ¼±ÅÃÇÏ¸é µË´Ï´Ù.
½ÇÇè1: WinEdt âÀÇ ¸Þ´º(Menu Bar)¿¡ º¸¸é Document°¡ ÀÖÁö¿ä. ÀÌ°ÍÀ» Ŭ¸¯ÇÏ¸é ¸Þ´ºÆÇÀÌ ¶ß°í ¸Ç ¾Æ·¡¿¡ Current Works (Samples)°¡ ÀÖ½À´Ï´Ù. Ä¿¼¸¦ °¡Á®°¡¸é ¶Ç º¸Á¶ ¸Þ´ºÆÇÀÌ ¶ßÁö¿ä. °Å±â¿¡ Talks (Slides)°¡ ÀÖÁö¿ä. ÀÌ°ÍÀ» Ŭ¸¯ÇÏ¿© º¸¼¼¿ä.
Talk-Main.texÀ̶ó´Â ÆÄÀÏÀÌ ¿¸®´Âµ¥ °ÅÀÇ ³¡¿¡ °¡¸é Talk-Slides.texÀ» \inputÀ¸·Î ºÒ·¯ ¿Àµµ·Ï ÀԷµǾî ÀÖ½À´Ï´Ù.
Talk-Main.tex¸¦ "PDF Texify"ÇÏ¿© º¸¼¼¿ä. ½½¶óÀ̵尡 AdobeReader¿¡¼ ¿¸³´Ï´Ù.
dvi ÆÄÀÏÀÌ ÇÊ¿äÇÏÁö ¾ÊÀ» ¶§´Â "Texify"(Ȳ±Ý »çÀÚ ¸Ó¸®) ´ÜÃß ´ë½Å "PDF Texify"(Ȳ±Ý »çÀÚ ¸Ó¸®¿¡ Acrobat ¹åÁÙÀ» µÎ¸¥) ´ÜÃ߸¦ ´©¸£¸é ÈξÀ »¡¸® ÄÄÆÄÀϵ˴ϴÙ.
½ÇÇè2: ´Ù½Ã WinEdt â¿¡¼ "ÆÄÀÏ ¿±â" ´ÜÃß(Tool BarÀÇ À Çà µÑ Â° ¾ÆÀÌÄÜ)¸¦ Ŭ¸¯Çϸé Paper Æú´õÀÇ ÆÄÀϵéÀÌ ³ªÅ¸³³´Ï´Ù.
"³» ¹®¼" µî Àû´çÇÑ °÷¿¡ Slides Æú´õ¸¦ ¸¸µé°í, Talk-Main.tex°ú Talk-Slides.tex ÆÄÀÏÀ» º¹»çÇÏ¿© Slides Æú´õ¿¡ ³Ö°í ¿©±â¼ Talk-Main.tex¸¦ Ŭ¸¯ÇÏ¿© WinEdt â¿¡ ¿¾î ³õ°í ¿©·¯ °¡Áö ½ÇÇèÀ» ÇÏ¿© º¾½Ã´Ù.
ÇöÀç´Â °¢ ½½¶óÀ̵尡 ¼¼·Î(portrait)·Î µÇ¾î ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ» °¡·Î(landscape)·Î ¹Ù²ã º¾½Ã´Ù.
Beam Projector ȸéÀ» ÃÖ´ëÇÑÀ¸·Î È°¿ëÇϱâ À§ÇÏ¿© Talk-Main.tex¿¡¼
\documentclass[titlepage]{slides}·Î µÇ¾î ÀÖ´Â °ÍÀ»
\documentclass[landscape,titlepage]{slides}·Î °íÄ¡°í, Preamble¿¡
\usepackage[%body={260mm,190mm} ÀÌ ºÎºÐÀº µèÁö ¾Ê³×¿ä. top=5mm,left=25mm,right=15mm,foot=5mm,nohead]{geometry}¸¦ ³Ö½À´Ï´Ù. (ÀÌ·¡¾ß¸¸ ½½¶óÀ̵å(PDF)°¡ À߸®Áö ¾Ê³×¿ä. DVI, PS¿¡¼´Â Á¶±Ý À߸³´Ï´Ù.) ÀÌÁ¦ PDF TeXify ´ÜÃ߸¦ ´©¸£¸é ¹Ù·Î PDF·Î µÈ ½½¶óÀ̵尡 AdobeReader â¿¡¼ ¶å´Ï´Ù.
¿©±â ÀÖ´ø "½½¶óÀÌµå ¼î" ºÎºÐÀ» ½½¶óÀ̵常µé±âÀÇ Ç׸ñ "TIP : AdobeReader¸¦ ÀÌ¿ëÇÑ ½½¶óÀÌµå ¼î"·Î ¿Å±é´Ï´Ù.
[ÆíÁý]
2.1 »ö±ò ³Ö±â ¶
±ÛÀÚ¿¡ »ö±òÀ» ³ÖÀ¸·Á¸é Preamble¿¡
\usepackage[usenames]{color}¸¦ ³Ö½À´Ï´Ù(488ÂüÁ¶). ¹ÙÅÁ¿¡ »ö±òÀ» ³ÖÀ¸·Á¸é
\pagecolor[rgb]{0.85,1.0,0.85}%¼ýÀÚ´Â 0°ú1»çÀÌÀÇ ¼ýÀÚ¸¦ ³Ö´Âµ¥ 1¿¡ °¡±î¿ï¼ö·Ï ¹à¾ÆÁý´Ï´Ù.°ú °°ÀÌ ÀÔ·ÂÇÏ¸é ´ÙÀ½ ÀÔ·Â ¶§±îÁö ¸ðµÎ °°Àº ¹ÙÅÁ»ö(ÇöÀç´Â ÃÊ·Ï)ÀÌ µË´Ï´Ù. ¹ÙÅÁ»öÀº Dvi¿¡¼´Â ³ªÅ¸³ªÁö ¾Ê½À´Ï´Ù. PS³ª PDF¿¡¼ ³ªÅ¸³³´Ï´Ù. ±Û»óÀÚ(box) ¼Ó¿¡ ±ÛÀÚ¿Í ¹ÙÅÁ »ö±òÀ» ³Ö´Â ¹æ¹ýÀº 4991À» Âü°íÇϽʽÿä.
[ÆíÁý]
2.2 ¸Ó¸®±Û/¹Ù´Ú±Û ³Ö±â ¶
°¢ ½½¶óÀ̵忡 ¸Ó¸®±Û/¹Ù´Ú±ÛÀ» ³Ö°í ½ÍÀ¸¸é Preamble¿¡
\usepackage{fancyhdr} \renewcommand{\headrulewidth}{0.5pt}%¼±ÀÇ ±½±â \renewcommand{\footrulewidth}{1pt}¸¦ ³Ö½À´Ï´Ù. ±×¸®°í ½½¶óÀÌµå ¸¶´Ù
\thispagestyle{fancy}%{}¼Ó¿¡ empty¸¦ ³ÖÀ¸¸é ¸Ó¸®±Û/¹Ù´Ú±ÛÀÌ ¾ø¾îÁý´Ï´Ù. \lhead{\tiny\bf ´ÏµéÀÌ \textcolor{Red}{\TeX}¸¦ ¾Ë¾î?}% \chead{} \rhead{\tiny \textcolor{Plum}{2004. 8. 13.}} \lfoot{\textcolor{Green}{³» À̸§}} \cfoot{} \rfoot{\tiny\bf \theslide}%ÂÊ ¹øÈ£´Â \theslideÀÔ´Ï´Ù.¿Í °°ÀÌ ÀÔ·ÂÇÏ¸é µË´Ï´Ù.
[ÆíÁý]
2.3 dvi2ps ½ÇÇà½Ã ÁÖÀÇ ¶
WinEdt¿¡¼ ½½¶óÀ̵å(beamer, seminar, slides µî)¸¦ ¸¸µé ¶§´Â TeXify, dvi->ps, ps->pdfÀÇ °úÁ¤À» °ÅÄ¡´Â °ÍÀÌ ÆíÇÕ´Ï´Ù. Letter ¿ëÁö¸¦ °¡·Î(Landscape)·Î ÇÏ¿´À» ¶§ °¡·Î:¼¼·ÎÀÇ ºñ°¡ ¾à 1.3:1·Î PDF·Î "ÇÁ¸®Á¨Å×À̼Ç"ÇÒ ¶§ °üÁßÀÌ ºÎ´ã¾øÀÌ ÃÄ´Ùº¼ ¼ö ÀÖ´Â ºñÀ²ÀÔ´Ï´Ù. ÀÌ ºñÀ²ÀÇ ¼³Á¤Àº dvi->ps ½ÇÇà ¶§ °¡Àå ½±°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶Ç psfragÀ» ¾´ °æ¿ì´Â dvi->ps, ps->pdfÀÇ °úÁ¤À» °ÅÃÄ¾ß Á¦´ë·Î µÈ pdf°¡ ¸¸µé¾î Áý´Ï´Ù.
WinEdt ¸Þ´º¿¡¼
Options -> Execution Modes...¸¦ Ŭ¸¯ÇÏ¿© "Execution Modes - MiKTeX" ´ëÈ»óÀÚ(¾Æ·¡ ±×¸² ÂüÁ¶)°¡ ¶ß¸é ù° ¿(Accessories)¿¡¼ dvi2ps¸¦ ¼±ÅÃÇÏ°í, µÑ°¿(Process Flow)ÀÇ ¸ÇÀ§¿¡ ÀÖ´Â
¡à Enter Extra Switches on Spot¸¦ üũÇصθé WinEdt â¿¡¼ dvi2ps ´ÜÃ߸¦ ´©¸¦ ¶§¸¶´Ù ¾Æ·¡ ±×¸²°ú °°Àº ´ëÈ»óÀÚ(dvi2ps Command Line Switches: ´ÙÀ½ ´ÙÀ½ ±×¸² ÂüÁ¶)°¡ ¿¸³´Ï´Ù. ¿©±â¼ Paper Size and Orientation·Î Letter¿Í Landscape·Î ¼±ÅÃÇÏ°í(¿øÇÏ´Â Âʸ¸À» ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.) OK ´ÜÃ߸¦ ´©¸£¸é dvi2ps°¡ ½ÇÇàÀÌ µË´Ï´Ù. ±×·±ÈÄ ps2pdf¸¦ ½ÇÇàÇϽʽÿä.
[ÆíÁý]
2.4 dvi2pdf ½ÇÇà½Ã ÁÖÀÇ ¶
WinEdt 5.4¿¡¼´Â dvi->pdf ´ÜÃ߸¦ ´©¸£±â Àü¿¡ ¸Þ´ºÀÇ
Options -> Execution Modes...¸¦ Ŭ¸¯ÇÏ¿© "Execution Modes - MiKTeX" ´ëÈ»óÀÚ(¾Æ·¡ ±×¸² ÂüÁ¶)°¡ ¶ß¸é "Accesories"¿¡¼ dvi2pdf¸¦ Ŭ¸¯ÇÏ°í ¾Æ·¡ÀÇ ±×¸²Ã³·³ ¿ÞÂÊ ¾Æ·¡ÆíÀÇ Browse for executable...À» ´·¯¼ dvipdfmx.exeÀÇ À§Ä¡¸¦ ã¾Æ ¼³Á¤Çϸé ÇѱÛÀÌ µé¾î°£ ÆÄÀϵµ º° ¹®Á¦ ¾øÀÌ pdf°¡ ¸¸µé¾î Áý´Ï´Ù. ´ÙÀ½Àº "Paper Size and Orientation"¿¡¼ ÇÊ¿äÇÑ »çÇ×À» ¼±ÅÃÇÕ´Ï´Ù. ±×¸²¿¡¼´Â Paper Size·Î Letter, OrientationÀ¸·Î Landscape·Î ÅÃÇÏ¿´´Âµ¥ PDF·Î "ÇÁ¸®Á¨Å×À̼Ç"ÇÒ ¶§ ½ºÅ©¸° ¶Ç´Â ¸ð´ÏÅÍ È¸éÀ» ÃÖ´ëÇÑÀ¸·Î Çϱâ À§Çؼ ÀÔ´Ï´Ù. A4´Â 1.41:1, Letter´Â 1.3:1
[ÆíÁý]
4 ±×¹Û¿¡ ¶
"ÇÁ¸®ÀüÅ×À̼Ç" ¿ë ½½¶óÀ̵å Áß¿¡¼ °¡Àå ¸¸µé±â ½±°í °£´ÜÇÑ °ÍÀÌ slides Ŭ·¡½º°¡ ¾Æ´Ñ°¡ »ý°¢ÇÕ´Ï´Ù. Á¦°¡ ±× µ¿¾È ¿©·¯ °÷¿¡¼ "ÇÁ¸®ÀüÅ×À̼Ç"À» ÇÏ¿´´Âµ¥ ±× ¶§¸¶´Ù ¼Ò½º ÆÄÀÏÀ» ´Þ¶ó´Â ºÐÀÌ ¸î ºÐ¾¿ °è¼Ì½À´Ï´Ù. ±×·¡¼ Á¦°¡ ¸¸µç Á¹ÀÛÀ» ¼Ò½º ÆÄÀϵé°ú ÇÔ²² ¾ÐÃàÇÏ¿©
slides.zipÀ» ¸¸µé¾ú½À´Ï´Ù. HLaTeX 1.0.1 ¼Ó¿¡ µé¾î ÀÖ´Â hangul.sty ´Â Ãæµ¹(See 19289, 3529)ÀÌ Àֱ⠶§¹®¿¡ 3579¿¡ ÷ºÎµÈ °ÍÀ¸·Î ¹Ù²ã¾ß ÇÕ´Ï´Ù.--Yhchoe