{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.

learn more… | top users | synonyms (6)

2
votes
1answer
121 views

How to use apa6 man and have justified paragraphs

I want to be able to use the apa6.cls class man but paragraphs are flushed to the left, and I want it to be justified.
3
votes
1answer
163 views

Optimizing size (font AND width) of tables produced with dcolumn/siunitx

I have a couple of tables in my document, and it's time to finalize them. This means I want to optimize: 1) the size of the font (if possible obtain \normalsize as in the rest of the document, or at ...
7
votes
1answer
3k views

Beamer: Text Justification in blocks globally

I can get text justification in blocks by using \justifying. Is it possible to justify the text within each block globally without using \justifying in each block? Thanks MWE \documentclass{beamer} ...
4
votes
1answer
88 views

Aligning \item dots partially in minipage

As you can see on my added image, I have added the first \item in a minipage together with a figure which results in the "item dot" is a little more centred then the two other "item dots". I have ...
4
votes
2answers
170 views

Square roots not on same height

This part C\frac{1}{\sqrt{G}}\sqrt{\rho} doesn't seem to be on the same height as this part \sqrt{b}\sqrt{l} when compiled. What am I doing wrong? \begin{flalign*} ...
8
votes
3answers
377 views

Move right-aligned paragraph more to the center

So I am typesetting a little songbook for our Christmas get-together. To make better use of the limited space, I am using the multicol package; no issues there. What I'd like to do is move a whole ...
6
votes
1answer
167 views

boxed verbatim environment disappears

I want to center a box containing a verbatim environment. The (almost)MWE below is my attempt to use the answer at center /verbatim text in /figure . \documentclass{article} \usepackage{verbatimbox} ...
2
votes
3answers
94 views

To have two names side by side in titlepage

My tex \begin{titlepage} \maketitle \begin{flushright} \large \begin{align} \emph{Supervisor:} & \emph{Intsructor:} \\ Prof. Sami & M.Sc. Tech. Henri \end{align} \end{flushright} % Bottom ...
5
votes
1answer
347 views

Aligning vertically centered and horizontally left text of cells in table

My minimum working example : \documentclass[11pt,a4paper]{article} \usepackage[francais]{babel} %\usepackage[latin1]{inputenc} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
4
votes
2answers
656 views

Chords & lyrics, songbook

I'd like to make something like a songbook - just chords and lyrics. I have found several packages, but I also wanted to improve my TeXing skills by making my own commands/environmnets etc. Now I am ...
3
votes
1answer
96 views

Center array headers but right justify numbers in columns

I'd like to center my headers but right-justify the numbers in the columns. \begin{array}{c|c|c|c|c|c} x & y & (x-\overline{x}) & (y-\overline{y}) & (x-\overline{x})(y-\overline{y}) ...
4
votes
1answer
174 views

Left-aligning URL with line breaks in bibliography

URLs break fine in my bibliography. My problem is that they are justified which creates a gap between "URL:" and the URL itself (see below). Is there a way to left align only the URL? I am using ...
10
votes
4answers
2k views

Custom alignment of text in itemized environment

I want to describe the variables involved in an equation in an itemized environment such that every item begins with the variable name and subsequently comes the description for it. I'd like to have ...
2
votes
0answers
50 views

How to justify some block of text in beamer? [duplicate]

I'm doing a presentation in beamer and would like to justify some text as one does in LibreOffice Writer or Word, cause I don't like how it looks aligned to the left. Is there a command that does the ...
3
votes
1answer
99 views

How to wrap text with flalign*?

I am trying to left align some text as shown below: But the problem here is that the line is almost exceeding the page (shown by red arrow).What I want is somewhat shown in the blue line which ...
1
vote
1answer
103 views

How can I align this?

\documentclass{article} \usepackage{mathtools} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{equation*} R = \left(\begin{array}{cc} cos ...
1
vote
2answers
461 views

Res documentclass horizontal alignment issue

I'm using the res document class to create a simple resume. I'm going for something that looks like this Creating a Resume Using LaTeX however I have to have my name and contact information centered ...
5
votes
3answers
145 views

Why do these aligned equations pop to the right?

\documentclass[a4paper]{article} \usepackage{mathtools} \usepackage{amssymb,amsmath} \usepackage{mathtools}%voor Aboxed \usepackage{bm} \begin{document} \begin{align*} \overrightarrow{a_{G'_1}} = ...
2
votes
1answer
111 views

Wrapfigure issue of table & figure in 1 line

I tried to use wrapfig package to arrange a small table in the left & a figure in the right in 1 line while text floats around them but failed. My code is: \documentclass[10pt]{article} ...
5
votes
1answer
611 views

Faulty right alignment for comments in algorithmic package

I'm trying to right align comments in a pseudocode environment using the algorithmic package. So I renewed the algorithmiccomment command. There's a different way to create comments for "normal" ...
5
votes
3answers
627 views

Place image and Text in same title line

I have title part in latex code and i want to put image in left side. Page is in center. \title{\vspace{-15mm} \fontsize{25pt}{10pt}\selectfont \textbf{\hspace*{-1pt} ...
0
votes
1answer
87 views

How to placement author name in centered title at Simple Slide(ConTeXt)?

I have problem about placement author name more than one at my simpleslide and my MWE \usemodule[simpleslides] [style=Rounded,color=red, font=Helvetica] \setupTitle [ title={TSP\\(Travelling Salesman ...
2
votes
1answer
130 views

How to make a column with an adaptive width?

I have two questions in creating the following table: 1) How to make the first sub-column (with title No.) adaptive in width? Now it has the same width with the second sub-column, but I'd like to ...
2
votes
2answers
342 views

Justified paragraph followed by right-aligned paragraph with custom spacing

I'd like to have a paragraph of ordinary text with a single right-aligned line underneath, with a custom vertical spacing (0.5 cm) between them, but can't figure out how it is done. My best guess is: ...
4
votes
3answers
235 views

Table Header with vertically centered alignment

I'm creating table header using latex code mentioned below: \begin{center} \begin{tabular}{|c|l|c|c|c|c|} \hline $\textbf{Q }$&$\textbf{Header one}$&$\textbf{Test} ...
1
vote
2answers
165 views

In multiple tables, how to align columns again after variable-width columns?

There are multiple (e.g., 2) tables that contain similar information. Between them is one table row of white space. All tables have 3 columns. The first two columns belong together, which is why the ...
1
vote
0answers
58 views

Edit Customize Change Justification rules to solve losse lines in tight columns or spaces

I'm working on a table and have a column (column 3) which is about 5 cm wide (specifically set) where I'd like text to be justified. However, due to the tight column, the paragraph style (in combo ...
4
votes
2answers
104 views

Spacing and alignment in equations

I didn't find a solution about how to add units to equations. I have my code \begin{equation} \eta = \frac{\Phi}{P} [lm \cdot W^{-1}] \label{eq:mv} \end{equation} which is centered by ...
2
votes
1answer
131 views

How to change the title alignment just for the appendix sections?

I am formatting my dissertation document using the usfdis class. However, due to new specifications, the appendices titles should now be single spaced and aligned to the left margin. The code ...
5
votes
1answer
43 views

How can I center a list within a list?

I am trying to center a list of options within an enumerated list environment. Like so, \usepackage{enumerate} \begin{document} \begin{enumerate} \item Which of the following statements is ...
3
votes
1answer
474 views

Three fixed width columns for cv entry

I'm in the process of writting my cv in LaTeX. I need to display the information in such a way that for each entry I have 3 left aligned items. The first being the date period, the second the ...
0
votes
2answers
119 views

Decrease the space between formula and text, and the formula position of align environment

Please see the picture first. My two questions are described in the picture. As known to us, when we use "\begin{align}", it will appear at the next line automatically. Could I just move it just be ...
2
votes
1answer
116 views

How to correctly use siunitx to align number in the center of a table for number with preamble

I would like to have my numbers aligned left but centered in a table as in this solution, which I also tried to apply. Now my numbers are of the form ~24%. For a correct alignment I tried to protect ...
3
votes
1answer
115 views

Proof package: lines too short

The proof package's \infer command automatically sizes the lines it draws. However, it isn't always right (pdflatex output): The line is too short on the left. Is this a package ...
9
votes
4answers
199 views

Aligning mathematical inequalities

I want to align the following at the inequality signs, however it becomes very ugly: \begin{alignat*}{2} ...
4
votes
1answer
221 views

How do I make tabu and multicol play nice with each other? [closed]

I'm trying to write a document that will require lots of small tables (which contain other, nested tables) in a section of my document, which I want to put into a two-column section. I use tabu for ...
1
vote
0answers
32 views

\raggedleft having no effect in group [duplicate]

the following code produce a text flushed to the left of the page, which I did not expected: \documentclass{article} \begin{document} {\raggedleft Xyzzy!} \end{document} like so: Removing the ...
1
vote
1answer
741 views

how to center align a word with bold and underline

I need to center align a word with bold and underlines. I've tried with \textbf and \centerline in all possible combinations but no use. I am using \documentclass[12pt]{report} for my report doc.
3
votes
4answers
247 views

Center overfull subfloats

I have some plots that I want to group together into one figure as subfigures using subfloat. I want to align them as two per row but it seems they are too big (Overfull \hbox). Nonetheless I want ...
1
vote
1answer
77 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
2
votes
0answers
113 views

How can I implement an '&' inside a \left( \right) environment? [duplicate]

I've been running into a strange issue. I'm doing some derivations in LaTeX document, and am using the align environment to do so. Some derivations require multi-line brackets, for which I try to use ...
0
votes
0answers
30 views

How to remove indentation when using the aligned environment? [duplicate]

I want to align equations inside an enumeration, so I use the aligned environment and its [t] option to make the first equation appear on the same baseline as the item label: \documentclass{article} ...
3
votes
2answers
473 views

Tikz, rectangle split, first part aligned abnormally

Some little code two draw a rectangle with 4 parts, from library shapes.multiparts. \tikzset{ font=\sffamily, BLOCK/.style={ draw, align=center, text height=0.4cm, ...
8
votes
1answer
1k views

Vertical alignment of dots in equation

Consider the following example: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat*}{6} 1 && 2 && ...
2
votes
4answers
380 views

Align pictures in subfigure

I'm having troubles with the subfigure package and proper alignment of figures. I'm inexperienced with Latex so please apologize obvious mistakes. The top-left figure is not properly aligned with the ...
3
votes
1answer
57 views

Add \centering to all subfigures in subcaption using \g@addto@macro

I'm trying to center subcaption subfigures as outlined this answer. However, compilation fails with ! Argument of \subcaption@minipage has an extra }. <inserted text> \par ...
0
votes
1answer
105 views

Right justification not correct

I am writing my thesis and I have started noticing wrong right justification. I have corrected some of them by replacing dashes with \hyp{}. However, I still struggle with the example below (citation ...
0
votes
1answer
93 views

Centering texts in tabularx

It is my first question on this site. I am not sure my LaTeX code will be well written here. Here is my table code. The problem is that the text in the first four columns are not centered in respect ...
4
votes
1answer
152 views

Aligning a sample resume

I have two questions: How do you edit the tex file so that "Contact information" and "DEPT" are aligned horizontally? What do you need to edit so that "Education" isn't cut off to the left of the ...
18
votes
3answers
2k views

Alignment of multiple variables in a linear system

I am trying to lay out a few linear equations, but with the different variables aligned in columns like this: x + y = 1 } x = 0 y + 2z = 1 } y = 1 x + z = 0 } z = 0 (with ...