Skip to main content

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
3 votes
1 answer
50 views

nested enumerate behave strangely in beamer

I'm working on a nested enumerate list where I'm trying to have \items to appear sequentially with the \setbeamercovered{dynamic}; however, for the last item of my list there appears to be a problem ...
Matteo's user avatar
  • 399
1 vote
3 answers
49 views

Create an environment that encapsulates gather* environment

I want to create environment that encapsulates gather* environment. The code I wish worked is the following and I believe my intent is made very clear with it. I'd like it to be possible to make an ...
Kaarel Parve's user avatar
4 votes
2 answers
181 views

conditional enumerate labels

I am writing a math book. I have exercises that have questions AND subquestions (for example 1 then 1.a, 1.b, 2 then 2.a, 2.b, 2.c etc.). I also have exercises that have one questions, without ...
stargazer45's user avatar
2 votes
1 answer
44 views

Link produced by href taking a command as first argument is not working "as I want"

I am trying to define a command that takes a bib key, gets its title, author, and DOI, and makes a hyperlink in which the link is the DOI address and the text shown is the paper title. I need this to ...
mikiman's user avatar
  • 23
0 votes
0 answers
57 views

Vertical lines in nested itemize environment

Looking to add vertical lines that separates the head levels in nested itemize environment as shown in the image. There is a similar question here. But I want to keep the bullets as shown in the image....
Tarek Acila's user avatar
2 votes
1 answer
69 views

\topsep in nested list ignored

I don't know if this is a LaTeX problem or an enumitem problem, but it seems that \topsep (and similarly \partopsep) is ignored in nested lists if the list starts in vertical mode. Consider the ...
Gargantuar's user avatar
  • 1,251
0 votes
2 answers
200 views

delimeter not extending enough in relation to the denominator of a major fraction containing itself an extensible delimeter and a minor fraction

