{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
0answers
36 views

How to justify escaped proportional text inside monospaced/fixed listing?

I have a fixed column listing on which I have escapped to LaTeX to write a proportional bit of text. The following pic illustrates what I have: On the green box, the proportional text have ...
3
votes
0answers
64 views

Centering list issue with Enumerate+Hyperref+Varwidth

I want to center an enumerated list so i've tried to use the answer of this question given by the Great David Carlisle. But using hyperref, varwidth and enumerate (in any order in the preamble) cause ...
3
votes
0answers
58 views

Need linebreak when \fbox exceeds the text area

Need to align a "fbox", when exceeds the text area. MWE: \documentclass{article} \begin{document} Blah \fbox{Text within box in horizontal line} Blah ... Blah \fbox{Text within box in horizontal ...
3
votes
0answers
504 views

Evenly split the columns of a multirow table in lyx

I would like to have a table like this: % Preview source code %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. ...
2
votes
0answers
45 views

Justify main caption in figure

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by ...
2
votes
0answers
51 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 ...
2
votes
0answers
32 views

Text and Figure side by side inside a minipage?

I have a two column CV. I made the columns using minipage. In the second minipage (second column), I want my picture and some info in two columns. How do I do this? This is the relevant section of ...
2
votes
0answers
48 views

Is there any difference in the default text alignment between document classes book, report, article, and so on?

I've come to the question if there are differences in the text alignments regarding the document classes. I'm trying to justify a text in my whole document (report). Reading question I came to the ...
2
votes
0answers
80 views

How to place two plots inside a node?

I'm eager to have two plots (of the algebraic functions) placed horizontally inside a node. I'd like them to be signed, so something like caption (below the plot) is needed. One of them — "the good ...
2
votes
0answers
119 views

Figure centered (horizontally and vertically) + subsection on same page

I want to center my figure (horizontally and vertically). I have a subesction that I want to keep on the same page (at the top), but it is "pushed" on the next page. I am using the following code: ...
2
votes
0answers
91 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
0answers
243 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
2
votes
0answers
180 views

Centering title in bibliography with abntex2cite

i need some help. I'd like to change the title of my bibliography (Referências Bibliográficas), align left to centering, i'm using package abntex2cite to make my citations. My document class is a ...
2
votes
0answers
157 views

Unwanted graphic offset

I'm getting a small difference in horizontal alignment when using the two ways of placing an image as shown in my code below. I know it doesn't look like there's much point in what I've done, but this ...
1
vote
0answers
14 views

Caption alignment of grid subfigures

I have 5 images and I would like to display them in 2 rows (3x2). This is what I've done so far, \begin{figure}[h] \begin{tabular}{ccc} \subfloat[caption]{\includegraphics[width = ...
1
vote
0answers
21 views

Subfigures aligned like table

There are several posts about using par, minipage, hfill and other approaches to align subfigures like tables. Is there any package that optimizes the space (as if the main figure is a table and you ...
1
vote
0answers
32 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
1
vote
0answers
38 views

Shift all floats on page horizontally

I would like to modify the way standard floats, like figure or table, appear on page by shifting them horizontally relative to the paragraph text, see the image below. To this end I have tried to ...
1
vote
0answers
21 views

How can I align the section title to the left and change equation label?

I want to align the section title to the left, however, LaTeX keeps it at the center. Also, I would like to label the equation as (Eq. 1), but LaTeX calls it (0.1). This is the piece of code that ...
1
vote
0answers
45 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} ...
1
vote
0answers
36 views

Horizontal alignment of footnote numbers with hang-option of footmisc

I would like to have a horizontal space between the footnote numbers and the text of the footnote. For this I am using the following code: \documentclass{article} \usepackage[english]{babel} ...
1
vote
0answers
66 views

PGFPlots generates extra margin with restricted x axis and two y coordinates in standalone class

I noticed that there are cases where pgfplots package makes undesirable (to me at least) margins. The conditions I've found is as follows: use standalone class use y coordinate on the right side ...
1
vote
0answers
61 views

How set margins to print when pdf files are inserted?

I am using book style to prepare a meterial(which has to be printed and binded) which contains so many pdf files.. To include the pdf files I am using \includepdf options by using the package ...
1
vote
0answers
52 views

Flush items to the right in enumerate, itemize, etc

is there some way to make the items in enumerate, itemize, and similar environments right aligned instead of left aligned. I'm thinking sort of like what the equation environment does automatically ...
1
vote
0answers
51 views

Left alignment of equation arrays - [fleq] doesn't work!

please could someone tell me how to get my eqnarrays to align left? I have copied the top of my document, then I put \begin{eqnarray*} \end{eqnarray*} and everything goes straight to the right of ...
1
vote
0answers
43 views

Put footnotes in a column

i have a two columns text in an a4 article. In one column i want to have the text and in the other (left) column i want to have the footnotes for that text. Is there a way to do it? thanks
1
vote
0answers
66 views

Centering a tikzpicture in beamer

I am using beamer and including many tikzpictures. If my picture is not too large, it is centered, but if it is a bit too large, then it does not work anymore. The following frame \begin{frame} ...
1
vote
0answers
33 views

How can I center my whole document while using the Memoir class?

The Memoir class by default does the left/right page difference in centering. How can I use the memoir class while making the whole thing centered? All I've found was this thread Vertically center ...
1
vote
0answers
53 views

How to make the fully justified code at line-breaks?

I have a problem for using algorithm2e package. I am writing a algorithm just like \begin{algorithm} \caption{RM-MEDA} \label{alg1} Initial a population $Pop(0)$ and compute the $F$ ...
1
vote
0answers
65 views

hfill in math mode redux

This is a followup to an old thread hfill in math mode I'm starting a new one because it's hard to write all this in a comment. In the original thread, @egreg proposed the following commands ...
1
vote
0answers
41 views

Centering code listings in tabular

I'm inserting code listings using mint into a tabular, but the text and listings in corresponding columns aren't centered. How do I center them? Here's my table code: \begin{center} ...
1
vote
0answers
33 views

How might I align the result of the sum of the following figure as represented in the second figure?

(2)-figure is represented as follows; \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{array} \usepackage{booktabs} \begin{document} using the detached coefficients, we ...
1
vote
0answers
49 views

hat over dot are not fitted exactly over the variable?

Hi this my minimal code \documentclass[times]{asjcauth} \usepackage{moreverb} \usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref} ...
1
vote
0answers
66 views

Horizontal alignment problems in table

This is a follow-up question to "Alignment issues in a table". Consider the following code: \documentclass[ a4paper, 12pt, landscape, danish ]{article} \usepackage[utf8]{inputenc} ...
1
vote
0answers
81 views

Align by decimal point using long-table

I am have numbers with stars and want to align them by decimal. How is this possible within the longtable environment? \documentclass[12pt]{report} \usepackage{longtable} \begin{document} ...
1
vote
0answers
139 views

Insert negative of \widthof into \hspace without defining a newlength

Following MWE does not work: \documentclass{article} \usepackage{calc} \newlength{\charwidth} \setlength{\charwidth}{\widthof{$-$}} \begin{document} \centering $\infty$ \centering ...
1
vote
0answers
169 views

different text alignment on even/odd pages (like raggedouter but for text)

For a poetry book I would like to typeset all text on even pages \raggedleft and all text on odd pages \raggedright, including headings. Poems can span across multiple pages, so the change of text ...
1
vote
0answers
64 views

Caption settings before and after loading caption package

Why do captions look so different after the mere loading of the caption package? What are the default settings for a caption BEFORE loading the caption package? I would prefer to be able to load most ...
1
vote
0answers
42 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 ...
1
vote
0answers
83 views

Align decimal point & proportional font

I have found a couple of solutions how to align row of numbers in table environments for example here and here. From a philosophical point of view can I use these solutions with proportional fonts ? ...
1
vote
0answers
68 views

How to align item labels according to the longest one automatically?

Time for revenge! I've been fighting with this problem of aligning items according to the longest label automatically for some time now (see first two examples below). The left side of the longest ...
1
vote
0answers
47 views

How to align a single header to the right?

This is my situation \begin{minipage}{\textwidth} \begin{minipage}[t]{0.65\textwidth} \section{Section 1} Content 1 \end{minipage} \hfill \begin{minipage}[t]{0.25\textwidth} \section{Section 2} ...
1
vote
0answers
179 views

Align fixed-width columns to the decimal point

I define a new column type for a fixed width column with centre aligned text as follows: \newcolumntype{d}[2]{>{{\rightdots{#1}}r<{\rightdots}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}} ...
1
vote
0answers
182 views

Does justifying and `frame breaks' conflict in Beamer?

I tried the justifying techniques proposed here: My presentation in Beamer document class also have long bibliography. I have used allow frame breaks in a new frame which recommended here. ...
1
vote
0answers
209 views

How to arrange/aligned the choices in MCQ type question?

This is my second time that I am asking your help. Last time I post one of my query regarding the nesting of files and sub files when I was preparing my book on a MCQ type for mathematics. And I got ...
1
vote
0answers
368 views

Horizontal alignment (problem with minipage)

I'm new here. I just have a problem with the minipage environment. The problem is that the tables aren't horizontally aligned. I want these table aligned one by one, but I don't know what's wrong. ...
1
vote
0answers
77 views

Edit Customize Change Justification rules to solve losse lines in tight columns or spaces

I'm working on a table and have a column (column 3) which is about 5 cm wide (specifically set) where I'd like text to be justified. However, due to the tight column, the paragraph style (in combo ...
0
votes
0answers
17 views

Icon alignment with respect to figure page

I am creating a figure which has an icon on the side. I am using minipage within the figure environment for this purpose. \begin{figure}[!hbt] \marginnote{\includegraphics[scale=1]{icon.png}} ...
0
votes
0answers
14 views

Problem with justication in Texmaker

Can anybody tell me how to fully justify my paragraph. I am preparing my thesis but my previous paragraphs were justified and other paragraph were not. I have sent a snapshot of the given page. I ...
0
votes
0answers
13 views

Fix subpicture placement

I know this kind of thing has been asked here before, but I have a question about this post. I copied the code from there and only changed the filenames to have my pictures. \begin{figure*} ...