| 1 |
# |
| 2 |
# Copyright (C) 2014 Stephen Gaito (PerceptiSys Ltd) |
| 3 |
# |
| 4 |
# This work may be distributed and/or modified under the conditions of the |
| 5 |
# LaTeX Project Public License, either version 1.3 of this license or (at |
| 6 |
# your option) any later version. |
| 7 |
# |
| 8 |
# The latest version of this license is in |
| 9 |
# http://www.latex-project.org/lppl.txt and version 1.3 or later is part of |
| 10 |
# all distributions of LaTeX version 2005/12/01 or later. |
| 11 |
# |
| 12 |
# This work has the LPPL maintenance status `maintained'. |
| 13 |
# |
| 14 |
# The Current Maintainer of this work is Stephen Gaito. |
| 15 |
# |
| 16 |
# The released source can be found at: |
| 17 |
# https://github.com/diSimplex/latexFifoStack/tree/master/texStyle |
| 18 |
# |
| 19 |
# The development source can be found at: |
| 20 |
# https://github.com/stephengaito/latexFifoStack/tree/master/texStyle |
| 21 |
# |
| 22 |
# This work consists of the files fifo-stack.dtx, and fifo-stack.ins. |
| 23 |
# |
| 24 |
# The command: |
| 25 |
# pdflatex fifo-stack.ins |
| 26 |
# followed by: |
| 27 |
# pdflatex fifo-stack.dtx |
| 28 |
# will produce the derived files: fifo-stack.sty, fifo-stack-test.tex, |
| 29 |
# and fifo-stack.pdf. |
| 30 |
# |
| 31 |
# The command: |
| 32 |
# pdflatex fifo-stack-test.tex |
| 33 |
# will regression test the fifo-stack package. Output will be found in |
| 34 |
# fifo-stack-test.lgout. If pdflatex completes with no errors, then all |
| 35 |
# regression tests passed. |
| 36 |
# |
| 37 |
\FSCreate{fifoStackName}{defaultValue}# |
| 38 |
\FSClear{fifoStackName}# |
| 39 |
\FSDestroy{fifoStackName}# |
| 40 |
\FSTop{fifoStackName}# |
| 41 |
\FSPush{fifoStackName}{value}# |
| 42 |
\FSPop{fifoStackName}# |
| 43 |
\FSShowTop{fifoStackName}# |
| 44 |
\FSBottom{fifoStackName}# |
| 45 |
\FSUnshift{fifoStackName}{value}# |
| 46 |
\FSShift{fifoStackName}# |
| 47 |
\FSShowBottom{fifoStackName}# |
| 48 |
\FSSize{fifoStackName}# |