Questions tagged [center]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

How can i center my tikzpicture despite changing the scale?

i recently started using Tikz and i can't solve this problem despite looking similiar problems up. I i try to scale my picture from 1 to 1.2 or higher the centering doesnt work. I hope someone can ...
user avatar
  • 1
1 vote
2 answers
40 views

Center text in "X" columns in Tabularx and center the table itself

I would like to center the text in the middle of the respective cells for the "X" columns I have defined (last six columns). I would also like to center the table itself. This is my first ...
user avatar
1 vote
1 answer
37 views

How to center table on page?. Center and centering not working

I am trying to center the following table. I have tried using \center and \centering after \begin{table} but it do not work. This is my code: \documentclass{article} \usepackage[utf8]{inputenc} \...
user avatar
  • 1,248
0 votes
0 answers
22 views

I get an undefined control sequence with end{titlepage} and end{center}

Whenever I run my titlepage code in my dissertation, I get that both the second \end{center} and \end{titlepage} give me an undefined control sequence error. I have no idea what is causing this error ...
user avatar
1 vote
2 answers
43 views

How to Automatically Center the Last Line of the Contents of a Minipage for Every Minipage in a Document

Consider the following code: \documentclass{book} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \Large \begin{center} \begin{minipage}{5.65in} %\leftskip\fill\rightskip-\leftskip\...
user avatar
  • 4,799
1 vote
0 answers
34 views

Centering Command Works Fine Outside the TOC; but Inside is a Different Story

