summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-30 22:38:55 +0000
committerKarl Berry <karl@freefriends.org>2013-04-30 22:38:55 +0000
commit7722686bccdf360cb4a986ccb6986a395562af91 (patch)
tree812a51a34edb198ef34ffaa93d930b313ed77714 /Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty
parentc4219f02b00792a72fb50b7ce855e7f8aee9b7e9 (diff)
moderncv (30apr13)
git-svn-id: svn://tug.org/texlive/trunk@30189 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty')
-rw-r--r--Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty
new file mode 100644
index 00000000000..937cdaf450c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncvdebugtools.sty
@@ -0,0 +1,54 @@
+%% start of file `moderncvdebugtools.sty'.
+%% Copyright 2013-2013 Xavier Danaux (xdanaux@gmail.com).
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License version 1.3c,
+% available at http://www.latex-project.org/lppl/.
+
+
+%-------------------------------------------------------------------------------
+% identification
+%-------------------------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{moderncvdebugtools}[2013/04/29 v1.5.1 modern curriculum vitae and letter debug tools]
+
+
+%-------------------------------------------------------------------------------
+% required packages
+%-------------------------------------------------------------------------------
+\RequirePackage{tikz}
+
+
+%-------------------------------------------------------------------------------
+% debug tools
+%-------------------------------------------------------------------------------
+% code of \tracedebugvrule and \tracedebughrule provided by Gonzalo Medina on TeX.SX (cfr tex.stackexchange.com/a/110805/10102)
+\newcounter{debugrule}
+\pgfdeclarelayer{background}
+\pgfsetlayers{background,main}
+
+\DeclareDocumentCommand{\tracedebugvrule}{oO{0pt}}{%
+ \stepcounter{debugrule}%
+ \begin{tikzpicture}[remember picture,overlay]
+ \begin{pgfonlayer}{background}
+ \coordinate (a\thedebugrule);
+ \draw[red,thin,#1]
+ ([xshift=#2]a\thedebugrule|-current page.north) -- ([xshift=#2]a\thedebugrule|-current page.south);
+ \end{pgfonlayer}
+ \end{tikzpicture}}
+
+\DeclareDocumentCommand{\tracedebughrule}{oO{0pt}}{%
+ \stepcounter{debugrule}%
+ \begin{tikzpicture}[remember picture,overlay]
+ \begin{pgfonlayer}{background}
+ \coordinate (b\thedebugrule);
+ \draw[red,thin,#1]
+ ([yshift=#2]b\thedebugrule-|current page.west) -- ([yshift=#2]b\thedebugrule-|current page.east);
+ \end{pgfonlayer}
+ \end{tikzpicture}}
+
+
+\endinput
+
+
+%% end of file `moderncvdebugtools.sty'.