All Questions
Tagged with grouping horizontal-alignment
7
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 ...
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 ...
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.
...
-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 ...
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 ...
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$
...
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}
\...