Skip to content

Commit

Permalink
Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Oct 9, 2018
1 parent 9daa474 commit fa9e971
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version 0.1 (2018-10-10)
-----

Initial release.

Basic features:

* Does not clutter your working directory with `.aux`, `.log`, etc. files.
* Does not prompt for input when there is a (La)TeX error.
* With pTeX-like engines, automatically run dvipdfmx to produce PDF file.
* Automatically re-run (La)TeX to resolve cross-references and other things.
* Watch input files for change (requires an external program). [`--watch` option]
* Support for MakeIndex, BibTeX, Biber, makeglossaries commands. [`--makeindex`, `--bibtex`, `--biber`, `--makeglossaries` options]
6 changes: 4 additions & 2 deletions bin/cluttex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env texlua
local io, os, string, table, package, require, assert, error, ipairs, type, select, arg = io, os, string, table, package, require, assert, error, ipairs, type, select, arg
local CLUTTEX_VERBOSITY
local CLUTTEX_VERBOSITY, CLUTTEX_VERSION
os.type = os.type or "unix"
if lfs and not package.loaded['lfs'] then package.loaded['lfs'] = lfs end
if os.type == "windows" then
Expand Down Expand Up @@ -1627,7 +1627,7 @@ local function handle_cluttex_options(arg)
os.exit(0)

elseif name == "version" then
io.stderr:write("cluttex (prerelease)\n")
io.stderr:write("cluttex ",CLUTTEX_VERSION,"\n")
os.exit(0)

elseif name == "verbose" then
Expand Down Expand Up @@ -2101,6 +2101,8 @@ end
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]

CLUTTEX_VERSION = "v0.1"

-- Standard libraries
local coroutine = coroutine
local tostring = tostring
Expand Down
6 changes: 4 additions & 2 deletions bin/cluttex.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@goto :eof
]]
local io, os, string, table, package, require, assert, error, ipairs, type, select, arg = io, os, string, table, package, require, assert, error, ipairs, type, select, arg
local CLUTTEX_VERBOSITY
local CLUTTEX_VERBOSITY, CLUTTEX_VERSION
os.type = os.type or "windows"
if lfs and not package.loaded['lfs'] then package.loaded['lfs'] = lfs end
if os.type == "windows" then
Expand Down Expand Up @@ -1630,7 +1630,7 @@ local function handle_cluttex_options(arg)
os.exit(0)

elseif name == "version" then
io.stderr:write("cluttex (prerelease)\n")
io.stderr:write("cluttex ",CLUTTEX_VERSION,"\n")
os.exit(0)

elseif name == "verbose" then
Expand Down Expand Up @@ -2104,6 +2104,8 @@ end
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]

CLUTTEX_VERSION = "v0.1"

-- Standard libraries
local coroutine = coroutine
local tostring = tostring
Expand Down
4 changes: 2 additions & 2 deletions build.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--[[
Copyright 2016 ARATA Mizuki
Copyright 2016, 2018 ARATA Mizuki
This file is part of ClutTeX.
Expand Down Expand Up @@ -134,7 +134,7 @@ else
end

table.insert(lines, string.format("local %s = %s\n", table.concat(imported_globals, ", "), table.concat(imported_globals, ", ")))
table.insert(lines, "local CLUTTEX_VERBOSITY\n")
table.insert(lines, "local CLUTTEX_VERBOSITY, CLUTTEX_VERSION\n")

if default_os then
table.insert(lines, string.format("os.type = os.type or %q\n", default_os))
Expand Down
2 changes: 2 additions & 0 deletions src/cluttex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]

CLUTTEX_VERSION = "v0.1"

-- Standard libraries
local table = table
local os = os
Expand Down
2 changes: 1 addition & 1 deletion src/texrunner/handleoption.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ local function handle_cluttex_options(arg)
os.exit(0)

elseif name == "version" then
io.stderr:write("cluttex (prerelease)\n")
io.stderr:write("cluttex ",CLUTTEX_VERSION,"\n")
os.exit(0)

elseif name == "verbose" then
Expand Down

0 comments on commit fa9e971

Please sign in to comment.