Giter Club home page Giter Club logo

luatexko's Introduction

LuaTeX-ko Package version 3.6 (2023/09/11)
===========================================

This is a Lua(La)TeX macro package that supports typesetting Korean
documents including Old Hangul texts. As LuaTeX has opened up access to
almost all the hidden routines of TeX engine, users can obtain more
beautiful outcome using this package rather than other Hangul packages
operating on other engines.

LuaTeX version 1.10+ and luaotfload package version 2.96+ are required for
this package to run.

This package also requires cjk-ko package for its full functionality.


License
-------

This package is licensed under [LPPL](http://latex-project.org/lppl/)
(LaTeX Project Public License) version 1.3c or later.

See each file for details.


Author
------

    Dohyun Kim <nomos at ktug org>
    Soojin Nam <jsunam at gmail com>

Please report any errors or suggestions to
or leave messages in the issue tracker at:
    <http://github.com/dohyunkim/luatexko>


Files
-----

TeXinputs

    luatexko.sty            -> tex/luatex/luatexko/
    luatexko.lua            -> tex/luatex/luatexko/
    luatexko-normalize.lua  -> tex/luatex/luatexko/
    luatexko-uhc2utf8.lua   -> tex/luatex/luatexko/

Documents

    luatexko-doc.pdf        -> doc/luatex/luatexko/
    luatexko-doc.tex        -> doc/luatex/luatexko/
    README (this file)      -> doc/luatex/luatexko/
    ChangeLog               -> doc/luatex/luatexko/


Loading
-------

For a LaTeX user, declaring

    \usepackage{luatexko}
or

    \usepackage{kotex}
is sufficient to load the package, which will load fontspec as well.
Notice that kotex.sty is a file provided by cjk-ko package.

Under plain TeX:

    \input luatexko.sty


Package Options
---------------

    [hangul]
Load Hangul captions. Besides, this option adjusts interword and
interline spacing. Declares \hangulpunctuations=1 as well.

    [hanja]
Load Hanja captions. Also apply other settings as [hangul] option does.


Hangul Font Commands
--------------------

    \setmainhangulfont
    \setsanshangulfont
    \setmonohangulfont
Equivalent to \setmainfont et. al. of fontspec package. These fonts are
used when the font loaded by \setmainfont et. al. does not have Hangul
glyphs.

    \setmainhanjafont
    \setsanshanjafont
    \setmonohanjafont
These fonts are used when the font loaded by \setmainfont or
\setmainhangulfont et. al. does not have Hanja glyphs.

    \setmainfallbackfont
    \setsansfallbackfont
    \setmonofallbackfont
These fonts are used when the font loaded by \setmainfont,
\setmainhangulfont, or \setmainhanjafont et. al. does not have Hanja
glyphs.

In like manner, these commands are available as well:

    \hangulfontspec   \newhangulfontfamily   \addhangulfontfeature
    \hanjafontspec    \newhanjafontfamily    \addhanjafontfeature
    \fallbackfontspec \newfallbackfontfamily \addfallbackfontfeature

If any of these CJK fonts are not specified, UnBatang/UnDotum TrueType
fonts will be used for typesetting CJK characters.


Hangul Font Options
-------------------

    [InterHangul=<dimen>]
Set spacing between Hangul characters.

    [InterLatinCJK=<dimen>]
Set spacing between CJK and Latin characters.

    [CharRaise=<dimen>]
Raise CJK characters by <dimen>.


Other User Commands
-------------------

    \hangulpunctuations=<number>
When <number> is 1 or greater (being default value), latin punctuations
will be typeset with hangul fonts.

    \dotemph{...}
Emphasise Hangul or Hanja by putting dot above.

    \ruby{<base text>}{<ruby text>}
Typeset ruby annotations.

    \uline{...}
    \sout{...}
    \uuline{...}
    \xout{...}
    \uwave{...}
    \dashuline{...}
    \dotuline{...}
Same functionality as those ulem package provides.


*END of README*

luatexko's People

Contributors

dohyunkim avatar phelypeoleinik avatar sjnam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

phi-gamma

luatexko's Issues

fancyvrb 패키지와 충돌?

아래의 MWE를 lualatex으로 컴파일하면, 라텍 기본의 verbatim환경과 fancyvrb 패키지의 Verbatim 환경의 결과가 서로 다르지 않습니다. 똑같습니다.

\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
\begin{verbatim}
tex.print("hello")
\end{verbatim}

\begin{Verbatim}
tex.print("hello")
\end{Verbatim}
\end{document}

그러나 luatexko 패키지를 포함하면 결과가 달라집니다. 마치 fancyvrb 패키지의 Verbatim 환경은 글자모양만 타자체이고 간격이 고정간격이 아닌것 처럼 보입니다. 적어도 제 눈에는.
다시 자세히 보니, 괄호의 모양도 다릅니다. 폰트가 다르게 사용되는 모양입니다.

\documentclass{article}
\usepackage{luatexko} % <-- 추가
\usepackage{fancyvrb}
\begin{document}
\begin{verbatim}
tex.print("hello")
\end{verbatim}

\begin{Verbatim}
tex.print("hello")
\end{Verbatim}
\end{document}

luatexko 패키지를 포함하되, \directlua{luatexko.deactivateall()}를 넣으면 맨처음 MWE와 같이 동일한 결과가 나오는 것으로 보아, luatexko 패키지가 fancyvrb 패키지와 뭔가 충돌을 일으키는 것으로 보입니다.

\documentclass{article}
\usepackage{luatexko} % <-- 추가
\usepackage{fancyvrb}
\begin{document}
\begin{verbatim}
tex.print("hello")
\end{verbatim}

\directlua{luatexko.deactivateall()}

\begin{Verbatim}
tex.print("hello")
\end{Verbatim}
\end{document}

luatexko breaks Latin font

Hi,
I am using lualatex + luatexko for my thesis as I am required to have some parts in Korean. But primarily the thesis is using Latin characters. For latin characters I am using mlmodern package (from here: https://ctan.org/pkg/mlmodern). Without luatexko I can use mlmodern succesfully. However, when I load luatexko, instead of getting mlmodern font for latin chracters I get the default spindly font, with all typesetting (bold, italics, etc) broken. Is there a way I can use both?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.