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

0
votes
1answer
37 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
2answers
31 views

How to align on right if there was a linebreak right before?

Consider this MWE \documentclass[a4paper]{article} \usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry} \usepackage{enumerate} \usepackage[ngerman]{babel} \usepackage{ifthen} % ...
3
votes
2answers
88 views

Centre on decimal when brackets present

I have a table column where I'm centring all the numbers on the decimal using dcolumn and I'm finding that if a number is in brackets and no decimal point is present then it will align on the right ...
5
votes
1answer
124 views

How do I center this long circuit?

I am having difficulty centering this long circuit. I scaled it so it would not go off the page but I have been unable to find a way to center it. I tried adapting the solutions used in this related ...
2
votes
0answers
40 views

Bullet and alignment issue in itemize environment [closed]

Itemize environment under the macro is not showing bullet. It's showing dash. Also, there is an issue with horizontal alignment. It's not aligned properly. I already fixed with by using \begin{itemize}...
4
votes
4answers
145 views

How to horizontally align two or more random places of a document?

I would like to find a way to horizontally align any two or more random places of my document (but probably on the same page or not too far from each other). It's a bit like the second column of a ...
1
vote
1answer
31 views

How to align various parts of the title?

I am attempting to recreate the following title look, from scratch Here is my attempt so far: \documentclass[paper=A4, fontsize =11pt ]{scrartcl} % A4 Paper and 11pt font size \usepackage[...
2
votes
1answer
32 views

Reledmac: footnote position problem

I am trying to have footnotes over three columns using reledmac package. However, I don't understand how to get footnotes correctly positioned : it looks like this : ----------------------------------...
2
votes
2answers
205 views

Align math to the left

I need to align math to the left. I tried to add [fleqn] option to the \documentclass command - it works but now all equations in the document are aligned to the left which isn't what I want. My ...
2
votes
2answers
126 views

ACM Proceedings overlapping email

I'm writing a paper for a paper that uses the ACM Conference Proceedings class acm_proc_article-sp.cls. I have five authors, and all of our emails seem to be sufficiently long that they overlap in the ...
2
votes
0answers
54 views

h/v centering in tabular

I'm trying to get my cells in a tabular environment horizontally and vertically centered. MWE to be found at the end. I tried different orientations: c, which does what it is supposed to, as well as ...
4
votes
2answers
76 views

centered hrule (plain tex)

As my nick suggests, I am just starting out with tex. Using plain tex, I am trying to create a document where certain paragraphs are separated by a centered horizontal line. I would like the ...
2
votes
1answer
70 views

How to offset caption?

I have a large table, so I use \pdfpagewidth=16in \pdfpageheight=8in to enlarge the page to fit my table. However, I cannot center my captions (one above and one below the table). I am using tabularx ...
4
votes
2answers
47 views

Defining an environment for aligning elements in a table and labeling them alphabetically

I'd like to automate this process in an environment as far as possible: \documentclass[12pt,ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{babel} \begin{document} \begin{tabular}{llllll}...
1
vote
1answer
20 views

hbox badness with line breaking in tables and use of \raggedright

I am hunting for hbox badnesses in my document at the moment and have some problems in resolving issues with a table using tabularx. As suggested in this thread I am using \raggedright to relax the ...
2
votes
1answer
33 views

Create a line with text on the left border and right border

I'm trying to create a line at the end of a document which will just display a name on the left and the date on the right. I've attached an example. I've considered using tables, but that seems like ...
3
votes
2answers
323 views

Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
2
votes
1answer
90 views

Line breaks in code affecting outcome appearance (boxes)

I fear the answer to my question might be obvious to many of you, still I couldn't explain it to me. Using a parbox in an fbox and changing the textcolor works out as desired. But I came across a ...
0
votes
0answers
41 views

format for justifying each step in a proof

I'm looking for a way to structure my proofs where I can indicate an application of a previous theorem. Right now I'm writing things like "so and so is true since Theorem 1" or "this is true (Theorem ...
0
votes
1answer
23 views

How to offset a pict2e picture horizontally?

One way or another I have chosen to use the picture environment (with the pict2e package) to create the figures in my document. Now I am to deal with the consequences, the main of which is the figures ...
4
votes
1answer
80 views

Horizontally centering a node in a TikZ diagram

I manged to draw this diagram with tikz: with this code: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \pagestyle{empty} \...
8
votes
4answers
362 views

How to align superscripts?

I have an expression like $$\eta^{[\alpha\beta}_{\phantom{\alpha\beta}\rho}h^{\sigma]}A^\rho$$ and I would like that all the indices alpha, beta, sigma and rho appear on a same line. If someone ...
1
vote
0answers
57 views

Is there a way to justify ALL LINES of a given paragraph? [duplicate]

I would like to set the paragraph alignment to "all lines", like in Adobe InDesign, see screenshot below: Is there a way to do it with LaTeX? And if yes, will it work with the multicol package ? ...
2
votes
1answer
29 views

How to center elements of different sizes

I would like to display some matrix things \begin{frame} \begin{align*} \left( \begin{array}{c} y_1 \\ y_2 \\ \vdots \\ y_T \\ \end{array} \...
1
vote
0answers
50 views

Centering too wide figures?

How do I center these two figures that are too wide? \documentclass{amsart} \usepackage{amsthm, amsfonts, amsmath, amssymb, mathrsfs, enumerate,graphicx} \usepackage{pgfplots} \usepackage{...
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 ...
2
votes
2answers
66 views

Aligning chemical equations in a table

I have a table containing some chemical equations, some with more than one line. Can I align all of them at their reaction arrows without some much space around it? Dividing the reactions into parts ...
1
vote
1answer
66 views

Justify content in beamer blocks

I have a beamer presentation that contains different blocks, I need to justify all my paragraphs (right and left) how can I do that? \documentclass[11pt]{beamer} \begin{document} \begin{frame}{...
2
votes
1answer
42 views

Align text by numbers in table columns

I need to align the text in columns by decimals in the numbers. However the numbers go together with text so I can not simple use dcolumn package in 5th column as in the 1st one. If I split to more ...
0
votes
0answers
15 views

Insert line break if content doesn't fit empty space in last line of paragraph [duplicate]

I would like to typeset a small phrase aligned at the right in the last line of a paragraph. Ex: This is some text in with a short enought line this is the phrase The code: \...
3
votes
1answer
36 views

Justify left and right inside example environment

I use the "Numbered Examples (multiline)" environment in a LyX document (class : Book (Standard Class)). The text is not fully justified (it is not right justified) in the examples. Is there a way to ...
0
votes
2answers
39 views

How to make text at center of column in a table

i have to add a table in my report. See the picture .How I can change the code so that text in each columns fits in the middle of each box. If you see the last column the text in on extreme left side ...
2
votes
1answer
31 views

Why does combining arrays and \left/\right cause alignment?

The following MWE is rendered as shown below: \documentclass{article} \begin{document} \begin{array}[t]{@{}l@{}} \left[\int abc\right]\\ \left[abc\right] \end{array} \end{document} Why aren'...
2
votes
1answer
38 views

How to left-align exercise questions (exercise package)

Given the following document: \documentclass{article} \usepackage{exercise} \begin{document} \begin{Exercise} \end{Exercise} \end{document} How can I make the output ("Exercise 1") left-aligned? I'...
0
votes
1answer
103 views

Dot-aligned table column with defined width

I am trying to specify a custom column command, taking a width parameter and aligning the column by the decimal point of the content. I am using the tabularx package to use columns with a pre-...
1
vote
1answer
54 views

Underfull \hbox warning about alignement in a csvsimple table

The following csvsimple table keeps returning warnings of the type: Underfull \hbox (badness 10000) in paragraph at lines: \csvreader[no head, longtable=|p{\dimexpr 0.2\linewidth-2\tabcolsep}|p{\...
7
votes
1answer
240 views

Why don't these functions align perfectly with uniform spacing?

Thanks for the help. I don't see why the functions aren't aligning perfectly with uniform spacing. \documentclass[11pt]{article} \begin{document} \DeclareMathOperator{\csch}{csch} \...
2
votes
1answer
68 views

How to attach a table to another table horizontally?

How to attach a table to another table horizontally? \begin{tabular}{|c|c|c|} \hline some thing & some thing & some thing \\ \hline some thing & some thing & some thing \\ \hline ...
3
votes
2answers
60 views

Encode into an `enumerate` environment (Version 2)

From the following code, a selection from a multiple-choice test is rendered. The four problems should be enumerated as 1.), 9.), 16.), and 25.). How do I do that with an enumerate environment? I ...
0
votes
0answers
12 views

How to draw a horizontal separation line with thick center and thin sides? [duplicate]

I want to create a horizontal line to separate context and references, as always seen in papers like this I have tried \hrule abc\begin{center} \hspace{0.25\textwidth}\hrule width 0.5\textwidth \...
2
votes
2answers
27 views

text in align-environment

Is there a way to coordinate the space here? \documentclass[a4paper, 12pt, oneside, titlepage]{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{colortbl} \begin{document} \begin{...
5
votes
1answer
114 views

Left-justified text with wrapping math

I would like left-justified text with embedded math which wraps in a manner similar to the behaviour with fully justified text. It seems LaTeX will wrap math at "sensible" points (e.g. between certain ...
3
votes
1answer
52 views

how to center Tikzpicture?

I am making a presentation, using a template I found online. The problem is that my tikzpictures are not getting in the center. I have tried \centering, \begin{center}. But that does not solve the ...
2
votes
1answer
39 views

\raggedright in glosses and switching back to normal alignment

I have to typeset long examples. Sometimes they span several lines. I would like to have them \raggedrightbut this should not affect the translation. The code for the glossed example taken from ...
1
vote
0answers
36 views

Moving title to the left without aligning to the left [closed]

I'm trying to produce a title page with a title made with \maketitle and a picture (logo) to the right of the title. I already managed to have the image to the right using tikzpagenodes, but I didn'...
3
votes
1answer
70 views

Justify text when using a tabular environment

I'm using \documentclass[10pt,twocolumn]{article} \usepackage{hhline} \usepackage[left=1cm,right=1cm,top=1cm,bottom=2cm]{geometry} \addtolength{\columnsep}{0.4cm} \addtolength{\textwidth}{\...
1
vote
1answer
36 views

How to align column of mixed fractions (after whole number) in tabular?

I have a table that has a column with mixed fractions (that is, whole number plus fraction part) as entries which I need to reproduce in latex. The problem is that the fraction part of the mixed ...
3
votes
2answers
45 views

Display hexcode in table

I want to display some hexcode aligned in a table. This is what I got: \begin{table}[h] \caption{Dirty table} \centering \begin{tabular}{p{6cm}|p{6cm}} \textcolor{red}{0000 0000 0001 0000 0000 0000 ...
1
vote
1answer
43 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
0answers
31 views

How to change alignment of text inside a block?

I am drawing a block diagram in LaTex. In some of the blocks, I need to align text along vertical direction. How can I do that? \begin{figure*}[!t] \setlength{\unitlength}{0.13in} \centering \begin{...