Skip to main content

Questions tagged [grouping]

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

2 votes
1 answer
56 views

How to group elements in order to use them like one character

I want to create commands that will show some data and will be used as a single character in different places (paragraphs, tables etc.). Here is an example of how it should be looking: I achieved it ...
Taras's user avatar
  • 123
0 votes
1 answer
15 views

How to ignore ExPex code in texcount

I'm wondering if it is possible to exclude ExPex code from being counted by texcount? At the moment I'm writing a thesis with lots of linguistic examples, but I need to exclude these from the total ...
geordiekidd's user avatar
1 vote
2 answers
42 views

Is it possible to fully `\restoregeometry` inside a group?

For the geometry package, is it possible to \newgeometry{…} and fully \restoregeometry inside a group? Minimal Example In the following, the \restoregeometry inside the {…} restores frames, but still ...
Y.D.X.'s user avatar
  • 113
1 vote
2 answers
60 views

How to add vertical braces to a matrix showing different groupings of the elements?

So, I am currently trying to do this: And this is what I tried so far, \[ \left[ \begin{array}{c} \left.\begin{matrix} x_k \\ y_k \\ v_k \\ \psi_k \\ \end{matrix}\right\} s_k^p \\ \...
featherweight's user avatar
2 votes
1 answer
59 views

Locally redefine figure environment as figure* for automated export

I'm using a workflow based on pandoc and Latex to produce papers with my companies layout. Part of the formatting are captions set inside the margin and sometimes using images that span text and ...
lukeflo's user avatar
  • 1,597
5 votes
1 answer
106 views

How to avoid resetting macro definitions within a group/environment

Here's the question: why does the following code reset the meaning of the \pgPtList control sequence when the group ends? \documentclass[12pt]{article} \begin{document} \begingroup \gdef\...
Kellen Brosnahan's user avatar
0 votes
1 answer
55 views

Saving a math style in beamer

I am trying to build a version of beamer's alt that occupies the space of its larger argument. I do this with some saveboxes and measuring. Because I also want to use it in math, I need to save the ...
Bubaya's user avatar
  • 2,549
4 votes
2 answers
490 views

"\uppercase{a\lowercase{bC}}" produces "Abc" in TeX?

In TeX, \uppercase{a\lowercase{bC}} produces Abc not ABC, why? As far as I know, TeX will run the inner group before run the outer group, so I think it should be ABC and even \uppercase{a\expandafter{\...
Y. zeng's user avatar
  • 2,105
0 votes
2 answers
73 views

Need add a space before character in changing category of character?

At the bottom of page 307 of The TeXbook, it says TEX always reads the token following a constant before evaluating that constant. So, {\catcode‘\>=2 > is different from {\catcode\`>=2> ...
Y. zeng's user avatar
  • 2,105
0 votes
2 answers
59 views

If one of TEX’s internal parameters is changed within a group, the previous contents of that parameter will be restored when the group ends in TeX?

I see this sentence on page 21 of the book The TeXbook, but I can't understand it. May you show me an example and explain it to me? If one of TEX’s internal parameters is changed within a group, the ...
Y. zeng's user avatar
  • 2,105
0 votes
2 answers
74 views

Without "\global", we can still change "\count0"?

As on page 21 of the book The TeXbook, if we need to change the page number to add 1, we need to use \global\advance\count0 by 1, as \advance\count0 by 1 couldn't change \count0 in other groups. ...
Y. zeng's user avatar
  • 2,105
-1 votes
1 answer
97 views

Ignore Text between \bgroup and \egroup from printing in PDF during runtime [closed]

I would like to exclude the text between \bgroup and \egroup from appearing in the final PDF, i.e. mark it as a comment during runtime. However, the problem here is that the text is not static and \...
FixFox's user avatar
  • 45
0 votes
0 answers
39 views

`\endgroup` error with {dinbrief} and XeLaTeX [duplicate]

First, let's consider this minimal working example: \documentclass{dinbrief} \begin{document} \begin{letter} test \end{letter} \end{document} This document compiles sortof fine with PDFlatex and ...
polemon's user avatar
  • 3,565
2 votes
1 answer
64 views

Why does loading `newenviron` cause compilation to fail?

To avoid unnecessary effort, please note that I'm asking specifically about the error's cause, as opposed to how to avoid it. Furthermore, I'm aware that \NewDocumentEnvironment now offers the b ...
cfr's user avatar
  • 207k
0 votes
0 answers
62 views

How to set background image on every page using group elements

I need to put a background image on full page and I have several group elements, sometimes two groups on one page I only get one Image on half of the page and on the next page the group elements start ...
C. At's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
19