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

1
vote
1answer
31 views

Centering a column in align or alignat with desired spacing

Initially, I had the code \begin{align*} |a_d|_p & = 1 \\ |a_i|_p & \leq 1 \end{align*} which produced the result below: This is undesirable because the vertical bars | on the left ...
3
votes
4answers
110 views

How to align the the numbers horizontally?

Here are my example and the output. \begin{center} \begin{tabular}{lp{.8\linewidth}} Group ID: & $1 \quad 2 \quad 3 \quad 4 \quad 5 \quad 6 \quad 7 \quad 8 \quad 9 \quad 10 \quad 11 \quad 12 ...
2
votes
1answer
26 views

Centering two line caption in memoir

I'm struggling to center my two line captions. I'm using memoir and I want the second line to be the reference to where I got the figure from. I'm using the following code for the figure: ...
5
votes
4answers
127 views

How can I align the < signs in my array (piecewise function) in TeX?

I don't know how to use align with an array, any suggestions? I'd like the first < sign in each line to match up while retaining the alignment that I currently have. Here is my code: \be ...
1
vote
1answer
17 views

Trouble aligning table on landscape page

I am trying to print a large amount of data onto pdf files using LaTeX. I have tabulated this data (a selection of which is in my example below). In order to fit all these data onto the page I have to ...
3
votes
1answer
40 views

Horizontal alignment - two tabulars in minipages

I originally had a list in itemize that I wanted on the left and a "legend" created by tabular I wanted on the bottom right of a slide in a presentation. Then, I learned that wraptable doesn't work ...
2
votes
2answers
22 views

How to align column names in the second row?

Here are my example and the code. \begin{table}[H] \begin{tabular}{lrrrr} \toprule \multirow{2}[3]{*}{Method} & \multicolumn{2}{c}{group} & \multicolumn{2}{c}{variable} \\ ...
1
vote
2answers
29 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
3
votes
2answers
28 views

Item list inside multicolumns not correctly centered

I have a table with item list inside multicolumns which are not behaving as expected (vertically and horizontally centered): \newcolumntype{C}{>{\centering\arraybackslash} m{2.3cm}} \begin{table} ...
3
votes
1answer
102 views

Text and picture top-aligned, where text is left-aligned and picture is right aligned

Using the answers from this sight, I tried to accomplish top-aligned text and image where text would have to start from the left side of the page, and picture would be at the right side. However, ...
3
votes
1answer
87 views

Hyphenation/text wrapping in \parbox

I have a \parbox with some text. The text should be wrapped as normal, but it doesn't seam to work, while the words wrap in normal text: \documentclass[a4paper,parskip]{scrartcl} ...
1
vote
2answers
63 views

Balanced Text Wrapping in \parbox

Is there a possibility to balance the lines if a text has to be wrapped in a \parbox? \documentclass[a4paper]{scrartcl} \usepackage{polyglossia} \setmainlanguage{english} \begin{document} ...
0
votes
1answer
24 views

! Missing number, treated as zero. \let \centering

