Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
35 views

“! TeX capacity exceeded, sorry [input stack size=5000]”, csvtools, tabularx

I'm trying to use csvtools to quickly import data form Excel to LaTeX and compile directly. It is mostly about finance, so e.g. for ease of use I create the command \newcommand{\subtotal}{\...
7
votes
4answers
620 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}[...
4
votes
0answers
73 views

Stacked bar chart percentage label not showing

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 ...
-1
votes
0answers
39 views

Stacked bar chart percentage label not showing

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
420 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
250 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
42 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'...
1
vote
1answer
973 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
84 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 ...
4
votes
1answer
532 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
79 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
64 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 ...
0
votes
1answer
389 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
29 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
143 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
287 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
122 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
527 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
234 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
141 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 ...
4
votes
0answers
3k 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
2answers
1k 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
213 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
135 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
953 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: \...
7
votes
2answers
3k 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
182 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
925 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
168 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
1k 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 ...
22
votes
1answer
75k 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
435 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
897 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
120 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@...