{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
47 views

\flushleft flushes whole document after use

I have an article document and I use \flushleft after equations to have the next line start on the left. It seems to then do that for all new lines after the command though, which is not what I want. ...
1
vote
1answer
71 views

Is there a way to switch columns in paracol without introducing a paragraph break in the pre-switch column?

(M)WE: \documentclass{memoir} \usepackage[margin=1in]{geometry} \usepackage{paracol} \begin{document} \newcommand{\switchtoleft}{\switchcolumn[0]} ...
1
vote
1answer
20 views

Custom horizontal alignment in multicols environment

If I utilize the two columns of multicols for my Kurdish sequence of numbers, it arranges the items in column like the following figure: But I want to arrange the items in rows splitted by some ...
1
vote
1answer
102 views

Text alignment in moderncv

I am making my cv with moderncv class. I have two questions: 1- How to align first and second column of "Programming Languages" vertically? So that, the text "Programming Languages" would be ...
2
votes
3answers
65 views

Center tabular env around middle column?

I have a tabular environment with three columns aligned as {rcl} such that text in the middle column is centered internally within the column. I want the whole table to be positioned in the page such ...
11
votes
3answers
4k views

How do I center the table of contents title using tocloft?

I'm getting odd behavior using package tocloft to format my table of contents and center the titles "Contents", "List of Figures", and "List of Tables". Using the code suggested in the tocloft ...
6
votes
2answers
91 views

Can two \vtop boxes exist side by side?

So I am trying to see if I can put two \vtop boxes side by side. The below is the closest I have gotten. This is a kind of a "plain-tex in latex" example. ...
3
votes
2answers
61 views

Writing regression results in latex

I'm trying to write a regression results in Latex as follows: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} y_t = ...
1
vote
2answers
38 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) vspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. vspace(10mm) ...
0
votes
0answers
13 views

Fix subpicture placement

I know this kind of thing has been asked here before, but I have a question about this post. I copied the code from there and only changed the filenames to have my pictures. \begin{figure*} ...
1
vote
1answer
40 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...
0
votes
1answer
21 views

Centered tabular column, with narrow columns?

I'm trying to make a table in which most columns have the same width, and text in them is centered. However, the columns are very narrow, and the typical answer (make a new column type using ...
2
votes
1answer
19 views

Align \boxed{} equation inside systeme*

I would like to know how can I align a *systeme** environment with only a \boxed{} equation belonging to it. The code I have produces the right system of equations, but the boxed equation is ...
12
votes
4answers
458 views

How do diacritical marks impact centering and overshooting?

I am creating a table containing several foreign names with diacritical marks in them, and it seems to me that they ruin the vertical alignment, as they are too close to the top horizontal line. How ...
3
votes
1answer
53 views

Redeclared Section formatting - Centering

