KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Love is in the offing. Be affectionate to one who adores you.
FrontPage › JadeTeX
DocBook ¹®¼­¸¦ º¯È¯ÇÑ .tex ÆÄÀÏÀ» ó¸®ÇÏ´Â TeX

¸ñÂ÷

1 DocBook SGML º¯È¯
1.1 °³¿ä
1.2 JadeTeX°ú EUC-KR ÇѱÛ
1.3 CygWin¿¡¼­ ÇÑ±Û SGML ÆÄÀÏÀÇ TeX º¯È¯
2 JadeTeXÀ» ÀÌ¿ëÇÑ ¸Å´º¾ó PDF Ãâ·Â
3 DocBook
4 Áú¹®

1 DocBook SGML º¯È¯

1.1 °³¿ä

MiKTeX-KTUG°¡ ¼³Ä¡µÈ ÀÌÈÄÀÇ °úÁ¤¿¡ ´ëÇØ ¼³¸íÇÏ°Ú½À´Ï´Ù.

  1. [http]DownLoadÇÕ´Ï´Ù.
  2. [http]ÆäÀÌÁöÀÇ ³»¿ë´ë·Î µû¶óÇÕ´Ï´Ù.

³Ê¹« °£´ÜÇÑ°¡¿ä? ÀÌ·¸°Ô ÇÏ´Ï DocBookÀÇ ¹®¼­¸¦ PostScript³ª PDF·Î Ãâ·ÂÇÒ ¼ö ÀÖ¾ú½À´Ï´Ù.

1.2 JadeTeX°ú EUC-KR ÇѱÛ

´ÙÀ½ ±Û¿¡ ÀÇÇϸé hcharacters.sty¸¦ ÀÌ¿ëÇÏ¿© ÇѱÛÀ» Ç¥ÇöÇÒ ¼ö ÀÖ´Ù°í ÇÑ´Ù. cf. http://docbook.kldp.net/stuff/using-docbook/pstransform.html Uploads:hcharacters.zip

[http]SP_ENCODINGÀÇ È¯°æÀ» euc-kr·Î ÇÑ °æ¿ì¿¡´Â hcharacters.sty°¡ ÇÊ¿äÇÏ´Ù. ÇÑ±Û rtf¿Í htmlÀ» ¸¸µé±â À§Çؼ­´Â export SP_ENCODING=euc-krÀ» ¼³Á¤ÇØ¾ß ÇÑ´Ù.

´ÜÁö tex·Î º¯È¯ ÈÄ PDF¸¸ ¸¸µé °æ¿ì SP_ENCODINGÀ» exportÇÏÁö ¾Ê°í OpenJade/openSP 1.3.1(4)¸¦ »ç¿ëÇϸé ÇѱÛÀÌ clean 8-bit·Î µé¾î°¡¹Ç·Î hcharacters.sty°¡ ÇÊ¿äÇÏÁö ¾Ê´Ù.

1.3 CygWin¿¡¼­ ÇÑ±Û SGML ÆÄÀÏÀÇ TeX º¯È¯

1. CygWin »ó¿¡¼­ OpenJade/OpenSP¸¦ ¼³Ä¡ÇÑ´Ù. 2. ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÑ´Ù.
  • /etc/profile¿¡¼­ ´ÙÀ½ÀÌ ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.
