KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
It is easier to run down a hill than up one.
FrontPage › LaTeX2Html

¼³Ä¡¹æ¹ý


2003³â ±è¼ºÈ£´Ô²²¼­ MikTeX¿¡ ¼³Ä¡ÇϽŠ°æÇèÀ» ¹ÙÅÁÀ¸·Î °Ô½ÃÆÇ¿¡ ¿Ã¸®½Å ±ÛÀ», 2009-02-27 19:40:35¿¡ ¿ø¹®À» ¼öÁ¤ÇÏ¿© ´Ù½Ã ¿Ã¸®½Å °ÍÀ¸·Î ÃßÁ¤ÇÑ´Ù. :)

hangul.perl

HLaTeXÀÇ hangul.sty¸¦ ÀÌ¿ëÇÒ ¶§ ÀÚµ¿À¸·Î È£ÃâµÇ´Â ¸ðµâÀÌ´Ù. latex2html/styles µð·ºÅ丮¿¡ hangul.perlÀ̶ó´Â À̸§À¸·Î ³Ö¾îµÎ¶ó.
# hangul.perl for hangul.sty
#
# Extension to LaTeX2HTML to translate HLaTeX special
# commands to equivalent HTML commands.

package korean;

print " [korean]";

sub main'korean_translation { @_[0] }

package main;

if (defined &addto_languages) { &addto_languages('korean') };

sub korean_titles {
  $toc_title = "¸ñÂ÷";
  $lof_title = "±×¸² ¸ñÂ÷";
  $lot_title = "Ç¥ ¸ñÂ÷";
  $idx_title = "ã¾Æº¸±â";
  $ref_title = "Âü°í ¹®Çå";
  $bib_title = "Àú¼­ ¸ñ·Ï";
  $abs_title = "¿ä¾à";
  $app_title = "ºÎ·Ï";
  $pre_title = "¼­¹®";
  $foot_title = "ÁÖ¼®";
  $thm_title = "Á¤¸®";
  $fig_name = "±×¸²";
  $tab_name = "Ç¥";
  $prf_name = "Áõ¸í";
  $date_name = "³¯Â¥";
  $page_name = "ÂÊ";
  #  Sectioning-level titles
  $part_name = "Æí";
  $chapter_name = "Àå";
  $section_name = "Àý";
  $subsection_name = "Ç×";
  $subsubsection_name = "¸ñ";
  $paragraph_name = "´Ü¶ô";
  #  Misc. strings
  $child_name = "µþ¸° Ç׸ñ";
  $info_title = "ÀÌ ¹®¼­¿¡ ´ëÇÏ¿© ...";
  $also_name = "µµ Âü°í";
  $see_name = "Âü°í";
  #  names in navigation panels
  $next_name = "´ÙÀ½";
  $up_name = "À§·Î";
  $prev_name = "ÀÌÀü";
  #  field names in email headers
  $encl_name = "µ¿ºÀ¹°";
  $headto_name = "¹Þ´ÂÀÌ";
  $cc_name = "»çº»";

  #  $GENERIC_WORDS = "and|the|of|for|by|a|an|to";
}

sub korean_today {
  local($today) = &get_date();
  $today =~ s|0?(\d+)/0?(\d+)/(\d+)|$3³â $1¿ù $2ÀÏ|;
  join('',$today,$_[0]);
}

