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,787 questions
3 votes
1 answer
76 views
Oneside document with sidenotes: wide figure placed incorrectly
I am preparing a oneside document using a wide margin together with the sidenotes package. I'm experiencing issues with full-width figures that are occasionally misaligned. For example, the MWE below ...
2 votes
1 answer
63 views
In tabular environment, aligning a center aligned column to have a left-alignment within the center alignment
I am wondering if there is a relatively sane way to get a tabular environment with a centered alignment column, to have a consistent left alignment within that centering. This is easiest to explain by ...
2 votes
1 answer
58 views
How to centrally align grid in tcolorbox interior
I'm making a test using the exam class and wish to have answer boxes with a grid background for my students to write their responses. I'm doing this with a custom tcolorbox. I'm wondering why my grid ...
1 vote
0 answers
40 views
How to center a **breakable** tcolorbox relative to the page width in a double-sided document?
So basically what I need is a "page width" version of the "center" option that tcolorbox supports, which does not work when centering should be calculated relative to the physical ...
3 votes
1 answer
47 views
How do I center my proof qed's with my final line of text?
I'm not very good at LaTeX. I've been asking people online and using Grok a lot to try and make my first professional typeset PDF. I'm basically copying a textbook chapter. I want my QED to be ...
0 votes
1 answer
99 views
Why outside `\centering` outside the `tikzpicture` affect the LR-mode in tikz's content?
Description Here below are four examples: First. Without \centering and align=center: \documentclass[tikz]{standalone} \begin{document} % \centering% \begin{tikzpicture} \node [ ...
0 votes
0 answers
36 views
Fully stretch text horizontally on page across the entire document [duplicate]
So I was writing a document and noticed that I had a lot of words being cut off with - and being put in the next line because my sentences were too long. Is there a way to make my text stretch the ...
2 votes
2 answers
124 views
How to format with longtable
I created a table using tabularx that I was quite happy with. But unfortunately it turns out to be longer than one page. So the obvious choice to solve my problem would be using longtable, but I run ...
1 vote
1 answer
88 views
A question about align
How can I type a formula like this? The aligned equations are inline and the word "so" is below the aligned equation,
0 votes
1 answer
44 views
How do I right align and centre align in the same line in math mode?
I wish to write $$K_i(A; \mathbb Z_n) \coloneqq K_i(A \otimes C_n), i=1,2$$ with K_i(A; \mathbb Z_n) \coloneqq K_i(A \otimes C_n), centred, and i=1,2 aligned to the right. I've tried adding \hfill ...
3 votes
3 answers
157 views
How to highlight a single equation in an align block?
Here is a question which has puzzled me for a while now. Suppose I have a set of aligned equations, I want to highlight one of them using a simple highlight function (see snippet), which produces a ...
4 votes
2 answers
136 views
ConTeXt: Change last line's justification
Background Looking to dynamically change the justification for the last line in a quotation. Problem The setupalign wiki page notes that \setupalign takes an end parameter meaning, "justified, ...
4 votes
1 answer
138 views
Centering equation in align environment in a character
I have the following equation: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} x &= \sum_{i=1}^k\sum_{j=1}^l \alpha_{ij} (u_i + v_j) \hspace{0.5cm} \text{where}...
3 votes
2 answers
223 views
Alignment of Gantt charts
I have two Gantt charts using the pgfgantt package, and their typesetting is influenced by the longest label length. How can I make them aligned horizontally so that the left edge of the charts are ...
5 votes
2 answers
165 views
How to make symbols get vertically aligned as elements of a set?
I need to vertically align each element in the set instead of floating above the commas. \documentclass[border=3pt]{standalone} \usepackage{amsmath,mathtools,bclogo} \begin{document} \begin{minipage}{...