texlive[57922] Master/texmf-dist: skeldoc (25feb21)

commits+karl at tug.org commits+karl at tug.org
Thu Feb 25 23:06:49 CET 2021


Revision: 57922
          http://tug.org/svn/texlive?view=revision&revision=57922
Author:   karl
Date:     2021-02-25 23:06:49 +0100 (Thu, 25 Feb 2021)
Log Message:
-----------
skeldoc (25feb21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/skeldoc/LICENSE
    trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.pdf
    trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.tex
    trunk/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty

Modified: trunk/Master/texmf-dist/doc/latex/skeldoc/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/skeldoc/LICENSE	2021-02-25 22:04:40 UTC (rev 57921)
+++ trunk/Master/texmf-dist/doc/latex/skeldoc/LICENSE	2021-02-25 22:06:49 UTC (rev 57922)
@@ -1,6 +1,6 @@
 MIT License
 
-Copyright (c) 2020 Magnus Lie Hetland
+Copyright (c) 2021 Magnus Lie Hetland
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

Modified: trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.tex	2021-02-25 22:04:40 UTC (rev 57921)
+++ trunk/Master/texmf-dist/doc/latex/skeldoc/skeldoc.tex	2021-02-25 22:06:49 UTC (rev 57922)
@@ -1,4 +1,4 @@
-% Copyright (c) 2020 Magnus Lie Hetland
+% Copyright (c) 2021 Magnus Lie Hetland
 %
 % Permission is hereby granted, free of charge, to any person obtaining a copy
 % of this software and associated documentation files (the "Software"), to deal
@@ -124,13 +124,22 @@
 
 \skelnote{It is possible to add notes in arbitrary parts of a document with
 the \cs{skelnote} command. This could also be used as a simple to-do or
-annotation mechanism.}
+annotation mechanism. Note that \cs{skelnote} is designed so you can place it
+before a paragraph or the like, and get the number positioned correctly. This
+means it gobbles up any space that follows it. To avoid this, simply follow it
+by an escaped space, for example, as in \texttt{\cs{skelnote}\braces{My
+note}\cs{\char32}}.}
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
-eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
-voluptua.
+eirmod tempor invidunt ut labore et dolore magna aliquyam erat~\skelref{Here I'm
+referring to something non-existent, with \cs{skelref}, whose implicit key is
+\texttt{width}.}, sed diam voluptua.
 \skelpar[2]
 At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
-gubergren, no sea takimata sanctus est.
+gubergren, no sea takimata sanctus est~\skelcite{And here is a missing
+bibliographic reference, with \cs{skelcite}, whose implicit key is
+\texttt{width}. You can also control the left and right braces (or whatever text
+you wish to surround the citation with) using the \texttt{left} and
+\texttt{right} keys.}.
 
 \skelpar
 \skelitems{The \cs{skelenum} and \cs{skelitems} commands produce skeleton

Modified: trunk/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty	2021-02-25 22:04:40 UTC (rev 57921)
+++ trunk/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty	2021-02-25 22:06:49 UTC (rev 57922)
@@ -1,4 +1,4 @@
-% Copyright (c) 2020 Magnus Lie Hetland
+% Copyright (c) 2021 Magnus Lie Hetland
 %
 % Permission is hereby granted, free of charge, to any person obtaining a copy
 % of this software and associated documentation files (the "Software"), to deal
@@ -18,8 +18,8 @@
 % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 % SOFTWARE.
 
-\def \skelversion {0.1.1}
-\def \skeldate    {2021-01-03}
+\def \skelversion {0.1.2}
+\def \skeldate    {2021-02-25}
 
 \RequirePackage{expl3}
 
@@ -131,6 +131,22 @@
     line-width      .tl_set:N       = \l_skel_line_width_default_tl         ,
     line-width      .initial:n      = \l_skel_short_width_tl                ,
 
+    %% Defaults for \skelref
+
+    ref-width       .tl_set:N       = \l_skel_ref_width_default_tl          ,
+    ref-width       .initial:n      = 1em                                   ,
+
+    %% Defaults for \skelcite
+
+    cite-width      .tl_set:N       = \l_skel_cite_width_default_tl         ,
+    cite-width      .initial:n      = .75em                                 ,
+
+    cite-left       .tl_set:N       = \l_skel_cite_left_default_tl          ,
+    cite-left       .initial:n      = [\kern1pt,
+
+    cite-right      .tl_set:N       = \l_skel_cite_right_default_tl         ,
+    cite-right      .initial:n      = \kern1pt],
+
     %% Defaults for \skelpar
 
     par-lines       .int_set:N      = \l_skel_par_lines_default_int         ,
@@ -277,6 +293,58 @@
 
 }
 
+%% skelref %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\skel_defaults:nnn { skelref } { \l_skel_ref_width_tl } {
+
+    width       .tl_set:N           = \l_skel_ref_width_tl                  ,
+    width       .initial:n          = \l_skel_ref_width_default_tl          ,
+
+}
+\NewDocumentCommand \skelref { +O{} +g } {
+
+    \group_begin:
+
+    \skel_args:nn { skelref } { #1 }
+
+    \IfValueT { #2 } { \skelnote { #2 } }
+
+    \skel_line:n { \l_skel_ref_width_tl }
+
+    \group_end:
+
+}
+
+%% skelcite %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\skel_defaults:nnn { skelcite } { \l_skel_cite_width_tl } {
+
+    width       .tl_set:N           = \l_skel_cite_width_tl                 ,
+    width       .initial:n          = \l_skel_cite_width_default_tl         ,
+
+    left        .tl_set:N           = \l_skel_cite_left_tl                  ,
+    left        .initial:n          = \l_skel_cite_left_default_tl          ,
+
+    right       .tl_set:N           = \l_skel_cite_right_tl                 ,
+    right       .initial:n          = \l_skel_cite_right_default_tl         ,
+
+}
+\NewDocumentCommand \skelcite { +O{} +g } {
+
+    \group_begin:
+
+    \skel_args:nn { skelcite } { #1 }
+
+    \IfValueT { #2 } { \skelnote { #2 } }
+
+    \l_skel_cite_left_tl
+    \skel_line:n { \l_skel_cite_width_tl }
+    \l_skel_cite_right_tl
+
+    \group_end:
+
+}
+
 %% skelpar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \int_new:N \l_skel_par_lines_int



More information about the tex-live-commits mailing list.