Skip to main content

All Questions

2 votes
1 answer
322 views

Why does the \centering command affect prior text?

Usually commands of the form: {\command <text>} affect only <text> and nothing else. In other words, the scope of such commands is limited to the group they are nested in. In the case of ...
The Riddler's user avatar
0 votes
1 answer
27 views

Loading images disaligns document

I do not know whether the question has already been asked, Since I'm a rookie writing in latex, I'd like to know what I'm missing when i upload an image on my document, because it disaligns ...
jacopoburelli's user avatar
7 votes
2 answers
528 views

alignment and groups in LaTeX: how to explain the behavior?

I am currently writing LaTeX.js to translate LaTeX to HTML in the browser. So I want it to be as exact as possible. However, TeX's alignment implementation together with LaTeX's \\ make that hard. ...
MiB's user avatar
  • 837
-1 votes
1 answer
189 views

Command disabled Fusing up lines of code, maths mode

I appear to often accidentally hit the wrong keys when type code within sentences with ordinary lines of text. I accidentally do this too much, it will fuse the entire line together making it almost ...
William Balthes's user avatar
10 votes
2 answers
4k views

Why doesn't \par end this \centering?

As per this answer, \par should properly end the effect of \centering. But in the following case, it doesn't. Why? \documentclass{article} \makeatletter \newcommand\@mytitle{} % create macro for ...
Sverre's user avatar
  • 20.9k
19 votes
2 answers
647 views

Why do I have to put the center environment in a group for \@afterindentfalse\@afterheading to suppress indentation?

Consider the following two macros, the only difference being that one has the environment inside a group: \documentclass{article} \makeatletter \newcommand\thisworks{% {\begin{center} $\ast$ ...
Seamus's user avatar
  • 73.7k
10 votes
2 answers
9k views

\bgroup and \egroup?

So I've been looking to expand on the following bit of code (a hack to not screw up the margins when using oversized figures): \noindent\makebox[\textwidth]{% \begin{tabularx}{1.5\textwidth}{XX} \...
Jim's user avatar
  • 101