Consider the code \documentclass[openany]{book} \begin{document} \thispagestyle{empty} {\centering\Large\bfseries HERE IS A LONG SENTENCE THAT WILL NOT FIT ON ONE LINE, AND SO IT WILL BE DISPLAYED ON ...
user avatar
  • 4,799
0 votes
1 answer
24 views

How to Center All of the Lines of Long Text Insertions in the TOC

Consider the code which has no problem centering short text insertions in the TOC: \documentclass{book} \begin{document} \tableofcontents \addtocontents{toc}{\hfil\protect {\Large{\textbf{PART I.}}} \...
user avatar
  • 4,799
0 votes
1 answer
24 views

Center beamer equations and decrease the font of the equation number indication

I'm having trouble centering the presentation equations. I've used \centering, \gather among others and it doesn't want to center. \begin{equation} \centering \begin{split} \scriptstyle\phi = \frac{...
user avatar
0 votes
0 answers
26 views

cross-reference to a rotated table

In my doc I have few rotated tables, but I face an issue - \ref in text to the tables doesn't work - it shows ?? What I am doind wrong? Thanks in advance! % \documentclass[12pt, a4paper]{article} \...
user avatar
  • 61
1 vote
1 answer
56 views

Centered vs aligned equations

I was writing a research paper and did some proof. I am not happy with how the equations are placed in the pdf. Some of them are in the center, and some of them are far left of the page. There are ...
user avatar
0 votes
2 answers
44 views

Trying to center text in a multiline table cell

I want the text in each cell to be centered horizontally. But it isn't even though the tabular settings are 'c'. Note I am not trying to use multirow - this is a single row with two lines of text in ...
user avatar
3 votes
3 answers
134 views

Text centered around specified character

This might sound like a simple question, but how can I have text both right- and left-aligned, i.e. centered around a pre-defined middle character (preferably in textmode and without a table)? This is ...
user avatar
  • 4,805
2 votes
0 answers
51 views

Centering Figure issue

I am still new in Latex and have some difficulty centering a figure from MATLAB. As you can see the code from MATLAB prints perfectly on Latex so does the picture. However, I use \centering and \begin{...
user avatar
0 votes
0 answers
23 views

Centering Figure issue [duplicate]

I am still new in Latex and have some difficulty centering a figure from MATLAB. As you can see the code from MATLAB prints perfectly on Latex so does the picture. However, I use \centering and \begin{...
user avatar
2 votes
1 answer
22 views

Centering vertical aligned expressions respect to a part of a final expression

I tried my best with the title by I think it's still unclear what I mean (any suggestions are welcome), anyway I'll make sense of it here. I'm trying to center two "little" expressions, each ...
user avatar
  • 23
0 votes
1 answer
37 views

tikzpicture - Include legend when centering

I notice that when I centre my plot, it only centers on the graph and ignores the legend. This leaves the legend overhanging my margin. Is there any way to include the legend in the centering process? ...
user avatar
  • 13
1 vote
1 answer
37 views

Why \centerline does not count the line number

I am using \centerline to center text, and I need to count the line numbers. I use the lineno package, but I found that the content contained in \centerline will not be included in the line number. ...
user avatar
  • 149
2 votes
1 answer
109 views

Extra \else and extra \fi error

I am writing a document that presents different information depending on a defined command. The code in a simple version is like this: \documentclass{article} %\usepackages ... \title{My title} \...
user avatar
0 votes
0 answers
12 views

How do I get the marks and the text to have the same width from the edge?

In the above latex document, the margin size from "Question 12" and the marks on the side appear to be even. I was wondering how I can do this because currently I only know how to put points ...
user avatar
  • 191
3 votes
1 answer
55 views

Center environment doesn't center a TikZ figure

It seems to be lots of problems like this in the archive but none seems to match mine. I have a TikZ figure that depends on \draw. I know that keys off an assumed Cartesian plane and maybe that is the ...
user avatar
  • 125
0 votes
1 answer
35 views

Define second frametitle command

When creating slides with beamer, there are two cases of frame titles I would like to use: The frame title is centered and displayed in one line, irrespective of \textwidth or \linewidth. The frame ...
user avatar
1 vote
1 answer
36 views

Latex text too long I want to centralized and be able to see the full text

\begin{tabular}{|c|} \hline Table \\ [2ex] \hline\hline A precoding-aided RIS scheme is considered for multi-user downlink transmission. Maximization of sum-rate and energy efficiency is ...
user avatar
0 votes
1 answer
43 views

How do you fit flowchart and two tables into one page [duplicate]

So I have this flowchart and two tables and I needed it to fit in one page. How do I do it? Here's the code: \documentclass[12pt,twoside, a4paper]{report} \usepackage[utf8]{vietnam} \usepackage{...
user avatar
  • 83
2 votes
4 answers
274 views

Why is my Table Flowing Over into the Right Margin?

I have the following code which defines a table in a paper I'm writing: \begin{table}[t] \centering \def\arraystretch{1.5} \begin{tabular}{ *{5}{>{\centering\arraybackslash}m{0.2\...
user avatar
  • 123
1 vote
0 answers
30 views

An odd behaviour when I use center environment, itemize/enumerate environment and braced \item as the first item [duplicate]

So, I'm coding my note while I run into the following odd behaviour. So, if I first use \begin{center} \end{center} to wrap my contents, and create a list inside using \begin{itemize} \end{itemize}, ...
user avatar
2 votes
2 answers
52 views

Centering alignments in equations [duplicate]

I have a very long set of equations that I put in an array. They must be aligned as \begin{array}{lclc} A & Long expression & \text{\hspace{.5cm}} & Long expression \\ ...
user avatar
1 vote
1 answer
69 views

How to write equations at centre?

I want to bring the equation at centre of the page. I have written the following \begin{equation}\label{eq2} x'=f(t,x), \ x(t_0)=x_0. \end{equation} I tried using \begin{centre} and \end{centre}. ...
user avatar
0 votes
1 answer
37 views

Error equation on multiple line

I'm trying to use the equation tag on the following portion of formula: I did it as well: \begin{equation} \centerline{$ \min _{w, b, \xi_{i}} \frac{\|w\|^{2}}{2}+C \sum_{i=1}^{n} \xi_{i} $} ...
user avatar
  • 115
0 votes
2 answers
62 views

absolutely centering a table in a Latex document

I am trying to center a table in Latex and it is in a book. \begin{table}[b!] \centering \tabcolsep=3.0pt \begin{tabular}{r|rrr|rrrr|rrrr} & \multicolumn{3}{c}{temp123445} & ...
user avatar
  • 877
0 votes
0 answers
20 views

How to center Lyx code?

I am writing some Python code in Lyx and since it Python uses indentation, some of the code goes past the right margin. I have 5 centimetre margins on each side, but the code only ignores the right ...
user avatar
  • 11
0 votes
1 answer
33 views

Which is the easiest way to center cell-content vertically? [duplicate]

I'd like to center all cells content vertically. Which is the easiest way? \begin{longtable} \centering \caption{Grafs dirigits} \begin{tabular}{p{2cm}|p{4.5cm}|p{1.4cm}|p{1.4cm}|p{3cm}} ...
user avatar
1 vote
2 answers
74 views

\captionsetup turn on numbering for new caption

For my thesis, I want to create a new caption that says Model 1, Model 2, etc. So far, I've gotten to it saying Model, but no numbering yet. I've used this command: \captionsetup[model]{name=Model, ...
user avatar
  • 121
2 votes
2 answers
52 views

Center a verbatim block with long lines, without using a minipage

There are a lot of questions around centering verbatim blocks on the site, but trying them, they either hardcode the width of the verbatim block using a minipage, or they just don't work when the ...
user avatar
  • 123
0 votes
1 answer
50 views

Align to center text below title

This is probably an easy question, but I am new to Latex and I cannot figure out how to center the author information below the title on the cover page of an article. I am using the following: \...
user avatar
  • 117
2 votes
1 answer
51 views

Applying a Minipage Fix to a Tikzpicture Environment to Center the Last Line of a Title

I am trying to center the last line of a title in a tikzpicture with \leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2} which was suggested to me in a previous post when working with a minipage ...
user avatar
  • 4,799
4 votes
2 answers
218 views

Automatically shift scope of tikz pic

I'm trying to create pics that behave like nodes. Following the instructions of shifting scopes and naming scopes for pics, I managed to manually create pics and move them to behave like nodes. The ...
user avatar
  • 10.7k
1 vote
1 answer
40 views

Centering a target column in the page

The table below will be centered between the second and third columns. Can I center this table in the second column? (i.e., center at blue line) Thanks! Note: Only consider the column to be centered, ...
user avatar
1 vote
1 answer
100 views

how can I center the column titles in relative to the numbers below them

\documentclass[12pt]{article} \oddsidemargin 0.0in \textwidth 6.5in \headheight 0.0in \topmargin 0.0in \headsep 0.0in \textheight 9.0in \usepackage{rotating, graphicx} \usepackage{amsfonts} \...
user avatar
2 votes
1 answer
95 views

How to Center a Sentence at the Center of a Bclogo

I would like to automatically center a sentence within a Bclogo box; that is, I would like to place the sentence such that its center lies (technically) at the midpoint of the diagonal endpoints of ...
user avatar
  • 4,799
1 vote
2 answers
71 views

Matrix in Tikz with centered Numbers (especially negative numbers)

I've got the following problem with negative numbers in my matrix: \begin{tikzpicture}[>=latex] \matrix (m) [matrix of math nodes, left delimiter=(,right delimiter=), inner ysep=0pt, column sep=0....
user avatar
0 votes
0 answers
60 views

Center landscape table in two-column environment

I have two tables that have their own designated pages in landscape mode. The rest of the document is in portrait mode, in 2-column AASTeX. I am using \{sidewaystable*} to achieve this; i.e: \...
user avatar
  • 101
2 votes
2 answers
136 views

Centering text with dotfill

I'm writting a contract that uses dots to fill in the blank spaces when the line is finished, but also when there's a centered text. So I'm looking for a centered text that has dots at the left and ...
user avatar
  • 23
0 votes
1 answer
36 views

Centering matrix

Does anyone know how to center the following matrix? (eq. 3.7.14) and how to add a space between the elements of the vector (eq. 3.7.13)? \begin{equation}\label{3.7.13} {\vec{T}_{1}}^\intercal=[T_{a} &...
user avatar
1 vote
1 answer
45 views

How to Automatically and More Perfectly Center a Text Divider in the TOC

The code \documentclass{article} \begin{document} \tableofcontents \addcontentsline{toc}{section}{\textbf{Table of Contents Entry 1}} \addtocontents{toc}{\vskip 7pt \hskip 135pt \protect\rule{0....
user avatar
2 votes
1 answer
55 views

Text wont center in Tikz Node

been trying to align caption text within a tikz node overlayed on an image tried multiple ways, but either it doesn't align center or if I use \centering it removes line breaks(which I don't wont Can ...
user avatar
1 vote
1 answer
29 views

Why the second caption is not centered?

I'm using the following code to show two tikzpictures in a line. \documentclass[11pt]{article} \usepackage{tikz} \usepackage[labelformat=empty]{caption} \begin{document} \begin{center} \begin{...
user avatar
  • 289
0 votes
2 answers
82 views

How to center chapter title in a specific area?

I have this gorgeous custom made photo header which is perfect, however I want to center every chapter title in this sky blue area. I am currently using the following code: \documentclass[a4paper,11....
user avatar
0 votes
2 answers
64 views

How to begin writing at the center of the page and moving right?

I am writing the acknowledgement paper in my thesis and from the required guidelines is to write my name at the end of the page beginning from the center of the page and moving right. Can anyone give ...
user avatar
  • 353
1 vote
1 answer
52 views

Definition of \par modified after "center" environment

I have redefined the command \par as indicated in this TUGboat article (page 232). But when I use the center environment the structure of the paragraphs is modified in a strange way (like if \...
user avatar
  • 281
1 vote
2 answers
151 views

Setting two TikZ images to be at the same height on a line

I have two TikZ images (one is citcuitikz) and they are on the same line, and centred with \centering. The issue is that they are not quite at the same height, as the circuitikz is slightly less high. ...
user avatar