for i in /etc/profile.d/*.sh ; do
  if [ -f $i ]; then
    . $i
  fi
done
  • '/etc/profile.d'·Î °¡¼­ sgml-base.sh¸¦ È®ÀÎÇÑ´Ù.
export SGML_CATALOG_FILES="/etc/sgml/catalog"
  • '/etc/postinstall' ÀÇ sgml-base.sh, openjade.sh, docbook-sgml.sh, docbook-dsssl.sh¸¦ ½ÇÇàÇÑ´Ù.
  • cygwinÀ» Àç½ÇÇàÈÄ ´ÙÀ½°ú °°ÀÌ Ãâ·ÂµÇ´ÂÁö È®ÀÎÇÑ´Ù.
$ env | grep SGML
SGML_CATALOG_FILES=/etc/sgml/catalog

  • <!> RTF, HTML º¯È¯À» À§Çؼ­ SP_ENCODING ȯ°æÀ» ¼³Á¤ÇÑ´Ù. ÀÌ ¼³Á¤À» ÇØÁÖ¸é ÇÑ±Û Ã³¸®¸¦ À§ÇÑ hcharacters.sty°¡ ÇÊ¿äÇÏ´Ù. /etc/profile¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
SP_ENCODING=euc-kr;export SP_ENCODING

3. test.sgmlÀ» ¸¸µç´Ù.
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
   <article lang="ko">
     <articleinfo>
       <title>¾Æ¸§´Ù¿î ±Û¾²±â</title>
       <author>
         <surname>È«</surname>
         <firstname>±æµ¿</firstname>
         <affiliation>
           <orgname>KTUG</orgname>
           <orgdiv>Documentation Project Team</orgdiv>
           <address>
             <email>gildong@honggildong.net</email>
           </address>
         </affiliation>
       </author>
     </articleinfo>

     <abstract>
       <para>
         ±Û¾²±â ȯ°æ¿¡ Çõ¸íÀû º¯È­°¡ ¿¹»óµÇ´Â ½ÃÁ¡ÀÌ´Ù. DocBookÀÇ µîÀåÀ¸·Î
         Mark-up ±Û¾²±â°¡ º¸ÆíÈ­µÇ¾ú´Ù.
       </para>
     </abstract>

     <section>
       <title>¿öµå ÇÁ·Î¼¼¼­ÀÇ ¹®Á¦Á¡</title>
       <para>
         ¿öµå ÇÁ·Î¼¼¼­´Â ÄÄÇ»Å͸¦ Ä£¼÷ÇÏ°Ô ¸¸µé¾îÁÖ´Â Áß¿äÇÑ(ų·¯) ÇÁ·Î±×·¥ÀÓ¿¡
         Ʋ¸²¾ø´Ù. ±×·¯³ª Á÷°ü¿¡ È£¼ÒÇÏ´Â À§ÁöÀ§±×¹æ½ÄÀ̶õ °á±¹ »ç¿ëÀÚ¸¦ °ÔÀ¸¸£°Ô
         ¸¸µé°í ÀÚ½ÅÀÌ ¹®¼­¸¦ ÅëÁ¦ÇÑ´Ù´Â ´À³¦À» °¡Áú ¼ö°¡ ¾ø´Â °ÍÀÌ´Ù.
       </para>
       <para>
         ±×·¡¼­ ÀÏÂïºÎÅÍ ÄÄÇ»Å͸¦ ÀÍÈ÷´Â ±× ¼ø°£ºÎÅÍ, ¸¶Å©¾÷ ±Û¾²±â¿¡ Àͼ÷ÇØÁú
         ÇÊ¿ä°¡ ÀÖ´Ù. ÇöÀç ¸¶Å©¾÷ ±Û¾²±â ¹æ¹ýÀ¸·Î´Â hardcore-TeX Á¢±Ù¹ý°ú
         DocBookÀ» ÀÌ¿ëÇÏ´Â ¹æ¹ýÀÌ ÀÖ´Ù.
       </para>
     </section>

     <section>
       <title>DocBookÀÇ ÁÁÀº Á¡</title>
       <para>
         ÇϵåÄÚ¾î ÅØ Á¢±Ù¹ýÀº ´Ù¸¥ ÈǸ¢ÇÑ ÀåÁ¡¿¡µµ ºÒ±¸ÇÏ°í À¯¿¬¼ºÀÇ ¹®Á¦°¡
         ¾øÁö ¾Ê´Ù. TeXÀ» Ãâ·Â back-end·Î ¾²¸é¼­ ´Ù¾çÇÑ ¹®¼­ Æ÷¸ËÀ¸·Î Ãâ·ÂÇÒ
         ¼ö ÀÖ°Ô ÇÏ´Â DocBook Á¢±Ù¹ýÀº ¹«¾ùº¸´Ù À¯¿¬¼ºÀÇ ¸é¿¡¼­ TeXÀ» ´É°¡ÇÑ´Ù.
       </para>
       <para>
        ±×·³¿¡µµ ºÒ±¸ÇÏ°í, TeXÀº ¿©ÀüÈ÷ »ì¾Æ³²À» °ÍÀÌ´Ù. TeXÀÇ °­Á¡À»
        »ì¸®¸é¼­ DocBook°ú ¿¬°áÇÏ´Â ¹æ¹ýÀ» »ý°¢Çغ¸ÀÚ.
       </para>
     </section>
  </article>

4. OpenJade·Î tex º¯È¯
#> onsgmls -s test.sgml
ÀÌ °á°ú°¡ ¾Æ¹«°Íµµ ³ª¿ÀÁö ¾ÊÀ¸¸é ´ÙÀ½À¸·Î ÁøÇàÇÑ´Ù.
#> openjade -t tex -d /usr/share/sgml/docbook-dsssl/print/docbook.dsl test.sgml
¿©±â¼­ test.texÀÌ »ý°Ü³ª ÀÖÀ» °ÍÀÌ´Ù.
#> cat > testout.tex
\RequirePackage{hfont}
[Ctrl-D]
#> cat test.tex >> testout.tex
<!> ¸¸¾à SP_ENCODING ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÑ »óŶó¸é
#> cat > testout.tex
\RequirePackage{hfont}
\usepackage{hcharacters}
[Ctrl-D]
#> cat test.tex >> testout.tex


testout.tex¿¡ JadeTeXÀ» ½ÇÇàÇÑ´Ù.
#> jadetex testout
#> dvipdfmx testout
ÀÌÁ¦ Ãâ·Â¹°ÀÎ testout.pdf¸¦ º¼ ¼ö ÀÖ´Ù.


À§¿¡ ¿¹½ÃµÈ ¹æ¹ýÀº, ¸¸µé¾îÁø test.tex ÆÄÀÏÀ» ¿­°í ¸Ç óÀ½¿¡ ´ÙÀ½ ÇÑ ÁÙÀ» Ãß°¡ÇÏ´Â °ÍÀÌ´Ù.
\RequirePackage{hfont}
¶Ç´Â
\RequirePackage{hfont}
\usepackage{hcharacters}

±×·± ´ÙÀ½ JadeTeXÀ» ½ÇÇàÇÏ¸é ¿øÇÏ´Â °á°ú¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
<!> HLaTeXÀ» ÀÌ¿ëÇÏ¿© ÇѱÛÀ» Ç¥ÇöÇÒ ¼ö ÀÖÁö¸¸, ÇöÀç´Â EUC-KR ¹®ÀÚ¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Ù.

2 JadeTeXÀ» ÀÌ¿ëÇÑ ¸Å´º¾ó PDF Ãâ·Â


¹®Á¦»óȲ : http://d-i.alioth.debian.org/manual/ ¿¡ ÀÖ´Â ÇѱÛÈ­µÈ ¼³Ä¡ ¸Å´º¾óÀ» PDF·Î º¯È¯ÇÏ´Â °Í.

WkPark ´ÔÀÇ Hangul-ucs¸¦ ÀÌ¿ëÇÑ ÇØ°áÃ¥:
¿ä¾àÇϸé, ¼³Ä¡ÇÒ °Í
  • TeX°ü·Ã: ttf2pk, unttf, dhucs, po2xml(kdesdk¿¡ Æ÷ÇÔµÈ ³ð »ç¿ë)
  • docbook°ü·Ã
  • d-i/manual ´Ù¿î¹ÞÀ½

¾Æ·¡´Â Å×½ºÆ® °úÁ¤À̹ǷÎ, build.sh,buildone.sh ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÏ´Â °Í ´ë½Å¿¡ ´ÙÀ½°ú °°ÀÌ ÇÏ´Â °ÍÀÓ

ko/*.xml ¸¸µê
  • cd debian-installer/manual/build
  • mkdir -p build.po/ko
  • cp ../po/*.po build.po/ko/
  • export PO_USEBUILD="1"
  • (cd ..;sh scripts/create_xml ko) ??
  • ls ../ko/ (ÇÑ±Û xmlÀÌ ¾ò¾îÁ³´ÂÁö È®ÀÎ)

build.tmp/install.ko.profiled.xml ¸¸µé±â
  • buildone.sh¸¦ ÆíÁýÇؼ­ ¸¶Áö¸· ºÎºÐ¿¡ build.tmp µð·ºÅ丮 Áö¿ì´Â ºÎºÐÀ» ÁÖ¼®Ã³¸®ÇصÒ
  • buildone.sh i386 ko html: xmlÆÄÀÏ°ú, ÀÌ°Ô Á¦´ë·Î ¸¸µé¾îÁú °æ¿ì htmlµµ Àß ¸¸µé¾îÁö°í ±×°ÍÀ» »ìÆ캸¸é ÇѱÛÀÌ ¸Â´ÂÁö ¾Ë ¼ö ÀÖ´Ù.

pdf ¸¸µê
  • buildone_ng.sh´Â ProfiledXML ºÎºÐÀÌ ½ÇÇà¾ÈµÇ°í ¿¡·¯¸¦ ³»¼­
    (ÀÌ ¹®Á¦¸¦ ã±â ±ÍÂú¾Æ¼­), À§ÀÇ Âª°Ô ÁÙÀÎ ½ºÅ©¸³Æ®·Î Å×½ºÆ®ÇÔ. (À§ÀÇ ÂªÀº ½ºÅ©¸³À» mybuild.sh·Î ÇÔ
  • sh mybuild.shÇϸé install.ko.new.texÀÌ ¾ò¾îÁü
  • latex install.ko.new.tex ½ÇÇàÇÏ¸é °÷¹Ù·Î pdf°¡ ¾ò¾îÁü (pdftexÀÌ ½ÇÇàµÈ µí)
  • dvipdfmx¸¦ ÀÌ¿ëÇϸé ÅؽºÆ® °Ë»ö ÃßÃâÀÌ °¡´ÉÇÑ PDF¸¦ ¾òÀ» ¼ö ÀÖÀ½

÷ºÎÆÄÀÏ : @driver.ko.xsl.zip (538 Bytes)

DohyunKim ´ÔÀÇ ÇØ°áÃ¥:
½ÃµµÇغ¸¾Ò½À´Ï´Ù. ÀÌ¹Ì µ¥ºñ¾È¿¡ ¼³Ä¡µÅÀÖ´Â uhcÆùÆ®¸¦ ÀÌ¿ëÇϱâ·Î Çß½À´Ï´Ù.

ÇÏÁö¸¸ ÇöÀçÀÇ µ¥ºñ¾È ÆÐÅ°Áö¸¸ °¡Áö°í ÇØ°áÇÏ´Â ¹ýÀ» ãÁö´Â ¸øÇß°í ´ÙÀ½À» texmf ¾Æ·¡ µð·ºÅ丮 ±¸Á¶¿¡ ¸Â°Ô ¼³Ä¡ÇØ¾ß ÇÕ´Ï´Ù. (ÀÌ°Å ¾øÀÌ °¡´ÉÇÑ ¹æ¹ýÀ» ãÀ¸¸é ÁÁ°Ú´Âµ¥ xml, docbook¿¡ ´ëÇØ ¹«ÁöÇÑ Àú·Î¼­´Â ¸ð¸£°Ú´õ±º¿ä. openjade°¡ euc-krÄڵ带 Ãâ·ÂÇØ ÁÖ¸é ÁÁÀºµ¥...)


cvs·Î ¹ÞÀ¸·Á¸é

cvs -d :pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot login cvs -d :pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot co hangul-ucs/fonts-uhc-unicode

ÀûÀýÇÑ texmf¾Æ·¡ ¼³Ä¡ÇÏ°í mktexlsr ¸í·ÉÀ» ½ÇÇàÇصӴϴÙ.

÷ºÎÆÄÀÏÀ» ¹Þ¾Æ¼­ ±× ³»¿ëÀ» buildone.sh i386 ko ps ¸í·ÉÀ¸·Î »ý¼ºµÇ´Â install.ko.tex(ÀÌ°Å ¾È Áö¿öÁö°Ô buildone.sh¿¡ °ü·Ã ºÎºÐÀ» ¹Ì¸® ÁÖ¼®Ã³¸®ÇØ µÎ¾î¾ß ÇÕ´Ï´Ù)ÀÇ ½ÃÀۺκп¡ º¹»çÇØ ³Ö½À´Ï´Ù. @ucshanjadetex.tex (2.61 KB)

±×·¯¸é

jadetex install.ko.tex; dvips install.ko.dvi; ps2pdf install.ko.ps

¸í·ÉÀ¸·Î ps¿Í pdf¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù.

¹®Á¦´Â font-uhc-unicode¸¦ ¼³Ä¡ÇØ¾ß ÇÑ´Ù´Â Á¡, ÷ºÎÆÄÀÏ ³»¿ëÀ» ÀÚµ¿À¸·Î texÆÄÀÏ ¾Õ¿¡ ³¢¿ö ³Ö´Â ¹æ¹ýÀ» Á¦°¡ ¸ð¸¥´Ù´Â Á¡ Á¤µµÀÔ´Ï´Ù.
ÆÄÀÏ ÇÕÄ¡±â(drssay):
cat attach.tex install.ko.tex > install.ko.new.tex
JadeTeX EUC-KR Ãâ·Â(cwryu):
°£´ÜÈ÷ openjadeÀÇ -b utf-8 ¿É¼ÇÀ» -b euc-kr·Î ¹Ù²ãÁÖ¸é µË´Ï´Ù.
ÇÑ±Û °Ë»ö¡¤ºÏ¸¶Å© °¡´ÉÇÑ ¹æ¹ýÀ» Å×½ºÆ®ÇØ º¸¾Ò½À´Ï´Ù. @ucshanjadetex-test_20060829.tar.gz (202.31 KB)

3 DocBook

DocBook¿¡ °ü½ÉÀÖÀ¸½Å ºÐÀº [http]DocumentationÆäÀÌÁöÀÇ [http]TutorialsÀÇ ¹®¼­¸¦ Àо½Ã±â ¹Ù¶ø´Ï´Ù.

4 Áú¹®

JadeTeX´Â ÁÖ·Î XMLÀ̳ª SGML °°Àº °ÍÀ» ¸¸µé¾îÁÖ´Â °ÍÀΰ¡¿ä? Åë»ç(syntax)´Â LaTeX°ú µ¿ÀÏÇÑ°¡¿ä? --hoze
XMLÀ̳ª SGMLÀ» ¸¸µé¾îÁÖ´Â °ÍÀÌ ¾Æ´Ï¶ó SGML·Î ÀÛ¼ºµÈ ¹®¼­¸¦ ÀμâÇϱâ À§Çؼ­ TeX ¿£ÁøÀ» Àμâ±â·Î »ç¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. Áï, SGMLÀ» texÀ¸·Î Ãâ·ÂÇÏ°í, ±×·¸°Ô Çؼ­ ¾ò¾îÁø TeX ÆÄÀÏÀ» ÄÄÆÄÀÏÇØÁÖ´Â µµ±¸¶ó°í º¸¾Æ¾ß°ÚÁö¿ä. ´ç¿¬È÷ LaTeX°ú´Â º° »ó°ü ¾ø½À´Ï´Ù. --Karnes
[http]XML_SGML_PUB
Àüü Processing¿¡ ´ëÇÑ ³»¿ëÀÔ´Ï´Ù. [http]DocBook Çѱ¹ ÇÁ·ÎÁ§Æ®ÆäÀÌÁö¸¦ º¸½Ã¸é ±Ý¹æ ÀÌÇØ°¡ µÇ½Ç°Ì´Ï´Ù. --hermian



^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-08-29 11:46:57
Processing time 0.0657 sec