{stack} is about implementing and/or using stacks in (La)TeX. A stack is a data structure where new elements are added on top and are removed only in the reverse order.

learn more… | top users | synonyms

0
votes
1answer
60 views

How to draw an 1-D array

I want to draw something like this: Easier or better way to draw 1d array. The problem is that I need to change the value of the second array and I don't know how to do that using stack instead of ...
1
vote
0answers
16 views

Popping a stack item in a file stream [duplicate]

Using the answer from Push/Pop or save a length/dimension?, I have implemented a simple stack with a push and a pop function. I would like to use the pop function in conjunction with newfile's ...
2
votes
0answers
72 views

TeX Capacity Exceeded. Why? [closed]

I am getting an error message of some capacity being exceeded and I'm not sure why as the new code compiles just fine in overleaf.com but does not compile on my computer when I copy/paste it in. ...
12
votes
2answers
198 views

Reverse the order of pause when used with a stack

I'm drawing a stack in beamer using drawstack package. I want to show the evolution of the stack by using pause. In tikzpicture, pause moves forward, but a stack is drawn in the reverse order. How do ...
0
votes
1answer
29 views

LaTeX package for Stackrel without AMSTeX

The section 2.1 of this Wikibook chapter on LaTex states: Without AmsTex the same result of \overset can be obtained with \stackrel. But I've not been able to use Stackrel without amsmath package. Is ...
4
votes
1answer
163 views

Fill pattern for time series with bounds (tikz pgfplots)

I would like to plot three time series; two of them have bounds. In fact, it looks similar to the figure shown here: plotting two time series with bounds In my case, the two areas of the two time ...
3
votes
1answer
121 views

europecv stack exceeding

I'm writing a CV with the europecv package, which I'd like to have in hungarian. But with the hungarian option in the \documentclass command the hyphenation is wrong. Loading the corresponding babel ...
0
votes
0answers
86 views

Is it possible to set the stack size to greater than 10000?

Sorry I can't post a minimal example but the document is available at this link and it will give an idea of it's complexity. I have been expecting to run into difficulties for some time as there are ...
1
vote
0answers
1k views

Error “You can't pop an empty literal stack” in theapa.bst

I'm drafting a scientific journal article and seem to have encountered a problem with the .bst file provided by the journal. Here is a minimal example.tex: \documentclass[twoside,11pt]{article} ...
2
votes
1answer
400 views

IEEEtran class, conference option and pdfusetitle in hyperref

Consider the following: \documentclass[conference]{IEEEtran} \usepackage %[pdfusetitle] {hyperref} \begin{document} \title{A simple test} \author{ \IEEEauthorblockN{Michael Shell} ...
5
votes
1answer
122 views

Passing current counter value to stack data structure

I'm trying to combine a stack data structure with a \newcounter{} definition so that I can automatically pair together a collection of points scattered throughout my text. Each point is either ...
5
votes
1answer
103 views

Passing stack data to tikz node names

I'm trying to use a stack data structure (as discussed here: Push/Pop or save a length/dimension?) to store the various names of a set of tikzmark node names (as discussed in tikzmark manual) scatted ...
3
votes
1answer
251 views

stack multiple PDF pages

I have two PDF files, a form page with header and footer and a content page, and like to merge (overlay) them into a single page. Both PDFs are full size A4 portrait pages. I've tried this: ...
4
votes
1answer
850 views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...
4
votes
3answers
143 views

Two stacked elements after a }

I'd like to express a set of vectors by {a_n} followed by a little column with two elements, the size of the set and n=1, as they usually are in some books. How can I create that column? I've tried ...
4
votes
1answer
448 views

Stack figures in horizontal plane in 3D rectangular shape without loss of quality

I am plotting figures on GMT but it does not support some features in gridview. So I want stack each figure on different platforms below each other. E.g. I want to add each image like the following
4
votes
1answer
145 views

Stack overflow / endless recursion when using menukeys

since I've upgraded from TeX Live 2012 to TeX Live 2013, I have some trouble with a custom package. The package provides some commands that are intended to be used either as standalone commands or ...
7
votes
2answers
683 views

Simple (execution) stack with pointers and comments using TikZ

I'm looking for a simple way to draw a stack. I know about drawstack.sty. I actually love the stacks produced by this package but the size is way too big as I'm using IEEEtran for my paper. The stack ...
10
votes
1answer
19k views

How to write something underneath \min?

How to type this expression, where has \min on top and \forall at the bottom?
6
votes
2answers
367 views

How can I define a macro that adds a row to a table that has not yet been printed?

I want to generate a list of technical abbreviations and acronyms that I use. Currently, I'm defining all acronyms with a macro I have designed. Now, I want the macro to call another macro, called ...
4
votes
1answer
835 views

stack.sty and \end{environment}

I'm writing a multilevel itemize list environment to simplify the process of putting nested lists in Beamer slides, and I want it to support enumerate lists as well. The mitemize environment is ...
4
votes
2answers
114 views

Problem of understanding definitions

I have defined a stack structure (I found an example in the LaTeX currfile package, which I adapted to my needs): \def\MB@modulestack{} ...