Category Archives: LaTeX

[LaTeX] font commands and declarations

LaTeX font commands and declarations

 Command    Declaration     Meaning
-------------+---------------+-------------------
\textrm{...}    \rmfamily   roman family
\textsf{...}    \sffamily   sans-serif family
\texttt{...}    \ttfamily   typewriter family
\textbf{...}    \bfseries   bold-face
\textmd{...}    \mdseries   medium 
\textit{...}    \itshape    italic shape
\textsl{...}    \slshape    slanted shape
\textsc{...}    \scshape    SMALL CAPS SHAPE
\textup{...}    \upshape    upright shape
\textnormal{...} \normalfont  default font
\emph{...}      \em         emphasized

[TeX Live] Install LaTex(TeX Live) on Ubuntu 11.10

Installing TeX Live over the Internet

- Download install-tl-unx.tar.gz (2.5mb) : http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz” title=”install-tl-unx.tar.gz

- TeX Live – Quick install: http://tug.org/texlive/quickinstall.html

$ cd /usr/local/
$ sudo tar -xvzf install-tl-unx.tar.gz
$ cd install-tl-20120111
$ sudo ./install-tl
  Enter command: i

Post-install: setting the PATH
add the directory of TeX Live binaries to your PATH:
add “/usr/local/texlive/2011/bin/i386-linux”
to your PATH for current and future sessions.

$ vim ~/.bashrc

PATH = //usr/local/texlive/2011/bin/i386-linux:$PATH
MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH
INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH
export PATH MANPATH INFOPATH

---------------------------------------
$ source ~/.bashrc

ko.TeX 한글 패키지 설치

sudo tlmgr --repository=http://ftp.ktug.or.kr/KTUG/texlive/2011 install collection-kotex

** ko.TeX : 한국어 TeX: 매크로 모음
ko.TeX은 은광희, 김도현, 김강수가 HLaTeX 및 Hangul-ucs를 대체하려고 만든 LaTeX 패키지 모음입니다. 더 자세한 정보는 홈페이지를 참고하십시오: http://project.ktug.or.kr/ko.TeX/
이 패키지에는 LaTeX 및 TeX 매크로가 들어 있습니다.

LaTeX 편집기 설치: TexWorks

$ sudo apt-get install texworks

LaTeX 한글문서 작성
\usepackage{kotex} 구문을 문서에 추가하고
TexWorks 편집기에서 “pdfLaTeX”을 선택하여 실행하면 pdf 출력물이 나온다.

\documentclass{article}
\usepackage{kotex}
\begin{document}
This  is  our first  document. 
 LaTex 한글지원 ko.TeX 패키지 
\end{document}