I have the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} A1 &= \left\{\frac{1}{2\omega} \right. \\ & \enspace \left. \left[\frac{z_{v}^2}{...
Euclides's user avatar
0 votes
1 answer
80 views

TikZ - tikzpicture nested in \graph node

I am trying to nest tikz graph environments into the nodes of a tikz graph environment: \begin{tikzpicture} \graph [layered layout]{ ABABAB -> { AB -> {A, B}, ...
simulate's user avatar
  • 107
5 votes
4 answers
196 views

Trouble with nested macros containing ifnum

I have problems with macros containing ifnum. After using the command \noexpand one macro works fine, nesting two of them does not compile but causes the error message Extra \fi. \fi as in the ...
gschaaf's user avatar
  • 147
4 votes
3 answers
285 views

Nesting multiple equations

I want to be able to follow a derivation cleanly from eqn 1 to eqn 2(a or b) to eqn 3a(a or b) to eqn 4aa(a or b), etc. if it makes sense. I am currently using the built-in sub-equation environment to ...
Patryk Kozlowski's user avatar
3 votes
1 answer
1k views

Overleaf - Compiling multiple .tex files into multiple outputs (alternatively, nesting document classes?)

Clarification: I am looking for a way to automatically run pdflatex on multiple .tex files to produce multiple separate .pdf files when I click the Recompile button in Overleaf. I have multiple .tex ...
L Duran's user avatar
  • 33
4 votes
2 answers
194 views

nested alignment with arbitrary align location

I would like for the alignment locations for one align environment not to interfere with the alignment of another environment. For example, in the following code, I have long expressions for g_1, g_2, ...
rrrrr's user avatar
  • 513
2 votes
2 answers
66 views

Redefine equation enviroment using nesting

Many times I write so long equations that I need to use this sequence: \begin{equation}\begin{gathered} ax+by=u\\ cx+by=v \end{gathered}\end{equation} I would like to redefine the equation ...
Serubi's user avatar
  • 23
4 votes
1 answer
71 views

Nested enumerate with `\fbox{enumi}` stops incrementing

I wanted to have boxes around my item labels of enumerate. I created a new command: \newcommand{\sqenumi}{\protect\fbox{\arabic{enumi}}} This way, I can get what I want with \begin{enumerate}[label=\...
Nora NICOLAS's user avatar
0 votes
1 answer
225 views

Display bibliographies as section and subsections in report documentclass

I am trying to add the 2 bibliographies within the same chapter and each one is spanning certain sub-bibliographies. However using the report documentclass each bibliography is displayed as a chapter ...
l-dietrich's user avatar
1 vote
1 answer
206 views

Error: Use of \@index doesn't match its definition

First, let me show you something that works. It creates a link from an indexed term to its corresponding entry in the index, and vice-versa. \newcommand{\myname}[2]{#1\renewcommand{\@currentlabel}{#2}}...
Vincent Granville's user avatar
2 votes
4 answers
512 views

Draw nested rectangle text boxes with Tikz

I would like to draw something like this with Tikz (exemple given with 4 boxes but it could have more boxes): For the moment, I have obtained this (thanks to this answer and this one (for the ...
zetyty's user avatar
  • 777
1 vote
1 answer
68 views

Adjusting the horizontal alignment of labels of nested numbering lists

In the following example I have succeeded aligning the first level of numbering both internal numbering of exam document class and numbering of enumitem package exactly after the left margin. I would ...
miltos's user avatar
  • 2,657
1 vote
2 answers
180 views

Nesting blochspheres in tikzpictures using the blochsphere package

I am using the blochsphere package (see 1) and I want to nest it in another tikzpicture, to work with several blochspheres. The manual tells one to put "nested=true" in the settings for \...
manuel459's user avatar
  • 319
0 votes
3 answers
103 views

Nesting boxes from the outside in

Array programming languages have the concept of boxing. J is such a language. Boxes can contain anything, nothing included. Most of all, because of array languages' design, boxing happens from the ...
r440's user avatar
  • 9
2 votes
0 answers
464 views

Generic alternative to \section, \subsection, etc [duplicate]

I often find myself changing the structure of my document, and having to change all sections to subsections (or vice versa), etc. Is there a way to use something like nested brackets or indentation ...
Stephane Bersier's user avatar
1 vote
3 answers
258 views

Nested Array Multicolumn

\begin{array}{ll} 1. (p \to q) \land (p \to r) & \text{premise} \\ 2. p \to q & \land \text{-elim(1)} \\ 3. p \to r & \land \text{-elim(1)} \\ \multicolumn{2}{l}{ \...
GamerWiz's user avatar
1 vote
3 answers
128 views

How to define a LaTeX shorthand for nested indentation "contexts"

I am looking for a convenient way to code nestable "contexts" whose extents are displayed through indentation. Each context consists of a sequence of "statements" (i.e. lines) and/...
kjo's user avatar
  • 891
1 vote
1 answer
107 views

How to align subequations within table

I would like to reproduce the structure, alignment, and numbering, of the equations in this table: I have tried many combinations of the environments equation, subequation, align, table / tabular, ...
David's user avatar
  • 113
1 vote
0 answers
50 views

What is the right way of cascading styles using nested environments/macros, while each environment/macro might partially stylize its embedded content?

I have asked similar to this question before, but I think I have to describe it in another way. Need What is the right way of cascading styles using nested environments/macros (much like the way CSS ...
Shahryar's user avatar
  • 365
0 votes
0 answers
42 views

Nested Stand-Alone with flash cards not working

I have made flash cards using the flacards document class, but they are from multiple topics across multiple semesters. I want to be able to have a unique footer for each topic/semester, as well as ...
Wouter's user avatar
  • 11
0 votes
2 answers
146 views

Passing nested argument specifier to hook

Consider a macro that declares some other document command, but by accepting their body as an own argument (simple indirection) also adds the invocation of itself to some hook as in \...
Maximilian Keßler's user avatar
3 votes
4 answers
250 views

escape hashs (#) passed as argument to use them in inner macro

I am using nested macros using the xparse package, my ultimate goal being to have a custom macro factory. I have simplified my current problem here. I want to give a pattern as an argument, like in ...
User9123's user avatar
  • 147
0 votes
1 answer
110 views

Nested blockquotes in latex

Within Markdown it is possible to use nested blockquotes, which looks like this: Dorothy followed her through many of the beautiful rooms in her castle. The Witch bade her clean the pots and kettles ...
RKoornneef's user avatar
0 votes
0 answers
106 views

Nesting tcolorboxes with listing

I'm trying to build a macro to ouput the content in a tcolorbox. Ultimately, any kind of content can be put in that box (image, tcolorbox, code, ...). However, when using the macro (instead of the ...
3isenHeim's user avatar
  • 2,107
0 votes
1 answer
73 views

isov2 document class - note too deeply nested

I am using the isov2 document class and are using four \note{s in one clause. The isov2 documentation says: NOTE 4 - Similarly, you may get the message! Too deeply nested - Again, hit <return> ...
skvery's user avatar
  • 597
0 votes
2 answers
364 views

How can I write nested matrices like this? [closed]

I am reading this Wikipedia article on Kronecker product. How can I use LaTex to write this?
CaTx's user avatar
  • 201
2 votes
2 answers
1k views

Nested inline math for new command with argument

There exists some consensus on the fact that one shouldn't use $...$, \(...\) or \ensuremath inside of newcommand (or NewDocumentCommand, ...) definitions to wrap passed macro arguments that are to ...
Alex Povel's user avatar
0 votes
2 answers
399 views

How to implement \savebox

\documentclass[a4paper,10pt]{article} \usepackage[left=24mm,right=30mm,bottom=25mm,top=25mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \...
user avatar
0 votes
0 answers
171 views

Nesting deluxetable and figure in AASTeX

I'm using AASTeX's two-column style and I was trying to 'combine' a figure and table into one fitted inside a single column. However, the figure doesn't display including the "main figure's" ...
CGHA's user avatar
  • 3
4 votes
1 answer
103 views

Proof environments inside statements - is it harmful or is it OK?

I discovered that a student of mine uses constructs like \begin{theorem} ...a statement... \begin{proof} ...proof of that statement... \end{proof} \end{theorem} My first reaction was ...
მამუკა ჯიბლაძე's user avatar
0 votes
0 answers
60 views

Combine / nesting \newcommand with \def that are referencing #1, #2, etc in different ways?

I have a polar plot made with TikZ that I used to draw in some old documents. Now I want to use this in my document class instead of having the whole code snippet every place that I am drawing the ...
Dan-Erik Lindberg's user avatar
1 vote
1 answer
205 views

coloring bullets in nested lists

I would like to color bullets in my lists (for example, to signify tasks that are done or not/hard or easy, etc.), including in nested lists. I found this and successfully used it. Since I would like ...
Ophir Averbuch's user avatar
0 votes
1 answer
206 views

Change symbols of levels of unordered list using outlines

Is it possible to change this latex from outlines package \documentclass{article} \usepackage{outlines} \begin{document} \begin{outline} \1 Level 1 \2 Level 2 \3 Level 3 \end{outline} \end{...
user4933's user avatar
  • 202
0 votes
1 answer
394 views

Add third level after itemize then list in nested unordered list

I have a unordered list with 2 levels in the following form: \begin{itemize} \item Level 1 \begin{list}{$\circ$}{} \item Level 2 % Trying to add a third level here \end{itemize} ...
user4933's user avatar
  • 202
1 vote
1 answer
228 views

nesting multiframe

I wonder whether the following is possible. I'd like to nest animateinline and multiframe environments to simulate the time dependance of a signal for different parameters. Something like that: \...
Malgorzata's user avatar
0 votes
1 answer
108 views

Nesting environment inside new command generating errors

Extreme TeX novice, sorry for the length of the example, I wasn't sure what packages were important to replicate the problems. I was trying to create a simple command that I could use to injected ...
Dweeberly's user avatar
  • 103
0 votes
2 answers
1k 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: \...
Lone Learner's user avatar
  • 3,266
0 votes
1 answer
92 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 ...
olidem's user avatar
  • 138
0 votes
0 answers
51 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 \...
Jason Gross's user avatar
  • 2,169
-1 votes
2 answers
133 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} ...
cerveza's user avatar
2 votes
1 answer
2k 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} ...
nam's user avatar
  • 1,115
4 votes
1 answer
294 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 ...
Gil's user avatar
  • 43
3 votes
2 answers
356 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 ...
Zarathustra's user avatar
4 votes
2 answers
676 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} ...
isekaijin's user avatar
  • 175

1
2 3 4 5 6