{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
33 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 ...
5
votes
4answers
128 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 ...
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: ...
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} \\ ...
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} ...
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 ...
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 ...
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} ...
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 ...
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} ...
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}} & {{\# ...
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 ...
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
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 ...
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
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 ...
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 ...
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 ...
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} ...
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 ...
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 ...
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, ...
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
50 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, ...
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, ...
1
vote
1answer
35 views

indentation within the text

While preparing a report, I want to write the text (below the equations) similar to attached figure. I tried using \begin{align},\, commands (even after knowing that the align command is using for ...
0
votes
1answer
16 views

Table columns out of sync in tabularx

I asked a very similar question yesterday that I thought I would be able to abstract into this problem but I can't. Here's an image of the table : Here's the code : \documentclass{article} ...
3
votes
2answers
32 views

Table cells are out of line / sync with each other, itemize

I'm trying to have a tabular section that has bullet points next to it. There might be a better way to go about this, but currently it seems as though the cells are out of sync (though this might be ...
15
votes
2answers
301 views

typographically is ragged-right better than fully-justified text?

It seems that some people naturally prefer ragged right documents and some, like me, prefer fully-justified text blocks (using microtype for even better results). I understand that part of the issue ...
0
votes
0answers
37 views

Itemize Not ending at New Line beginning

I am using itemize to list few bullet points. When it ends my new line begins from the same left side margin as the itemize items. I have to get the Solutions line begin from the orginal left ...
0
votes
3answers
39 views

overfull and under-full errors. Not able to correct them, please help out [duplicate]

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} Similarly, the state-space averaging is used to described the ...
7
votes
4answers
151 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
0
votes
1answer
21 views

If a matrix equation is too long, how do I put a portion of it aligned in another line without changing the label of the equaion

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} The load current is assumed continuous because of an ...
3
votes
1answer
77 views

Having Overfull and underfull box warnings. Please help out as there are many matrices and equations

\documentclass[11pt]{article} \begin{document} The above equations on application of Laplace Transform become: $$sL_1\hat{i}_{L1}(s) = D\cdot \hat{v}_{C1}(s) + D\cdot \hat{v}_{C2}(s) - D\prime ...
0
votes
1answer
33 views

Centering only a part of a presentation

I have the following code \begin{itemize} \item Optimal Effort:\\ $DPV{\Pi}_1(e)=-\psi(e)+(I+pe)\delta \longrightarrow \overline{e}=p\delta$ \\[0.2cm] \item Participation ...
4
votes
1answer
61 views

Can I get the effect of \halign to \hsize using a LaTeX tabular environment?

I'd like to get the effect of doing \halign to \hsize ... while retaining all the convenience of LaTeX's tabular environment. The particular problem I am trying to solve is to use \tabskip to set a ...
2
votes
2answers
63 views

Different column widths under a multicolumn prevent appropriate centering

How can I center the two columns inside the multicolumn? MWE \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{input-ignore={,}, ...