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

learn more… | top users | synonyms

2
votes
0answers
42 views

Enumitem and nested lists behaviour

I have a problem with enumitem package and nested lists. I'm cloning description basic list (naming it notacion). As you can see in MWE below, when are same type lists, there's no problem, and every ...
0
votes
0answers
11 views

How to remove vertical space between enumerate list and sub-list? [duplicate]

I'm putting together some homework sheets for my maths class using LaTeX (more specifically via LyX) and there's something to do with the bullet points that's annoying me. Look at the following image. ...
2
votes
1answer
14 views

Error while nesting two environments

I'm trying to nest two environments: \documentclass{article} \usepackage{environ} \NewEnviron{innerEnviron} {INNER \BODY{} INNER} \newenvironment{outerEnviron} {OUTER \begin{innerEnviron}} ...
1
vote
0answers
61 views

Nesting tikz pictures

I do prepare some standalone tikz pictures, which later I want to combine in a 'subfigure' style. Is it possible to put tikz pictures, drawn in absolute coordinates, into nodes, and combine them the ...
4
votes
1answer
31 views

How to nest comment and theorem in one environment?

I'm using comment and amsthm packages for comments and theorems. I'd like to skip some theorems. I've tried to create a new environment with theorem nested in a comment: \documentclass{book} ...
0
votes
0answers
47 views

Nested environments: is sequence important?

In the MWE right at the bottom, I define a new environment called teacheronly which wraps text inside two environments. The first environment is a polyglossia language setting, and the second is a ...
4
votes
2answers
167 views

Define a new command with parameters inside newcommand

I have read the question and answers about: Defining a newcommand, with variable name, inside another newcommand How to define a macro to create a new macro with a name passed as its argument? What ...
1
vote
3answers
89 views

How to have nested brackets with a common element

I'm trying to do something like in the image. However LaTeX does not seems to support this kind of nested brackets. Now I have \begin{align*} \overbrace{ \underbrace{ \overbrace{ ...
2
votes
1answer
60 views

Increasing the maximum number of enumerate environments?

I am using the outlines package to write some outlines, and occasionally four levels are not enough to present my data. I understand that this is a limitation of LaTeX, as you cannot nest more than ...
7
votes
2answers
149 views

How to produce nested matrix with labels just using the amsmath package?

I am trying to create this matrix in Microsoft word 2010 with mathtype and since mathtype just uses the amsmath package, I should only use this pckage in my latex code. Can anyone tell me what code ...
1
vote
0answers
62 views

Texmaker - nested document structure

Let's say I have a file that inputs files who input files. foo.tex: \input{bar} bar.tex: \input{baz} baz.tex: Hello World! When I am in foo.tex, Texmaker shows the structure foo --- bar ...
1
vote
2answers
58 views

Nested acronyms with Acro and Mouse-over

