{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
60 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
57 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
497 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
43 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
30 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 ...
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
31 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
47 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
78 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
113 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
90 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
228 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
169 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
153 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 ...
2
votes
0answers
606 views

Subfigure plot in conflict with psfragfig

I am trying to place 2 graphs one next to the other using pstools. I have generated 2 graphs using the commands hFig = figure(1); set(gcf,'PaperPositionMode','auto') set(hFig, 'Position', [0 0 300 ...
1
vote
0answers
29 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
36 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
20 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
40 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
27 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
63 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
52 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
49 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
49 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
41 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
59 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
32 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
60 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
39 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
65 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow article, link: TUG Vol 36 no.2, Peter Karow.
1
vote
0answers
37 views

Conditional raggedright

Can I make (XeLa)TeX automatically use \raggedright whenever a paragraph would otherwise produce underfull or overfull boxes? (Might be useful for marginal paragraphs.)
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
64 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
79 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
119 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
151 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
41 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
81 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
66 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
45 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
169 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
176 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
200 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
359 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 ...
1
vote
0answers
342 views

Moderncv - Centering name and informations

I'm using moderncv to write my CV but right now, the name is in the top-left of the page, and the information (Age, address, email etc...) in the top-right. Is that possible to align name and ...
0
votes
0answers
18 views

Format Equation: Add information left of the equation number

I want to write an equation and put some additional information in the equation but left of the equation number, thus \tag{} does not work. Furthermore, I would like to have the description flushed ...