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

fit tabular width with multicolumns into text width latex

So i want to make the following table fit in my text width. The table is much longer than the text. Any propositions? Thanks in advance. Here is the table code (dont pay attention to the comments' ...
1
vote
1answer
36 views

How can I have a tabular flush with the margins? [duplicate]

Consider the following: \documentclass{article} \setlength\parindent{0pt} \begin{document} content \hfill content \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r} one & two \\ ...
4
votes
1answer
78 views

How can component and voltage labels be positioned so they are properly aligned with components?

I have coded the following circuit: \documentclass{article} \usepackage[american]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,4) to [C,v^=\(v_c\),*-*] (0,1) to [short] (0,0) ...
0
votes
0answers
56 views

Superimposing characters in text mode (pdfTeX)

I'm trying to compose a non-Unicode character by arranging Unicode characters one above the other or one next to the other close-up, but I'd need a negative space which in text mode isn't available. ...
2
votes
1answer
65 views

modernCV seems to forbid any hyphenation. How can I switch that off?

I'm writing a document with the help of the modernCV class, using (a modification of) the casual style. It looks like this class is penalizing hyphenation pretty severely. Why is that so? I can't find ...
7
votes
2answers
114 views

How to align the radio buttons in hyperref form?

I am trying to create a formular, this is my MWE: \documentclass[parskip=half]{scrartcl} \usepackage{hyperref} \renewcommand{\LayoutChoiceField}[2]{% \leavevmode #2 #1% } \begin{document} ...
3
votes
1answer
164 views

Left-align captions with respect to subfigure

How do I left-align the captions on the subfigures below, so that the caption starts aligned with the left-hand edge of the corresponding subfigure? \documentclass{article} ...
4
votes
2answers
123 views

Strange behaviour of \closing in koma-script scrlttr2 class

I'm having some trouble with the command \closing{\closingphrase}. If \closingphrase is longer (e.g. 'Met vriendelijke groet'), the closing phrase is aligned left and the signature is indented. This ...
0
votes
1answer
51 views

Problem with justification and \titleformat (LuaLaTeX) [closed]

I am using this titleformat for my chapters but the text after \chapter{} ist centered too. \titleformat{\chapter}[display] {\normalfont\Large\sffamily} ...
3
votes
1answer
110 views

How to position fancyhdr[R]?

I cant get the right header/footer on the right position. It should be positioned 3cm from right page end. How can i achieve that? Sample Document: \documentclass[12pt,a4paper]{scrartcl} % includes ...
8
votes
2answers
77 views

Align \footnote left

At the moment my footnote looks like this ²Commit-Hooks definieren was die Softwareversionierung (zum Beispiel SVN) machen soll, sobald ein Commit passiert. The second line just does not align to ...
3
votes
1answer
99 views

Problem of alignment of blocks in two columns?

Consider the following code of a beamer frame: \begin{frame}{Test} \begin{block}{Single column} \justifying This is a block. \end{block} \begin{columns}[onlytextwidth] \begin{column}{0.45\textwidth} ...
3
votes
1answer
58 views

Tikz: Alignment of labels relative to a split rectangle

Is there a way for accurate placement of labels relative to the center of each of the parts of a split rectangle? The following example shows two errors: Alignment is with the left side of the ...
15
votes
5answers
233 views

Behavior of \\ inside center environment

While trying to compile a title page for my dissertation I realized that I do not understand the behavior of \\. Consider the following MWE \documentclass{memoir} \begin{document} \begin{center} ...
1
vote
1answer
99 views

Aligning graphical elements with flowfram

I'm new to Latex! I've have successfully managed to get my text in the right format, but am having problems positioning a single graphic where it needs to go. Essentially it should be on the left hand ...
3
votes
1answer
56 views

dcolumn with brackets

I am using dcolumn to align cells to the decimal point. But in case of brackets, I always got overfull errors in my main document. If I replicate a MWE with the full preamble, there are no more ...
6
votes
1answer
79 views

Front page in document class book not centered

I'm using the document class book and I am designing my front page atm. I try it like this: \documentclass{book} \begin{document} \thispagestyle{empty} \begin{center} FRONT PAGE \\ \end{center} ...
8
votes
1answer
82 views

Why is this lettrine being bumped into the margin?

Consider the MWE from an earlier question: \documentclass{article} \usepackage{lettrine} %\usepackage{fontspec} %\defaultfontfeatures{Ligatures={Historical}} ...
3
votes
1answer
35 views

Alignment issue?

I am trying to align the 2 equals signs and the minus sign at the beginning of each line of the following code, but no matter what I do, it won't work. $C_{n}$ = $ \dfrac{1}{4\pi{i}} $ $ ...
0
votes
0answers
48 views

Problem with \hfill and hyphenation

When I use \hfill and in the previous line the last word is hyphenated, the \hfill doesn't work the same way as usual: \documentclass[a4paper, 12pt]{book} \begin{document} Spellings attempt to ...
3
votes
2answers
73 views

How to prevent justification in the header?

I am trying to prevent justification in my header. I have tried \raggedright so far suggested here How to prevent automatic justification of references? but no luck with this \makeatletter ...
2
votes
1answer
59 views

Left aligning a displayed equation in plain TeX

This one seems to be a rather simple question but right now I just run out of ideas. I simply want to left align a displayed equation using plain TeX, that is, I want the equation to start from the ...
4
votes
2answers
122 views

Why isn't my table centering with threeparttable?

Can anyone help me to solve my problem with threeparttable, TPTMinimum redefinition and centering environment? I haven't seen in any other topic what I was trying to do. I have something like this: ...
5
votes
1answer
96 views

Horizontally align subfloat in figure

I am putting three figures on one row, and the width is not enough if I want to show them clearly (big enough). I used to use hspace to manually shift the figure, but it doesn't work this time. (It ...
2
votes
0answers
131 views

Chapter and its name not on the same line

Sorry for being unclear. I am a LaTeX beginner and have been struggling to place the chapter name with its number on the same line where chapter is. This is how it should be: The code itself was ...
4
votes
1answer
65 views

footnotemark and footnotetext creates undesired indentation

I have looked for a solution for quite some time now, but I couldn't find anything useful. The problem seems to be minor but still visible. If I use footnotemark within align to create a footnote, ...
6
votes
1answer
66 views

Aligning text centered on left margin; mystery horizontal space

I have the following: \documentclass{article} \usepackage{calc, expl3, xparse} \makeatletter\ExplSyntaxOn \def\globalsettoheight{\@gsettodim\ht} \def\globalsettodepth {\@gsettodim\dp} ...
4
votes
1answer
66 views

Justify hebrew text

I want to justify hebrew text but cannot do so , i have added centering for a heading. even when i remove centering the text is not justified \documentclass[hebrew]{article} ...
3
votes
1answer
137 views

How to make the equations at the center

(I'm using LyX). When I'm writing multiline equations, with \aligned the align of the equations is right, how can I make it to be center? For example: Here how it looks when I writing at math ...
5
votes
1answer
108 views

System of equation, left aligned and two lines numbered

I really don't find how to create the system I am looking for, so I am asking for a little help! I want : At least two columns aligned to the left; The system name and a big brace on the left; Some ...
1
vote
1answer
123 views

How to center a tikz figure in a beamer frame

I was told to use the standalone package, which I use, but it does not seem to center the figure. What options to do I miss? Concretely, here is the main file: \documentclass{beamer} ...
2
votes
2answers
60 views

Positioning item to the left inside Table

I am facing a problem that the item is positioned on the center of the table column, may i know how to make it to be positioned on the left side of the column? This is the problem i am facing. This ...
1
vote
0answers
56 views

How to centralize specific objects in a table [duplicate]

Lads, when I'm generating this table with letters, it doesn't centralize objects as I would expect, meaning all objects should be as large as the largest one. My code is: \documentclass{article} ...
3
votes
1answer
39 views

Move list of acronyms to the right

I'm using the acronym package and I want to move the list of acronyms a bit to the right. I have the list in an independent .tex file and the code I use is: \documentclass{article} ...
3
votes
0answers
42 views

How can I redefine (or alter) the bmatrix envrionment such that all entries are flushed right? [duplicate]

I've checked around here and have been unable to find anything that solves my problem. There are several other questions that ask similar things, but the solutions do not give a global way to apply ...
0
votes
1answer
47 views

page layout for function description

I write an SDK manual in which I would like describe function using the following layout, but I have a carriage return I don't want. Parameters * unsigned int * string Return Value ...
3
votes
2answers
73 views

Why does centering not work with calligra?

I'm trying out the calligra package for a wedding order of service. Just trying to make the titles look a little nicer. When I use the \centering command, however, it doesn't seem to work: \centering ...
8
votes
3answers
161 views

Control the alignment of each “cell” in amsmath's aligned environment

In amsmath's aligned environment, the alignment of each "cell", or each "column" is predetermined, and seems to work in the following way: the first "column" is aligned to the right, the second to the ...
1
vote
0answers
73 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. ...
4
votes
2answers
103 views

Flushright square mark

I write the codes below to get a square as if to say q.e.d. $$equation$$\textbox{\hfill\square} Text\textbox{\hfill\square} I want the square at the right extreme of the same line. I succeed only ...
7
votes
1answer
53 views

\centering and showexpl

Consider the following MWE, where the table is clearly not centered by \centering. Actually, moving \centering outside the table environment give the desired output, but that's no good... ...
5
votes
3answers
154 views

Troubles with column width in the tables headings

Well, we all know that compose tables in LaTeX is not easy, however, despite the large number of existing packages and options to facilitate this, I still have some problems I could not solve, and I ...
3
votes
2answers
130 views

Phantom equals sign in aligned equation [duplicate]

When typing out long equations, I like to split everything up into separate lines and start each one off with an equals sign. How do I hide the first equals sign while keeping the layout exactly the ...
4
votes
1answer
40 views

Problem with column widths

I'm trying to create a table that has 2 rows: 25% and 75% of the \textwidth I also want the left column to be bold and right aligned by default. The second column is also right aligned. Now I want ...
3
votes
1answer
249 views

Simple list of abbreviations manually

I have written my whole document without using any packages like nomencl or acronym because it wasn't necessary in my case, that means I only have a few abbreviations which should fit on one page ...
8
votes
2answers
197 views

Multiple equations with a large “{” in front: alignment and labelling

I'm trying to get the equation shown in the picture. But i only manage to get the following coding. Can anyone help me to label it with numbering like the picture? I tried with \begin{eqnarray} or ...
4
votes
2answers
97 views

Centered text, aligned left

This is probably a rather trivial question, but I don't see an obvious way on how to solve it. I want to center a piece of text, but i want to have the centered text be aligned left. So I would like: ...
12
votes
1answer
146 views

How can I build an adjusted coffin?

I would like to put several lines of text stacked vertically inside a coffin, and have the coffin be the tightest rectangle containing them. One way to get a coffin containing those lines is to use ...
24
votes
3answers
623 views

Strange default exponent positioning?

Why is this red exponent so far away from the right parenthesis? To my eye it is too far away. \documentclass{article} \usepackage{xcolor} \begin{document} ...
3
votes
1answer
354 views

changepage package's \adjustwidth environment adjusts only left margin

I was trying to create a custom abstract environment with minipages and adjusted margins. Everything works fine, except for that the right margin changes according to the left. I could'n find ...