I came along Clemens’ solutions from 161521 for adding mouse over effects to a PDF. It works pretty fine, except when I got nested acronyms. As a MWE [Edit: no errors/warnings in Acro 1.6b [Edit: ...
4
votes
2answers
81 views

Nonstandard (non?)nesting of over- and under-braces

\overbrace{ABCDEFG = HIJKL} = PQRSTUV ABCDEFG = \underbrace{HIJKL = PQRSTUV} LaTeX can handle either of the lines above. How can I get both the overbrace and the underbrace, when they overlap like ...
4
votes
1answer
61 views

Nested `mdframed` environments and footnotes

Suppose that you have two mdframed environments, one nested inside the other, and a footnote in the first mdframed environment but not in the second. See the MWE example below. ...
1
vote
1answer
36 views

Nested lists modify properties on depth

How can I control the behavior of formatting(font size, bold, italics, underline, etc...) depending on the depth of a set of nested environments? That is, I'd like the top level to be bold and huge ...
4
votes
3answers
111 views

Vertical alignment of a tabularx cell

I have a tabularx table with: a variable width column X on the left a cell with a nested tabular table on the right Like so: \begin{tabularx}{\textwidth}{ | X | c | } \lipsum[1-1] & ...
3
votes
1answer
78 views

Make item of list fit in page width

The tile just overflows the page, thus its content is lost. How I can make it to break the line and continue below? Here is my code: \documentclass{article} \usepackage{graphicx} ...
1
vote
0answers
81 views

Nested mdframed environment problems [closed]

I have a problem concerning a mdframed into an other mdframed. If the content of the second mdframed is too important, the result is horrible: it's separated by one page and the content of the second ...
3
votes
2answers
77 views

new command for nested enumerate with variable arguments

I have some text that I want to turn into a template which looks like this: Extensions: \begin{enumerate} \item[2.a] xyz \begin{enumerate}[i.] \item a \item b ...
3
votes
1answer
84 views

Using lstenvironment in another environment

The following simple latex code doesn't seem to work for me and there seems to be no reason why: \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{listings} ...
3
votes
1answer
63 views

What are the style parameters for nested lists?

I am working in memoir class and would like to customize some nested lists. But I do not know all the style parameters, in particular, the lengths. How can I list them? This is a generic question, but ...
3
votes
1answer
202 views

Nested CSV with csvsimple

I have two csv files. I want to use the first (countries.csv) to generate sections, and then filter the second (bottles.csv) by the name of the section. Below is an MWE - you can see that the nested ...
5
votes
1answer
207 views

Nested parenthesis automatic indentation in equation

Here is some code that produces a display equation with nested parentheses indented to different depths. \documentclass{amsart} \begin{document} \begin{align*} (\exists d) &\biggl( ...
3
votes
2answers
77 views

Quotes within quotes breaking

When a word in single quotes falls at the end of the quotation, LaTeX decides to render it as "' instead of '". For example: ``He said it was `off the hook''' would render: "He said it was 'off the ...
3
votes
1answer
169 views

Nested \ifdefined statements

I am trying to populate a list of variables (in the attached example starting with \@addressone) with the values obtained from a set of commands. The first variable will get the first of whatever ...
3
votes
1answer
58 views

How can i use a different beamer template for nested descriptions

How can I use a different description item beamer template for nested descriptions? I have a certain kind of descriptions, call them funnys, which may appear nested on slides, and may be nested ...
1
vote
2answers
70 views

nested environment with a star

I want to redefine an environment that include the environment alignat*. I discovered that I can't do that : \newenvironment{variables} { \paragraph{Variables :} \begin{alignat*}{2} } { ...
2
votes
1answer
86 views

How can I apply a custom-defined theorem environment to nested theorems *only*?

In a previous thread, I asked about the possibility of defining a custom theorem environment whose QED symbol would be a boxed version of the theorem's name/number/label. There, I was graciously ...
3
votes
0answers
30 views

How to nest a pre-written chapter into another chapter without manually changing sectioning commands one by one [duplicate]

I have a tex file with several written chapters. Then I found I need to nest one of them to another. I know this can be done by manually changing the sectioning command one by one but I found it ...
4
votes
2answers
216 views

N-level nested nodes

I read this question but I didn't get how to repeat the process more than one time. I make an example: I'd like to have a big green box which contains two copies of the light blue box presented in the ...
3
votes
1answer
291 views

csquotes and invalid nesting with two nested \mkbibquotes

I was surprised when today I got the error message Package csquotes Error: Unbalanced groups or invalid nesting. After a while I found the culprit in my bibliography-file. It is a bib-item whose title ...
9
votes
2answers
577 views

A better way to do nested lists

This is how you type set a nested list in LaTeX: \begin{itemize} \item I have a house \begin{itemize} \item It has 4 walls \item a roof, \item two windows, ...
2
votes
2answers
106 views

latex dynamic subsection nesting

I need to find a command/environment that allows me to nest a [sub]section one level deeper than the level of the parent [sub]section. For example, given this syntax, \section{Foo} ...
4
votes
2answers
63 views

vspace mysteriously being inserted after nested custom environment

I have created my own environment that creates a table using tabu and then puts some vertical space after it, unless my environment is being nested, in which case I want it to skip the vertical space. ...
1
vote
0answers
714 views

LaTeX Error: Too deeply nested

I'm trying to debug a Too deeply nested error in LaTeX. It's not an obvious case of too deeply nested itemize or enumerate items. It's happening far into the document, at a \begin{quote}. Is ...
1
vote
0answers
28 views

Rendering a pdf in a different location, from a standalone tex-file that combines several chapters [duplicate]

I've seen a lot of these questions, but in my search I haven't managed to find an answer to my problem. I am building a directory system for simple use, where I have divided the first folder into ...
3
votes
1answer
213 views

Lyx nested enumerate creation

I try to create the following in LyX. But it does not give what i want. 1 (a) text OR (b) text 2 (a) (i) text (ii) text OR (b) text LyX does allow only to produce as shown ...
2
votes
1answer
94 views

Programming language-like syntax for nested lists

Consider the following code that simply nests two lists using the \ForEach command: \documentclass{article} \usepackage{forarray} \newcommand{\demo}[1] { \begin{itemize} \ForEach{.}{\item ...
2
votes
0answers
124 views

Checking if first portion of an environment's content is empty

Motivation: I am working on a very personalized Exercise/Answer package for my colleagues. The exercise, exsheets, etc. packages don't do what I need. To accomplish this, I create an exercises ...
1
vote
0answers
225 views

Good style to avoid deep nesting in formulation of a theorem [closed]

This is not a technical question per se; it is a question concerning good style (in writing a theorem) I hope it doesn't get closed... In this question of mine, the answer also mentioned that ...
1
vote
1answer
75 views

Removing nested LaTeX `\index`es

How would I, such as with regex and sed, remove all \index tags that occur inside any \index tags? For example, a nested mess like this: \index{Test\index{test\index{test}}ing One\index{one} ...
2
votes
1answer
101 views

picture in picture: how to eliminate influences of outer node options on inner node?

In the case, when you have in some shape (rectangle in my case) a TikZ picture, than it seems that parameters of outer shape also influences on parameters of inner picture. This can be eliminate with ...
6
votes
0answers
3k views

Error \pdfendlink ended up in different nesting level than > \pdfstartlink [closed]

When compiling this tex file in ShareLaTeX, I get the following error: Error in English1213/LaTeX_English_def.tex (line 96): pdfTeX error (ext4): \pdfendlink ended up in different nesting level ...
6
votes
2answers
116 views

Nested indentation with xparse

this is my first question, so any help is appreciated. I want to achieve an indentation effect as shown in the image: Which can be obtained as follows: \begin{itemize} \item $a$ ...
3
votes
1answer
116 views

restatable non-nested sub-theorems

I want to create restatable sub-theorems without nesting them. I am using packages thmtools and thm-restate. By non-nested sub-theorems, I mean a similar structure to what we use for sections and ...
8
votes
1answer
255 views

How to get more than 3 levels of nesting in mdframed environments?

Before I get to many of "don't do this as it does not look good", I have two modes of my documents: Final mode: where there is ONLY one level of nested mdframed Review mode: where there are numerous ...
2
votes
1answer
267 views

Interrupting Nested Lists in LaTeX

How do I interrupt and resume nested lists at any level in LaTeX? Something like I. Item Level 1 A. Item Level 2 1. Item Level 3 comment at level 1 2. Item Level 3 B. Item ...
5
votes
0answers
404 views

Chains in nested tikz pictures

I am trying to draw a complex item (consisting of multiple \nodes) as a cohesive whole using a nested \tikzpicture. My outermost picture uses a chain, onto which every \node is put. My inner picture ...
1
vote
1answer
247 views

Drop shadow of node with pgfplot inside

I have this code: \documentclass[tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[drop shadow,draw,fill=green] { \begin{tikzpicture} ...
4
votes
1answer
95 views

Breaking a multicol over a column in a multicol environment

I have a nested multicol environment like: \begin{multicols}{2} Text \begin{multicols}{2} lots of text \end{multicols} \end{multicols} my problem is the nested environment becomes longer than the ...