Tagged Questions

{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
320 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 ...
4
votes
1answer
309 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
528 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
394 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
310 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
208 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
161 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
809 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
193 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
406 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
893 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
137 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} ...
7
votes
2answers
1k 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
314 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. ...
11
votes
2answers
486 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 ...
17
votes
1answer
4k 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 ...
9
votes
2answers
958 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 } ...
12
votes
1answer
402 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} ...
3
votes
1answer
537 views

Statecharts using TikZ

I haven't found any example of using TikZ for drawing Harel's statecharts notation. There are numerous examples of finite-state automata, but that cannot be applied for statecharts for two reasons: no ...
5
votes
1answer
159 views

Increasing nesting level for parameters and global xparse macros?

This is kind of a double question but closely connected in my case. Inspired by http://tex.stackexchange.com/a/55769/14159 I tried to make an improved version which allows additional parameters for ...
2
votes
0answers
50 views

Escape hash symbol (#) in inner macro definition [duplicate]

Possible Duplicate: What is the meaning of double pound symbol (##1) in an argument? I'm quite sure this question has been asked many times but I can't find the answer. I'd like to make a ...
7
votes
1answer
166 views

How to allow correct environment nesting when the environment definition involves labels?

The code below shows an improved version of the code provided in this answer to Mark (highlight) a paragraph (\item{...}) with a squiggly line for later attention. The environment tikzborder uses a ...
5
votes
1answer
414 views

Trouble with nested tables

I am using nested table environments in the following snippet: \begin{document} \noindent \begin{tabularx}{\textwidth}{rX lX} COURSEWORK & Machine Learning, Probabilitistic Learning, ...
7
votes
1answer
853 views

How to adjust brace size for nested braces?

How can I adjust the size of the outer braces to make the following equation neater? \documentclass[a4paper]{scrreprt} \usepackage{amsmath} \begin{document} \[ M = \left\{ x \in X : ...
17
votes
3answers
1k views

How do you end with a single quote followed by a double quote?

I have a paragraph as follows: ``This is a quote. `Here is a quote within a quote.''' But the formatting works out to be a double quote (") followed by a single quote (') instead of the other way ...
4
votes
3answers
428 views

Question about enumitem, suspend/resume enumeration, last item of list, nested list

How do I suspend / resume an item of a list, multiple levels, if it is the last item of the list? \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate} \item first ...
4
votes
1answer
791 views

External margins of embedded newmdenv environments

In the code: \documentclass{article} \usepackage[framemethod=default]{mdframed} \newmdenv[backgroundcolor=red]{tBox} \newmdenv[leftmargin=1cm,linecolor=blue]{aBox} \begin{document} ...
6
votes
2answers
2k views

Alignment across nested aligned environments

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align} aaaa &= 1 &&\text{for $X$} \\ bbbb &= ...
3
votes
1answer
340 views

Align inside align

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} aaaa &= 1 &&\text{for $X$} \\ bbbb ...
1
vote
1answer
370 views

How to suppress vertical space between proof environment heads and itemize environments?

The user 'egreg' recently helped me to suppress vertical space between theorem heads and enumitem environments (such as itemize; see the link below). I now have a similar problem: When a proof ...
8
votes
1answer
3k views

Handling quotes inside quotes in a bibliographic field

I have an entry in my bib file of the form @conference{abc, author = "Some name", title = ""This is inside quote" and outside quote content", . . . } when I check this entry through jabref, I get ...
7
votes
3answers
2k views

Passing arguments to nested newcommands

I thought that doubling hashes was sufficient to pass arguments to nested \newcommand. \newcommand{\notice}[1]{ \vspace{10px} \textbf{#1:} \begin{quotation} ##1 \end{quotation}} ...
18
votes
1answer
416 views

Three quotation levels for csquotes

The recommended way of solving nested quotations in Norwegian is to use «» for the outer level and then alternating between ‘’ and “”. (Source) Is it a large undertaking to do this with csquotes?
6
votes
1answer
394 views

How to achieve nested alignment of formulas?

I'm trying to get a nested alignment in math mode: +----------------------------------------------------------------+ | ..... & ................ | | ...
6
votes
1answer
613 views

Nested enumerate (enumitem) interferes with suppressing vertical space after theorem heads.

In the post How to suppress vertical space between theorem heads and enumitem environments? David Carlisle suggested a piece of code that helps suppressing vertical space between theorem heads and an ...
7
votes
1answer
299 views

Defining inside an \edef

The following throws an "Undefined control sequence" error: \edef\testa{\edef\testb{foobar}\testb} when it gets to expanding \testb. This problem is also mentioned in "TEX by Topic" 12.6.2. But no ...
2
votes
2answers
575 views

enumitem nextline style: nested item shouldn't start on description label's line

I use enumitem description style nextline to emulate a sort of TOC entry with the following code: \documentclass{article} \usepackage{enumitem} \newenvironment{DLdescription}[1][*]{% ...
7
votes
3answers
514 views

Nested \loop macro

Please are there 'nestable' variants of Knuth's favourite looping macro \loop without the brace-scope introduced in the answer at nested loops. I am developing a package called loops, where I am ...
5
votes
0answers
68 views

How to have nested mdframes with different frame titles [duplicate]

Possible Duplicate: mdframed nested frametitle bug This issue is fixed in version 1.6b mdframed at github It seems as if the frame title used in the mdframed environment can only ...
6
votes
1answer
231 views

Nested endnotes

How can one include an endnote within another endnote? The desired output would be one endnote structure with all endnotes appearing in the order in which they are invoked (i.e., a nested [child] ...
6
votes
1answer
991 views

csquotes and nested citations

It looks like the csquotes package does not allow nested citations such as \foreignblockcquote{foreign language}[pre-note] [post-note with citation \textcite{key2}] {key1}[punctuation]{quoted ...
7
votes
3answers
1k views

Tikz - How to nest nodes in a matrix so they can be connected?

I want to make a matrix which has multiple nodes in a single matrix cell. These nodes should be centered to each other. I managed to make this work by using a nested tikz environment like so: ...
6
votes
1answer
296 views

How to align mdframed inside another frame?

I tried to create a child frame inside a parent frame by mdframed as \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \begin{document} ...
12
votes
1answer
1k views

Nesting command definitions more than two levels

How do you access macro arguments if the macros are nested by more than two levels? To explain it in more detail: Creating a new command in another command (nesting command definitions), it is ...
5
votes
1answer
702 views

Nested enumerate list, Page breaks

I am currently writing a multiple choice exam: There is a enumerated list for the question number and then a nested list for the choices within each multiple choice question: 1. Question 1 a) ...
9
votes
1answer
1k views

Nesting “tikzpicture” within “tikzpicture” elements - Good or bad practice?

I often nest a tikzpicture within a tikzpicture element, such as a node, to treat subparts as unity and then place it as such relative to other parts of the picture. However, I'm wondering whether it ...
9
votes
3answers
318 views

How to check proper nesting of heading levels

How can we check that heading levels in a LaTeX file are coming in sequence, i.e., \section, \subsection, \subsubsection, \paragraph and \subparagraph. How to catch if \section is followed by ...
4
votes
2answers
719 views

Getting started with TeX - my first table (a nested table)

I am brand new to LaTeX, and I am trying to create a LaTeX string to create a report with a known format. I will be inserting my LaTeX string into an A4 page in a scribus document. Accoring to the ...
16
votes
2answers
1k views

Proper nesting of tikzpicture environments: Reset all PGF values to their defaults

Sometimes, nesting tikzpicture environments seems inevitable, e.g., if you want a node to contain a TikZ picture on its own. (Is it?) However, nesting tikzpicture environments is problematic, also ...
5
votes
1answer
2k views

How to typeset a TikZ picture inside a node?

The contents of a node are drawn in text mode. Is there a way, short of introducing a tikzpicture environment, to draw a picture inside a node? Nesting tikzpicture environments is problematic, also ...