Tagged Questions

{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)

0
votes
1answer
8 views

Centered columns with fixed width using tabularx

How do I center the last seven columns in the attached text without dropping the fixed table width or the fixed column width? \documentclass[a4paper,12pt,oneside]{article} ...
2
votes
1answer
21 views

Beamer - Combining justification and centering

I am preparing a beamer presentation and I am having problems in combining justification and centering. I use mainly itemize and enumerate in my slides, and I want to have the text justified in all my ...
0
votes
0answers
23 views

justifying and scriptsize for all beamer slides

Following the answer here, I'm looking for a way to justify and set the scriptsize font for all beamer slides inside frame environment, I tried: \setbeamertemplate{frame}{/scriptsize/justifying} ...
1
vote
1answer
21 views

Forcing left text alignment in a fit Tikz node?

I would like to add Tikz "marker" nodes in running text; then fit another node based on those "marker" nodes' positions; and insert a text into the fitted node, such that it is left aligned, and with ...
4
votes
1answer
92 views

How can I customise the amount of horizontal space that follows line numbers?

I'd like to increase the amount of horizontal space that after comes each line number in my algorithm (typeset with algpseudocode). Because algorithmicx in general, and algpseudocode in particular, ...
1
vote
0answers
25 views

Text out of margin and footer for bibliography

Well its been a great journey since past one and half month and I am happy that I managed write my dissertation with latex. Almost coming to finalizing stage, I figured out I have severe alignment ...
7
votes
2answers
173 views

Purpose of “control space”

I could not find enough information on Google about control space (\). What is the purpose of it? Where should it be used?
9
votes
3answers
218 views

How To Make a Special Position Environment in LaTeX?

So I must admit I am way out of my depth and have no idea what I'm doing. I apologize in advance for a long and complicated question. I'm trying to build this output: Which I have successfully ...
2
votes
1answer
29 views

Finding the width of \bf text for sizing a paragraph in a table

I have this structure, which builds a table exactly the width of the text, split into two columns. I want the left column to be exactly the width of the longest words in the column, but to still be a ...
5
votes
2answers
81 views

TikZ: define center of a picture

I have a TikZ picture which I want to include as a centered figure in my LaTeX document. However, the "centering" I am trying to achieve is somewhat special and best explained by the image below: ...
1
vote
1answer
72 views

Tag placing with amsmath

I'm using amsmath and its \tag command to tag equations. I remember having a situation where I liked having the tag on the left better than on the right. So I gave my class (which is report btw) the ...
2
votes
1answer
34 views

Rounded corner box in itemized environment

