KTUGFaq

KTUG FAQ

hoze/style (rev. 1.14)

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You display the wonderful traits of charm and courtesy.
FrontPage › hoze/style

¸ñÂ÷


1 hoze-illust.sty

1.1 \placefigure

\setplacefigure{...}
\placefigure[float=true/false, caption={blah blah}, label=blah, type=figure/picture, ...]{figure file name/picture environment}

1.2 \illustfigure

\setillustfigure{...}
\illustfigure[caption={blah blah}, label=blah, scale=decimal, figureposition=left/right, frame=true/false, type=figure/picture, ... ]{figure file name/picture environment}{text}

1.3 \placetable

\setplacetable{...}
\placetable[float=true/false, caption={blah blah}, label=blah, type=figure/picture, ...]{tabular}

1.4 \illustfigure

\setillusttable{...}
\illusttable[caption={blah blah}, label=blah, scale=decimal, figureposition=left/right, frame=true/false, type=figure/picture, ... ]{tabular}{text}

1.5 \grayrow


2 hoze-style.sty


2.1 \watermark

2.1.1 ÅؽºÆ®¸¦ ³Ö´Â °æ¿ì

\watermark{x=30, y=30, angle=50, fontsize=90, color=red, text={Hoze is so hot!}}

2.1.2 ±×¸²À» ³Ö´Â °æ¿ì

\watermark{x=50, y=100, scale=2, angle=-45, figure=Topfield}

2.2 \setchaptertab

Àå ¹øÈ£¸¦ ¹Ý´Þ »öÀÎ (thumb index)À¸·Î ´Þ¾Æ ÁØ´Ù.
\usepackage[chaptertab]{hoze-style} %¶Ç´Â preamble¿¡¼­
\setchaptertabon
% ¹Ý´Þ »öÀÎÀÇ À§Ä¡¿Í Å©±â µîÀ» º¯°æÇÏ·Á¸é preamble¿¡¼­
\setchaptertab{
	x=140,
	y=150,
	width=12,
	height=8,
	yspace=-10,
	color=black,
	font=\LARGE\sffamily\bfseries
}

2.3 \wrapnum

2.4 \wrapchar

2.5 \ui

2.6 \button

2.7 \submenu

2.8 terms ȯ°æ

2.9 \alert


3 hoze-layout.sty

3.1 \setlayout


4 hoze.ist

%fixltx2e package is required for markboth in two columns
% @ is a valid character in some entries
%actual '?' % ? instead of @

preamble "
\\newcommand{\\idxmark}[1]{{#1}\\markboth{#1}{#1}}
\\newcounter{indexanchor}
\\begin{theindex}\n
\\def\\hindexhead#1{\\ifcase#1¤¡\\or ¤¤\\or ¤§\\or ¤©\\or
  ¤±\\or ¤²\\or ¤µ\\or ¤ï\\or ¤·\\or ¤ñ\\or ¤¸\\or ¤º\\or ¤»\\or
  ¤¼\\or ¤½\\or ¤¾\\or ¤ö\\or ¤¿\\or ¤Á\\or ¤Ã\\or ¤Å\\or ¤Ç\\or
  ¤Ë\\or ¤Ì\\or ¤Ð\\or ¤Ñ\\or ¤Ó\\or ¤ý\\else Á¾¼º\\fi}
\\def\\indexhead#1{%
#1\\stepcounter{indexanchor}\\pdfbookmark[1]{#1}{\\theindexanchor}
}\n\n"

headings_flag       1
symhead_positive    "\\symbolheadname"
numhead_positive    "\\numberheadname"
heading_prefix      "\\textbf{\\indexhead{"
heading_suffix      "}}\\nopagebreak\n"
group_skip          "\n\n\\indexspace\n"
item_0              "\n\\item \\idxmark{"
delim_0                         "}, "
item_x1                         "} \n \\subitem "

  1. ¹®ÀÚ¼øÀ¸·Î Ã¥°¥ÇǸ¦ ¸¸µç´Ù.
  2. »çÀüó·³ Á»ó´Ü°ú ¿ìÇÏ´ÜÀÇ Ç¥Á¦¾î¸¦ ¸éÁÖ¿¡ ³Ö´Â´Ù.

5 batch

5.1 xpub.bat

@echo off
rem kpsewhich -engine=pdftex -format=fmt latex.fmt
rem kpsewhich -engine=xetex -format=fmt xelatex.fmt

