KTUGFaq
KTUG FAQ
You are farsighted, a good planner, an ardent lover, and a faithful friend.
FrontPage › JadeTeX
[ÆíÁý]
1.1 °³¿ä ¶
MiKTeX-KTUG°¡ ¼³Ä¡µÈ ÀÌÈÄÀÇ °úÁ¤¿¡ ´ëÇØ ¼³¸íÇÏ°Ú½À´Ï´Ù.
[ÆíÁý]
1.2 JadeTeX°ú EUC-KR ÇÑ±Û ¶
´ÙÀ½ ±Û¿¡ ÀÇÇϸé hcharacters.sty¸¦ ÀÌ¿ëÇÏ¿© ÇѱÛÀ» Ç¥ÇöÇÒ ¼ö ÀÖ´Ù°í ÇÑ´Ù.
cf. http://docbook.kldp.net/stuff/using-docbook/pstransform.html
hcharacters.zip
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¸¦ ¼³Ä¡ÇÑ´Ù.
- http://anfaenger.de/cygwin/docbook/openjade/ ¿¡¼ OpenJade 1.3.1-1À» ´Ù¿î·Îµå¹Þ´Â´Ù.
- DocBook-dsssl 1.76À» ´Ù¿î·Îµå¹Þ´Â´Ù.
- SGML-Base¸¦ ´Ù¿î·Îµå¹Þ´Â´Ù.
- DocBook-SGMLÀ» ´Ù¿î·Îµå¹Þ´Â´Ù.
- ´Ù¿î·Îµå ¹ÞÀº ÆÄÀϵéÀ» /¿¡¼ Ǭ´Ù.
OpenJade ¹ÙÀ̳ʸ® ÆÄÀÏÀº /usr/bin/¿¡ ¼³Ä¡µÈ´Ù. µÇµµ·ÏÀ̸é ÀÌ ÆÄÀϵéÀ» /usr/local/binÀ¸·Î ¿Å±â´Â °ÍÀÌ ÁÁ´Ù.
- /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 ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÑ »óŶó¸é
testout.tex¿¡ JadeTeXÀ» ½ÇÇàÇÑ´Ù.
#> cat > testout.tex \RequirePackage{hfont} \usepackage{hcharacters} [Ctrl-D] #> cat test.tex >> testout.tex
#> jadetex testout #> dvipdfmx testoutÀÌÁ¦ Ãâ·Â¹°ÀÎ testout.pdf¸¦ º¼ ¼ö ÀÖ´Ù.
À§¿¡ ¿¹½ÃµÈ ¹æ¹ýÀº, ¸¸µé¾îÁø test.tex ÆÄÀÏÀ» ¿°í ¸Ç óÀ½¿¡ ´ÙÀ½ ÇÑ ÁÙÀ» Ãß°¡ÇÏ´Â °ÍÀÌ´Ù.
\RequirePackage{hfont}¶Ç´Â
\RequirePackage{hfont} \usepackage{hcharacters}
[ÆíÁý]
2 JadeTeXÀ» ÀÌ¿ëÇÑ ¸Å´º¾ó PDF Ãâ·Â ¶
¹®Á¦»óȲ : http://d-i.alioth.debian.org/manual/ ¿¡ ÀÖ´Â ÇѱÛÈµÈ ¼³Ä¡ ¸Å´º¾óÀ» PDF·Î º¯È¯ÇÏ´Â °Í.
WkPark ´ÔÀÇ Hangul-ucs¸¦ ÀÌ¿ëÇÑ ÇØ°áÃ¥:
¿ä¾àÇϸé,
¼³Ä¡ÇÒ °Í
ko/*.xml ¸¸µê
|
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)
[ÆíÁý]
4 Áú¹® ¶
JadeTeX´Â ÁÖ·Î XMLÀ̳ª SGML °°Àº °ÍÀ» ¸¸µé¾îÁÖ´Â °ÍÀΰ¡¿ä?
Åë»ç(syntax)´Â LaTeX°ú µ¿ÀÏÇÑ°¡¿ä? --hoze
XMLÀ̳ª SGMLÀ» ¸¸µé¾îÁÖ´Â °ÍÀÌ ¾Æ´Ï¶ó SGML·Î ÀÛ¼ºµÈ ¹®¼¸¦ ÀμâÇϱâ À§Çؼ TeX ¿£ÁøÀ» Àμâ±â·Î »ç¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. Áï, SGMLÀ» texÀ¸·Î Ãâ·ÂÇÏ°í, ±×·¸°Ô Çؼ ¾ò¾îÁø TeX ÆÄÀÏÀ» ÄÄÆÄÀÏÇØÁÖ´Â µµ±¸¶ó°í º¸¾Æ¾ß°ÚÁö¿ä. ´ç¿¬È÷ LaTeX°ú´Â º° »ó°ü ¾ø½À´Ï´Ù. --Karnes
XML_SGML_PUB
Àüü Processing¿¡ ´ëÇÑ ³»¿ëÀÔ´Ï´Ù. DocBook Çѱ¹ ÇÁ·ÎÁ§Æ®ÆäÀÌÁö¸¦ º¸½Ã¸é ±Ý¹æ ÀÌÇØ°¡ µÇ½Ç°Ì´Ï´Ù.
--hermian