Skip to main content

All Questions

Tagged with
1 vote
2 answers
43 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
5 votes
1 answer
206 views

Grouping enumerated list with different width?

I found this nice answer regarding grouping of enumerated list. But it does not work for lists with different width. For instance \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
Maryà's user avatar
  • 4,870
16 votes
1 answer
2k views

A curious dependency between \newcommand and curly braces

An example is a bit artificial, but the point is that I do not understand why {} influence the outcome of \newcommand in the way described below. Consider the following definition: \newcommand\...
Rafał Gruszczyński's user avatar
1 vote
1 answer
637 views

Curly braces disappear when reloading LyX document

I have a problem in LyX when using a math macro with an optional argument. I want to have an interval [a,b] as argument, which I need to group in curly braces, otherwise LaTeX will confuse the ...
cauchy42's user avatar
  • 629
13 votes
1 answer
2k views

Splitting a command syntax across a \newenvironment definition

This question is a direct follow-up to the question Can a \newcommand Definition Contain Braces as Substitution Text? I asked yesterday. The following example is once again a counter-intuitive one, ...
Chatterjee's user avatar
  • 1,161
6 votes
1 answer
1k views

Can a \newcommand Definition Contain Braces as Substitution Text?

The following example is completely counter-intuitive, but I need this in a bigger definition I'm not including here. \newcommand{\openbrace}{{} I need this to start a nested scope. Is this ...
Chatterjee's user avatar
  • 1,161
2 votes
1 answer
436 views

Add a brace on the left side of a group [duplicate]

I can't figure out how to place the brace on the opposite side, that is on the left of the group of equations, when following the answer in this link: How to put a brace on the right, not left, to ...
Steeven's user avatar
  • 1,427
13 votes
2 answers
565 views

necessity of braces for accent commands

Many resources on LaTeX teach that "é" and "ä" are typeset with (respectively) \'{e} and \"{a}; and it is similar for other accent symbols. Are the braces really needed? Aren't \'e and \"a shorter but ...
Lover of Structure's user avatar