Here is the MWE: \documentclass{article} \usepackage{tikz} \newcommand{\rbox}[1]{ \begin{tikzpicture}[remember picture, overlay] \node[rounded corners=3pt, draw]{#1}; ...
3
votes
3answers
70 views

Centering a table inside text block

I have a table in my document, but for some reason it is not in the middle of the page, as I can see more whitespace at the right side. Here is the source code for the table: \begin{table}[H] ...
0
votes
3answers
157 views

How to add explanatory text labels to a list of equations / solving steps

Does anyone know how to do this in LaTeX and can explain how it is done? The font and design does not matter, what I want is to label the equations.
2
votes
1answer
45 views

Centre aligned text with multi-cols and flowfram

I know the question has been answered here, but I still can't get all the text within multi-cols to be centre aligned. Here's what I have with the incorrect left-aligned text: % document class ...
0
votes
0answers
49 views

Horizontal space issue after using \lstinputlisting [on hold]

I experienced this issue after using \lstinputlisting in my project. In particular, the definition in preamble is this: \usepackage{listings} \usepackage{color} \definecolor{mygreen}{rgb}{0,0.6,0} ...
3
votes
1answer
41 views

How can I put the title/my name in the middle of my page?

I just can't figure this one out. I'm using \documentclass[margin,line,8pt]{res} and want my title/name in the middle of the page.
4
votes
2answers
123 views

5 Figures arranged in 3 rows x 2 columns

I would like to arrange 5 figures in 3 x 2 format. I would like the figures to look like this: I tried the following (See below) but cannot get the 2 figures in the second row to be centered. ...
1
vote
1answer
62 views

How do I center table headings including line breaks? [duplicate]

\documentclass[11pt]{article} \usepackage{geometry} \geometry{a4paper} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{amssymb} \usepackage{booktabs} ...
1
vote
1answer
47 views

Unexpected horizontal alignment when using enumitem

Consider the following example: \documentclass{article} \usepackage{mathtools} \usepackage{enumitem} \begin{document} \begin{enumerate}[ label = \arabic*), itemindent = * ] \item before ...
5
votes
2answers
69 views

Align left and align right across lines

I am new to latex and I want the following format but simple things like \hfill does not help here. Name:XX Email: abc@example.com Work:YY ...
3
votes
5answers
129 views

List variables in equation

My code looks horrendous When monochromatic light is shone through a solution of iron, Beer's law states that $$ A = \varepsilon l c $$ \begin{tabular}{l} Where $A$ is amount of light ...
6
votes
3answers
94 views

Vertical text changes scaling?

I've been looking for some hours for a solution to my problem and I've to admit that I really don't understand how to solve it. I drew a node with vertical text and a line going from this to a box. ...
3
votes
2answers
94 views

Multicolumn centering and text wrap

I'm trying to make a table with some multicolumns that have wrapped text, but I also want them to be center justified. I have managed to get the text to wrap using advice from other questions, but it ...
0
votes
1answer
33 views

How to center a caption inside a minipage?

In this moment I have something like that and I want this and this is the portion of the code \begin{minipage}[b]{0.4\linewidth} \subsection{Tercera Configuraci\'on} Con ayuda de un ...
3
votes
1answer
28 views

How do I left indent my equation inside the align*?

I would like to left align my equation..... The sample code is given below. \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
2
votes
1answer
48 views

An extra margin is added when used \begin{center}

In my MWE I use \frame{\includegraphics....} to find what happens \documentclass[12pt,a4paper,oneside,openany]{book} \usepackage{graphicx} \begin{document} \begin{center} ...
3
votes
1answer
56 views

How may I left-align the following as a whole?

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \usepackage{IEEEtrantools} \begin{document} \begin{IEEEeqnarray*}{rCl} ...
2
votes
1answer
61 views

How could I draw 4 mosfets in a same line? (attached picture)

I only know how to do one and in a unique line. How is it possible to put four together and well spaced as the picture I am showing? what I did until now: \begin{document} ...
6
votes
2answers
96 views

Making \cventry fields all raggedright instead of justified in moderncv

I'm looking to use moderncv for a resume. Using \cventry (well, using any of the moderncv environments, really) makes all the text justified, but I'd like it to be ragged-right throughout the whole ...
2
votes
1answer
35 views

Two column equation block with vertical separator

I have seen various examples in text books and web pages (like here) of two column equation blocks, where the left column has some equation(s) and the right column has some explanation on variable ...
5
votes
4answers
146 views

Center text over multicolumn in table

I have created a table that is the width of my page, but when trying to center the text in the top row over the merged cell, the text is not centering with respect to the entire length of the cell. ...
0
votes
1answer
31 views

Enforcing no hyphenation of the last word in the first line of Definition while keeping the line well-aligned

I am using the IEEEtran theorem environment and \newtheorem{definition}{Definition}[section] to customize the definitions. Generally, I am satisfied with its output: However, for another definition ...
4
votes
2answers
39 views

Compensating for multispan boxes wider than spanned columns

The code below produces a horizontal alignment with two columns and three lines (see first image below). The first column has its elements flush right and the second column has its elements flush ...
1
vote
1answer
35 views

Boxed equation on the right and its verbatim on the left

How to write a verbatim form of an equation on the left and its output form on the right inside a box?
4
votes
4answers
113 views

A command like `\hspace` calculating the distance from the beginning of the line

I would like to place several blocks of text in one line, but fixing their positions by distances from the beginning of the line. For example (1.2pt from beginning) cat (2.1pt from beginning) dog ...
3
votes
2answers
179 views

How may I write 'and generally' and the second equation on one line?

Please note that the two equations ought to be aligned; the text and generally should be flush left, but the second equation should be centred. \documentclass{article} \usepackage{mathtools} ...
5
votes
3answers
93 views

Tricky alignment within an equation with a case environment

I couldn't figure out how to do the following alignment: \begin{equation} \begin{aligned} \textrm{Row I:} \qquad & A = 1, \quad j = 1, 2, \ldots, N \\ \textrm{Row II:} \qquad & A = ...
4
votes
1answer
80 views

Auto-numbering table environment with aligned numbers

I'm trying to create a table environment with: A header row that spans an arbitrary number of columns, aligned, automatically numbered cells with aligned numbers uniform spacing between the all ...
4
votes
1answer
85 views

Shifting graph in TikZ: centre not working

I am having trouble making a diagram align in tikzpicture. At the moment if I use '\centering', my network graph moves to the right of the pdf. If I don't, it is in the left of the pdf. How do I make ...
3
votes
2answers
89 views

Vertically center text or math in a framebox

I have the following commands in my code (taken from Creating uniformly sized boxes around text) to manually adjust the height of frameboxes (the reason is that I often put several in a row with ...
2
votes
1answer
41 views

Add right flushed verse number to last line of verse

I'm using the custom Verse environment provided in this answer for producing horizontally centered verses. I would like to add a verse number to the last line of a verse and I would like just the ...
2
votes
1answer
19 views

How can I align the footer so it is generally centered at the bottom of the page?

I am completely new to using Latex and I am trying to set up the basic layout of a document. I want to have a footer that has my name in the left part of the footer, some text in the center of the ...
1
vote
0answers
16 views

Horizontally align \vdots with equal signs in aligned environment [duplicate]

I have a number of equations aligned at the equal sign. I insert a line containing just \vdots to indicate a bunch of steps and then equations again. How I can make the \vdots align with the equal ...
2
votes
1answer
38 views

Horizontally aligning equations with overset text

Say that for example I have the following set of equations for which I want to use overset to clarify what equations are used: \documentclass{article} \usepackage{amsmath} \begin{document} ...
3
votes
2answers
40 views

How to align text to right without adding additional vertical spacing?

I am trying to simply align one paragraph to the right. However, when I try to use flushright environment, additional vertical space is added above that environment: \documentclass[final]{book} ...
2
votes
1answer
42 views

How to center text in a cell of a longtabu (horizontal and vertical)

I have a long tabu like the one defined last in this question and online here. It looks like this when compiled: As you can see the "point" and "score" text is placed in the buttom right corner. ...
2
votes
2answers
59 views

Center content of a minipage inside of a longtabu

How do you center the content of a minipage that is placed inside of a longtabu? My minipage looks like this and can be found online here: ...
1
vote
3answers
102 views

How can I fit my table in the text block?

I want to make my table fit in the text block. At the minute, a large part of my table is being cut off at the right-hand edge the page. My code is: \documentclass{article} \usepackage{graphicx} % ...
4
votes
1answer
58 views

\halign does not affect \prevdepth?

What is the purpose of restoring the initial value of \prevdepth at the end of a horizontal alignment: \prevdepth=.1234pt \everycr{\noalign{\dimen0=\prevdepth prevdepth in noalign: \the\dimen0}} ...