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

learn more… | top users | synonyms

1
vote
0answers
26 views

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

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
81 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
57 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
92 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
49 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 ...
4
votes
0answers
121 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
66 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} ...
3
votes
1answer
51 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 ...
1
vote
0answers
30 views

Starting a theorem or a proof with an equation and vertical spacing

Is it bad practice to begin the statement of a theorem or of a proof with an equation? If it is acceptable, what is your opinion on the resulting spacing in the three cases, in the code below? In the ...
3
votes
1answer
54 views

Draft mode breaking with listings in sublists

%sublisting.tex \documentclass[draft]{beamer} \usepackage{listings} \begin{document} \begin{frame}[allowframebreaks] \begin{itemize} \item Here follows the source code of this document. ...
4
votes
3answers
89 views

When using nested enumerates, how do I have longer labels start at the same place, after the label of the first environment?

I would like to be able to use long labels in a nested enumerate environments without having them overlap with the previous level. I don't really know how to properly explain this, so here is a MWE ...
5
votes
3answers
99 views

How do I remove the added space with default labels on nested enumerate environments

I would like to remove the added space before nested enumerate environments, when using the default labelling system. Note that I would like to make this change globally, rather than having to do it ...
2
votes
2answers
106 views

Problem with color tables when there are nested tabulars

Color tables work great when using within a single tabular environment. However, when using it within nested tabular environments, a rowcolor command spans the whole nested table instead of a single ...
3
votes
1answer
204 views

LaTeX Sublist Numbering

Here is what I want to do - 1. List 1 1.1 sub list 1 2.2 sub list 2 2. List 2 2.1 sub list 1 I tried doing this, \begin{enumerate} \item List 1 \begin{enumerate} \item sub list 1 ...
7
votes
1answer
96 views

nested lists - typeset only top n levels

I am writing an outline and have a lot of nested enumitem lists. Is there a way to automatically suppress output for higher list levels? e.g. In the following: \begin{enumerate}[label=\Roman*.] ...
5
votes
2answers
142 views

TikZ - use non-Tikz command to layout part of picture

I'm using a package (semantic.sty) that draws something semi-complicated using LaTeX (not TikZ). I would like to draw part of a TikZ picture using the same command, with parts of the TikZ picture ...
3
votes
2answers
114 views

Enumerating nested item with skips

I need to do some nested numbering of items, but with skips. I can skip outer numbering, but similar method is not working with inner numbering. I have the code below, where the numbering starts from ...
1
vote
1answer
442 views

Nested itemize environment affects vertical spacing of parent itemize environment

I have two itemize environments, one is nested in the other. Somehow the nested itemize environment affects the vertical spacing of the adjacent item of the parent itemize environment. As you can see ...
8
votes
1answer
420 views

TikZ nested rectangle split with rounded corners

Using TikZ, I want to create a nested rectangle split, with rounded corners, that looks like this: The question that most closely resembles this problem is Nested rectangles , however the proposed ...
6
votes
1answer
110 views

A follow-up question to: A five level deep list

The solution to A five level deep list implemented an enumerated list that extended to 9 levels of nesting. However, references to nested labels do not list the extended nesting position. I have ...
7
votes
1answer
112 views

Find out actual width of text in nested lists

I am trying to solve the following problem: In regular text, I can place two paragraphs of unequal width side by side using minipages, like so: \documentclass{article} \begin{document} Some text ...
2
votes
1answer
74 views

What is the right number of #’s for nested sequence mappings?

Im trying to nest two sequence mappings, which works so far but I want to use them inside a command definition so the <items> should be accessible as ##1 and ###1 but this won’t work. Is it ...
11
votes
1answer
181 views

TeX capacity exceeded, sorry [semantic nest size=500]

Reading through tex.web, I note that there is a difference between grouping levels and semantic nesting (i.e., the nesting of math, horizontal, and vertical modes). I can think of commands which ...
5
votes
1answer
122 views

Curious behaviour of nested list environments

Could someone explain what is happening in the example below? It looks like a bug in the exam document class to me. \documentclass{exam} \begin{document} \begin{questions} \question This is a ...
3
votes
1answer
105 views

