diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-07 22:12:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-07 22:12:53 +0000 |
commit | 0a0336d2291164dec0f697dc2941c1bfa06069e1 (patch) | |
tree | a4434b6f1a2e5e9d017127e0b2a96c4559b6f65a /Master/texmf-dist/tex/luatex/lua-visual-debug | |
parent | 03838df8a8d0cc947a09ecb93b1d1c81d55ba73e (diff) |
lua-visual-debug (7jan19)
git-svn-id: svn://tug.org/texlive/trunk@49634 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lua-visual-debug')
-rw-r--r-- | Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua | 6 | ||||
-rw-r--r-- | Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua b/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua index a933706b3d1..b6fb5907c9a 100644 --- a/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua +++ b/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua @@ -1,6 +1,6 @@ --- Copyright 2012 Patrick Gundlach, patrick@gundla.ch +-- Copyright 2012-2019 Patrick Gundlach, patrick@gundla.ch -- Public repository: https://github.com/pgundlach/lvdebug (issues/pull requests,...) --- Version: 0.6 +-- Version: 0.7 -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the -- "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, @@ -149,7 +149,7 @@ function show_page_elements(parent) local color = "1 g" local rectangle = node.new("whatsit","pdf_literal") if head.penalty < 10000 then - color = string.format("%d g", 1 - head.penalty / 10000) + color = string.format("%d g", 1 - math.floor(head.penalty / 10000)) end rectangle.data = string.format("q %s 0 w 0 0 1 1 re B Q",color) parent.list = node.insert_before(parent.list,head,rectangle) diff --git a/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty b/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty index 35cd17380e1..9d5b22337a3 100644 --- a/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty +++ b/Master/texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty @@ -1,9 +1,9 @@ % see lua file for copyright information (MIT License) -\def\lvdebugpkgdate{2019/01/04} -\def\lvdebugpkgversion{0.6} +\def\lvdebugpkgdate{2019/01/07} +\def\lvdebugpkgversion{0.7} -\expandafter\ifx\csname ProvidesPackage\endcsname\relax +\ifx\ProvidesPackage\undefined \input ifluatex.sty\relax \else \NeedsTeXFormat{LaTeX2e} @@ -16,7 +16,7 @@ \AtBeginShipout {\directlua{lvd.show_page_elements(tex.box["AtBeginShipoutBox"])}}% } -\expandafter\ifx\csname ProvidesPackage\endcsname\relax +\ifx\ProvidesPackage\undefined \ifluatex \input atbegshi.sty\relax \luavisualdebug@dothings |