Questions tagged [stack]

{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.

Filter by
Sorted by
Tagged with
2
votes
1answer
38 views

On Stacking Asterisks to Form Chapter Dividers with Stackengine

This question is an extension of the earlier post Best Way to Produce This Chapter Divider Image Consider the code: \documentclass{book} \usepackage{stackengine} \usepackage{graphicx} \def\asterisks{\...
1
vote
1answer
50 views

On Makeindex, Subentries, and Stackengine (and No Xindy)

It seems to be a well-known defect with \makeindex that the number of levels of an index entry is capped at three. For example, if I run the code \documentclass{book} \usepackage{imakeidx} \let\...
2
votes
1answer
59 views

How to Realign a Horizontal Stack with the Above Item

Consider the MWE \documentclass{article} \textheight 8.25in \textwidth 4.75in \usepackage{scalefnt} \usepackage{amsmath,amssymb} %\blacksquare\hspace*{.7em} \usepackage{stackengine,xcolor,lipsum} \...
2
votes
2answers
52 views

How to Use the UsestackEOL Package to Put Braces [Brackets] Around Structured Stacks

Consider the following code: \documentclass{article} \usepackage[usestackEOL]{stackengine} \begin{document} \thispagestyle{empty} \Large $\left\{ \Centerstack{ the first sentence. \\ the second ...
2
votes
0answers
58 views

LaTeX3: implement a stack of integers

I can see at least 3 different approaches to implement a stack of integers with a sequence (seq) with a comma separated list (clist) with an array of integers (intarray) Points 1 or 2 are very ...
1
vote
2answers
251 views

Picture push down automata mecanism [closed]

I am trying to type the attached picture. Below is the code I have. I have downloaded it somewhere, tried to adapt it, but could not. Thank you. \documentclass[12pt]{book} \usepackage[paperwidth=16cm, ...
2
votes
1answer
458 views

How to solve a "You can't pop an empty literal stack" error in custom BibTeX style?

I have an issue that I know has been covered in other threads for specific examples but despite trying to track the issue down in the code myself, I am very new to using TeX so I've been unable to ...
6
votes
2answers
606 views

How to draw a stack in drawstack/TiKz?

I'm trying to replicate this picture (without the airplane) I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal ...
2
votes
1answer
945 views

How to prevent "the literal stack isn't empty" error when using custom bib style?

I am using a customized bib style that is derived from the abbrvdin style. Unfortunatly I am getting the following error message: This is BibTeX, Version 0.99d (MiKTeX 2.9.6840 64-bit) The top-level ...
7
votes
4answers
1k views

Drawing stacks side-by-side in LaTeX

In this question, Alan Munn provided an example of how to draw a stack in LaTeX: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \begin{document} \begin{tikzpicture}[...
5
votes
0answers
396 views

Stacked bar chart percentage label not showing [duplicate]

I have a stacked bar chart and surprisingly not all the percentage of the bars are shown. I only allowed values more than 3% to be shown, however some are clearly more than 3% and at the same time not ...
0
votes
1answer
2k views

TeX capacity exceeded, sorry [input stack size=5000] error [closed]

There aren't any other errors except this. My document only compiles up to the second page and anything else is not compiled in the dvi file. Can anyone explain this error and how should I go about ...
0
votes
1answer
669 views

TeX capacity exceeded, sorry [input stack size=5000]. \begin{figure}[h]

I have found similar errors posted but none related to the figure command. I am trying to show a figure in my Latex template, if I remove the \begin{figure}[h] block, my file runs OK, but currently I ...
3
votes
1answer
180 views

Render trivial nested boxes

I just need nested boxes in latex. Like this: with the following constraints: the outermost box (black) will never be larger than \textwidth or pagewidth there is never more than one box in a row I'...
0
votes
1answer
2k views

Error: You can't pop an empty literal stack for entry and strange character in bibliography [closed]

I'm drafting a paper and got a error: In bibliography there is a strange character ".." after "Proceedings": Files: dados-seminario.tex: \autor{Seu Nome Completo} \codigoautor{SC XXXXX} \titulo{...
2
votes
2answers
316 views

Stackrel redefine font problem

I am using stackrelsp redefined command for \leftharpoonup symbol height adjusting. But the subscript font size is not working for me. The default stackrel command follow the mathsizes (10, 7, 5). I ...
8
votes
1answer
1k views

Trying to understand .bst syntax

I am trying to understand the syntax of .bst-files using the Guide Tame the Beast. For starters, I want to understand the example of the multiplication function on page 39 (The functions skip$ and if$ ...
0
votes
1answer
113 views

Diagrams with stacked labels and boxes

I am trying to draw the following diagrams in LaTeX (these arise in linear coding theory and group theory with reference to the Golay code). Following are the excerpts from the book 'Twelve sporadic ...
1
vote
1answer
92 views

Stacking lengths and pop them off

I have an outstanding post about a TiKZ underliner (which has a bounty running for the TikZ 'pro' who find the solution). The only thing I need to solve is to add an xshifter of \@totalleftmargin to ...
1
vote
1answer
685 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
49 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
198 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. FYI:...
11
votes
2answers
440 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 ...
1
vote
1answer
218 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 ...
5
votes
1answer
907 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 ...
2
votes
1answer
299 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
226 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 ...
5
votes
0answers
4k 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} \...
3
votes
2answers
2k 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} \IEEEauthorblockA{...
4
votes
1answer
269 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
157 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 ...
4
votes
1answer
1k 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: \...
16
votes
2answers
6k 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 ...
3
votes
3answers
214 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 ...
5
votes
1answer
2k 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
3
votes
1answer
184 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 ...
9
votes
2answers
2k 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 ...
34
votes
1answer
143k 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
457 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
959 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
130 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{} \def\MB@modulestack@push#1{\xdef\MB@modulestack{{#1}\MB@...