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

Centering of figures doesn't work with SCfigure (Using TeXshop for Mac)

I have a problem using SCfigure. I want to have my caption in the margins on the right side but the figure itself should be centered. But \centering doesn't work. Does anyone know how to fix this? ...
2
votes
3answers
71 views

Problem with \quote and \raggedright in ModernCV

Having an issue with the \quote part of ModernCV. \quote{\raggedright \lipsum[2]} Whilst the above produces exactly what I'm after, any effort to replace \lipsum[2] with other text results in ...
1
vote
1answer
32 views

Centering equation while placing the “for” section to the utmost right

I would like to know how I can center the equation, but place the "for i=1,...,p" to the utmost right. \begin{align} \label{meth:regular:lin:phoneydata} ...
1
vote
0answers
18 views

Change horizontal alignment of equation tags [duplicate]

By default, equation numbering seems to left align. However, I would like instead to indent the equation number just slightly. The motivation for this is to align the equation number with the body ...
2
votes
1answer
61 views

Table in double column paper format

I am writing a research paper in double column format but the table is not fitting in the format . It looks like this My table is not displayed properly. This is my code. \begin{table}[!h] ...
3
votes
2answers
100 views

Alignment of enumerate (numbered by subsection) and the existing text

I have a document full of lists which I need to refer to later in the document. Therefore I number my lists (enumerate) by subsections. I have chosen to specify this globally by this line in the ...
4
votes
2answers
111 views

Horizontal shift in tabular environment

My question is the most efficient way to do in tabular environment the last row of the table in the image below. Numbers are shifted horizontally by an half column. thankyou!
5
votes
5answers
506 views

How to format the case equation to look nicer?

I want to typeset the equation in my beamer frame: This is my solution and of course, it doesn't look well. And my code is : \[ \parbox[c][2cm]{2cm}{Attainable \\ GFlops/sec} = ...
1
vote
2answers
62 views

Properly align two very long lines in multlined

How do I get rid of the indentation of the second line? I would like the two lines to be aligned to each other. I had thought that both having maximum width, the first being left-aligned, the second ...
3
votes
1answer
57 views

hline not filling up in tabularx

I created a table with the following code: \begin{tabularx}{14cm}{|X|X|X|X|} \hline \multicolumn{4}{|c|}{\textbf{\cellcolor{gray!20}contentcontent}} \\ \hline ...
2
votes
1answer
53 views

Labeling an equation without making it center aligned [closed]

I know that we can use the \tag{label} command to label an equation. However using this makes an equation center aligned. How do I keep the equation left aligned and still have a tag for the equation? ...
2
votes
2answers
102 views

Justify and center text

I would like to justify and center text in the following manner: Notice how each line is exactly the same length. How is this done? I am using a documentclass article and no packages.
5
votes
5answers
234 views

Align a word to a point past the right margin

