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.
50
questions
0
votes
0
answers
35
views
Latex error when importing a stacking regression table from STATA
I am having an issue stacking stata regression outputs in latex. I am showing below the first panel of the table only. I have removed the two middle and bottom panels.
Here is the Stata code, which ...
5
votes
3
answers
779
views
A Simpler Way to Code This Stackengine Asterism
Consider the MWE:
\documentclass[12pt]{article}
\usepackage{stackengine}
\usepackage{lipsum}
\usepackage{graphicx}
\def\asterism{\par\vspace{1em}{\centering\scalebox{1.5}{%
\stackon[-0.5pt]{*}{\...
1
vote
0
answers
154
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 ...
1
vote
2
answers
29
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-...
0
votes
0
answers
27
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 ...
2
votes
1
answer
855
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 ...
6
votes
2
answers
505
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) ...
0
votes
2
answers
109
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/}}
...
1
vote
2
answers
1k
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{...
2
votes
1
answer
126
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
1
answer
90
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
1
answer
69
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}
\...
1
vote
2
answers
187
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
0
answers
122
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
2
answers
561
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, ...