{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
1answer
28 views

Normalizing nested environments for cleaner design (LyX)

LyX supports nested environments (e.g., begin{itemize}...\item...) intuitively with the Tab key. I'd like to get this to work for questions in a layout with the Exam class. Exam nests questions with ...
4
votes
0answers
25 views

LyX functions: Nest label from clipboard into inset insert

In writing my thesis in LyX I make frequent use of the label-copy-as-reference function - mainly from equations but also with other labels. The labels are however not pasted as formatted reference ...
0
votes
1answer
59 views

How to Debug “Too Deeply Nested” error

I see that numerous people have asked a similar question. At the risk of annoying you LaTeX experts, the problem is, as I have expressed before, that LaTeX is a truly awful language. Having said ...
0
votes
0answers
34 views

How to overwrite a node setting in Tikz to align Tikz pictures to nodes? [duplicate]

A Tikz picture has four nodes and each node has a new tikz picture, an inheritance problem coming. I have four Tikz pictures where each is inside a node and each node has size of 4cm times 4cm (square)...
1
vote
1answer
38 views

Small wrapper for easylist using \item like syntax and a new environment

I'm trying to create a new environment for using the package easylist so that some users that are not used to LaTeX can easily make use of it. Right now the environment and its custom commands are ...
2
votes
1answer
12 views

Number of nested environments in a two-column document

When you use a two-column document does the number of nested list environments you can place gets reduced? I thought that you could use 6 nested environments before LaTeX "complain" about being too ...
5
votes
1answer
35 views

Customizing item label style of a nested enumerated list

I'm working on a project that requires a nested, enumerated list, the outer most items styled as shown below: a background color on the label, shading over the rest of the line containing the item ...
4
votes
2answers
76 views

Related enumeration inside another enumerate environment

How may I have a enumeration using the enumerate environment from which the inner environment counter relates to the item number which is already there for a previous environment? Using an [already ...
4
votes
0answers
69 views

What is the preferred mechanism for reuse/encapsulation in TikZ?

I'm just starting out in TikZ, and I'm noticing a lot of friction around the issues of encapsulation and reuse, so I figure I must be missing some best practices. I want to create a multi-panel figure ...
10
votes
3answers
2k views

Tikz fit-library vs fill (overlaying nested node colors)

I am trying to figure out the best way of nesting tikz nodes having a different background color. I would like the "inner" nodes to "win" concerning the background color. Currently the "outer" node ("...
2
votes
1answer
101 views

Tikz pictures inside Tikz pictures: typesetting failing in lattice subgraph with edges

I define Tikz pictures within each other. The typesetting fails in a way that the edges are not drawn properly: the edges are not drawn from the centers of vertices in the lattice subgraph structure, ...
2
votes
1answer
37 views

How can I apply a custom-defined theorem environment to nested theorems WITHOUT using a proof environment?

I'd like to combine a couple of constructions I've found on this site to create a custom-defined cases environment so that each case will: be nested within a larger theorem environment; end with a ...
4
votes
3answers
110 views

Nested fraction parenthesis visualisation

Is there a way to adjust the size of the parentheses in such a way that they automatically adjust to the height of the formula? This seems easy but I cannot find anything on this. With \left( .. \...
3
votes
1answer
54 views

Define a command that opens and closes an environment

I would like to define a command that, starts (\begin{...}'s it) an environment if not in such an environment, and closes (\end{...}'s it) it if in such an environment, for example: \myenum \...
2
votes
0answers
82 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 ...
3
votes
1answer
327 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 ...
0
votes
0answers
12 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
20 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}} ...
2
votes
0answers
83 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 ...
3
votes
1answer
67 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 ...
4
votes
1answer
49 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
60 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
546 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
2answers
85 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: ...
1
vote
3answers
127 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
87 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 ...
1
vote
0answers
109 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 ...
7
votes
2answers
181 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 ...
5
votes
2answers
8k views

How to nest tables?

I want to make a table inside another table as follows. Unfortunately, it does not work. What is wrong with it? \documentclass{minimal} \usepackage{array,longtable,calc} \begin{document} \begin{...
4
votes
2answers
102 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 ...
5
votes
1answer
90 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. \documentclass{...
1
vote
1answer
40 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
254 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] & \begin{...
3
votes
1answer
115 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} \usepackage{...
1
vote
0answers
86 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
105 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 ...
52
votes
1answer
3k views

What is the meaning of double pound symbol (number sign, hash character) ##1 in an argument?

I've seen sometimes that people use a double pound sign (##) when defining/using arguments. What is the difference between the normal argument, #1, and the double sign one, ##1? Are there any ...
3
votes
1answer
109 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} \lstnewenvironment{...
3
votes
1answer
69 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
261 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
225 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( l'(...
2
votes
2answers
131 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} \...
25
votes
2answers
16k views

How can the margins around a table set to 0pt?

I need to put a table inside another table, and would like to set the outside margins of the inner table to 0pt. How can I do this (in particular for tabularx, but hopefully this would be the same for ...
3
votes
2answers
100 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
240 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 ...
1
vote
2answers
80 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} } { \end{...
2
votes
1answer
112 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
270 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 ...
4
votes
1answer
436 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 ...