Questions tagged [vector]

{vector} is about the typesetting of vector notation, e.g. symbols or row vectors/column vectors. For questions about creating vector graphics in a (La)TeX document, use {diagrams}, or a package specific tag. For questions about including externally created graphics in a document, use {graphics}.

Filter by
Sorted by
Tagged with
5
votes
4answers
392 views

LaTeX matrix formatting

I am trying to create something similar to the below image. I have something, but my formatting is a little off. How can I correct the formatting and also add the W1, W2, Wn and D letters on top (not ...
2
votes
1answer
17 views

Aligning vector elements to rows of matrix (vertical alignment) in matrix-vector multiplication

When the matrix is complex and the vector is simple, the output does not look good: Code: \begin{bmatrix} \displaystyle\sum_{i=1}^M{(x_i)^2} & \displaystyle\sum_{i=1}^M{(x_i)} \\ \displaystyle\...
4
votes
3answers
110 views

Tabularx with \hline and overrightarrow vertical spacing

I use a \overrightarrow in my tabularx table with \hline. Howover, the vector arrow is mixed with the line. Is there a good way to fix this error other than manually putting spacing ? \documentclass{...
0
votes
0answers
39 views

Vector of 12 elements in a rectangular block on a flowchart (Continue of…)

Continue of: Vector of 12 elements in a rectangular block on a flowchart Additional questions, the answers to which I did not find in the manual: How to insert a function graph into a flow chart (...
1
vote
1answer
95 views

Vector of 12 elements in a rectangular block on a flowchart

Recently i started to study Latex, tikZ and PGF. Tell me how to fit a vector of 12 elements into a rectangular block on a block diagram for a program?
2
votes
1answer
40 views

How to indicate that an entry in a column vector appears $n-1$ times?

In the below code I want to indicate that the entry $(2n-1)+(n-1)^2+(n-2)(n-1)$ appears $n-1$ times in the following $2n\times 1$ vector. For that I want to show it using an arrow or something ...
0
votes
0answers
77 views

Typing vector space Rn in LaTeX

I am a beginner in LaTeX. I have trouble typesetting V = Rn My code is: \textit{V} = $\mathbb{R^n}$, but it doesn't give me the n, that I want. This is what I want: Instead my output is :
1
vote
1answer
58 views

How do I force Latex to use the default vector typesetting?

I am using the ubcdiss.cls document format for my thesis from https://github.com/briandealwis/ubcdiss Unfortunately, it automatically causes vectors to render as bold rather than with an over-arrow. ...
1
vote
1answer
32 views

Draw a line from the center of a circle to the edge:

I'm trying to draw a circle with some radius vector drawn from the center of the circle to the edge (preferably at 45˚) and then a bunch of smaller circles – all on the xy-axis. I have the following ...
6
votes
3answers
194 views

A Shorter Zero Vector

I'm looking for a nice 0 vector for some linear algebra flashcards utilizing MathJax. I know some conventions use theta, but I find that practice very confusing. At the current moment I'm using \vec{...
3
votes
2answers
128 views

column vector in math mode

I know, there are questions about how to write column vectors, but non of the answers uses math mode (i.e. coded between Dollar signs) to code a column vector. I have this formula: $$N_S \left( t \...
3
votes
2answers
84 views

representation of vector and matrix in latex

i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached can someone help me ...
3
votes
3answers
67 views

How to align braces and \mid in a set in order to get the same height

Main question How to align braces and \mid in a set in order to get the same height? Code: My following code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{...
2
votes
1answer
57 views

What is the correct way to typeset a vector when there is subscript or superscript?

Consider this MWE: \documentclass{article} \begin{document} \[\vec{v}_{12345}^{12345678}\] \[\overrightarrow{P_{12345}P_{12345}^{12345678}}\] \end{document} As you can see, \vec is designed to ...
13
votes
3answers
195 views

Setting fixed height (in all situations and characters) for overset notations

A noticeable downside to aesthetics in the \vec{} notation is that, for "short" and "tall" characters (a, i, v vs b, k, l), the overset vector notation shows difference in its height from the baseline....
0
votes
0answers
14 views

Row vector bracket size with double spacing [duplicate]

I have an equation in my thesis that needs a row vector. Since my thesis template is using the \doublespacing command of the "setspace" package, the bracket size of the row vector is not consistent ...
2
votes
1answer
374 views

How to make vector arrows?

I would like to make a vector over my beta symbol. What I use for the moment is: $A\overrightarrow{\beta}$ I have also tried the following: $A\vv{\beta}$ $A\vec{\beta}$ Note that all of these ...
2
votes
1answer
73 views

Why is the superscript math not bold? [duplicate]

I'm trying to get bold vectors in a superscript, but for some reason this won't happen when using the cmbright package (I like the font). Is there a way to get it to behave? Code: \documentclass[...
3
votes
1answer
57 views

PGFPlot vector field has uneven display

I have a simple 2D vector, however the points are aligned such that the vectors at the top pointing upwards are not include in the plot. I was wondering if there's a way to make the vector field more ...
1
vote
2answers
371 views

Simplest way to draw a control flow graph similar like this?

I'm been using Inkscape for the entire time, and it was just too much time consuming to resize the box, creating the arrow and placing the block etc... I've noticed about tikz in latex, and wonder if ...
4
votes
4answers
231 views

Inline column vectors appear too big [duplicate]

When I use a vector within the text, the vector appears too big - how can I make it smaller? Example: \documentclass[12pt]{scrartcl} \usepackage{amsmath} \usepackage{amssymb} \begin{document} One ...
5
votes
1answer
248 views

How to properly centre vector arrows upon characters

I'm using the standard LaTeX vector arrows in math mode, but they are always aligned in such a way that they result shifted if they haven't an italic character underneath. The following code: \...
1
vote
1answer
255 views

\renewcommand for \vec not working

I don't like the look of the basic \vec{v} arrow, instead preferring the \overrightarrow{}. I don't like typing all that though, so I added \renewcommand{\vec}[1]{\overrightarrow{#1}} to my ...
0
votes
1answer
103 views

Longer arrow over text in math mode

I'd like the arrow over f(P)f(Q) to be longer, without changing the default space between lines, if possible. Here's a minimal working example: \documentclass[a4paper]{article} \usepackage[T1]{...
2
votes
2answers
350 views

How to denote n elements in a vector?

I have a column vector with two 1's and n 2's, where n is an integer. What is a clever way of denoting that there are n 2's in the matrix? I was thinking of using like a side brace, but I don't know ...
0
votes
1answer
57 views

how to type inverse Vectorization operator ivec() in latex? [duplicate]

The Vectorization operator: vec() can be typed Vectorization operator how to type inverse Vectorization operator ivec() in latex?
2
votes
3answers
148 views

Tikzpicture: How to color separate fields at the arrays and use resizebox?

I want to color only separated nodes? How could I do this? I want also resize the tikzfigure, but I got the error message Undefined control sequence. } \documentclass[12pt]{article} \usepackage{...
0
votes
1answer
98 views

How to write the following vector

I have written a vector \begin{align} \textbf{\underline w} &= \begin{bmatrix} \textbf{0} \\ \textbf{v} \\ \textbf{0} \end{bmatrix} \end{align} However ...
0
votes
2answers
66 views

One-dimensional matrix (vector) as a miniature subscript

How do I produce this in LaTeX? Unsurprisingly, this code doesn't work: $$\tau_{\begin{bmatrix}0 \\ 4\end{bmatrix}}$$ That code does move the vector down to become a subscript, but it does not ...
1
vote
1answer
151 views

Labelling the position of entry in the vector

I probably explain my question by illustrating an example. For example, Let $e_i=(0,\ldots,0,1,0,\ldots,0)$ be the standard basis vector for n-dimensional Euclidean space $\mathbb{R}^n$. By drawing ...
3
votes
2answers
560 views

Simple way to typeset vector going in and out of the plane in tikz

Is there a way to easy achieve this result? Something like the symbol recommended from wikipedia but with the dot of the vector bigger. And is it possibile to do that in \tikzset ,I was triyng ...
7
votes
3answers
375 views

How to ensure that vectors have the same width (equation)?

I'm making 4 vectors of length 8 with the following code: \documentclass{article} \usepackage{enumitem} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \newcommand\N{\...
0
votes
1answer
220 views

TIKZ drawing vector field

How can i draw a vector field like this?
3
votes
3answers
84 views

What is the fastest way to make a lot of variables as vectors?

OK, so I'm writing a lot of maths that includes a lot of vectors. Not every thing is a vector, but a lot of it is. Are there tools that can help me mark up a lot of my variables as being vectors ...
4
votes
1answer
95 views

Multiple overhead Symbols in Math Mode

I have fiddled with this for a while now without any real success, so if anyone could help me with this I'd be delighted. I'd like to add multiple overhead symbols to a character in math mode. In ...
0
votes
1answer
127 views

A subscript-labeled arrow over text

I want to create a subscript-labeled arrow over some text. At the moment this arrow is only over a single letter, but I'd like to find the general solution, provided one exists. I want the result to ...
1
vote
0answers
50 views

Reduce margin between vector with overleftarrow and index

I usually write vectors using \boldsymbol. Sometimes, I have to add an arrow using \overleftarrow. For these vectors, there's a large margin between the vector and its index. This is not the case for ...
1
vote
0answers
111 views

How to create graphics for notes of vectorial calculus? [duplicate]

I'm kinda new in this thing of Latex's Graphics, recently I'm trying to make lecture notes of multivarible calculus, but I'd like to iunclude the geometrical perpective and you better know ain't the ...
1
vote
3answers
143 views

Word Vector with the help of Tikz [closed]

I am trying to get an idea how to rebuilt the attached picture in tikz. Unfortunately, I am not really good in using Tikz at all, still I think its the best way to built it. Or is there an easier way ...
1
vote
2answers
498 views

vector with hat powered by 2

I'm having some difficulties in making a symbol like the image below, the 2 does not stay where I want, he stays above the vector symbol, or too much below, I want it to stay like in the image below: ...
1
vote
2answers
522 views

How to reduce space between letter and subscript when using \mathbf

I have simplified the question to be more clear. How to add a macro in preamble to change any occurrence of pattern \mathbf{foo}_{boo} to become \mathbf{foo}_{\!boo} For example, given this file \...
2
votes
2answers
161 views

Row vector problem

When I want to type a row vector, the design isn't good as it's showed in the figure. Normally the values inside the vector should be in the middle. Here is the code: \documentclass[review]{...
1
vote
3answers
258 views

How to change the arrow of the vector command?

Is it possible to use the (stealth) type arrow in the \vec command? In the tikz environment I use something like (\draw[>=stealth,->] (A) -- (B);) to change the arrow. I want to use this same ...
3
votes
1answer
187 views

Problem with the arrow of vectors using TIKZ and Tex4ht

I am using tikz and tex4ht in order to create a page in HTML, and when I draw a vector where I indicate its name with $\vec{u}$ for instance, the rendering with tex4ht gives a svg with weird symbols ...
0
votes
1answer
279 views

How to Typeset a Vector

How to typeset vector like this in latex I came across an article How do I typeset vertical and horizontal lines inside a matrix? which mentions below code \[ U = \left[ \begin{array}{cccc} ...
2
votes
2answers
119 views

Text under pmatrix in align environment

I'm new here and I hope I don't do anything wrong. I googled and cant somehow find a way to get text under my vectors. Heres my code: \begin{align*} \begin{pmatrix} x_{1} \\ x_{2} \\ \...
7
votes
1answer
816 views

Extracting coordinates (of a node), and the one-node-path-trick

If one has nodes (vector0) and (vector1), one method to get the first and second coordinate of ($(vector1)-(vector0)$) is to write \path ($(vector1)-(vector0)$); \pgfgetlastxy{\...
2
votes
1answer
101 views

Unusual versions of 3 letters [closed]

I'm trying to type up notes on a lecture I attended in which three capital letters (F, M, V) were clearly some very specific implementation in which none of them contain curved edges. I can't find any ...
3
votes
1answer
591 views

How to prevent the use of Type3 fonts

I am using pdfTeX v.3.14159265-2.6-1.40.17 on Arch linux. This is my relevant preamble. \documentclass[a4paper,twoside,11pt]{report} \usepackage[utf8]{inputenc} \usepackage{titlesec,...
6
votes
2answers
2k views

Creating a matrix with column or row vectors as arguments

At times it's convenient to write a matrix in terms of it's row or column component vectors instead of explicitly giving each particular scalar entry. I'm basically talking about this: I did some ...