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

3
votes
1answer
356 views

changepage package's \adjustwidth environment adjusts only left margin

I was trying to create a custom abstract environment with minipages and adjusted margins. Everything works fine, except for that the right margin changes according to the left. I could'n find ...
2
votes
1answer
248 views

Centering text in TikZ tree node

I'd like to have my text inside TikZ tree nodes centered; below is my progress so far: \documentclass[10pt, a4paper]{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \tikzset{ ...
4
votes
1answer
137 views

How to adjust row height in table?

I am generating Russian table and row height issue. Below is part of my code (MWE). \documentclass[11pt,table,a5paper]{article} \usepackage{graphicx} \usepackage[framemethod=TikZ]{mdframed} ...
3
votes
1answer
112 views

To fix alignment in text added to Table of Contents?

My school requires tables of contents formatted like this -- please note the little headings, in red: I have it almost ready, except for a pesky misalignment in the second page of the table of ...
4
votes
1answer
113 views

Center longtable horizontally over two pages in landscape

I have a longtable in a landscape environment that ranges over two pages, and where I have introduced a page break where it is most appropriate contentwise. The table including descriptions is too ...
3
votes
2answers
52 views

How can I get “block” justification

I would like all my paragraph text to not start with indents at beginning of paragraph. And both sides justified against the margin (left and right).
3
votes
2answers
43 views

How can I align this tabular so that true on the right of page?

I want to align this tabular so that it is true on the right of page. I tried \documentclass[a4paper, 12pt]{article} \usepackage{lipsum} \begin{document} \begin{flushleft} \begin{tabular}{ c c } ...
1
vote
1answer
64 views

Table caption to the left or right of table

I am unable to find a method to place the caption of a table to the right or left of this specific table. Does anyone know if there is a way to do this in plain TEX or Koma Script (eventually in ...
2
votes
1answer
47 views

How can I center the titles in the table?

I have the following table in LaTex. How can I center ABC and DEF? \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline \centerline {i} & \multicolumn{2}{l|}{ABC} & ...
2
votes
1answer
49 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
90 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 ...
5
votes
1answer
242 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
68 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
108 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
159 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
77 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
75 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 ...
4
votes
1answer
180 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} ...
0
votes
2answers
264 views

How to reduce the left margin of the Friggeri CV template?

I'd like to reduce the left margin of the Friggeri template, in order to increase the width of the aside section. I first tried to change the numbers of the line 308 of friggeri-cv.cls file: ...
4
votes
2answers
211 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
64 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
74 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 ...
9
votes
4answers
210 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
45 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
58 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
101 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
75 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
140 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}} = ...
1
vote
0answers
61 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
91 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
176 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
70 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
82 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
278 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: ...
3
votes
3answers
127 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
91 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
36 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
79 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
77 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
35 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
302 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
77 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
73 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
81 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
121 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
159 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
31 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
140 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
120 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
56 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?