Questions tagged [stackengine]
{stackengine} is for questions that do or might conceivably make use of the stackengine package
68
questions
2
votes
1
answer
29
views
Undefined control sequence. <argument> \SavedStyle \mkern .2mu\AC
I am attempting to adapt the code for \reallywidehat from a 2016 post, What does \stackMath do?, into my fairly large project as I transition typesetting from LaTeX to LuaLaTeX.
Typesetting the ...
2
votes
1
answer
32
views
Centerstack does not create space for items
I am trying to get \Centerstack to create space around the contents of every item, but it seems that the vertical space of 1em above the baseline for each item. Is it possible to modify this?
\...
1
vote
1
answer
28
views
How to place symbols above and below the same space in text mode?
I'm inserting a word above a between-word space and a symbol below the same space (to imitate a teacher's correction). I'm using pdflatex and adapted
this answer:
\documentclass[11pt]{article}
\...
0
votes
1
answer
117
views
Lewis structure with double bond
To determine the lewis structure of molecules, I used the method proposed here. But I am blocked for certain molecules such as dioxygen:
How can I place double bonds and doublets on each atom?
\...
1
vote
1
answer
46
views
Image source below image and longer than its width
This is a follow-up to the answer from https://tex.stackexchange.com/a/412010/221716
As with the original question, I'd like to include the source text under the image. However, the URL is longer than ...
1
vote
1
answer
75
views
Top-align stackengine stacks
The title may be incorrect if I have misunderstood the problem. feel free to fix.
Steven Segletes helpfully provided me with some latex in this answer which creates a row consisting of left, center, ...
1
vote
1
answer
32
views
Adjust multiple line spacing when using mixed fonts with \Centerstack from stackengine
In the following image, I'd like to nudge the line in the up just a bit so that it appears vertically centered between the words Seaweed and Ocean. The \vspace{-10pt} macro doesn't seem to do anything ...
0
votes
1
answer
51
views
how to make V. for versicle indented and in red
I am typesetting an Orthodox liturgical text and would like to typeset a versicle (V.) before certain verses. I am currently using the following:
\documentclass[12pt]{article}
\title{Orthodox ...
5
votes
1
answer
50
views
Superimposed glyphs and super/subscripts
I am using stackengine to superimpose a \cup and \^{} to create a cup with a head of an arrow on the right endpoint. This works in normal size but if I use the new symbol as a super/subscript, then ...
5
votes
1
answer
114
views
Tweaking an Initfamily Do-It-Yourself Colored Lettrine
The following code mimics Steven B. Segletes' answer to the question posed in Adding a Letter to an Image in a Do-It-Yourself Lettrine:
\documentclass[12pt]{book}
\usepackage{yfonts,xcolor,scalerel,...
1
vote
1
answer
108
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}
...
2
votes
1
answer
105
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}
\[
...
1
vote
2
answers
366
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 ...
2
votes
1
answer
99
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
81
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
68
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
1
answer
83
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 ...
1
vote
1
answer
55
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 ...
3
votes
2
answers
285
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]{...
4
votes
3
answers
130
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
...
3
votes
2
answers
157
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.
\...
1
vote
1
answer
226
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]{...
4
votes
2
answers
278
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 ...
3
votes
1
answer
223
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{...
1
vote
2
answers
526
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 ...
1
vote
1
answer
123
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{\...
3
votes
1
answer
56
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, ...
2
votes
1
answer
152
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 ...
5
votes
3
answers
308
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*}
...
3
votes
3
answers
600
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 ...
0
votes
1
answer
69
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 ...
0
votes
0
answers
128
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{...
3
votes
2
answers
857
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
\...
7
votes
3
answers
2k
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}
\...
2
votes
1
answer
181
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 ...
3
votes
2
answers
221
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 ...
5
votes
1
answer
181
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 ...
1
vote
3
answers
286
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 ...
9
votes
3
answers
225
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
\...
1
vote
2
answers
1k
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 ...
6
votes
1
answer
225
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{...
1
vote
4
answers
266
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 ...
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 ...
4
votes
1
answer
2k
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}...
3
votes
1
answer
151
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 ...
4
votes
1
answer
175
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 ...
2
votes
1
answer
757
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. ...
3
votes
1
answer
295
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}
\(...
0
votes
0
answers
983
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?
...
6
votes
1
answer
2k
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}...