Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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}.

2
votes
2answers
64 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
2answers
49 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
36 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
167 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
9 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 ...
1
vote
1answer
158 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
44 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
53 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
233 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 ...
3
votes
4answers
156 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 ...
6
votes
1answer
136 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
172 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
66 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
282 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
49 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
133 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
71 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
53 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 ...
0
votes
0answers
69 views

How to write a curly bold style for velocity symbol [duplicate]

How can I write the velocity (v) in a style which is bold (as a vector) and also curly and italic?
1
vote
1answer
104 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
400 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
373 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
190 views

TIKZ drawing vector field

How can i draw a vector field like this?
3
votes
3answers
81 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
72 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
105 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
43 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
94 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
128 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
409 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
414 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
152 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
215 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
163 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
254 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
102 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
721 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
97 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
570 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,...
7
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 ...
5
votes
1answer
154 views

How to customize a newcommand?

I want to customize a command \myvec{arg}. If the argument is a single character, then \bm{arg} else then \vv{arg}
4
votes
3answers
151 views

Defining a macro for printing vectors with SplitList in xparse

please look at the following example: \documentclass{book} \usepackage{xparse} \usepackage{amsmath} \makeatletter \NewDocumentCommand{\vv}{ s > { \SplitList { ; } } m }% {\begin{pmatrix}% \...
1
vote
0answers
604 views

How to install Xfig [closed]

I want to install Xfig. I downloaded Xfig from here, but I can't install it. I have searched a manual on the internet. But I haven't found useful manual. Could any one help me? I am using Windows 10. ...
3
votes
2answers
7k views

Latex vector notation (arrow)

How do I get such a notation for vectors in LaTeX?
1
vote
4answers
808 views

Circular Motion

I'm trying to draw three vectors that are tangent to the circle, as shown below. Is it possible to use \foreach to duplicate one vector around the circle? If so, can someone help me to draw this ...
1
vote
1answer
448 views

How to write F'P vector in Latex?

I've been trying to Type the following for a long time: or the vector F'P. But the symbol ' is appearing as appearing as an apostrophe symbol and the Vector arrow is quite small. I wrote the ...
5
votes
2answers
778 views

How to put more than one side braces for a vector

This code gives a single side brace for the vector (shown in black in image below).How can I modify this code to get two side braces (as shown in pink picture below) instead of single $${\bf x} = ...
6
votes
1answer
479 views

How can I increase the length of the vector sign to be almost equal to the argument?

The standard LaTeX vector looks fine over the lowercase arguments, but too short over the uppercase and multi-letter arguments: \documentclass{article} \begin{document} \begin{math} \\ \...
3
votes
1answer
2k views

Velocity Field / 3D Vector Fields in Tikz or PGFplots

I would like to draw "Velocity field" or "Vector Field" like: I have tried using PGFplots "quiver" but this only works for vector fields on SURFACES: \begin{tikzpicture} \begin{axis}[ domain=0:1, ...
3
votes
1answer
13k views

vector bold instead of arrow

I was trying to change the standard result for the command $\vec{}$ instead of the arrow above I would like to have it bold and not in italic. For instance: x The solutions I found did not work well ...