# some tricks to support autojosa
sub pre_pre_process {
  s/\\˼/\\josaEUN/gom;
  s/\\´Â/\\josaNEUN/gom;
  s/\\ÀÌ/\\josaI/gom;
  s/\\°¡/\\josaGA/gom;
  s/\\À»/\\josaEUL/gom;
  s/\\¸¦/\\josaREUL/gom;
  s/\\¿Í/\\josaWA/gom;
  s/\\°ú/\\josaGWA/gom;
  s/\\·Î¼­/\\josaROSEO/gom;
  s/\\À¸·Î¼­/\\josaEUROSEO/gom;
  s/\\·Î½á/\\josaROSSEO/gom;
  s/\\À¸·Î½á/\\josaEUROSSEO/gom;
  s/\\·Î/\\josaRO/gom;
  s/\\À¸·Î/\\josaEURO/gom;
}
sub post_post_process {
  $jongRX = "0|3|6|m|n|M|N|ÂÊ";
  $rieulRX = "1|7|8|l|r|L|R";
  s/($jongRX|$rieulRX)(<[^>]+?>)(\]|\))?<_autojosa_EUN_>/$1$2$3˼/gom;
  s/($jongRX|$rieulRX)(<[^>]+?>)(\]|\))?<_autojosa_I_>/$1$2$3ÀÌ/gom;
  s/($jongRX|$rieulRX)(<[^>]+?>)(\]|\))?<_autojosa_WA_>/$1$2$3°ú/gom;
  s/($jongRX|$rieulRX)(<[^>]+?>)(\]|\))?<_autojosa_EUL_>/$1$2$3À»/gom;
  s/($jongRX)(<[^>]+?>)(\]|\))?<_autojosa_RO_>/$1$2$3À¸·Î/gom;
  s/<_autojosa_EUN_>/´Â/gom;
  s/<_autojosa_I_>/°¡/gom;
  s/<_autojosa_WA_>/¿Í/gom;
  s/<_autojosa_EUL_>/¸¦/gom;
  s/<_autojosa_RO_>/·Î/gom;
  s/\\josaEUN/\\˼/gom;
  s/\\josaNEUN/\\´Â/gom;
  s/\\josaI/\\ÀÌ/gom;
  s/\\josaGA/\\°¡/gom;
  s/\\josaEUL/\\À»/gom;
  s/\\josaREUL/\\¸¦/gom;
  s/\\josaWA/\\¿Í/gom;
  s/\\josaGWA/\\°ú/gom;
  s/\\josaROSEO/\\·Î¼­/gom;
  s/\\josaEUROSEO/\\À¸·Î¼­/gom;
  s/\\josaROSSEO/\\·Î½á/gom;
  s/\\josaEUROSSEO/\\À¸·Î½á/gom;
  s/\\josaRO/\\·Î/gom;
  s/\\josaEURO/\\À¸·Î/gom;
}
sub do_cmd_josaEUN { join '','<_autojosa_EUN_> ',$_[0]; }
sub do_cmd_josaNEUN { &do_cmd_josaEUN(@_); }
sub do_cmd_josaI { join '','<_autojosa_I_> ',$_[0]; }
sub do_cmd_josaGA { &do_cmd_josaI(@_); }
sub do_cmd_josaWA { join '','<_autojosa_WA_> ',$_[0]; }
sub do_cmd_josaGWA { &do_cmd_josaWA(@_); }
sub do_cmd_josaEUL { join '','<_autojosa_EUL_> ',$_[0]; }
sub do_cmd_josaREUL { &do_cmd_josaEUL(@_); }
sub do_cmd_josaRO { join '','<_autojosa_RO_> ',$_[0]; }
sub do_cmd_josaEURO { &do_cmd_josaRO(@_); }
sub do_cmd_josaROSEO { join '','<_autojosa_RO_>¼­ ',$_[0]; }
sub do_cmd_josaEUROSEO { &do_cmd_josaROSEO(@_); }
sub do_cmd_josaROSSEO { join '','<_autojosa_RO_>½á ',$_[0]; }
sub do_cmd_josaEUROSSEO { &do_cmd_josaROSSEO(@_); }

# other HLaTeX commands and declarations
sub do_cmd_HLaTeX { join('','ÇÑ<sub>±Û</sub>',$Laname,$TeXname,$_[0]); }

sub do_cmd_textmj { &do_cmd_textrm(@_); }
sub do_cmd_textgt { &do_cmd_textsf(@_); }
sub do_cmd_texttz { &do_cmd_texttt(@_); }
sub do_cmd_mjfamily { &do_cmd_rm(@_); }
sub do_cmd_mj { &do_cmd_rm(@_); }
$declarations{gtfamily} = $declarations{sffamily};
$declarations{tzfamily} = $declarations{ttfamily};
$declarations{gt} = $declarations{sf};
$declarations{tz} = $declarations{tt};
$fontchange_rx .= '|mj|gt|tz';

&process_commands_wrap_deferred (<<_RAW_ARG_DEFERRED_CMDS_);
mjfamily
gtfamily
tzfamily
mj
gt
tz
_RAW_ARG_DEFERRED_CMDS_

# most of the commands here need some action which is not implemented yet.
&ignore_commands(<<_IGNORED_CMDS_);
make_at_josa # {}
ks_at_num # {}
ksksTHE
kssectionname
_IGNORED_CMDS_

# use'em
&korean_titles;
$default_language = 'korean';
$TITLES_LANGUAGE = 'korean';
$CHARSET = 'EUC-KR';

1; # this must be the last line


Àú´Â hangul.sty¸¦ ÀϺθ¸ º£³¤ koreantitle.sty¶ó´Â °ÍÀ» ¸¶Âù°¡Áö·Î hangul.perlÀ» º£²¸¼­ koreantitle.perlÀ» ¸¸µé°í %iconsizes = ... ÀÌÇϸ¦ Ãß°¡ÇÏ°í(¿Ö³ÄÇÏ¸é ¾ÆÀÌÄÜÀ» Çѱ۷Π¹Ù²Ù¾ú°Åµç¿ä) µ¹·È´Âµ¥ ¾ÆÁÖ ¸¸Á·½º·´½À´Ï´Ù. °í¸¿½À´Ï´Ù. http://hoze.wowdns.com ¿¡¼­ TeX-±×¸²¿¡ Àû¿ëÇß½À´Ï´Ù. --hoze
±×µ¿¾È ³×Æ®¿÷ÀÌ ¾ÈµÇ´Ù°¡ ÀÌÁ¦ µÇ³×¿ä. ¹æ±Ý Á¶±Ý ¼Õº¸¾Ò½À´Ï´Ù. ±Û²Ã¹Ù²Ù±â ¸í·ÉÀ» Àü󸮰úÁ¤(pre_pre_process)¿¡¼­ ó¸®Çϵµ·Ï Çß°í, \todayÀÇ »ç¼ÒÇÑ ¹ö±×(³»³â ÃÊ¿¡³ª ¹®Á¦µÇ°ÚÁö¸¸)¸¦ Àâ¾Ò½À´Ï´Ù. ±×³É µÎ¾îµµ µÇÁö¸¸ koreantitle.perlÀ» ´Ù½Ã ¼öÁ¤ÇϽô ÆíÀÌ ÁÁ°Ú½À´Ï´Ù. Á˼ÛÇÕ´Ï´Ù. -- DohyunKim


