summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xpackages/xcoffins/xcoffins.sty
blob: efed9bd8982b5079f63df57a51ea585c5bdb130a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
%%
%% This is file `xcoffins.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% xcoffins.dtx  (with options: `package')
%% 
%% (C) Copyright The LaTeX3 Project and any individual authors
%% listed elsewhere in this file.
%% 
%% This is a generated file.
%% 
%% This file was generated from file(s) of the xcoffins bundle.
%% -----------------------------------------------------------
%% 
%% This file may only be distributed together with a copy of this bundle.
%% You may however distribute the bundle without such generated files.
%% 
%% ======================================================================
%% 
%% File xcoffins.dtx (C) Copyright 2010 LaTeX3 Project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
%% license or (at your option) any later version.  The latest version
%% of this license is in the file
%%
%%    http://www.latex-project.org/lppl.txt
%%
%% This file is part of the ``xcoffins bundle'' (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%%
%% The released version of this bundle is available from CTAN.
%%
%% -----------------------------------------------------------------------
%%
%% The development version of the bundle can be found at
%%
%%    http://www.latex-project.org/svnroot/experimental/trunk/
%%
%% for those people who are interested.
%%
%%%%%%%%%%%
%% NOTE: %%
%%%%%%%%%%%
%%
%%   Snapshots taken from the repository represent work in progress and may
%%   not work or may contain conflicting material!  We therefore ask
%%   people _not_ to put them into distributions, archives, etc. without
%%   prior consultation with the LaTeX Project Team.
%%
%% -----------------------------------------------------------------------
%%
\RequirePackage{expl3}
\RequirePackage{graphicx,xcolor}
\GetIdInfo$Id: xcoffins.dtx 2097 2010-12-05 21:59:21Z mittelba $
          {Coffins}
\ProvidesExplPackage
  {\filename}{\filedate}{\fileversion}{\filedescription}
\RequirePackage{l3coffins,xparse}
\NewDocumentCommand \NewCoffin { m } {
  \coffin_new:N #1
}
\NewDocumentCommand \SetHorizontalCoffin { m +m } {
  \hcoffin_set:Nn #1 {#2}
}
\NewDocumentCommand \SetVerticalCoffin { m m +m } {
  \vcoffin_set:Nnn #1 {#2} {#3}
}
\NewDocumentCommand \SetHorizontalPole { m m m } {
  \coffin_set_horizontal_pole:Nnn #1 {#2} {#3}
}
\NewDocumentCommand \SetVerticalPole { m m m } {
  \coffin_set_vertical_pole:Nnn #1 {#2} {#3}
}
\NewDocumentCommand \JoinCoffins
  {
    s
    m
    > { \SplitArgument { 1 } { , } } O { H , l }
    m
    > { \SplitArgument { 1 } { , } } O { H , l }
    > { \SplitArgument { 1 } { , } } D ( ) { 0 pt , 0 pt }
  }
  {
    \IfBooleanTF #1
      { \coffin_attach:NnnNnnnn #2 #3 #4 #5 #6 }
      { \coffin_join:NnnNnnnn #2 #3 #4 #5 #6 }
  }
\NewDocumentCommand \TypesetCoffin
  {
     m
     > { \SplitArgument { 1 } { , } } O { H , l }
     > { \SplitArgument { 1 } { , } } D ( ) { 0 pt , 0 pt }
  }
  { \coffin_typeset:Nnnnn #1 #2 #3 }
\NewDocumentCommand \RotateCoffin  { m m } {
  \coffin_rotate:Nn #1 {#2}
}
\NewDocumentCommand \ResizeCoffin  { m m m } {
  \coffin_resize:Nnn #1 {#2} {#3}
}
\NewDocumentCommand \ScaleCoffin  { m m m } {
  \coffin_scale:Nnn #1 {#2} {#3}
}
\NewDocumentCommand \DisplayCoffinHandles { m m } {
  \cs_if_exist:cTF { l_coffin_poles_ \tex_number:D #1 _prop }
    { \coffin_display_handles:Nn #1 {#2} }
    { \msg_kernel_error:nx { unknown-coffin } { \token_to_str:N #1 } }
}
\NewDocumentCommand \MarkCoffinHandle
  { m > { \SplitArgument { 1 } { , } } O { H , l } m }
  {
    \cs_if_exist:cTF { l_coffin_poles_ \tex_number:D #1 _prop }
      { \coffin_mark_handle:Nnnn #1 #2 {#3} }
      { \msg_kernel_error:nx { unknown-coffin } { \token_to_str:N #1 }
  }
}
\NewDocumentCommand \ShowCoffinStructure { m } {
  \coffin_show_structure:N #1
}
\endinput
%%
%% End of file `xcoffins.sty'.