Questions tagged [nesting]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

Nested Latex Configuration with \import and \includegraph

I have been very busy to solve this issue by myself then I thought I wasted my time a lot to solve this problem (still couldn't solve it..). It should have a simple solution but I think I stuck with ...
0
votes
0answers
18 views

Nested align environments with a left system bracket for a subset of lines

is there a more convenient to accomplish the following? Especially because 1) in a more complex case, I'm not sure I'd be able to pull it off, and 2) I was lucky enough this time around that I only ...
1
vote
1answer
44 views

nesting multiframe

I wonder whether the following is possible. I'd like to nest animateinline and multiframe environments to simulate the time dependance of a signal for different parameters. Something like that: \...
0
votes
0answers
16 views

Table Numbering looks different in child document vs when nested with master document

I have different sections of my thesis as child documents and I numbered the tables for each section separately. One particular section, the numbering looks correct in the pdf of child document but ...
0
votes
1answer
42 views

Nesting environment inside new command generating errors

Extreme TeX novice, sorry for the length of the example, I wasn't sure what packages were important to replicate the problems. I was trying to create a simple command that I could use to injected ...
0
votes
0answers
23 views

Nesting Different Lyx Documents

I am new to Lyx and I am writing my thesis in that. I use default settings mostly. I have written all sections as a separate document, pending is title, abstract and Bibliography. Most sections have ...
0
votes
2answers
45 views

Using nested align* to split a long numerator into multiple lines leads to “Erroneous nesting” error

I am using an align* environment within another align* environment because I have a fraction with a long numerator that I want to split into two lines within the numerator. Here is what I tried: \...
0
votes
1answer
24 views

numbererd tabluarx inside tabulars

