Questions tagged [horizontal-alignment]
{horizontal-alignment} is about aligning document elements horizontally, e.g. typesetting paragraphs using \centering or \raggedright or adjusting the horizontal position of several equation or table components. If your question is generally about (horizontal) white space, use {spacing} instead.
5,762 questions
2
votes
2
answers
54
views
How to introduce short intertext into an rcl array (or achieve the same result by other means)?
Extending Centered array with intertext, let's feed
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
%% This is what we want, but it doesn't get compiled (moreover, `\...
2
votes
1
answer
20
views
Right-aligned label in bibliography with the `thebibliography` environment in the `memoir` document class
The memoir manual explains that the style of labels of the bibliographic entries can be set via \setbiblabel (section 17.1, p. 309 for the manual version v3.8.3b).
I tried this for right-aligned ...
3
votes
1
answer
107
views
please explain the \centering markup
In the following code, why is \par needed to center the date ?
I don't understand the logic of \centering...
\documentclass{article}
\pagestyle{empty}
\begin{document}
{
\centering
...
1
vote
1
answer
48
views
Is there a way to automatically align the components in a large matrix without thousands of \hphantom? [duplicate]
For example, I want to create a simple matrix,
\begin{bmatrix} -1 & 1
\\ 1 & -1 \end{bmatrix}
But this looks a bit messy visually (especially for larger matrices), However, I ...
2
votes
0
answers
104
views
Babel Arabic kashida justification pushes text oustide of table
I would like to have a table with three columns, a different language in each column, all being justified and aligned correctly.
The issue I have is with Arabic specifically and what happens when ...
4
votes
3
answers
126
views
Vertically center align texts in table
I have tried to center-align (vertically) the texts in the following way:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{...
4
votes
2
answers
119
views
How to eliminate horizontal space between minipages
The following MWO defines two commands \pageleft and \pageright that set two minipages left and right. How can I modify the code IN THE PREAMBLE so that I may put a space between the commands in the ...
0
votes
0
answers
22
views
The dots filling in the ToC and list of codes
I'm trying to get a nicer dots filling in the ToC and the list of codes, as shown with the MWE code below. The code appears to work nicely, but I'm wondering if there's a simpler and better way in ...
4
votes
3
answers
171
views
How to fix spacing with multiline math inside table cells?
I need to create an exam where the pupils choose the correct answer and check the corresponding checkbox. The possible answers have to be arranged in a table, the checkboxes need to be in the bottom ...
2
votes
2
answers
100
views
Strange behavior in tabularray when row alignment is in \SetTblrInner
I was trying to answer to a question, but I found a strange behavior in tabularray.
The row alignment c works when it is a tblr parameter but it does not when it is into \SetTblrInner.
Is it a bug or ...
0
votes
1
answer
34
views
Underfull \hbox (badness 10000) in paragraph
I want to make the following work:
% Folha de rosto
\newpage
\thispagestyle{empty}
\begin{center}
\textbf{\autor} \\
\vspace{2cm}
\textbf{\titulodetese} \\
\vspace{2cm}
\...
2
votes
2
answers
87
views
Failed at aligning the text and the start of items with enumitem
My MWE:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{ragged2e}
\usepackage{setspace}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=-2pt}
\begin{document}
\...
0
votes
1
answer
25
views
Centered chapter titles in memoir table of contents
I'm using memoir and in the table of contents, I want the chapter title and page number to both appear centered, on separate lines. The following is the closest I've gotten:
\documentclass{memoir}
\...
2
votes
2
answers
156
views
How to make the table look position look neat
I want to make the position of this table neat but I don't know how, what should I add?
I use minipage so that the table is in a row
\documentclass[12pt]{article}
\usepackage[left = 1in,right =1in,top=...
5
votes
1
answer
125
views
Problem with delimiters in newpxmath
The following code
\documentclass{article}
\usepackage{amsmath}
%\usepackage{newpxmath}
\begin{document}
\begin{gather*}
\lVert \wedge \rVert \\ \lvert \wedge \rvert \\ \{ \wedge \}
\end{gather*}
\end{...