Questions tagged [nesting]

{nesting} is about nesting document elements. Use this tag in addition to other tags specifying what should be nested.

Filter by
Sorted by
Tagged with
0
votes
2answers
17 views

Using nested align* to split a long numerator into multiple lines leads to “Erroneous nesting” error

I am using an align* environment within another align* environment because I have a fraction with a long numerator that I want to split into two lines within the numerator. Here is what I tried: \...
0
votes
1answer
19 views

numbererd tabluarx inside tabulars

I am generating tex documents automatically (HTML -> pandoc(tex) -> postprocess -> XELATEX), and my general table environment is tabularx (with usage of package ltablex, so these are ...
0
votes
0answers
20 views

enumitem ignores level specification?

Consider the code \documentclass{article} \usepackage{enumitem} \newlist{longitemize}{itemize}{20}% \setlist[longitemize,1]{label=\textbullet}% \setlist[longitemize,2]{label=\normalfont \bfseries \...
-1
votes
2answers
42 views

Tabbing wrong in nested commands [closed]

So, I have two commands defined in my document class like this. \newcommand{\skillgroup}[2]{ \begin{tabbing} \hspace{5mm} \= \kill \sqbullet \>\+ \textbf{#1} \\ \begin{minipage}{\smallertextwidth} ...
2
votes
1answer
355 views

Ordered Nested lists similar to Microsoft WORD numbered nested lists

In LaTeX, by default the numbering styles change depending on the depth of the nested lists as shown below. \begin{enumerate} \item First level item \item First level item \begin{enumerate} ...
4
votes
1answer
105 views

Nested enumeration

I'm trying to create a list of the following type: 1a) Apples 1b) Bananas 1c) Oranges 2a) Tomatoes 2b) Carrots 3) Bread 4a) Cake 4b) Cookies I tried to use both ...
2
votes
2answers
68 views

Nested Environment in LyX: Theorem with only an enumeration

I've read the following posts but I'm not sure they answer my doubt: Lyx nested environments; Normalizing nested environments for cleaner design (LyX). I am using the AMS theorem environment, and I ...
4
votes
2answers
305 views

How can I typeset a group action?

How would I typeset something that looks like the following? I have tried \begin{align*} \sigma : T^k(V) & \longrightarrow T^k(V) \\ T & \longmapsto \begin{aligned} ...
2
votes
0answers
97 views

A typography challenge from over a hundred years ago

I am a newbie in LaTeX. I am now typesetting the formal proof from Begriffsschrift by Frege, which look like this: As seen in the picture, I decide to put all the elements of the proof into a 3x3 ...
1
vote
1answer
62 views

Nested numbered alignement

(disclaimer : yes I have already read : Nested cases, alignment and numbering, no it doesn't help) I am trying to get something like this : and : BUT with the numbering aligned. I got the above ...
3
votes
0answers
34 views

How to cross reference nested enumeration lists?

Within theorems, I have nested enumeration lists: 1.1, 1.2, 1.3, 1.4, etc. 2.1, 2.2, 2.3, 2.4, etc. For referencing to 1.1 to 1.3 and 2.4 I tried to use the usual command \cref{en1-1,en1-2,en1-3,...
1
vote
1answer
118 views

Highlighting aligned equation lines using tcolorbox

In my first box I've shown the three lines of math I want to display. I then wish to highlight the first and the last lines according to the design of box A and box B, seen below. Is it possible to ...
5
votes
2answers
169 views

Why does nesting some xstring commands causes errors?

Why does combining some command of the xstring package causes errors? e.g. when I compile the following MWE: \documentclass{article} \usepackage{xstring} \begin{document} \section{A} \StrCompare{\...
0
votes
1answer
59 views

How to increase counter on nested subfigure environment?

I would like to add an automatic numbering of nested subfigure environments. I found the following answer, which shows how I can manually add an additional Arabic number to my subsubfigure, but I ...
1
vote
0answers
21 views

Is there a way to add a directory to the search path on the fly / not redefine?

Numerous examples (see this one for instance) describe the the use of: \makeatletter \def\input@path{% {<path1>}% {<path2>}% }% \makeatother as way to broaden the compiler's search ...
0
votes
0answers
77 views

Nesting New Fonts: Trying to Use Small Caps

Xelatex. I'm trying to use small caps with the Century Schoolbook font, which doesn't have them. I get "font not found" errors when I try to use system fonts that have small cap variants. That error ...
0
votes
1answer
66 views

How to display a numbering inside parentheses

I'd like to display the following numbering in LaTex: (n-m) (a)... (b)... where n represents any section number and m the sequential number in this section. It can not be equation numbering ...
2
votes
0answers
48 views

Wrapping environment passing optional argument to wrapped environment

I'm trying to create a myframe environment which wraps a Beamer frame environment but sets a default title. Additionally, I want to be able to pass optional arguments to myframe which should then ...
1
vote
1answer
82 views

Recursive or nested comment blocks

I know we can comment out a block of text in Latex using \begin{comment} and \end{comment} commands. However, when I call this recursively (or in a nested fashion) as shown below, it fails: \begin{...
0
votes
1answer
62 views

Calling nested indexing macros

Here is my simplified document sample which is failing with the errors mentioned in the comments. I tried to enclose the nested macro with { and } and it didn't work, same with enclosing it with \...
1
vote
0answers
22 views

Is it possible to get a series of nested numbered lists without having a nested enumerate environment?

In particular, I am hoping to accomplish something like your standard outline with text: I. Level 1 II. Level 1 A. Level 2 1. Level 3 2. Level 3 B. Level 2 ...
1
vote
1answer
44 views

shellescape macro nested in another macro

How do I use a shellescape (| echo "stuff") macro as another macros input if there are "bad" characters like _ contained. I will use my full example as reference. The idea is to replace \...
2
votes
2answers
43 views

What's the best method for bracing a list of aligned equations?

I would like to reduce the height of the \left\{ in the following, to make it the same height as the equations: %\usepackage{esdiff} \begin{align*} \mathcal L&= - 0.75 w(S) - 0.25 w(F) + \lambda ...
3
votes
2answers
116 views

tikz-cd nested tikzpicture wrong center anchor

I want to place a tikzpicture in a node/cell of a tikz-cd diagram and then paint some more stuff in the inner tikzpicture. However, it seems that the nesting messes up the center anchor. Concretely: ...
0
votes
0answers
144 views

How to use \discretionary inside soul's \hl?

\documentclass{article} \usepackage{soul} \usepackage{color} \begin{document} Some \hl{te\discretionary{-}{-}{-}xt}. \end{document} The above does not compile due to Missing { inserted, Improper ...
0
votes
1answer
108 views

How to write this underdash? [closed]

I want to write this expression : so, what will be its code? please help...
2
votes
1answer
73 views

Text not vertically aligned within tabular with nested tabular

I am trying to vertically align a row heading with a table inside the row. But no matter what I do, the heading remains in the center. I tried using p{'width'}, but that had no change. \documentclass{...
4
votes
2answers
144 views

Renewcommand with ensuremath and brackets

I'm making a .sty file (which is called my-macros.sty and is in my home /texmf directory) where I define some commands that I constantly use. Among these commands, there are the following \newcommand{...
2
votes
2answers
163 views

“environ” package and nested environments won't work [duplicate]

I'm trying to make a little style package to make some nice blocks with icons and so on. I'm using environ package + tikz. Actually the document compiles and shows me my boxes but with errors saying ...
3
votes
3answers
135 views

Nested alignments

I want to make alignments that look like this: which I have done by using \begin{align} & \frac{dx}{dt} = y \qquad \frac{dy}{dt} = x \\ \implies & \frac{d^2x}{dt^2} = \frac{d}{dt}\...
7
votes
2answers
284 views

LaTeX 2e environment that “knows” the name of surrounding environment

I'd like to have a LaTeX 2e-environment which when occurring inside another environment "knows" the name of the surrounding environment. Is this possible? I know that \@currenvir provides the ...
2
votes
1answer
82 views

Nesting Nightmares

I am trying to place this in my document Of course, if you have access to wolframalpha you can do this: \href{https://www.wolframalpha.com/input/?i=interpolatingpolynomial%7B%7Bx_0,y_0%7D,%7Bx_1,y_1%...
7
votes
2answers
435 views

Nested cases, alignment and numbering

I have tried all different sorts of solutions including align, aligned, cases and equation to have the result I get with this code except that I want numbering for the three lines in the aligned ...
3
votes
2answers
130 views

How to disable nesting in hyperrefs?

Is there a way to disable nesting in hyperrefs? Here is an example: \documentclass{article} \usepackage{hyperref} \usepackage{nameref} \begin{document} \tableofcontents \newpage \section{One} \...
5
votes
1answer
126 views

How does xparse handle nested delimited arguments?

In this answer egreg mentions that the r argument type from the xparse package handles nested delimited arguments, as shown in this small example: \documentclass{article} \usepackage{xparse} \...
1
vote
1answer
168 views

TeX Capacity exceeded, semantic nest size

I'm having a problem that I have no idea what it can be caused by, the error it produces is the following "TeX capacity exceeded, sorry [semantic nest size=500]. \end{align}" Using TeX studio and have ...
5
votes
2answers
852 views

Problem with nested if statements

I'm trying to use some nested if statements to decide if a file exists and what kind of loadings are possible: \IfFileExists{./emoji.sty}{ \ifxetex \usepackage[bw,font=seguiemj.ttf]{emoji} \...
0
votes
1answer
42 views

Interrupting nested lists

How to interrupt the nested lists and resume directly from the inner list? For example: Step 1: Define the below items \begin{enumerate} \item Item Level 1 \begin{enumerate} \item ...
4
votes
2answers
289 views

Problem with nesting macros

I have written a macro to denote either the Fourier transformation (curly F by itself) or the Fourier transform of a function (curly F followed by a function and enclosed in \left( and \right) ). It ...
1
vote
1answer
171 views

LaTeX Grammar and Nesting Rule

Is there any grammar and rule describing the allowed nestings and combinations and the allowed format of the arguments in LaTeX? E.g. \section{\verb|mySec|} \section{\begin{huge}mySec\end{huge}} \...
2
votes
1answer
508 views

How to nest multiple documentclass

I would like to create a running diary of documentclass 1 that constitutes multiple instances of documentclass 2, where preferred documentclass 2 is 'minutes'. I am aware of subfiles, but don't know ...
2
votes
1answer
250 views

LaTeX Nesting \verb in \section

Why is \section{\verb|mySec|} invalid LaTeX code.
3
votes
1answer
256 views

Nested alignment of grouped equations

I want a collection of equations to be aligned as a whole, yet subgroups of them given descriptions. What follow are two attempts, each which achieve exactly one of the requirements: \documentclass{...
6
votes
4answers
231 views

nesting macro identifying string length 1 using xstring ifthen packages

I would like to write a latex macro \p which given input X returns X or (X) depending on whether X has character length 1 or not. Moreover, I want to be able to nest applications of \p. E.g. I want ...
0
votes
4answers
2k views

How to deal with big equations?

I have a system of equations where the equations are big (one line isn't enough). I found this solution (the second one, from egreg How to align a set of very long equations) to manage the "how to ...
1
vote
2answers
810 views

how to create a nested table

I searched how to create a nested table but I didn't find a solution that works for me. What I need is to create this table. Any one can help please?
0
votes
3answers
147 views

Fix alignment in nested description list without line break

I'm trying to make a nested description list like so: \usepackage{enumitem} \begin{document} \begin{description} \item[Languages:] \begin{description} \item[High:]Python, Java, R, SQL, SAS \...
1
vote
1answer
137 views

Verbatim environment nesting troubles [duplicate]

I have troubles trying to nest verbatim environment inside my \newenvironment definition one so I can include my source code faced to its result as on the most latex books printed. I can do it in a ...
0
votes
1answer
61 views

how to write this nested expression

How to write this mathematical expression in Latex I have no idea ..please help
0
votes
2answers
227 views

How can I achive “no” or better “leftmargin=* from main enumerate” indent on nested enumerate?

I use enumerate inside a tabularx and I removed vertical spacing. I also set the indentation of the first level to leftmargin=*, which leads to the right indentation. Now I want the second level ...

1
2 3 4 5 6