I made a simple title command: \documentclass{article} \RequirePackage{graphics} \newcommand{\modtitle}[2]{% \vspace*{-5\baselineskip}\noindent\hspace*{-.75in}% ...
5
votes
1answer
57 views

KOMA-script titlepage misaligned author

I'd like to set the titlepage of a koma-script scrbook left-aligned, i.e. \raggedright. I do this using \addtokomafont as follows: \documentclass[]{scrbook} \addtokomafont{title}{\raggedright} ...
4
votes
1answer
106 views

Vertically align two separate TikZ figures below each other using the subfig package

The following minimal working example does not vertically align two rectangles drawn by TikZ. The result can be found here. Somehow the second rectangle seems bolded, but that is not the case when I ...
0
votes
0answers
46 views

Sidecaption layout question using sidelegend memoir

Linked to this previous post, i make some tests to have more elegant sidecaption using memoir class. I try to reproduce this layout, with two type of caption style : a normal centered caption with ...
1
vote
1answer
96 views

Beamer query, center justify \frametitle

In beamer, to center justify the frame-title, one uses this: \setbeamertemplate{frametitle}[default][center] This is what I have as default: ...
2
votes
1answer
38 views

Tabular gets aligned to the right for no obvious reason

I have a tabular which gets aligned to the right while I use \centering. I'm using the article class with only the packages babel and array. The code I have: \documentclass[paper=a4]{article} % A4 ...
3
votes
2answers
45 views

Center and box itemize list with formulas

I'm trying to center and box the formulas under the subsection Properties of Definite Integrals; however, the box is not wrapping to just the formulas it's extending to the right a bit and I can't get ...
0
votes
0answers
20 views

Not able to center media when using \includemedia in figure environment

I am new here but this seems to be a good way to get help. I am including an animation in a pdf file using media9. To put a caption like any other figure I am using the figure environment. The code ...
1
vote
1answer
81 views

Alignment of CV Reference in ModernCV

I'm using the latex template for CV from here CV Template. For reference, I added these lines \newcommand{\cvdoublecolumn}[2]{% \cvline{}{% ...
4
votes
3answers
89 views

Horizontal placement of a framebox

I would like to horizontally offset a framed paragraph of text so that the sides of the frame coincide precisely with left and right margins of 2em on a page with a text-width of 6.5 inches. ...
2
votes
1answer
62 views

Problems with centering a border matrix

I have the following code: \begin{figure}[h!] \centering \bordermatrix{~& \ket{\Phi_{0}} & \ket{S} & \ket{D} & \ket{T} & \ket{Q} & \dots \cr \bra{\Phi_{0}} & E_{0} & ...
4
votes
3answers
169 views

Put centered text in bottom of image using overpic?

I have a graph for which I want a centered x-label at the bottom. The idea is to use overpic and then insert som text at the bottom using \put(50,1){some x-label}. The problem is that \put places the ...
5
votes
2answers
153 views

Chapter and Section format

I want my chapter titles to look as they would with the code below. \documentclass[12pt]{book} \pagestyle{plain} \usepackage{amssymb,latexsym} \usepackage{amsmath} \usepackage{amsthm} ...
4
votes
1answer
55 views

fp alignment in tables

Can anyone explain why the output from these two entries is different? Does anyone know how to make the second one match the first? \documentclass{article} \include{fp} \newcommand\entryOne[1]{ ...
3
votes
2answers
36 views

minipage caption overrides

I am using two mini pages side by side. The caption of both the figures are too long, that the caption of both the figures merges each other. I would like them to be separated by some space. *edited ...
2
votes
0answers
45 views

Centering bibliography title in biblatex - tried every suggestion on Google

I know this question has answers on this site already, but none of them worked! I am using biblatex with the historian style for my history day paper. My teacher requires the bibliography heading be ...
3
votes
3answers
130 views

Labels in the left margin

I would like to produce a text with labels in the left margin, like a reference list. Labels may have different lengths. One way to do this is to define a negative \parindent, as follows: ...
5
votes
4answers
134 views

Problem with horizontal alignment in align environment

My MWE, \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{empheq} \begin{document} \begin{align} \left(\frac{4}{2 \cdot 2 ...
6
votes
1answer
122 views

Fully Customized Table in Latex

Is it possible to have a customized table in LaTeX that has the following features? Be able to define Width and/or Height for specific row/column Be able to highlight/color a specific row or column ...
2
votes
1answer
57 views

Can tex4ht support square justified text with different line spacings?

Can tex4ht support square justified text and can I specify different line spacings (1, 1.15, 1.5, 2 etc.)? Sloppypar allows me to square justify my paragraphs in a pdf but the html file in a web ...
3
votes
1answer
43 views

Center 3 text elements on one line in latex

I am new to LaTeX and trying to write my first resume. I want to list my contact info and right now I am doing this by using \hfill. The problem is that \hfill equalizes the spacing but I want the ...
3
votes
1answer
68 views

Automatic right justify in table - multiple choice question

My code part \newcommand{\iib}[5]{ \begin{center} \begin{tabu} to 0.42\textwidth {@{}|X[l]@{}|X[l]|} \textbf{A)} #1 & \textbf{B)} #2\\ \textbf{C)} #3 & \textbf{D)} #4\\ ...
1
vote
1answer
48 views

Polyglossia's nohyphenation breaks justified alignment in endnotes

I am using XeLaTeX to typeset a multilingual book with the help of polyglossia. I have footnotes as well as endnotes in multiple languages, and I need to turn-off hyphenation for the entire book. I ...
2
votes
1answer
39 views

Left aligned labels in descripton

I have a description in a latex beamer file. Inside it, I use description with custom labels. My Problem is, that one point (the penultimate) is longer than the others. The labels are right aligned. ...
2
votes
0answers
61 views

Multiple Table Horizontal Alignment

I am trying to put up multiple tables together. (Scroll down for MWE). I can not figure out why the last table is misaligned. I tried the solution here but it did not work for me as I am not using the ...
2
votes
2answers
131 views

Is it possible to align a caption to a centered float?

So if I use a caption in following example: \documentclass{article} \begin{document} \begin{table} \caption{test} \centering \begin{tabular}{ll} \hline Name: & Baggins \\ First Name: & ...
2
votes
1answer
45 views

aligning plots in pgf plots and a couple other associated questions

I am fumbling my way through pgfplots. I have 3 plots on a page. I have a few issues: The bars in the plots are floating above the axes to various degrees. How do I anchor the bars down to the axis? ...
7
votes
1answer
87 views

Switching from equation to align changes horizontal width

I am puzzled by why changing from an equation environment to an align environment should change the horizontal width of my equation. Below I provide an example. Sorry, it is not a minimal working ...
3
votes
1answer
38 views

Center a table's caption using apa6 with man mode

There are several questions that are related, yet not quite the answer to this question: Centering tables in document class apa6 How do force center-alignment in a caption in a figure? The ...
4
votes
2answers
88 views

Proper left alignment in math environment

I've seen this http://stackoverflow.com/questions/2632628/left-align-block-of-equations answer as well as a handful of others, but none of them gives a satisfactory solution. The problem Two ...
2
votes
1answer
29 views

Using a custom enumeration is aligned differently than a default enumerate environment

\documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate} \item First Item \item Second Item \end{enumerate} \begin{enumerate}[a.] \item First Item \item Second Item ...
8
votes
3answers
368 views

Typesetting a long exact sequence

I am trying to typeset the Mayer-Vietoris sequence (concisely - without the map names above the arrows). Currently I am simply using the AMS align environment with a bunch of \rightarrow, \cdots and a ...
0
votes
1answer
60 views

Aligning Species of a Reaction Horizontally

how do you align the following horizontally: \begin{center} \schemestart \chembelow[3ex]{\chemfig{*6(=-=-(-[,.65]OH)=-)}} \chemsign{+} \chembelow[8ex]{\chemfig{CH_2O}}{Formaldehyde} \arrow{->} ...
4
votes
1answer
67 views

LaTeX elsarticle \cline for array mode

I am making a matrix like this one: \documentclass[preprint,11pt,3p]{elsarticle} \usepackage{amsmath,epsfig,amsfonts,amssymb,subfig} \usepackage{amsfonts,mathdots} \usepackage[ngerman]{babel} ...
2
votes
1answer
87 views

How to scale algorithm to fit in one frame and centered in the frame at same time?

Originally, the algorithm is too long to fit in the frame. If I use the \scalebox{0.8}{}, it can fit in the frame but doesn't look like to be centered in the frame. Here is the code and output. First ...
1
vote
1answer
60 views

How to align the image and algorithm in the frame?

The following is the code and its output. The output doesn't look well. If they are both aligned horizontally by their left and then centered in the frame, it will looks better. But how? (The image is ...
2
votes
1answer
44 views

Changing specific 'properties' of a longtable

I want to set some general properties for my longtable so that their top row is always dark grey and so that they're always horizontally-centred on my pages. I've found some documentation on ...
1
vote
1answer
73 views

right-alignment with enumitem

I have the following list with the enumitem package, \begin{flushright} \begin{description}[font=\color{black},before=\color{blue},nosep] \item[Item:] some text some text some text \item[Another ...