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

learn more… | top users | synonyms

6
votes
1answer
154 views

Nested parameters lost when generating new macros from package options

I've created a package which I would like to take in options and turn these into new macros (one new macro for each option). I also want these new macros to produce new macros in turn. For example, ...
10
votes
3answers
408 views

Adjust environments's behaviour when nested

I would like to define an environment which behaves differently when it is nested. This environment should ignore spaces at the begin and end of the environment. I have this working as I desire when ...
4
votes
3answers
226 views

Environments nested in Lists

I have a list with several items consisting solely of an align environment: \begin{enumerate} \item \begin{align} e^{\pi i} + 1 &= 0\\ 1 + 1 &= 2 \end{align} \end{enumerate} By default, ...
4
votes
1answer
509 views

Proper margins in custom enumeration/itemize environements

I am using two custom list environments (itemize-compact and descriptionhang), which work fine on their own, but not when I nest them. Please consider this MWE: \documentclass[a4paper]{article} ...
3
votes
0answers
2k views

Too deeply nested (itemize) [closed]

So I'm writing this summary for a lecture and I am using itemize a lot. The problem I get now is the two times the error (NB: \bi is my alias for \begin{itemize}) ! LaTeX Error: Too deeply ...
43
votes
1answer
2k views

What is the meaning of double pound symbol (##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
529 views

Vertical alignment of tabulars nested in longtable

I tried to nest tabulars in a longtable enviroment. The content of the tabulars is still at the bottom of each row. \begin{longtable}[c]{p{153mm-2\tabcolsep}p{37mm-2\tabcolsep}}\hline ...
10
votes
2answers
1k 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 ...
7
votes
2answers
172 views

why aren't the \left and \right before my parentheses changing their size?

I am working on a document, and in only one case have the \left and \right before my parentheses seemed to do anything. For example, I have this equation: \begin{equation} \mathbb{E}(RS_{nd}) = ...
16
votes
2answers
3k views

tikz: a big box with fixed width containing smaller boxes

I want to render with tikz something like : The surrounding big box should behave somehow like a minipage : the width is fixed, and the height should grow if we add sufficiently small boxes inside. ...
2
votes
1answer
347 views

Nested custom theorems using amsthm

I am having trouble nesting custom theorem environments in such a way that the inner environment does not inherit the characteristics (e.g. HEADFONT, etc.) of the outer environment. Possibly the ...
2
votes
1answer
1k views

Vertical alignment with nested tables

It's almost embarrassing to ask: How can I vertically align the contents of one column to the top beside a second column holding nested tables. Please have a look at the minimal working example: ...
19
votes
2answers
19k views

How to change the nested itemize bullet characters?

When creating a nested itemize environment in LaTeX as follows: \begin{itemize} \item one \dots{} \begin{itemize} \item Language Models \item Vector Space Models ...
15
votes
1answer
570 views

Footception: Footnote within a footnote within a footnote

Inspired by the question Footnote to a footnote (where it was asked if one could have a footnote reference in a footnote), I'm asking something a bit more complex. Before I ask though, let me prefence ...
5
votes
3answers
2k views

Have verbatim code as an equation

I have a little snippet of program code / input that needs to be rendered with the exact layout as typed in (verbatim). Is it possible to have this as an equation? I tried to nest the Verbatim ...
9
votes
1answer
168 views

Is there a package to differently color nested expressions in the output?

Say I have an expressions like $(\sin(x-3(z^{(x-2)^2}))+1)^2$ with many nested expressions. To better visualize this in the output (and to help finding missing delimiters when proof-reading) I'd like ...
11
votes
2answers
848 views

Nested standalone files with standalone package

Is it possible to nest files with the standalone package? I have something like the following: In A.tex: \documentclass{article} \usepackage{standalone} \begin{document} \input{B} \end{document}‚Äč ...
3
votes
3answers
1k views

Problem with nesting environments

I have a problem with nesting environments. I have created a MWE for this. I have environment {env1} which I want to contain environments {env2} and {env3} in the following way. What's wrong with the ...
27
votes
4answers
1k views

Why do arguments to nested \tilde or \breve commands reappear when amsmath is used?

On LaTeX-Community.org I've noticed a strange problem with nested \tilde and \breve commands, when amsmath is used. In this code the X appears also in the output of the second and the third formula: ...
10
votes
2answers
2k views

How to nest a graph within a node in TikZ and draw edges between the graphs?

I'm trying to draw a graph and have a separate graph within one of the outer nodes. I seen this question, but I don't understand how the matrix nodes will help me. I would also like to draw edges ...
6
votes
3answers
2k views

nested enumeration, skipping items

How can I do a nested enumeration with item being skipped, like this: 1) Level 1 A) sublevel A i) sublevel i a) sublevel a 2) Level 1 [here are the skipped \item] a) sublevel a b) ...
0
votes
1answer
188 views