I am generating tex documents automatically (HTML -> pandoc(tex) -> postprocess -> XELATEX), and my general table environment is tabularx (with usage of package ltablex, so these are ...
0
votes
0answers
24 views

enumitem ignores level specification?

Consider the code \documentclass{article} \usepackage{enumitem} \newlist{longitemize}{itemize}{20}% \setlist[longitemize,1]{label=\textbullet}% \setlist[longitemize,2]{label=\normalfont \bfseries \...
-1
votes
2answers
54 views

Tabbing wrong in nested commands [closed]

So, I have two commands defined in my document class like this. \newcommand{\skillgroup}[2]{ \begin{tabbing} \hspace{5mm} \= \kill \sqbullet \>\+ \textbf{#1} \\ \begin{minipage}{\smallertextwidth} ...
2
votes
1answer
738 views

Ordered Nested lists similar to Microsoft WORD numbered nested lists

In LaTeX, by default the numbering styles change depending on the depth of the nested lists as shown below. \begin{enumerate} \item First level item \item First level item \begin{enumerate} ...
4
votes
1answer
111 views

Nested enumeration

I'm trying to create a list of the following type: 1a) Apples 1b) Bananas 1c) Oranges 2a) Tomatoes 2b) Carrots 3) Bread 4a) Cake 4b) Cookies I tried to use both ...
2
votes
2answers
97 views

Nested Environment in LyX: Theorem with only an enumeration

I've read the following posts but I'm not sure they answer my doubt: Lyx nested environments; Normalizing nested environments for cleaner design (LyX). I am using the AMS theorem environment, and I ...
4
votes
2answers
348 views

How can I typeset a group action?

How would I typeset something that looks like the following? I have tried \begin{align*} \sigma : T^k(V) & \longrightarrow T^k(V) \\ T & \longmapsto \begin{aligned} ...
2
votes
0answers
98 views

A typography challenge from over a hundred years ago

I am a newbie in LaTeX. I am now typesetting the formal proof from Begriffsschrift by Frege, which look like this: As seen in the picture, I decide to put all the elements of the proof into a 3x3 ...
1
vote
1answer
64 views

Nested numbered alignement

(disclaimer : yes I have already read : Nested cases, alignment and numbering, no it doesn't help) I am trying to get something like this : and : BUT with the numbering aligned. I got the above ...
3
votes
0answers
38 views

How to cross reference nested enumeration lists?

Within theorems, I have nested enumeration lists: 1.1, 1.2, 1.3, 1.4, etc. 2.1, 2.2, 2.3, 2.4, etc. For referencing to 1.1 to 1.3 and 2.4 I tried to use the usual command \cref{en1-1,en1-2,en1-3,...
1
vote
1answer
149 views

Highlighting aligned equation lines using tcolorbox

In my first box I've shown the three lines of math I want to display. I then wish to highlight the first and the last lines according to the design of box A and box B, seen below. Is it possible to ...
5
votes
2answers
206 views

Why does nesting some xstring commands causes errors?

Why does combining some command of the xstring package causes errors? e.g. when I compile the following MWE: \documentclass{article} \usepackage{xstring} \begin{document} \section{A} \StrCompare{\...
0
votes
1answer
91 views

How to increase counter on nested subfigure environment?

I would like to add an automatic numbering of nested subfigure environments. I found the following answer, which shows how I can manually add an additional Arabic number to my subsubfigure, but I ...
1
vote
0answers
27 views

Is there a way to add a directory to the search path on the fly / not redefine?

Numerous examples (see this one for instance) describe the the use of: \makeatletter \def\input@path{% {<path1>}% {<path2>}% }% \makeatother as way to broaden the compiler's search ...
1
vote
0answers
109 views

Nesting New Fonts: Trying to Use Small Caps

Xelatex. I'm trying to use small caps with the Century Schoolbook font, which doesn't have them. I get "font not found" errors when I try to use system fonts that have small cap variants. That error ...
0
votes
1answer
112 views

How to display a numbering inside parentheses

I'd like to display the following numbering in LaTex: (n-m) (a)... (b)... where n represents any section number and m the sequential number in this section. It can not be equation numbering ...
2
votes
0answers
60 views

Wrapping environment passing optional argument to wrapped environment

I'm trying to create a myframe environment which wraps a Beamer frame environment but sets a default title. Additionally, I want to be able to pass optional arguments to myframe which should then ...
1
vote
1answer
107 views

Recursive or nested comment blocks

I know we can comment out a block of text in Latex using \begin{comment} and \end{comment} commands. However, when I call this recursively (or in a nested fashion) as shown below, it fails: \begin{...
0
votes
1answer
66 views

Calling nested indexing macros

Here is my simplified document sample which is failing with the errors mentioned in the comments. I tried to enclose the nested macro with { and } and it didn't work, same with enclosing it with \...
1
vote
0answers
22 views

Is it possible to get a series of nested numbered lists without having a nested enumerate environment?

In particular, I am hoping to accomplish something like your standard outline with text: I. Level 1 II. Level 1 A. Level 2 1. Level 3 2. Level 3 B. Level 2 ...
1
vote
1answer
52 views

shellescape macro nested in another macro

How do I use a shellescape (| echo "stuff") macro as another macros input if there are "bad" characters like _ contained. I will use my full example as reference. The idea is to replace \...
2
votes
2answers
43 views

What's the best method for bracing a list of aligned equations?

I would like to reduce the height of the \left\{ in the following, to make it the same height as the equations: %\usepackage{esdiff} \begin{align*} \mathcal L&= - 0.75 w(S) - 0.25 w(F) + \lambda ...
3
votes
2answers
143 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
215 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
132 views

How to write this underdash? [closed]

I want to write this expression : so, what will be its code? please help...
2
votes
1answer
93 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
196 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{...
2
votes
2answers
207 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
151 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
292 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
86 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
487 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
141 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
138 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} \...
2
votes
1answer
198 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
944 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
48 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
313 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
215 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}} \...
2
votes
1answer
703 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 ...
3
votes
1answer
298 views

LaTeX Nesting \verb in \section

Why is \section{\verb|mySec|} invalid LaTeX code.
3
votes
1answer
316 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
248 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 ...

1
2 3 4 5 6