Questions tagged [stackengine]

{stackengine} is for questions that do or might conceivably make use of the stackengine package

Filter by
Sorted by
Tagged with
1 vote
1 answer
73 views

Adding a Colored Frame to a Do-It-Yourself Lettrine

This question is an extension of the one posed a while back in Adding a Letter to an Image in a Do-It-Yourself Lettrine Consider the MWE \documentclass{book} \usepackage{lettrine} \usepackage{xcolor} ...
user avatar
  • 5,285
0 votes
1 answer
40 views

Missing { inserted. [...mathrel{\stackon[-5pt]{$\in$}{$\widetilde$}] on a question

For this question How to set more separation for certain latex symbols I have given this code: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{stackengine} \begin{document} \[ ...
user avatar
  • 46.3k
1 vote
2 answers
68 views

Align baselines of figure and table using minipage and stackunder

I'm trying to place a figure and a table side by side so that the baselines, rather than the captions, of both are aligned: The answer to this question does this \stackunder with minipages, but uses a ...
user avatar
2 votes
1 answer
45 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{\...
user avatar
  • 5,285
1 vote
1 answer
56 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\...
user avatar
2 votes
1 answer
61 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} \...
user avatar
  • 5,285
2 votes
1 answer
65 views

A Binary Code Index for Enumerate Items Using Stackengine

I am currently working on a project that contains hundreds of enumerate items, each containing a paragraph(s) that addresses some combination of anywhere between 1 and 12 different subjects. The list ...
user avatar
  • 5,285
1 vote
1 answer
33 views

Vertical alignment problems with bracketMatrixstack from tabstackengine

I came across this pretty nifty command to easily create matrices, that I found here. However, when I tried to use it with \vdots and \ddots, I ran into some vertical alignment issues. Here is the ...
user avatar
  • 11
3 votes
2 answers
143 views

Vertical align of fractions inline and display mode (baseline?)

I was checking the solution here for make a small fraction. I get the fraction but I noticed that there is a variation in the vertical alignment in display mode and inline mode: \documentclass[12pt]{...
user avatar
  • 1,825
4 votes
3 answers
84 views

Stackengine not working with xstring

I've been trying to make a command that allows me to automatically retypeset any V̇ in a given string, as in the font I'm using it typests as .V which isn't ideal. Using XeLaTeX I compiled this source ...
user avatar
3 votes
2 answers
89 views

An alternative to the symbol \modtwosum of stix package [duplicate]

This is a trivial question. We know that in the table 72: Variable-sized Math Operators to the pag. 40, we have the symbol for the line integral of a closed path named \oint for the circuiting. \...
user avatar
  • 46.3k
1 vote
1 answer
96 views

makecell package error {\let\tabg@pe\theadgape\thead@}

I have a table that I am trying to use in a Wiley publishing company LaTeX template. Here is the table I am trying to use - this code thanks to R ztable latex output not working: \documentclass[12pt]{...
user avatar
  • 115
3 votes
2 answers
114 views

Vertically stack text from variable

I want to stack vertically like this t e x t 1 9 I found various answers that works, either using custom commands or stackengine (e.g. Vertical text (not in table)). None of these answers works when ...
user avatar
  • 492
3 votes
1 answer
133 views

Scalerel package: to stretch, correctly, the `\benz` symbol

Starting from this question Symbol for Fourier pair as per Brigham, "The Fast Fourier Transform" and my humble answer with this code, \documentclass[a4paper,12pt]{article} \usepackage{...
user avatar
  • 46.3k
1 vote
2 answers
267 views

How to typeset asymmetrical confidence level limits / uncertainties?

Below is an example of an asymmetrical limit (or uncertainty) How can I typeset this in a \LaTeX equation? Such pair of numbers should be vertically stacked while being vertically center-aligned with ...
user avatar
1 vote
1 answer
87 views

stackengine subscript size

Correct subscript size not taken using stackengine package, please find MWE file is as follows: \documentclass{book} \usepackage{stackengine} \newcommand{\Utildesim}[1]{% \ensurestackMath{\...
user avatar
  • 809
3 votes
1 answer
50 views

Make macro consider the value of "\textwidth" for inserting newlines automatically

Background I've created a macro with name \an in order to write single line and multiline annotations inside the alignat environment (see example below) \documentclass{article} \usepackage{amsmath, ...
user avatar
  • 415
2 votes
1 answer
88 views

Label within multiple stackinsets

For my thesis I wanted to put theorems in a special box, for which I have created a command \specialbox which utilizes \stackinset, such that I get a partial frame around the theorem. Credits to its ...
user avatar
  • 121
5 votes
3 answers
277 views

Stacked math with lefthand braces around selected lines

Following \documentclass[varwidth]{standalone} \usepackage{amsmath} \usepackage{stackengine} \usepackage{xcolor} \renewcommand{\vec}[1]{\mathbf{#1}} \begin{document} \stackMath \begin{equation*} ...
user avatar
  • 4,863
1 vote
1 answer
292 views

Adding text on a SVG image with overpic or similar

Is there a possibility to place text on a svg vector image without using Inkscape? For me it is much more convenient to change the text quickly using \overpic and \put than opening Inkscape and ...
user avatar
  • 43
0 votes
1 answer
58 views

The old issue of overleft/rightarrow revisited, and my own approach

I want to try to communicate what I want to achieve with the following code example. I would like to have one left- and right-command for this functionality, which compiles in reasonable time. I am ...
user avatar
  • 322
0 votes
0 answers
119 views

Incomplete \iffalse; all text was ignored in tabstackengine

My MWE \documentclass[10pt]{article} \usepackage{tabstackengine,xcolor} \usepackage{amssymb} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math axis \sbox2{0}% \sbox4{...
user avatar
  • 3,210
3 votes
2 answers
503 views

Using \vspace togehter with \hspace to place a citation over an image

I have an image I would like to don with a citation. However, placing the citation on top of the image has proven to be a bit of a challenge. Simply placing the citation after the image with \...
user avatar
  • 653
7 votes
3 answers
1k views

Vertical alignment of \stackengine stacks

I would need to write a few letters above certain syllables in a normal text. I've found this great \stackengine package, which seems to do the job. \documentclass{article} \usepackage{stackengine} \...
user avatar
2 votes
1 answer
142 views

Why isn't the text in `tabularx` vertically centered when math stacking commands are used?

When I try to use math environments with stacking features, such as \Vectorstack from stackengine package, the text will not longer be vertically centered in the cell. Rather, it goes upwards as if it ...
user avatar
3 votes
2 answers
117 views

How can I force a custom command to take effect even when called in math environment?

I want to define a new command that is similar to \addstackgap from stackengine package except that it has an optional argument. The command modifies the small stack gap so that the preferred amount ...
user avatar
5 votes
1 answer
173 views

Lettrine + Stackengine: Bad placement of dropped capital

Updated: No longer an issue with lettrine 2.01 Weirdly, this has been working fine for me for months (if not years), however I've been able to boil down my issue to a MWE and it appears that ...
user avatar
  • 969
1 vote
3 answers
220 views

Specific alignment of subscripts in math mode joint with overleftarrow. How to avoid phantom space fiddling?

The oveleft/rightarrow-command is not optimal because it shiftes indices to much to the right in formulas like: $\overleftarrow{D}_v$ Therefore, I use the following macro which I have adapted from ...
user avatar
  • 322
9 votes
3 answers
194 views

Stacking thick bars below a symbol

I am using the following commands to place an arbitrary number of specialized, thick bars (\xbar) below a letter. \documentclass[prb,preprint]{revtex4-1} \usepackage{stackengine} \stackMath \...
user avatar
  • 371
1 vote
2 answers
997 views

Align multiple matrix equations and their elements

I have a set of multiple equations with matrices and I would like that both the brackets and the elements are aligned together. To do so, I followed the accepted answer given in this thread: Multiple ...
user avatar
6 votes
1 answer
193 views

Conflict between eqnarray and tabstackengine

I seem to be getting conflict between the eqnarray environment and the tabstackengine package (which is very useful for matrices, column vectors, etc.). \documentclass{report} \usepackage{...
user avatar
1 vote
4 answers
237 views

Large formula in align - 2

Good Evening I'm new to Latex. I am writing the decomposition of an equation about turbulent motion. I have problems with alignment on the left and with numbering of the equations. I do not ...
user avatar
  • 533
1 vote
1 answer
1k views

Unable to install stackengine package

When I am running the stackengine package in LaTeX, I am getting an error: File listofitems.sty not found. I am trying to get this file through MiKTeX 2.9 package manager but I am not able to find ...
user avatar
4 votes
1 answer
1k views

\tclap vs. \overset and \underset

MWE \documentclass[12pt]{article} \usepackage{color} \usepackage{amssymb} \usepackage{stackengine} \usepackage{mathtools} \begin{document} a\kern0pt{\color{red}{\tclap[5pt]{$\overset{\text{2}}{\vee}...
user avatar
  • 3,210
4 votes
1 answer
134 views

How to use a user-defined command in glossary file?

I've a user-defined symbol like this: \newcommand{\myexclam}{\mathrel{\stackinset{c}{}{t}{}{\rotatebox{-45}{\scalebox{.5}{$/$}}}{$!$}}} This symbol should be used in one of my glossary's entries as ...
user avatar
  • 3,419
4 votes
1 answer
150 views

tabular/stackengine: How to exceed/clobber row or cell frame

I have a table where some cells may contain an additional qualifier element right above their contents. Imagine 3 houses and their owners at certain points in time. Some owners may be related to ...
user avatar
  • 969
2 votes
1 answer
599 views

Long division help

I've had to ask a new question since I can't figure out how to post the code into the thread I'd opened. I've tried manipulating the code Steven B. Segletes posted in Sharelatex to get what I want. ...
user avatar
  • 41
3 votes
1 answer
252 views

xelatex + unicode-math + \big = ↯

(Note: See EDIT below that rules out both stackengine and standalone as the culprit) Input: \documentclass{standalone} \usepackage{unicode-math} \usepackage{stackengine}\stackMath \begin{document} \(...
user avatar
0 votes
0 answers
817 views

Error with `\Longstack` command

I am getting an error with the following code. The editor, WinEdt8.0, gives an error message indicating that it does not recognize the command \Longstack. Is there a package that I am missing? ...
user avatar
6 votes
1 answer
1k views

Two questions about the stackengine package:

Borrowing from this post, I constructed the following example: \documentclass{article} \usepackage{stackengine} \begin{document} \[ \setstackgap{L}{.7\baselineskip} \setstackgap{S}{9\baselineskip}...
user avatar
  • 2,079
1 vote
1 answer
456 views

\textarabic highlight specifc letters or elements of text

My question is: how can I highlight specific letters or "accents" of arabic text, without disrupting the connection of the letters? For example, see the gray highlighted text (this was edited in gimp):...
user avatar
  • 183
2 votes
1 answer
82 views

`\\` doesn't make a newline in tabstackengine together with environ

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{tabstackengine} \stackMath \setstacktabbedgap{0.5em} \setstackTAB{ } \makeatletter \robustify{\@normalcr} %...
user avatar
  • 27.9k
1 vote
1 answer
417 views

Errors with tcblisting and tabstackengine

I want to use the tabstackengine package in a tcblisting environment, but get a lot of error messages. How can I make this work? \documentclass{article} \usepackage{amsmath} \usepackage{...
user avatar
  • 27.9k
3 votes
1 answer
175 views

Horizontally centering glyph over text

In the given MWE, note that the new slur command is not centered with the two Fs that it connects. I've tried adjusting the scale of lilyGlyph, but it remains too far left. I would like the ends of ...
user avatar
  • 1,964
3 votes
3 answers
175 views

How to add a symbol at the left top corner of standalone document?

So far, here is my document (I use the stackengine package to stack my formulas). \documentclass[border=1pt, class=scrreprt]{standalone} \KOMAoptions{fontsize=15pt} \usepackage{stackengine} \...
user avatar
  • 6,152
8 votes
2 answers
764 views

Stackengine centering problem

I have a problem centering text with stackengine stacks. My MWE is: \documentclass{article} \usepackage{stackengine} \begin{document} \Shortstack[c]{Cognicion abstractiva} \end{document} The result ...
user avatar
  • 7,725
3 votes
2 answers
208 views

delete predefined character area

Hey guardians of knowledge, I need to create special symbols by stacking letters and a reversed version of \u{}. The problem is that diacritics like \u{} come with a predefined character area (try \...
user avatar
  • 558
4 votes
1 answer
909 views

Automatically put subcaptions inside picture

I want the same thing as those guys: Put subfigure labels inside figures using subfig package Subfigures with number inside figure But with one minor difference: I don't like the idea to write ...
user avatar
1 vote
1 answer
694 views

How change the default font size of a particular font mid document?

I am using XeLaTeX(fontspec) and I have the following problem. I am using a lot of differents fonts in the preamble like \setmainfont{GFSDidot} \newfontfamily{\greekfont}{CMU Serif} \...
user avatar
  • 1,075
16 votes
3 answers
529 views

Environment to stack a word and a number

There is a requirement to write a list of words, underline each word and place a number centered below the line. Using the stackengine package I have prepared the following MWE. \documentclass[12pt]{...
user avatar