From 0a0336d2291164dec0f697dc2941c1bfa06069e1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 7 Jan 2019 22:12:53 +0000 Subject: lua-visual-debug (7jan19) git-svn-id: svn://tug.org/texlive/trunk@49634 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.lua | 6 +++--- .../texmf-dist/tex/luatex/lua-visual-debug/lua-visual-debug.sty | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex') 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 -- cgit v1.2.3