graphicx.perlÀ» ¿­¾îº¸´Ï $COPY_GRAPHICS¸¦ 1·Î ÁöÁ¤ÇÏ¸é ±×³É ¸·¹Ù·Î º¹»ç¸¦ ÇÏ´Â °Í °°¾Æ ±×·¸°Ô Çߴµ¥ "coundn't copy c:...\\xxx.png..." ÀÌ·¸°Ô ¸Þ½ÃÁö°¡ ³ª¿É´Ï´Ù.'\\' ÀÌ°Í ¶§¹®ÀÎ µíÇÕ´Ï´Ù. ¹é½½·¡½Ã°¡ Çϳª°¡ ³ª¿Í¾ß Çϴµ¥ µÎ °³°¡ ºÙ¾î¼­ ±×·± °Í °°½À´Ï´Ù. ¸¸¾à À̰͸¸ ÇØ°áµÇ¸é ±¸Å¿© eps¸¦ Áú³ª»Û png·Î ¸¸µé ÇÊ¿ä ¾øÀÌ ¸·¹Ù·Î ¾çÁúÀÇ pngÀ» º¹»çÇØ ³ÖÀ» ¼ö ÀÖ½À´Ï´Ù. ºÎŹµå¸³´Ï´Ù.--hoze

ÇعýÀ» ã¾Æ¼­ ±â»Þ´Ï´Ù. ±×·±µ¥, korean_titles¿¡¼­ '¸ñÂ÷'´Â 'Â÷·Ê'·Î ¹Ù²Ù¾úÀ¸¸é ÇÕ´Ï´Ù. Àü¿¡ ÀÌÁÖÈ£¾¾°¡ ÇÑÀÚ·Î ¾µ °Ô ¾Æ´Ï¶ó¸é 'Â÷·Ê'¶ó°í ¾²´Â °Ô ¸Â´Ù°í ±×·¨´ø °Í °°½À´Ï´Ù. Àú ¿ª½Ã ±× ¸»ÀÌ ¸Â´Â µíÇÕ´Ï´Ù. --hoze
hangul.sty¿¡ ¸ñÂ÷¶ó°í µÇ¾î À־ ±×´ë·Î µû¶ú½À´Ï´Ù. Àúµµ ¿¹Àü¿¡ ÀÌ ¹®Á¦¸¦ Àº±¤Èñ´Ô²² °³ÁøÇß´Ù°¡ ±×°Ç »ç¿ëÀÚµéÀÌ ¾Ë¾Æ¼­ »õ·Î ÁöÁ¤ÇÏ¸é µÈ´Ù´Â ´äº¯À» ¹Þ¾Ò½À´Ï´Ù. Àúµµ ±×·¸°Ô ´äÇÏ°Ú½À´Ï´Ù. ¾Ë¾Æ¼­ °íÃľ²¼¼¿ä. :) hangul.perlÀº hangul.sty¸¦ Áö¿øÇϱâ À§ÇÑ °ÍÀ̹ǷΠ°ø½Ä ¹èÆ÷µÈ hangul.sty¸¦ µû¸¦ ¼ö¹Û¿¡ ¾øÀ½À» ¾çÁöÇØ Áֽñ⠹ٶø´Ï´Ù... ±×¸®°í LaTeX2Html¿¡¼­ÀÇ jpgÁö¿ø¹®Á¦´Â ¿ì¼± ÃֽŹöÀü(2002-2-1)À» ¼³Ä¡ÇÏ½Ã°í ½ÃµµÇØ º¸½Ê½Ã¿À. Àú´Â ¾Æ¹« ¹®Á¦µµ ¾ø´Âµ¥ ¾Æ¸¶ ¹öÀü Â÷ÀÌ ¶§¹®ÀÌ ¾Æ´Ñ°¡ ÇÕ´Ï´Ù. -- DohyunKim

Á¶»ç Áö¿øÀ» ³Ö¾îº¸¾Ò½À´Ï´Ù¸¸, ¿ÏÀüÇÏÁö ¸øÇÕ´Ï´Ù. ¿Ï¼ºÇü ÇѱÛÀÇ Á¾¼ºÀ» È®ÀÎÇÏ´Â ¾Ë°í¸®ÁòÀÌ ¾î¶»°Ô µÇ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù.



==This is may be interesting== Now 20050927-092630_123.

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-02-28 12:22:40
Processing time 0.0382 sec