File: cctb.lua

package info (click to toggle)
texlive-base 2014.20141024-2
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 521,220 kB
  • sloc: perl: 41,573; sh: 7,129; makefile: 4,077; ruby: 2,686; xml: 2,387; ansic: 2,277; python: 1,231; lisp: 814; cpp: 695; tcl: 685; awk: 603; php: 65; java: 32; sed: 8
file content (41 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- 
--  This is file `cctb.lua',
--  generated with the docstrip utility.
-- 
--  The original source files were:
-- 
--  luatexbase-cctb.dtx  (with options: `luamodule')
--  
--  See the aforementioned source file(s) for copyright and licensing information.
--  
luatexbase                  = luatexbase or { }
local luatexbase            = luatexbase
luatexbase.provides_module({
    name          = "luatexbase-cctb",
    version       = 0.6,
    date          = "2013/05/11",
    description   = "Catcodetable allocation for LuaTeX",
    author        = "Heiko Oberdiek, Elie Roux and Manuel Pegourie-Gonnard",
    copyright     = "Heiko Oberdiek, Elie Roux and Manuel Pegourie-Gonnard",
    license       = "CC0",
})
luatexbase.catcodetables    = luatexbase.catcodetables or { }
local catcodetables         = luatexbase.catcodetables
local function catcodetabledef_from_tex(name, number)
    catcodetables[name] = tonumber(number)
end
luatexbase.catcodetabledef_from_tex = catcodetabledef_from_tex
local function catcodetable_do_shortcuts()
    local cat = catcodetables
    cat['latex']                = cat.CatcodeTableLaTeX
    cat['latex-package']        = cat.CatcodeTableLaTeXAtLetter
    cat['latex-atletter']       = cat.CatcodeTableLaTeXAtLetter
    cat['ini']                  = cat.CatcodeTableIniTeX
    cat['expl3']                = cat.CatcodeTableExpl
    cat['expl']                 = cat.CatcodeTableExpl
    cat['string']               = cat.CatcodeTableString
    cat['other']                = cat.CatcodeTableOther
end
luatexbase.catcodetable_do_shortcuts = catcodetable_do_shortcuts
-- 
--  End of File `cctb.lua'.