The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
35 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
54 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
43 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
43 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 \...
0
votes
0answers
21 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
34 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
39 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
66 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
55 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
72 views

How to write this underdash? [closed]

I want to write this expression : so, what will be its code? please help...
2
votes
1answer
32 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
77 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
85 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
93 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
263 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
78 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
281 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
108 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
104 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
80 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
574 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
35 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
247 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
109 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
241 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
152 views

LaTeX Nesting \verb in \section

Why is \section{\verb|mySec|} invalid LaTeX code.
3
votes
1answer
122 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
200 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
828 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 ...
1
vote
2answers
369 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
100 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
98 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
55 views

how to write this nested expression

How to write this mathematical expression in Latex I have no idea ..please help
0
votes
2answers
148 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
262 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,...
4
votes
1answer
199 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
120 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
939 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
563 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 ...
2
votes
1answer
604 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
149 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
548 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
211 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
168 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
130 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
242 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
199 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
205 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\...