Skip to main content

Questions tagged [grouping]

{grouping} is about the grouping mechanism in TeX, and about local and global assignments.

0 votes
0 answers
51 views

One to one function, how to draw in LaTeX? [duplicate]

Here are both set of one to one function. How to make LaTeX coding in figure type: (x)=0,2,3 (y)=a,b,c
Muhammad WASEEM FAROOQ's user avatar
4 votes
2 answers
87 views

smuggling macro out of a group in tex core results in undefined control sequence

I am trying to re-apply changes done in a group directly afterwards with the following code similar to the approach in here \def\smuggle#1\endgroup{% \expandafter\endgroup\expandafter\edef\...
Fabian Schneider's user avatar
0 votes
1 answer
404 views

Change the word “Table” in only one table caption

I'm using the xltabular with the group, because of the table is large and it occupies more than one page. My document which is a thesis, I have two types of tables, the tables and the frames. By ...
user2535338's user avatar
0 votes
2 answers
116 views

Why do headers and footers inherit the current value of \spaceskip, and how can I prevent it?

Problem: I'm using a listings-like package to display source code in a paper. The environment that the package defines uses \spaceskip=\fontdimen2 to ensure that spaces all have the same width. When ...
Clément's user avatar
  • 4,024
3 votes
1 answer
161 views

"extract" package causes unfinished group

I've noticed errors like this when using the extract package: (\end occurred inside a group at level 1) ### semi simple group (level 1) entered at line 5 (\begingroup) This seems to happen even with ...
Kerrek SB's user avatar
  • 1,065
0 votes
1 answer
104 views

Locally change the scale of the chosen (mono) font without specifying its name?

Suppose a custom class which, thanks to package titlesec, prints the sections titles in uppercase. Suppose now the user of this class wants the mono font to be Scale = MatchLowercase. If a section ...
Denis Bitouzé's user avatar
2 votes
1 answer
218 views

How to globally apply all texts as the argument of a command?

I'm trying to make an entire document to look like handwrote. For that I tried both the Cthulhu and handlatex. Both of them require the following usage: \command{here the text to be applied.} Which ...
user avatar
0 votes
2 answers
27 views

Global change applied only to lists inside definition and theorem environments

For editing my lecture notes and worksheets, I am using the enumitem package. I regularly make global changes, for example using the following code in the preamble: \setenumerate[1]{label={\bfseries\...
Tonn's user avatar
  • 1
1 vote
1 answer
34 views

Advancing a pseudo-counter in an align environment

I'm getting some strange results I don't really understand with the following code: \documentclass{article} \usepackage{pgfmath} \usepackage{amsmath} \newcommand\initializecount{\def\aecnt{0}} \...
A.Ellett's user avatar
  • 50.7k
4 votes
1 answer
135 views

Can I change a \def inside a \foreach loop without making it visible to the whole document?

I understand that a \foreach loop creates a group and local definitions are, of course, local. Is there a way to skip just one level of the scoping? I mean I wish to make a local change inside the ...
Jander's user avatar
  • 1,160
1 vote
1 answer
305 views

A group macro from a command

Goal: create a command that works within a group (a scope) I am using polyglossia package to write bilingual texts. I want to create \eng declaration or switch to behave just like \textenglish: {\eng ...
AvidSeeker's user avatar
1 vote
0 answers
25 views

Creating matrix newenvironment with arraystretch [duplicate]

I want to create a new matrix environment with different spacing for a matrix instead of manually typing arraystretch locally for each matrix. I am new to more advanced LaTeX coding, and have not ...
CyCeez's user avatar
  • 23
0 votes
0 answers
25 views

How to add table in between two \item commands [duplicate]

I insert a table command between two itemized items, but the table appears at the top of the page. please help me locate this at the right place it means to be. thank you. Ardalan
Ardalan Marandi's user avatar
3 votes
1 answer
227 views

Local vs. global variables in pgf, interaction with foreach

I am trying to write a macro with variable number of inputs (this is important to me) that should return the maximum of the lengths of the different inputs. It uses the foreach macro from pgffor: \...
HowieR's user avatar
  • 31
0 votes
2 answers
194 views

LaTex macro not properly executed in tabular environment

I want to use a macro to set the separators (&,\\) in a tabular environment. The macro should thereby act as a Boolean switch with three states. Unfortunately I keep getting a result like this: ...
Gedlex's user avatar
  • 3

15 30 50 per page
1 2 3
4
5
19