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
1 vote
0 answers
41 views

Bibliography typesetting error

I am using a custom nature.bst file for writing a Springer journal and getting the above Error for the references. > %%\documentclass[sn-nature]{sn-jnl}% Style for submissions to Nature Portfolio ...
AnkanBan's user avatar
1 vote
2 answers
20 views

Text over icon (stacked on top of each other towards reader)

How to add text over icon (stacked on top of each other towards reader). Basically LaTeX equivalent of that html question: https://stackoverflow.com/questions/22644741/how-to-position-text-over-font-...
Uğur Dinç's user avatar
0 votes
0 answers
23 views

Error while stacking multiple outputs in one table

I'm trying to generate 3 panels of regression outputs, as shown in https://medium.com/@linglp/nice-regression-tables-in-stata-17d3895befd2, after running the regressions in stata. I implement the code ...
Jan3's user avatar
  • 67
2 votes
1 answer
467 views

How to make a stack in LaTeX?

I want to make a stack (as in programming but not algebraic one...) in LaTeX. For example, I want to define a set {} with the last three operation: Add a number at the last of the set. Take the last ...
Ngiap's user avatar
  • 89
5 votes
2 answers
341 views

How can I use the old definition of an environment when the environment is redefined with same name? (in order to avoid stack overflow)

Suppose I need to redefine the mdframed environment (from the mdframed package), using the old definition of mdframed. In the example here, perhaps the target (here, changing the color of the text) ...
quark67's user avatar
  • 4,116
0 votes
2 answers
80 views

conflict with currfile and doclicense causing ! TeX capacity exceeded, sorry [input stack size=10000]

\documentclass[12pt,a4paper,UTF8,scheme = plain]{ctexart} %%% 28 April 2022 %%%%% packages \usepackage{amsmath,amsfonts,amssymb} \usepackage[export]{adjustbox} % uses graphicx \graphicspath{{./figs/}} ...
CasperYC's user avatar
  • 649
1 vote
2 answers
991 views

TeX capacity exceeded, sorry [input stack size=5000

\documentclass[11pt,a4paper]{article} \usepackage{ngerman} \usepackage[ngerman]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{marvosym} \usepackage{...
Mo Biz's user avatar
  • 19
2 votes
1 answer
89 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{\...
mlchristians's user avatar
  • 7,724
1 vote
1 answer
78 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\...
Samuel Bowditch's user avatar
2 votes
1 answer
67 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} \...
mlchristians's user avatar
  • 7,724
2 votes
2 answers
148 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 ...
mlchristians's user avatar
  • 7,724
2 votes
0 answers
103 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 ...
Jérôme LAURENS's user avatar
1 vote
2 answers
477 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, ...
cProg's user avatar
  • 511
2 votes
1 answer
2k 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 ...
KieranW's user avatar
  • 23
6 votes
2 answers
778 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 ...
user avatar
2 votes
1 answer
1k 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 ...
Axel's user avatar
  • 189
7 votes
4 answers
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}[...
Paradox's user avatar
  • 173
5 votes
0 answers
407 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 ...
thesilencer's user avatar
0 votes
1 answer
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 ...
user121392's user avatar
0 votes
1 answer
775 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 ...
User2130's user avatar
  • 113
3 votes
1 answer
348 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'...
user1511417's user avatar
0 votes
1 answer
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{...
Ed S's user avatar
  • 111
3 votes
2 answers
443 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 ...
CS Kumar's user avatar
  • 1,253
9 votes
1 answer
2k 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$ ...
AlphaOmega's user avatar
0 votes
1 answer
127 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 ...
winawer's user avatar
  • 1,233
1 vote
1 answer
102 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 ...
robert's user avatar
  • 1,225
1 vote
1 answer
866 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 ...
Julie's user avatar
  • 19
1 vote
0 answers
50 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 ...
Denis Cousineau's user avatar
2 votes
0 answers
245 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:...
WeCanLearnAnything's user avatar
11 votes
2 answers
503 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 ...
arunmoezhi's user avatar
  • 1,270
1 vote
1 answer
252 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 ...
nam's user avatar
  • 1,075
5 votes
1 answer
1k 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 ...
San's user avatar
  • 113
2 votes
1 answer
376 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 ...
Thomas Benko's user avatar
0 votes
0 answers
255 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 ...
Sean Danaher's user avatar
5 votes
0 answers
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} \...
sgware's user avatar
  • 51
4 votes
2 answers
3k 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{...
Clément's user avatar
  • 5,213
4 votes
1 answer
303 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 ...
Dominic Kerr's user avatar
5 votes
1 answer
173 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 ...
Dominic Kerr's user avatar
4 votes
1 answer
2k 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: \...
Lars's user avatar
  • 99
19 votes
2 answers
8k 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 ...
bdeonovic's user avatar
  • 1,322
3 votes
3 answers
268 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 ...
carllacan's user avatar
  • 145
5 votes
1 answer
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
Satish's user avatar
  • 51
3 votes
1 answer
189 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 ...
vwegert's user avatar
  • 2,855
9 votes
2 answers
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 ...
Propantriol's user avatar
39 votes
1 answer
180k views

How to write something underneath \min?

How to type this expression, where has \min on top and \forall at the bottom?
william007's user avatar
  • 4,741
6 votes
2 answers
463 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 \...
StrawberryFieldsForever's user avatar
4 votes
1 answer
968 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 ...
Ken Bloom's user avatar
  • 3,852
4 votes
2 answers
131 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@...
liori's user avatar
  • 538