{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
10 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
28 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
66 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
66 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
82 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, ...
1
vote
0answers
16 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
29 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
99 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
52 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
66 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
291 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
16 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
81 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
66 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
44 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
59 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
432 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
74 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
114 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
81 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
99 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
169 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} ...
4
votes
2answers
97 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
81 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
38 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
170 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
105 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
85 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
95 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 ...
51
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
101 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
67 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
244 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
220 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( ...
2
votes
2answers
119 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} ...
24
votes
2answers
15k 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
94 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
220 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
75 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
104 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
258 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
380 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
649 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, ...
4
votes
2answers
69 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
754 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 ...