{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
2answers
34 views

how to force alignment of text with itemize

I have two similar looking sentences and I would like to "push" certain pieces of text to the same x coordinate. \documentclass[12pt]{article} \usepackage{amsmath, amsfonts} \begin{document} ...
2
votes
2answers
49 views

insert a scaled picture on the right side of the page on an existing picture in latex

I am new user of latex. Can I insert a scaled image on the right side of the page?While, I have already full size image on the same page. There is no text on this page. Thanks in advance. ...
3
votes
3answers
179 views

How can I only make table headers center and bold?

I would like to center and bold the table header. Here are codes. \begin{center} \begin{table} \caption{table decription} \label{t_sim} \begin{tabular}{|l|l|} \hline Key & Value \\ \hline $x$ ...
0
votes
0answers
35 views

Centering left justified

I would like to combine left justification and centering for a figure with multiple panels created using sidesubfloat. I.e. the entire block should be centered on the page, but with the left side of ...
2
votes
2answers
136 views

Displaying formula with a star

I want to display a centered formula to which can be referred as (*). Now, I have the following: But I want the formula to be more centered and the star to be right aligned. The code is now: $$ ...
4
votes
4answers
72 views

Spreading letters evenly across a line from margin to margin

I wish to achieve something that can be easily accomplished by simply pressing this button in Microsoft Word: So that I could make something like this: What I've seen so far on this forum either ...
1
vote
1answer
20 views

Unexpected center alignment of the text after the remark block

I am working on a draft within an ieeetran template. There are a couple of definitions and remarks within the text, have which been embedded, deservedly. But the odd thing is that, as I try to ...
6
votes
2answers
862 views

scale column width with image width

I'm writing a presentation using the beamer class where multiple slides consist of an image on the very right and centered text on the left. So far I do this using the columns environment: ...
1
vote
1answer
64 views

How to make flushleft work on multicolumn title?

In the below code, "Title3Title3 Title3Title3 Title3Title3" is misaligned with the other titles because flushleft does not seem to work with multicolumn titles. How do I left-justify all of these text ...
1
vote
1answer
41 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
129 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
35 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
131 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
20 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
45 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
24 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
36 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
31 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
112 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
104 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
64 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
27 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
41 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
22 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
176 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
61 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
16k 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
35 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
20 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
47 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
29 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
53 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
64 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
36 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
159 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
30 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
190 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
32 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
137 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
145 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
70 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
47 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 ...