summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-25 22:06:49 +0000
committerKarl Berry <karl@freefriends.org>2021-02-25 22:06:49 +0000
commitae666f8146ba2e76dd6701d9bf5dddb72ffb32b0 (patch)
tree0339c5fe96ab3cd45a28bb9933c151f9284bf51c /Master/texmf-dist/tex
parent443ce410f5fae6efced2acdc861136ed1f447f8e (diff)
skeldoc (25feb21)
git-svn-id: svn://tug.org/texlive/trunk@57922 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty74
1 files changed, 71 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty b/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty
index 2938b545b79..4754716d028 100644
--- a/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty
+++ b/Master/texmf-dist/tex/latex/skeldoc/skeldoc.sty
@@ -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