Control start point of nested list

After stretching the list horizontally according to Horizontal space in lists, I've encountered a problem where the nested list items start too deep inside. How can I pull it back to the left where ...
3
votes
4answers
279 views

What is the TeX equivalent for the following C# nested loop?

I need a nested loop to animate PSTricks diagrams. In C# or C or C++, I usually write as follows. int N=6; for(int x=0; x<N; x++) for(int y=x+1; y<N; y++) Console.WriteLine("({0}, ...
20
votes
2answers
1k views

Footnote to a footnote

How can I make a footnote to a footnote? E.g., Playfair's axiom\footnote{so called in honor of mathematician John Playfair, etc, etc., but was actually discovered by Proclus\footnote{Greek ...
5
votes
3answers
905 views

Tex Nested Loops

I am trying to write a simple nested loop in LaTex, without using any special packages, using only the \loop...\if... \repeat syntax. I think I may be lacking a basic understanding of the rules for ...
4
votes
2answers
2k views

In LyX, how to have itemize inside a proof?

LyX is great. I use it to write everyday documents. But it seems that its environment can only have one type; different types of environments can't be mixed. For example, you can't have itemize inside ...
17
votes
3answers
762 views

Is there any difference between nesting \label in \caption and putting \label outside \caption?

Is there any difference in behavior between the following coding styles? Coding style A: \caption does not enclose \label. \begin{figure} \includegraphics{cat.eps} \caption{This is a cat.} ...
8
votes
2answers
1k views

Expandable Nested Boxes with TikZ

Could someone please post a minimal tikz example to draw this: I am currently doing this with nested tables, but would like to see how it can be done with tikz. The nodes would ideally have a ...
16
votes
1answer
9k 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 ...
5
votes
1answer
2k views

How to have nested list overlays without wobble

I'm trying to use overlays to reveal successive bullet points in an itemize environment. Each item contains its own second-level itemize environment, which will also be revealed one item at a time. ...
10
votes
1answer
1k views

biblatex: Enhancing \autocite in case of would-be nested footnotes

This question led to a new feature in a package: biblatex biblatex provides high-level citation commands like \autocite that allow "global switching from inline citations to citations given in ...
3
votes
1answer
2k views

Nesting a tikz picture and tabular within an array environment

Currently I am trying to make a nice layout of logic gates for digital electronics. I have not been able to nest a tabular environment inside of a circuitikz picture, and I'm quite new at nesting in ...
15
votes
3answers
621 views

Redefine command when inside a specific other command possible?

How, in general, can I (re)define commands based on in which other command they are nested? A more specific example: I have a custom latex command (say, \code{}) that makes text appear bold. ...
2
votes
2answers
5k 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} ...
8
votes
3answers
2k views

Take 2: How do automatic overlay specifications work in Beamer (in a nested situation)

I had previous asked a question about this, but I feel that it wasn't focused enough and the answers got a little confused...so instead of editing that question, I've opted to start a new one....I ...
12
votes
1answer
930 views

Infinite-depth list

I want to create a command set that allows me to do something like \nestedlist{ \listitem An item \sublist{ \listitem A sub item \listitem Another sub item } } and get An item 1.1 A ...