rem set TL_ROOT=c:\\usr\\texlive\\2009  for texindy
rem "C:\Program Files\sumatrapdf\sumatrapdf.exe" -inverse-search "\"C:\Program Files\EmEditor\EmEditor.exe\" /l %l \"%f\"" 
rem xetex -fmt=xelatex -src-specials -synctex=-1 foo.tex
xelatex -src-specials -synctex=-1 %~n1
if %ERRORLEVEL%==0 goto SUCCESS
goto END

:SUCCESS
if !%2==! goto END
xelatex %~n1

if .%2.==.-e. goto ENGLISHINDEX
if .%2.==.-f. goto FRENCHINDEX
if .%2.==.-g. goto GERMANINDEX
if .%2.==.-i. goto ITALIANINDEX
if .%2.==.-k. goto KOREANINDEX
if .%2.==.-r. goto RUSSIANINDEX

:ENGLISHINDEX
rem makeindex %~n1
texindy -L english %~n1.idx
goto AFTERMAKEINDEX

:FRENCHINDEX
texindy -L french %~n1.idx
goto AFTERMAKEINDEX

:GERMANINDEX
texindy -M lang/german/duden-utf8.xdy %~n1.idx
goto AFTERMAKEINDEX

:ITALIANINDEX
texindy -L italian %~n1.idx
goto AFTERMAKEINDEX

:KOREANINDEX
komkindex -s hoze.ist %~n1.idx
goto AFTERMAKEINDEX

:RUSSIANINDEX
rem perl c:\usr\texlive\texmf-local\makeindex\topfield\rumakeindex.pl %~n1.idx
texindy -M lang/russian/utf8.xdy %~n1.idx
goto AFTERMAKEINDEX

:AFTERMAKEINDEX
xelatex %~n1
xelatex %~n1

call delaux
echo Successfully compiled!

:END

5.2 open.bat

@echo Usage: open filename [-p:pdf/-t:text/-s:texmf]
@echo off
if !%2==! goto PDF
if .%2.==.-p. goto PDF
if .%2.==.-t. goto TEXT
if .%2.==.-s. goto TEXMF
goto END

:PDF
START " " "c:\Program Files\SumatraPDF\SumatraPDF.exe" "%~n1.pdf"
goto END

:TEXT
"c:\Program Files\EmEditor\EmEditor.exe" "%1"
goto END

:TEXMF
kpsewhich %1 > tmp.tmp
for /f %%i in (tmp.tmp) do "c:\Program Files\EmEditor\EmEditor.exe" %%i
del tmp.tmp /q

:END

5.3 osd2pdf.bat

rem o2p.bat
gm convert -crop 700x560+9+8 -density 250 %~n1.bmp %~n1.eps
epstopdf %~n1.eps
del %~n1.eps
for %%i in (*.bmp) do call o2p.bat %%i

5.4 ras2pdf.bat

rem r2p.bat
gm convert -density 150 %1 %~n1.eps
epstopdf %~n1.eps
del %~n1.eps
for %%i in (*.%1) do call r2p.bat %%i

5.5 encpdf.bat

@echo off
copy %~n1.pdf tmp.pdf
del %~n1.pdf
pdftk tmp.pdf output %~n1.pdf owner_pw X...X allow Printing
del tmp.pdf
echo Successfully encrypted!

5.6 viewttf

@echo off
echo usage: viewttf output_filename "font_name" fontsize
echo \documentclass[a4paper,oneside]{memoir} > %~n1.tex
echo \usepackage{hoze-style} >> %~n1.tex
echo \setulmarginsandblock{2.5cm}{3cm}{*} >> %~n1.tex
echo \setlrmarginsandblock{2.5cm}{2.5cm}{*} >> %~n1.tex
echo \setheadfoot{1cm}{1.5cm} >> %~n1.tex
echo \checkandfixthelayout >> %~n1.tex
echo \pagestyle{empty} >> %~n1.tex
echo \begin{document} >> %~n1.tex
echo \fontviewer{%2}{%3} >> %~n1.tex
echo \end{document} >> %~n1.tex
xelatex %~n1.tex
if %ERRORLEVEL%==0 call open %~n1.pdf

6 °³Á¤ ÀÌ·Â

@hoze_100203.zip (11.74 KB)

@hoze_100106.zip (11.41 KB)