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
0 votes
0 answers
47 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
1 vote
1 answer
57 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
0 votes
2 answers
160 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
71 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}, ...
stimulate's user avatar
  • 107
5 votes
4 answers
189 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
279 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
166 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
  • 503
2 votes
2 answers
63 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
62 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
172 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
148 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
449 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
61 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,625
1 vote
2 answers
148 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
94 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
328 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
239 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
123 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
  • 861
1 vote
1 answer
85 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
48 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
41 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
130 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
229 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
100 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
103 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
339 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
947 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
352 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
133 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
101 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
58 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
176 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
182 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
344 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
218 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
98 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
974 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,236
0 votes
1 answer
91 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,145
-1 votes
2 answers
132 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,105
4 votes
1 answer
284 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
343 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
634 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
2 votes
0 answers
148 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 ...
Ran Shy Gig's user avatar
1 vote
1 answer
72 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 ...
MacroController's user avatar
3 votes
0 answers
139 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,...
Jack's user avatar
  • 314
1 vote
1 answer
451 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 ...
Matt's user avatar
  • 417

1
2 3 4 5 6