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
1 vote
0 answers
64 views

Vector Notation Latex [duplicate]

Does someone know how can I write this type of notation in Latex?
3 votes
2 answers
191 views

Can I issue a warning when an uppercase symbol is used in my math command?

I have been using something like \renewcommand\vec[1] {\boldsymbol{\MakeLowercase{#1}}} \newcommand\mat[1] {\boldsymbol{\MakeUppercase{#1}}} for some time now to typeset vectors and matrices. ...
0 votes
1 answer
329 views

Bold vectors in Metropolis beamer theme

On overleaf, is there a way to set the vectors in the Metropolis beamer theme in bold italics? All the usual ways (e.g. renewing the command as a '\boldsymbol{{#1}}') do not seem to work. It actually ...
0 votes
0 answers
25 views

Problem with Vector (\vv{E}) in caption [duplicate]

I'm enountering an error when using vectors from the package esvect inside a caption. It's giving me the following errors: 17: Argument of @caption has an extra }. ...t giving errors in a caption: $\...
0 votes
0 answers
19 views

Tensorial glossary entries with extra field for index notation

I am using the glossaries-extra package (https://ctan.org/pkg/glossaries-extra?lang=en) provided by TeX Live 2023 for consistently typesetting tensorial quantities in mathematical equations throughout ...
2 votes
1 answer
110 views

bold in math mode

I am looking to obtain a representation for the vector in this way I have only managed to get these two ways. Another option would be to use \varoverrightarrow{A}, but the arrow gets longer and I can'...
41 votes
7 answers
32k views

\vec{x} but with arrow from right to left?

I have two variables: \vec{x} and another one which is somehow dual to the first. Therefore I would like to symbolize the second with something similar but a leftarrow on top of the x. I already tried ...
8 votes
3 answers
533 views

What is to `\vec` as `\overleftarrow` is to `\overrightarrow`? [duplicate]

Consider \documentclass{article} \begin{document} \(\vec a:\fbox?::\overrightarrow a:\overleftarrow a\) \end{document} How do I get a math accent like \vec, not with such a huge tip or such width as \...
0 votes
0 answers
33 views

How to correctly eliminate some entries in a vector

I have a vector of vectors that can be described as {A} &= \left(\vec{a_i}\right)_{i=1}^{N} I want to discard some of its elements based on some conditions, how can formulate it? For instance, I ...
0 votes
1 answer
68 views

Tikz label angle between vectors

I'm trying to label the angle between the B vector and the y-axis but I don't know how. Can anybody help me with this? My code is the following \begin{figure}[h] \centering \begin{tikzpicture} \...
-1 votes
1 answer
66 views

How can I write this type of "V" in latex in the image below [closed]

How can I write this type of "V" in latex
65 votes
3 answers
142k views

Extensible \vec instead of \overrightarrow

Instead of changing to \overrightarrow{}, which uses a usual extensible arrow and puts it above the argument, I would like to get an extensible \vec{} symbol. My intention is to obtain a new command \...
101 votes
5 answers
643k views

vector arrow with superscript

I want to have a vector with a superscript: \vec{o}^t But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first ...
2 votes
1 answer
109 views

Two diagonal matrix in a compact form [closed]

I have a 15x15 matrix which is large and impractical to format. All the elements except the main diagonal and the one under that diagonal is zero. How to format it correctly? Like I want to use two ...
4 votes
2 answers
544 views

What is `\Vec` (capitalised)

I stumbled accors \Vec{...} (notice the capitalised command). Since it is impossible to do case-sensitive searches on Google and SE, I have to ask: What does it do? Can I overwrite it? It seems to ...
3 votes
4 answers
5k views

Vector with too short arrow

I'm trying to write two vectors like this: Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this: How can I write it correctly? That means: long vector arrow italic Hz
1 vote
1 answer
93 views

\mathit{\vec{…}} silently swallows up the vector when using latex/pdflatex and newtxmath

Feeding latex or pdflatex with \documentclass{article} \usepackage{newtxmath} \begin{document} \(\mathit{\vec{var}}\) \end{document} results in var without any arrow and without any warning on the ...
1 vote
1 answer
78 views

Primitives of multibody mechanical systems with additional explanations

I need to draw the following pictures: I tried to learn how to draw the necessary elements, focusing on the approach from this topic, because. I have never drawn such complex things in LaTeX before: ...
1 vote
3 answers
8k views

The bearing angle between two vectors?

What is the best way of showing the angle between two vectors defined by start and end points? E.g., Vector 1 points from point A to point B. Vector 2 points from point C to point D. I have tried: $...
0 votes
2 answers
78 views

arrow of appropriate length over 𝐼ʹ with NewTX and pdflatex

Feeding \documentclass{standalone} \usepackage{newtxtext} \usepackage[slantedGreek,subscriptcorrection]{newtxmath} \begin{document} \(\vec{I'}\) \(\overrightarrow{I'}\) \end{document} to pdflatex ...
1 vote
3 answers
110 views

Tikz arc (angles)

I'm struggling with the proper location of three angles. Here is the picture I want to draw: And here is what I have so far: \documentclass[12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{...
8 votes
3 answers
27k views

Code for the Notation of Vector Projections?

What LaTex code do I use to get the notation on the left of this equation, that is the projection of vector a on vector v? http://rypress.com/tutorials/mathml/media/vectors-and-functions/summary.png
2 votes
2 answers
178 views

Hide C label from the vector

I have this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings,arrows} \begin{document} \begin{tikzpicture} \coordinate (B) at (1,2); \coordinate (A) at (3,4); \...
110 votes
6 answers
223k views

Bold italic vectors

I am trying to display vectors as bold and italic. The command \mathbf sets the letters non-italic. I also googled a bit and stumbled upon \mathbf{\em y} or \mathbfit{y}, which all didn't work. I ...
10 votes
3 answers
32k views

Typesetting inline row vector

I have (another) question on typesetting inline row vectors. I'm using amsmath and mathtools. I'm aware of the smallmatrix environment. Unfortunately, the elements of the vector get scaled. This ...
1 vote
1 answer
141 views

How to display nice vectors using T1 encoding?

There seem to be a clash between two things I usually do but had never done simultaneously: using the T1 font encoding and using \overrightarrow for vectors. Indeed, I find the \vec arrow's fixed size ...
0 votes
0 answers
23 views

Vector Abstract Background # mesh grid 3d none uniform diamond style

https://www.youtube.com/watch?v=7hcxuwDKo6I Is there a way to create such colored triangle grid/mesh structure in Latex (e.g. any packages for such a task)?
2 votes
2 answers
154 views

Aligning vectors of different height at bottom

I am trying to align several vectors of different height at the bottom. I am aware that this is not the typical convention, but I would like to have vector-entries with same index at same height to ...
0 votes
2 answers
10k 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 :
2 votes
1 answer
192 views

Exam class: matrix inside \fillin answer line

I would like to make a worksheet where students write matrices inside \fillin[] answer lines. As you can see from the following example, \fillin[] seems to work fine for writing in a single number ...
2 votes
3 answers
838 views

How to make vector length look better?

How to make it look better: Code: $$\left|\overrightarrow{a}-\overrightarrow{b}\right|^2=\left|\overrightarrow{a}\right|^2+\left|\overrightarrow{b}\right|^2-2\left|\overrightarrow{a}\right|\left|\...
0 votes
0 answers
24 views

Vertical alignment of vector magnitude bars [duplicate]

I want to denote the magnitude of \overrightarrow{AB} but all the options I have found look wrong: $|\overrightarrow{AB}|$ $\left|\overrightarrow{AB}\right|$ $\vert\overrightarrow{AB}\vert$ $\lvert\...
-1 votes
1 answer
76 views

How do I draw arrows between column vectors?

I want to draw lines/arrows representing equal values in these vector entries. How can I do this?
1 vote
1 answer
74 views

Vectors of variable dimensions using \newcommand?

\usepackage{amsmath} \usepackage{bm} \newcommand{\uvec}[1]{\bm{\hat{#1}}} % Bold hatted unit vectors \newcommand{\BasisChar}{\uvec e} \newcommand{\Element}[2]{#1_{#2}{\BasisChar}_{#2}} % \Element{a}...
2 votes
3 answers
161 views

How To Achieve Boxed Matrix entries

I am wanting to see how one can achieve the following in LaTeX: \tilde A, \hat A, \tilde B, \hat B, \tilde C^{-1}, \hat C^{-1} and D are all matrices. $\Lambda$ is the new matrix formed from the ...
0 votes
1 answer
51 views

Vector arrows that cross tall characters (b, d, h, k)

The names of my vectors often have ascenders, e.g. \vec b and \vec d. By themselves, they look fine, but I have two issues with them: They make the letters so tall that they cause whitespace above ...
4 votes
2 answers
669 views

Arrow vector notation

I'm using \overrightarrowto denote vectors because I didn't like the output \vec was giving in some cases. The problem is I don't like \overrightarrow either. I'm getting something that kinda get ...
1 vote
0 answers
87 views

Vector arrow over b is bad when closing parenthesis

I've noticed that a vector arrow over the letter b is always very bad looking when b is followed by a closing parenthesis. It looks that this is a unavoidable uglyness... someone got some clue about ...
1 vote
1 answer
88 views

Get vector from array .csv file

I hope you can help me. I want to create a variable with name 'x' with the values of the column with header 'x' of the array .csv file called 'data' (please see below). Could you help me do it? .csv ...
1 vote
0 answers
78 views

Writing norm2 of a column vector

I am writing my first Latex document and I am having some struggles. I need to write a cost function as the norm2 of a column vector and I would like to have a numbered equation label. So far I have ...
2 votes
1 answer
255 views

How to plot the DFT transformation of a vector with tikz/pgfplots?

My question seems to be simple but still I could not find any answer for that. Assume that we have a vector and its DFT which I computed it in R. > x <- c(3,9,4,2,5,6,2,6) > x [1] 3 9 4 2 5 6 ...
3 votes
1 answer
1k views

double-underline notation for matrices and single-underline notation for vectors [duplicate]

This is a fairly nice solution to double-underlines for matrices and single-underline for vectors: \def\mat#1{\underline{\underline{#1}}} \def\v#1{\underline{#1}} However, it doesn’t work well when ...
0 votes
0 answers
35 views

Overlapping vector heads

\documentclass{article} \usepackage{amsmath, amsfonts, chngcntr, textgreek, tikz, siunitx} \begin{document} \section{Kinematics} \Problem A ship moves along the equator to the east with velocity $...
0 votes
2 answers
111 views

how to write this in latex form

I can't seem to find a code that would give me this format.
10 votes
4 answers
107k views

How to type a particular kind of unit vector?

I write unit vectors frequently. Right now, the best thing going for me is to define: \newcommand{\uvec}[1]{\boldsymbol{\hat{\textbf{#1}}}} and then do \uvec{i}, \uvec{j}, and \uvec{k}. I like the ...
1 vote
3 answers
1k views

How do I type a vector concatenation symbol like this one?

I am trying to find out a way to type this symbol illustrated below by latex, which means vector concatenation. Does anyone know it? Thanks a lot!
0 votes
0 answers
162 views

Vector arrow is not on the letter but shifted to left

I'm trying to type a vector notation over a letter but it ends up with a failure. It looks like the vector arrow and the letter I want to make a vector take two different spaces. Here's the code: \...
4 votes
1 answer
143 views

draw a relationship between gradient vector and derivative

how can I draw this? I was trying that but it doesn't work because I need the dotted lines and need points $a, \nabla f(a)$ \documentclass{article} \usepackage[utf8]{inputenc} % accents \usepackage{...
1 vote
3 answers
1k views

How to typeset a curly braced column vector

How to write this Ignore underbrace and the vector's content. Thanks.
0 votes
1 answer
206 views

how to draw the figure in TiKz for tangential and normal component of vector at the point of curve

how to draw the following figure in TikZ? compile to use XeLaTeX. I tried something already as below \begin{tikzpicture}[tangent/.pic={\draw[-stealth] (0,0)--(2,0);}] \draw[mydarkblue,line width=...

1
2 3 4 5 6