I would be grateful if someone could explain how the following could be centered instead of indented? Perhaps a MWE is not required for this? \RedeclareSectionCommand[ indent=1.25in, ...
0
votes
0answers
17 views

Alignment algorithm text

I have two troubles in algorithm alignments. 1- Overflow from column in input part, the other one text alignment in loops. Many Thanks.
0
votes
0answers
26 views

Alignment is algorithm

I have two major problems in alignment algorithm. As it can be seen, one overflowing from column another text alignment in for and while loop. Look forward to your answer.
1
vote
1answer
111 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow.
1
vote
1answer
43 views

Place tables in the middle of the page

I have two tables, table1 and table 2. I want table 1 in the middle of page 1, table 2 in the middle of page 2. First, I tried, \begin{table}[htbp] \input{table1} \end{table} ...
0
votes
1answer
55 views

Text at right side of slide

I am trying to include some text at the right side of a beamer slide/frame, like so \documentclass{beamer} \usetheme{default} \begin{document} \begin{frame} \hfill \begin{description} ...
4
votes
1answer
44 views

Graph shifts position when adding plot

If I compile this code without the Gaussian function at the end everything is allright, but if I try with it the whole figure shifts to the right. In this example it is not a very big problem, but ...
3
votes
1answer
39 views

how to give horizontal offset to the section heading and align multiple tabs

I am a beginner in latex and trying to prepare my CV. the output of the following code \documentclass[11pt]{article} \usepackage{sectsty} \usepackage{amsmath} ...
2
votes
2answers
35 views

How can I get a TABLE to respect the narrower environment in ConTeXt?

The narrower environment in ConTeXt is very useful, but TABLEs misbehave inside of it. I would expect a TABLE in a narrower environment to align with the new margin, but instead, the TABLE is aligned ...
6
votes
3answers
193 views

How to do the linear program in format

How to get this format? I want to get this strictly. Thanks for the answer in advance. Here it is my code \begin{alignat*}{9} \hspace{30 mm}\text{maximize } & \sum_{i=1}^N d_i U_i ...
0
votes
1answer
77 views

Beamer frame title manually change vertical and horizontal position

I am trying to change the vertical and horizontal positions of my frame titles and subtitles. So far I am using \setbeamertemplate{frametitle}[default][center] but I would like more control. Is it ...
3
votes
2answers
115 views

Align columns correctly in multicolumn environment [duplicate]

I have the following table: \documentclass[a4paper,11pt]{report} \usepackage[english]{babel} \usepackage{booktabs} \begin{document} \begin{tabular}{|cc|ccc|} \hline ...
6
votes
1answer
218 views

Boxing some cells in tabular environment

I would like to make a table in LaTeX, where I box some of the cells within my table. And I would like to be able to nest boxes so that I can have a box in a box. Here I have an example of what I ...
2
votes
1answer
68 views

Horizontal spacing between lines in split environment

I have a math expression that looks like this \documentclass[a4paper,12pt,amsmath,amssymb]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage[T1]{fontenc} \usepackage{tgtermes} ...
6
votes
3answers
217 views

alignat inside align environment?

Why can't I nest an alignat environment in an align environment? \begin{equation} \label{eq:115} \left\{ \begin{aligned} \begin{alignat*}{2} ...
5
votes
4answers
163 views

How to align the equations?

I hope to align equations as shown here: I used this code: \begin{align*} \displaystyle {eq1} &\Longleftrightarrow& \displaystyle {eq2} \\\\ \displaystyle {eq3} ...
1
vote
0answers
38 views

Shift all floats on page horizontally

I would like to modify the way standard floats, like figure or table, appear on page by shifting them horizontally relative to the paragraph text, see the image below. To this end I have tried to ...
18
votes
1answer
21k views

Centering chapter/section/subsection

I am trying to center my chapters/sections/subsections. I have used the following: \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}} \newcommand{\ssection}[1]{\section[#1]{\centering #1}} ...
2
votes
1answer
27 views

How to get proper spacing with \documentclass{scrartcl}

I would really like to use this cv template, but the problem it has is that the sentences don't fill up the entire space as illustred by this screenshot To clarify, the middle sentence clearly ...
2
votes
1answer
1k views

How to align text without two column?

I want to have the following text alignment and I don't want to use any "two column" and table because an environment I use doesn't support them. :( The text format looks like the picture below. ...
3
votes
1answer
35 views

Large multiline equation alignment

I have the following latex code: \begin{equation*} \begin{split} Vect =& ...
4
votes
2answers
101 views

Aligning combination of numbers and parentheses in siunitx table

I have this table and would like to align the columns by the parentheses. Note that I want to have both the number and the percentages (in parentheses) in one column. Input ...
0
votes
1answer
26 views

How to write in proper format of this code

I want to get the right hand side portion in a format. Here the format. Table[i, j] <-maximum { Table[i-1, j] AND Values[i] + Table[i-1, j – ...
4
votes
2answers
238 views

Align and Center equations

I have the following equations . I just want to center them , such that the equality '= ' signs are one below the other. I tried \begin{align} but, that pushes them all to the left of the page. ...
3
votes
1answer
29 views

List of authors to the right, as a signature

I am currently making the last adjustments to my groups BSc thesis and I am writing the acknowledgement. Currently it looks like: Title A lot of text. ...
4
votes
2answers
706 views

Centering \inputminted inside a figure?

I'm using minted package to import some code and also kind of images using ASCII art. I've wrapped the \inputminted with \figure with a caption and all works fine. The only thing I can't accomplish ...
2
votes
1answer
64 views

Text is off center with \begin{center}

Using this source: \documentclass{article} \begin{document} \begin{center} Lorem ipsum dolor sit amet, vim omnes munere at, no affert appetere cotidieque ius. Quo nulla elaboraret cu. Nec petentium ...
7
votes
4answers
149 views

Creating a right aligned signature block

I would like to create a signature block for the title page of my dissertation. A requirement is that the block must be aligned with the right side of the page. Within the block itself, everything ...
3
votes
3answers
138 views

Align Matrix (Vector) on latex

I am trying to align the entries of this vector to the left. Could you help me please? Below is my code and next the result. P=\left(\begin{matrix} p^{(1)}(x_1,x_2,\cdots,x_{r_1}) \\ \vdots\\ ...
2
votes
1answer
29 views

TOC - Horizontal Alignment

My currente TOC is looking like this: And here is a code sample: \documentclass[]{article} \usepackage[latin1]{inputenc} \usepackage{tocloft} %pacote para editar ToC \usepackage{titlesec} %pacote ...
1
vote
0answers
32 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
1
vote
2answers
3k views

How to left align a text in IEEEeqnarray environment?

I am using IEEEeqnarray environment and want to left align a text. How to do that? \documentclass[a4paper, 10pt, conference]{ieeeconf} \usepackage{amsmath} % assumes amsmath package installed ...
1
vote
1answer
23 views

longtabu alignment cell won't get to the center

I'm using tabu package. The inside of the every cell doesn't get to the center except for the second and the third. And also the line for closing the table doesn't show. Can anybody help me to fix it? ...
0
votes
0answers
16 views

Alignment problem in tabularx that happens when I change it to non-decimal

I have the following code which aligns when I have decimal figures but fails to do so when I type 0 for instance. The code is as follow \documentclass{article} \usepackage{tabularx} ...
0
votes
1answer
34 views

Authors with log affiliations IEEE

I'm relatively new in this LaTex thing. I'm unable to align 4 authors because the affiliations are too big. I saw some answers like using IEEEtran document class -- how to align multiple rows of ...
2
votes
0answers
45 views

Justify main caption in figure

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by ...