Is there a way to make LaTeX interpret ``Nested `quotation''' as “Nested ‘quotation’”? [duplicate]

I know there is csquotes but is there a way to make nested quotation marks as in \documentclass{standalone} \begin{document} ``Nested `quotation''' \end{document} to show up as as “Nested ...
6
votes
2answers
102 views

Create \ref for nested enumitem \item without nesting in the output

Sorry the question is a bit awkward. Basically I have nested \begin{enumerate} lists. I'd like something to appear like this: 1 Foo 1.1 Bar Please see additional information in subsection 1 ...
24
votes
4answers
575 views

Smart parentheses?

Is there a way of smartly nesting parentheses and square brackets (in text mode), so that LaTeX detects nesting relations and typesets them accordingly? I'm thinking in something like csquotes does ...
0
votes
1answer
121 views

How can different numbering style be used for nested subfigures?

I want to display a figure demonstrating 3 cases. The case1 and case2 are shown using single images each. But case 3 needs 3 images. I have used nested subfigure as follows: However the captions go as ...
3
votes
1answer
369 views

TikZ reuse code for building nesting pictures

This is not new here. But with the solutions in: Problem with overlay when a tikzpicture is inside another tikzpicture How to typeset a TikZ picture inside a node? I couldn't put it to work. ...
9
votes
1answer
108 views

Can I use \input inside an \include?

I know it is not possible to nest one \include inside another, but what about \input? Is it possible to have something like: \documentclass{article} \begin{document} \include{file1} ...
1
vote
1answer
282 views

Acronym Nested Parentheses

This question is mainly to collect your opinion, and probably to reach a good solution. That said, let's go to the discussion topic and question. I commonly use the acronym package in my work, mainly ...
5
votes
1answer
118 views

Automatic numbering of nested environments / items

I would like to have an environment, let's call it nested, which produces output like Case 1: top level item 1 Case 2: top level item 2 Case 2.1: nested item 1 Case 2.2: nested item 2 Case 2.2.1: ...
2
votes
1answer
215 views

Minimal syntax alternative to enumerate environment [duplicate]

Is there an alternative to the enumerate environment in LaTeX where I can define a nested list with a minimal syntax like that of Markdown or something similar, e.g.: \begin{minimallist} - Fruit ...
3
votes
1answer
215 views

An index of nested subitems, indented, and hyperlinked

Background Looking to indent an arbitrary n-level hierarchy within an index and have hyperlinks for the final item, using the memoir class and pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012). For ...
3
votes
1answer
332 views

Vertical alignment of nested table

I have two tables nested inside of a larger table. One of the nested tables is taller than the other, and I'd like to have the two tables line up together at the bottom. I've tried inserting [b] in ...
7
votes
2answers
274 views

Biblatex: nested citations with the \textcites command

I'd like to type a citation within the text and another citation inside the parenthesis for the year, something like this: The work of Author 1 (year; cited by Author 2, year) For this, I've ...
3
votes
2answers
239 views

Problematic nested subscript

Hello and sorry if I'm reiterating an already asked question. The two i-subscripts have different positions in relation to m, the one on the right hand side of the inequality being the correct one ...
8
votes
3answers
168 views

Nested use of \ifcsname needs protection

I have a macro \command to ensure that the names of macros in my documentation are consistently formatted. Been work great, until I had an urge to procrastinate and had this brilliant idea that I can ...
8
votes
1answer
129 views

nested multicols with itemised list

Is there any way to reduce the column separation in \begin{itemize}...\end{itemize} in the following MWE to be the same as \setlength{\columnsep}{1cm}. Also how can I remove the column separation rule ...
1
vote
1answer
407 views

Multirow Nested Table

I am trying to built a 6x6 table which contains mutlirows. My code is \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{multicol} ...
3
votes
1answer
173 views

Circling/framing and referring to a bunch of nodes

The end goal: drawing paths between nodes like in the example there but the difference is the nodes are inside a picture here and in particular, the other node is a bunch of nodes in the same picture. ...
4
votes
2answers
314 views

Are three boxes inside a box possible?

I am making a yes or no question inside a box and I have difficulty on creating the command for it. Would you mind to help me make something that will output this:
16
votes
2answers
671 views

How to align nested cases?

Please consider the code bellow: \begin{align*} function = \begin{cases} case1 &\mbox{if } n = 0 \\ \begin{cases} case2 &\mbox{if } n = 1 \\ ...
4
votes
2answers
119 views

Nesting custom `xparse` environments

I've defined two simple environments with xparse. Problem is when I try to nest todominute environment inside minutes environment: \documentclass[a4paper, 10pt]{article} \usepackage{polski} ...
6
votes
2answers
749 views

Nested Environ's give “! Argument of … has an extra }” error

I tried using two Environ's in a nested fashion, but I get the ! Argument of \marray has an extra } error. Any idea why this happens? \documentclass{minimal} \usepackage{amsmath,environ} ...
11
votes
1answer
259 views

New list environment: automatic enumeration with “a posteriori” format

This is a follow-up question to Nested enumerate labels with parent label appended plus a single set of enclosing parentheses First and foremost, sorry for my English, I'm learning it currently. ...
9
votes
2answers
321 views

Nested enumerate labels with parent label appended plus a single set of enclosing parentheses

I want to have a list like (1) foo (1.1) foo (1.2) foo (2) foo I am using the package enumitem and \begin{enumerate}[label=(\arabic*)] \item foo \end{enumerate} I know that i can append ...
14
votes
1answer
2k views

Nested enumeration numbering

I write homework assignments in LaTex and the assignments are always divided into subparts (i.e. Problem 1 is divided into 1.1, 1.2, 1.3, ...). Currently what I do is I have nested enumerations, but ...
8
votes
2answers
598 views

Using an environ environment with \newenvironment

I want to use an environment defined with NewEnviron from environ in another environment definition: \documentclass{article} \usepackage{environ} \NewEnviron{inner}[1]{% \textbf{#1:} \BODY } ...
11
votes
1answer
318 views

Bug? LaTeX misparses nested optional arguments

LaTeX seems to be having problems handling nested optional arguments. I've included a minimal code example that generates the error: \documentclass[12pt,oneside]{book} \begin{document} ...