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
28 views

Nested CSV with csvsimple — more complicated example

I have a problem similar to that in Nested CSV with csvsimple and I am referring to that question. However, my problem is more complicated and the solution given there does not work. Imagine that the ...
2
votes
2answers
74 views

Nested inline math for new command with argument

There exists some consensus on the fact that one shouldn't use $...$, \(...\) or \ensuremath inside of newcommand (or NewDocumentCommand, ...) definitions to wrap passed macro arguments that are to ...
0
votes
2answers
80 views

How to implement \savebox

\documentclass[a4paper,10pt]{article} \usepackage[left=24mm,right=30mm,bottom=25mm,top=25mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \...
0
votes
0answers
26 views

Nesting deluxetable and figure in AASTeX

I'm using AASTeX's two-column style and I was trying to 'combine' a figure and table into one fitted inside a single column. However, the figure doesn't display including the "main figure's" ...
4
votes
1answer
81 views

Proof environments inside statements - is it harmful or is it OK?

I discovered that a student of mine uses constructs like \begin{theorem} ...a statement... \begin{proof} ...proof of that statement... \end{proof} \end{theorem} My first reaction was ...
0
votes
0answers
37 views

Combine / nesting \newcommand with \def that are referencing #1, #2, etc in different ways?

I have a polar plot made with TikZ that I used to draw in some old documents. Now I want to use this in my document class instead of having the whole code snippet every place that I am drawing the ...
1
vote
1answer
28 views

coloring bullets in nested lists

I would like to color bullets in my lists (for example, to signify tasks that are done or not/hard or easy, etc.), including in nested lists. I found this and successfully used it. Since I would like ...
0
votes
1answer
15 views

Change symbols of levels of unordered list using outlines

Is it possible to change this latex from outlines package \documentclass{article} \usepackage{outlines} \begin{document} \begin{outline} \1 Level 1 \2 Level 2 \3 Level 3 \end{outline} \end{...
0
votes
1answer
29 views

Add third level after itemize then list in nested unordered list

I have a unordered list with 2 levels in the following form: \begin{itemize} \item Level 1 \begin{list}{$\circ$}{} \item Level 2 % Trying to add a third level here \end{itemize} ...
0
votes
0answers
37 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
21 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
60 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
44 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
36 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
96 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
33 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
26 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
67 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
997 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
112 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
135 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
365 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
102 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
41 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
179 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
223 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
116 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
28 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
141 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
160 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
74 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
131 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
71 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
62 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
44 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 ...
4
votes
2answers
164 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
260 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
149 views

How to write this underdash? [closed]

I want to write this expression : so, what will be its code? please help...
2
votes
1answer
123 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
232 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
248 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
170 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
294 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
89 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
521 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
152 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
147 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
2 3 4 5 6