Search found 419 matches
- Sun Sep 10, 2023 10:12 pm
- Forum: Text Formatting
- Topic: Text Formatting in a table
- Replies: 2
- Views: 8029
Text Formatting in a table
An alternate way may be to use array 's m column. Just don't mix m with p columns within the same tabular environment, that may have the opposite effect: if, say, you specify m for the shorter text (that ended up at the top) but p for the longer text, the shorter text gets vertically centered to the ...
- Sun Sep 10, 2023 9:54 pm
- Forum: Page Layout
- Topic: Questions about page numbering and footers with memoir
- Replies: 3
- Views: 63701
Questions about page numbering and footers with memoir
Turn \aliaspagestyle{chapter}{standard} to \aliaspagestyle{chapter}{plain}
% We want all initial chapter pages on the right page not the left
\cleartoverso
That would clear to the next even numbered page, which in a twosided layout is on the left---unless you're typesetting something that's ...
% We want all initial chapter pages on the right page not the left
\cleartoverso
That would clear to the next even numbered page, which in a twosided layout is on the left---unless you're typesetting something that's ...
- Sat Sep 02, 2023 9:10 pm
- Forum: Graphics, Figures & Tables
- Topic: foreach loop vs. no foreach loop
- Replies: 4
- Views: 19320
foreach loop vs. no foreach loop
I can do that simply with
\global\let\r=\r
without any iterative definition problems?
Yes. Unlike \def (or \[re]newcommand), \let creates a copy of what's on the right side of the (optional) equal sign.
Come to think of it, you might as well use
\xdef\r{\r}
which expands {\r} before it gets ...
- Sat Sep 02, 2023 2:07 pm
- Forum: Math & Science
- Topic: Bad math environment error
- Replies: 1
- Views: 27080
Bad math environment error
Hello and Welcome aboard :)
Your \[ (just after the equal sign) tries to start a new (displayed) math environment, but you're already in math mode.
The last closing brace has no partner, either.
BTW: you're defining \Rho, but you're using \rho. Since (La)TeX is case-sensitive, the definition of \Rho ...
Your \[ (just after the equal sign) tries to start a new (displayed) math environment, but you're already in math mode.
The last closing brace has no partner, either.
BTW: you're defining \Rho, but you're using \rho. Since (La)TeX is case-sensitive, the definition of \Rho ...
- Sat Sep 02, 2023 11:14 am
- Forum: Graphics, Figures & Tables
- Topic: foreach loop vs. no foreach loop
- Replies: 4
- Views: 19320
foreach loop vs. no foreach loop
Hi Dan,
that's because the loop's, hmm, body is executed in a TeX group, so when \s is incremented, \ang and \r revert to their contents they had before the inner \foreach started (r=8, ang=0).
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfmath}
\usetikzlibrary{intersections}
\begin ...
that's because the loop's, hmm, body is executed in a TeX group, so when \s is incremented, \ang and \r revert to their contents they had before the inner \foreach started (r=8, ang=0).
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfmath}
\usetikzlibrary{intersections}
\begin ...
- Wed Aug 30, 2023 1:49 am
- Forum: General
- Topic: Generating different page layouts from the same source
- Replies: 3
- Views: 16309
Generating different page layouts from the same source
\@classoptionslist is still defined in the LaTeX Kernel, AFAICS. Have you considered that
\LoadClass[12pt,DIV=15]{scrartcl}
may overwrite this \@classoptionslist of yours?
I mean, you are telling to load class scrartcl with options `12pt,DIV=15', doesn't this set said \@classoptionslist ...
\LoadClass[12pt,DIV=15]{scrartcl}
may overwrite this \@classoptionslist of yours?
I mean, you are telling to load class scrartcl with options `12pt,DIV=15', doesn't this set said \@classoptionslist ...
- Thu Aug 24, 2023 9:23 pm
- Forum: LaTeX Beginner's Guide
- Topic: ifthenelse
- Replies: 13
- Views: 181228
ifthenelse
(though I'm not completely sure why you were so surprised that my current one does. :cry: )
I was surprised because you used the same \gdef definitions for \x, \y as in the previous code.
What I failed to realize was: said definitions no longer are within a TeX group. In other words: you may ...
- Thu Aug 24, 2023 9:49 am
- Forum: LaTeX Beginner's Guide
- Topic: ifthenelse
- Replies: 13
- Views: 181228
ifthenelse
Hi Dan,
I'm actually surprised your last code works :D
\gdef\x{\X}
globally defines \x to look up \X, when called--it does not expand \X.
Replace \gdef by \xdef which is short for \global\edef , then \X gets expanded.
\gdef\x{#2}
works as expected, because argument placeholders are always ...
I'm actually surprised your last code works :D
\gdef\x{\X}
globally defines \x to look up \X, when called--it does not expand \X.
Replace \gdef by \xdef which is short for \global\edef , then \X gets expanded.
\gdef\x{#2}
works as expected, because argument placeholders are always ...
- Wed Aug 23, 2023 9:06 pm
- Forum: Others
- Topic: Create a table. beginner
- Replies: 1
- Views: 42075
Create a table. beginner
Hi and Welcome 
Perhaps it would be a good idea if you'd just post your current attempt in (La)TeX code, see also
minimal working example.
That way, no one here has to start from scratch (and possibly spot what's going wrong with your code).
KR
Rainer

Perhaps it would be a good idea if you'd just post your current attempt in (La)TeX code, see also

That way, no one here has to start from scratch (and possibly spot what's going wrong with your code).
KR
Rainer
- Wed Aug 23, 2023 8:07 pm
- Forum: LaTeX Beginner's Guide
- Topic: ifthenelse
- Replies: 13
- Views: 181228
ifthenelse
Hi Dan,
yes, ending a scope (or any other LaTeX environment) also ends a TeX group after which definitions made in that scope are lost.
\documentclass{article}
\def\A{foo}
\def\B{foo}
\def\C{foo}
\begin{document}
Before some group: \A, \B, \C
\begingroup %to simulate the scope
\def\A{bar}
\gdef ...
yes, ending a scope (or any other LaTeX environment) also ends a TeX group after which definitions made in that scope are lost.
\documentclass{article}
\def\A{foo}
\def\B{foo}
\def\C{foo}
\begin{document}
Before some group: \A, \B, \C
\begingroup %to simulate the scope
\def\A{bar}
\gdef ...