Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nesting]

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

4
votes
2answers
46 views

tikz-cd nested tikzpicture wrong center anchor

I want to place a tikzpicture in a node/cell of a tikz-cd diagram and then paint some more stuff in the inner tikzpicture. However, it seems that the nesting messes up the center anchor. Concretely: ...
0
votes
0answers
39 views

How to use \discretionary inside soul's \hl?

\documentclass{article} \usepackage{soul} \usepackage{color} \begin{document} Some \hl{te\discretionary{-}{-}{-}xt}. \end{document} The above does not compile due to Missing { inserted, Improper ...
0
votes
1answer
66 views

How to write this underdash? [closed]

I want to write this expression : so, what will be its code? please help...
2
votes
1answer
23 views

Text not vertically aligned within tabular with nested tabular

I am trying to vertically align a row heading with a table inside the row. But no matter what I do, the heading remains in the center. I tried using p{'width'}, but that had no change. \documentclass{...
4
votes
2answers
52 views

Renewcommand with ensuremath and brackets

I'm making a .sty file (which is called my-macros.sty and is in my home /texmf directory) where I define some commands that I constantly use. Among these commands, there are the following \newcommand{...
3
votes
2answers
52 views

“environ” package and nested environments won't work [duplicate]

I'm trying to make a little style package to make some nice blocks with icons and so on. I'm using environ package + tikz. Actually the document compiles and shows me my boxes but with errors saying ...
3
votes
3answers
69 views

Nested alignments

I want to make alignments that look like this: which I have done by using \begin{align} & \frac{dx}{dt} = y \qquad \frac{dy}{dt} = x \\ \implies & \frac{d^2x}{dt^2} = \frac{d}{dt}\...
7
votes
2answers
257 views

LaTeX 2e environment that “knows” the name of surrounding environment

I'd like to have a LaTeX 2e-environment which when occurring inside another environment "knows" the name of the surrounding environment. Is this possible? I know that \@currenvir provides the ...
2
votes
1answer
71 views

Nesting Nightmares

I am trying to place this in my document Of course, if you have access to wolframalpha you can do this: \href{https://www.wolframalpha.com/input/?i=interpolatingpolynomial%7B%7Bx_0,y_0%7D,%7Bx_1,y_1%...
7
votes
2answers
206 views

Nested cases, alignment and numbering

I have tried all different sorts of solutions including align, aligned, cases and equation to have the result I get with this code except that I want numbering for the three lines in the aligned ...
3
votes
2answers
99 views

How to disable nesting in hyperrefs?

Is there a way to disable nesting in hyperrefs? Here is an example: \documentclass{article} \usepackage{hyperref} \usepackage{nameref} \begin{document} \tableofcontents \newpage \section{One} \...
5
votes
1answer
55 views

How does xparse handle nested delimited arguments?

In this answer egreg mentions that the r argument type from the xparse package handles nested delimited arguments, as shown in this small example: \documentclass{article} \usepackage{xparse} \...
1
vote
1answer
57 views

TeX Capacity exceeded, semantic nest size

I'm having a problem that I have no idea what it can be caused by, the error it produces is the following "TeX capacity exceeded, sorry [semantic nest size=500]. \end{align}" Using TeX studio and have ...
5
votes
2answers
395 views

Problem with nested if statements

I'm trying to use some nested if statements to decide if a file exists and what kind of loadings are possible: \IfFileExists{./emoji.sty}{ \ifxetex \usepackage[bw,font=seguiemj.ttf]{emoji} \...
0
votes
1answer
33 views

Interrupting nested lists

How to interrupt the nested lists and resume directly from the inner list? For example: Step 1: Define the below items \begin{enumerate} \item Item Level 1 \begin{enumerate} \item ...
4
votes
2answers
227 views

Problem with nesting macros

I have written a macro to denote either the Fourier transformation (curly F by itself) or the Fourier transform of a function (curly F followed by a function and enclosed in \left( and \right) ). It ...
1
vote
1answer
95 views

LaTeX Grammar and Nesting Rule

Is there any grammar and rule describing the allowed nestings and combinations and the allowed format of the arguments in LaTeX? E.g. \section{\verb|mySec|} \section{\begin{huge}mySec\end{huge}} \...
1
vote
1answer
109 views

How to nest multiple documentclass

I would like to create a running diary of documentclass 1 that constitutes multiple instances of documentclass 2, where preferred documentclass 2 is 'minutes'. I am aware of subfiles, but don't know ...
2
votes
1answer
101 views

LaTeX Nesting \verb in \section

Why is \section{\verb|mySec|} invalid LaTeX code.
3
votes
1answer
77 views

Nested alignment of grouped equations

I want a collection of equations to be aligned as a whole, yet subgroups of them given descriptions. What follow are two attempts, each which achieve exactly one of the requirements: \documentclass{...
6
votes
4answers
185 views

nesting macro identifying string length 1 using xstring ifthen packages

I would like to write a latex macro \p which given input X returns X or (X) depending on whether X has character length 1 or not. Moreover, I want to be able to nest applications of \p. E.g. I want ...
0
votes
4answers
344 views

How to deal with big equations?

I have a system of equations where the equations are big (one line isn't enough). I found this solution (the second one, from egreg How to align a set of very long equations) to manage the "how to ...
0
votes
0answers
34 views

Environment with multiple parts does not work

I try to define my own environment, to make it as easy as possible to write the same sequence of other ("sub-")environments over and over as easy as possible. The subenvironments are defined like ...
1
vote
2answers
253 views

how to create a nested table

I searched how to create a nested table but I didn't find a solution that works for me. What I need is to create this table. Any one can help please?
0
votes
3answers
87 views

Fix alignment in nested description list without line break

I'm trying to make a nested description list like so: \usepackage{enumitem} \begin{document} \begin{description} \item[Languages:] \begin{description} \item[High:]Python, Java, R, SQL, SAS \...
1
vote
1answer
76 views

Verbatim environment nesting troubles [duplicate]

I have troubles trying to nest verbatim environment inside my \newenvironment definition one so I can include my source code faced to its result as on the most latex books printed. I can do it in a ...
0
votes
1answer
50 views

how to write this nested expression

How to write this mathematical expression in Latex I have no idea ..please help
0
votes
2answers
95 views

How can I achive “no” or better “leftmargin=* from main enumerate” indent on nested enumerate?

I use enumerate inside a tabularx and I removed vertical spacing. I also set the indentation of the first level to leftmargin=*, which leads to the right indentation. Now I want the second level ...
4
votes
1answer
232 views

TikZ: Better solution than nesting tikzpicture?

I created following example script to draw a TikZ that contains a nested tikz: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes.multipart, backgrounds,...
3
votes
1answer
154 views

conflict between hyperref and enumitem packages (and \refstepcounter)

The solution outlined for each of the following two posts appears to conflict with the hyperref package. How to skip an \item in sub-enumerate level nested enumerated lists numbered for ...
3
votes
1answer
113 views

nested enumerated lists numbered for mathematical proofs

For numbering mathematical proofs, I'd like to be able to generate output something like this, where (i) each item (item 1 in this case) in the enumerated list can be replaced by a nested sublist of ...
5
votes
1answer
594 views

Subfiles package - two levels (subfile in subfile)

Although the documentation of the subfiles package states that nesting is supported, I somehow can't get it to work. I have the following structure: ./main.tex ./level1/level1.tex ./level1/level2/...
4
votes
2answers
446 views

Defining a new command using another new command

I want to defined a command that uses another command in its definition, like so: \newcommand{\command1}{$\alpha^x$} \newcommand{\command2}{\command1_\beta} I understand that csname may be used for ...
1
vote
1answer
409 views

Ampersand conflict when using align inside table

I am trying to use an align environment inside a tabular environment. Whenever I use an & character inside the align environment, there seems to be a conflict, i.e., the following works \...
1
vote
1answer
136 views

What's wrong with nested tikzpicture and xelatex?

I want to draw a line between to nested tikzpicture,while the code runs without any problem with pdflatex, the result of xelatex is not acceptable. I've to use xelatex because my document contains ...
0
votes
1answer
44 views

ShareLaTeX - Nested 'Main'

I'm trying to create the version / revision copies within the ShareLatex structure itself. I would like to know if there is a way to nest 'main' inside each folder and compile that folder alone. If ...
4
votes
2answers
441 views

Nested enumerate starting from 0

Here is my latex code: \begin{enumerate} \item \begin{enumerate} \item I do not feel sad. \item I feel sad \item I am sad all the time and I can't snap out of it. \item I am so sad and unhappy ...
1
vote
2answers
149 views

Command Defining Nested Command

I'm trying to define a command which, upon being called with a certain parameter, 'renews' a different command. In particular, I tried the following (it doesn't work!). \newcommand{\gap} %initialise \...
0
votes
0answers
134 views

\emph breaks soul's underline

\emph within soul's \ul leaves small gaps in the underline, their size varying depending on the font and whether there is a space after \emph. \documentclass{article} \usepackage{soul} \begin{...
1
vote
1answer
104 views

How do I nest a declaration within another declaration?

I want to nest a bold-face formatting declaration within an italic-shape declaration. For that I tried using the command: {\itshape\bfseries nested} However, this doesn't work. Output given below: ...
2
votes
1answer
190 views

How to use biblatex to have a nested bibliography with a nested toc?

Biblatex is really cool, and allows the subdivision of the bibliography into sections based on different filters : for exemple, if I want to print only the articles of my bibliography, I can write : ...
3
votes
2answers
166 views

Creating a custom list/enumerate environment with no bullets, custom spacing and alignment, a higher nesting limit, and in-item line breaks

I'm writing a document (bridge system notes, if that helps anybody visualize what I'm looking for) and need to make extensive use of nested lists. Here's a minimal example of what I'm using now: \...
0
votes
0answers
159 views

Problem with nested IfSubStr calls

I have the following code in my preamble: \usepackage{xstring} \newcommand\myhelpermacro[1]{\IfSubStr{#1}{true}{Text contained the word "cat"}{Text did not contain the word "cat"}} \newcommand\...
2
votes
0answers
42 views

Get fully expanded tex file [duplicate]

I'm using TexLive 2016. Is there a way I can get the expanded Latex BEFORE it is converted to PDF? Quick example in case I'm asking the wrong question! i.e. main.tex: \documentclass[12pt]{article} \...
1
vote
1answer
85 views

Vertical Spacing between headings in nested multicol List

Hi I have the following MWE and would like to know if using \\ is BP or if there is a clear/better way to achieve the spacing between each headings. General opinions on the look of this are welcomed ...
4
votes
2answers
116 views

Nested itemize don't show item label

I use these itemize: \begin{itemize} \item [\textbf{Home Page - Utente Semplice}] \begin{itemize} \item Sono presenti troppi contenuti poco utili (1-6-7); \item Il proprio avatar, non è un ...
1
vote
1answer
781 views

how to nest LaTeX documents [duplicate]

I'd like to nest load one document inside another, skipping the preamble and \begin{document} and \end{document} of the nested document. So \documentclass{article} % load some packages here \begin{...
1
vote
1answer
1k views

In LyX, how can I nest Itemize inside Enumerate, without starting a new Enumerate item when leaving Itemize?

What I'm trying to accomplish in LyX is best shown via the following simple example: I start using an Enumerate environment And I'm writing multiple blocks of text, even tables, etc., inside the ...
0
votes
1answer
178 views

Can I footcite something from a footnote with biblatex?

I have a relatively long footnote with some explanatory text that refers to some citations. My current approach is to use \footnotemark where I want to cite something and then \fotnotetext{\cite[xx]{...
6
votes
3answers
324 views

Nested Array-like environment without Math-region

I'm working on my master thesis and I need to render some structures like this: Edit: Example doesn't use highlighting for the sake of simplification, but I would like to use specifically minted, not ...