File: newfloat.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (31 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
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
# newfloat package
# Matthew Bertucci 11/17/2021 for v1.1

#include:keyval

\newfloatsetup{options%keyvals}

#keyvals:\newfloatsetup
within=%<<counter> or none%>
chapterlistsgap=##L
#endkeyvals

\DeclareFloatingEnvironment{envname}#N
\DeclareFloatingEnvironment[options%keyvals]{envname}#N

\SetupFloatingEnvironment{envname}{options%keyvals}

#keyvals:\DeclareFloatingEnvironment,\SetupFloatingEnvironment
fileext=%<file extension%>
listname=%<list name%>
name=%<name%>
placement=%<combination of htbp%>
within=%<<counter> or none%>
chapterlistsgaps=#on,off
without
planb#true,false
planb-fileext=%<file extension%>
#endkeyvals

\ForEachFloatingEnvironment{code}
\PrepareListOf{envname}{code}