\section{Azimuthal Angle} \begin{figure} \centering \begin{subfigure}[b][0.3\textwidth] \centering \includegraphics[width=\textwidth]{D:/Project/Documentation/Images/muon_phi} \caption{The azimuthal ...
0
votes
0answers
34 views

How to fix the space between “Figure” and “5” in “Figure 5:” in figure caption?

I use this solution to get captions for my figures at the side, which works really fine. But sometimes, if the word behind "Figure xyz:" is too long for the line, I get something like this: How can ...
2
votes
2answers
41 views

Center in a table if the result has at maximum two lines, otherwise try harder to squeze it on two lines (and then maybe center)

This has the second cell span over three lines: \documentclass[12pt,landscape,a4paper]{article} \usepackage{microtype} \usepackage{multirow} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
3
votes
1answer
21 views

Alignment of minted line numbers

I'm using the minted package for code highlighting. The below is just a minimal example. What I find annoying about this package is that line numbers appear in the margin. This causes several ...
8
votes
3answers
20k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
5
votes
2answers
166 views

Center navigation circle bars in beamer

I am using navigation bars in the top of a beamer slide. The problem is that the circles are not centered. How can I center them with respect to the section title? My code is ...
13
votes
2answers
16k views

text justify in beamer

I like to justify the texts inside the block using beamer. I cant do that in presentation. Can any one please help me?
2
votes
1answer
57 views

Centering a figure with caption (\centering not working)

I am having problems with centering my picture in a LaTeX document. I want to center the following picture: \documentclass[10pt]{article} \usepackage{pgf,tikz,geometry} \geometry{a4paper} ...
13
votes
2answers
15k views

Table rowspan and colspan

I need to create similar table using LaTeX: I have tried to use \tabular and \multicolumn, but every time I get something wrong. I want: Fixed width columns and fixed height rows; Centered cells ...
2
votes
1answer
34 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
2
votes
2answers
19 views

Putting a letter between minipages

I'm using: \begin{minipage}[t]{0.4\columnwidth} \begin{eqnarray*} x&=&{{x}_{0}} \\ y&=&{{y}_{0}}+t\\ z&=&{{z}_{0}}+{{x}_{0}}t \end{eqnarray*} \end{minipage} ...
3
votes
2answers
44 views

item tabulator same line

I want to put the item in the same line as the tab. Please have a look on my screenshot, how i actually want it to have. \item Bewertung: \begin{tabular}{l l c } & TestTest: & Test \\ ...
1
vote
1answer
24 views

Centering numprint-formatted table columns

Consider the code \documentclass{standalone} \usepackage{array, numprint} \npstyleenglish \begin{document} \begin{tabular}{n{3}{0} n{3}{0} >{{\npunit{\%}}}n{2}{1}} {{\# successful}} & {{\# ...
1
vote
1answer
52 views

How to center the numbers?

\begin{table}[h] \resizebox{\columnwidth}{!}{ \begin{tabular}{lcccccccc} & $U^{MMM}$ & $U^{MMB}$ & $U^{MBM}$ & $U^{MBB}$ & $U^{BBB}$ & $U^{BBM}$ & $U^{BMB}$ & ...
0
votes
0answers
20 views

How to outline theorem properly

First of all, sorry about the layout of this question, I don't know how to render a LaTeX line on this site. As for my question, I have defined various new commands, like \property, \axiom and ...
2
votes
1answer
62 views

Centering in a table

\documentclass{article} \begin{document} \begin{center} \begin{tabular}{ | p{5cm} | p{5cm} | p{7cm} |}\hline \centering{A} & \centering{B} & \centering{C} \\ \hline ...
0
votes
1answer
35 views

How to aligned text in graffito to the left?

I'm using graffito for sidenotes in my thesis, is there a way to align all text to the left? (currently a comment on the left side of the page is aligned to the right for some reason...) Graffito is ...
0
votes
0answers
23 views

Latest MiKTeX update breaks XeLaTeX + fleqn [duplicate]

I updated the MiKTeX on my system two days ago. After that, compiling my codes using XeLaTeX gives the following error: ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fleqn.clo" File: fleqn.clo ...
0
votes
1answer
29 views

Flushright, Allignment

I want to align text as in the picture above. Starting from supervisor till Patiala. I used flushright but it aligned the text from the right hand side as in the picture below. How can I correct ...
2
votes
4answers
113 views

How to center horizontally tikzpicture in beamer frame using a specific node?

The following MWE centers my tikzpicture into the frame: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \setbeamertemplate{frametitle}[default][center] \begin{document} ...
1
vote
1answer
20 views

Two column document, 2X1 figure placement

I need to place 3 figures in a two-column document, wherein the 3rd figure at the bottom needs to be centred! How can I do this? I want something like this: To do the same for 4 figures I have ...
5
votes
4answers
188 views

How can I move labels to above text in enumerate?

I am using enumerate together with the enumitem package. I have set up my code as per the MWE below. This puts the label and number to the left of the text. I am wondering it there a way to adapt this ...
2
votes
1answer
29 views

How to NOT report overfull hboxes from a personal command?

I create a command to display some symbol in the right margins in a twoside document. The point is that they always bring an overfull hbox warning in my logs whereas it obfuscates the real overfull ...
1
vote
1answer
22 views

Glossary like Two column supertabular problem

First thing first, my code, \documentclass[11pt,a4paper]{article} \usepackage{supertabular} \usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.2in, bottom=0.15in, ...
4
votes
3answers
126 views

Multiple alignment in math mode - a math equivalent to `\multicolumn`?

I have some quite long lines of maths I have to put into a two-colum document format, so the maths often needs to be split between multiple lines. In the example below, I'd like to align the open ...
15
votes
7answers
1k views

Aligning polynomial terms

In LaTeX align, I'm struggling to align polynomial terms and assume there's an easy way to do it. But I cannot find the simple/elegant solution. What I would like is something like this: x1 + x2 ...
5
votes
2answers
141 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...
2
votes
2answers
65 views

Title page rendering incorrectly

I'm using a standard template for my title page of my document as found at the latex wikibook However, for some reason, the minipage on the right, with my supervisor's information, renders about one ...
1
vote
1answer
38 views

Having problem in alignment in the resume document class

I am using the document class "res" for making my CV and I have some problems in aligning the sections. Like in the below image, the Address Lines are not aligned with the Test in the Research ...
1
vote
2answers
73 views

Formatting data dictionaries in LaTeX

I would like to write out some data dictionaries for a program design document in LaTeX, and I am looking for an efficient way to do this. I want to write snippets that look like: Name = ...
2
votes
2answers
49 views

Horizontally and vertically center a figure and scale to fill the whole page in landspape orientation

I want to have an image that fills a landscape page. I have tried: \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{pdflscape} %Gives us landscape pages with ...
2
votes
5answers
113 views

Centering not working?

I have a wide table that I wish to center, caption and label. \documentclass{amsart} \usepackage{graphicx,amsmath,gensymb} \usepackage[nobysame,lite,short-months]{amsrefs} \begin{document} ...
3
votes
2answers
72 views

How to center a label inside a closed path in Asymptote?

I am new to Asymptote and I need a little help. I would like to place a label exactly in the center of a closed path, for example in a triangle: unitsize(1cm); size(4cm); draw((0, 0) -- (0, 3) -- (3, ...
2
votes
1answer
5k views

How to insert copyright line on Title Page? [duplicate]

I am new to LaTeX. would like to insert the copyright on the title page of my ebook. This is what I want it to look like (centered in the middle of the page): Title, Author, Copyright (copyright ...
4
votes
1answer
66 views

Using custom-aligned subarray in LyX

I need to write a vertically stacked subscript in a notation meant to say "evaluate expression at k=..., and k'=...". In the end it should look like / SOME \ | BIG | \ ...
9
votes
1answer
1k views

List of abbreviation

I want to display a list of abbreviation in two columns and list each abbreviation preceded by the corresponding letter. for example : A AAR .... AG .... i use the package nomencl : below the ...
0
votes
1answer
28 views

Align first letters of chapter titles in Table of Contents

I am trying to create table of contents for starred version of chapter. My goal is to align all first letters of the titles to the same position. I was able to achieve that separately for single digit ...
2
votes
1answer
17 views

Shrink equations in align to fit page width

I read several similar questions, but none was on align environment. Here is my example. \documentclass{article} \usepackage{amsfonts} \usepackage{amsmath} \begin{document} \noindent where $B(a, ...