Skip to main content

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
0 votes
2 answers
56 views

How can I write $\begin{pmatrix}1 // 2\end{pmatrix}$ in the main text? [duplicate]

It occured to me that writing a 2x1 vector i.e (a "over" b) in Latex is not as easy as I thought. I use normally the form $s=\begin{pmatrix} a\\ b \end{pmatrix}$ but this creates a ...
Superunknown's user avatar
0 votes
0 answers
51 views

Pst-Vectorian Ornaments---Are They Free to Use Commercially without Attribution?

I am planning on using some of the the ornaments found in the psvectorian package in a book I am typesetting with LaTeX. I am under the impression that these vector images are free to use commercially....
DDS's user avatar
  • 9,768
1 vote
2 answers
98 views

Orthogonal direct sum typeset (with hat)

i.e. I would like this as orthogonal direct sum, which is a specific one. Since there is no any post about this, can anyone help? NO $\widehat$, please. Thanks.
Un petit mensonges's user avatar
1 vote
1 answer
107 views

Encountering a warning while running the Overleaf document, "Package amsmath Warning: Unable to redefine math accent \vec."

Following are the packages which I have used in the document. \usepackage{amsmath} \usepackage{lipsum} \usepackage{graphicx} \usepackage{amsfonts} \usepackage{algpseudocode} \usepackage{algorithm} \...
Thushara G.A's user avatar
1 vote
0 answers
65 views

Vector Notation Latex [duplicate]

Does someone know how can I write this type of notation in Latex?
Spacek's user avatar
  • 11
3 votes
2 answers
206 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. ...
Mr Tsjolder from codidact's user avatar
0 votes
0 answers
26 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: $\...
barley's user avatar
  • 1
0 votes
0 answers
24 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 ...
Paul Hofer's user avatar
2 votes
1 answer
135 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'...
Guillermo LP's user avatar
8 votes
3 answers
750 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 \...
LSpice's user avatar
  • 1,468
0 votes
1 answer
80 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} \...
luki luk's user avatar
-1 votes
1 answer
67 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
Memristor's user avatar
  • 119
2 votes
1 answer
118 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 ...
Bepo-san's user avatar
4 votes
2 answers
660 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 ...
Gargantuar's user avatar
  • 1,241
1 vote
1 answer
86 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: ...
ayr's user avatar
  • 187
1 vote
3 answers
132 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{...
JoudaBouda's user avatar
0 votes
0 answers
24 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)?
InLaw's user avatar
  • 101
1 vote
1 answer
150 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 ...
Romain Bricout's user avatar
2 votes
2 answers
155 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 ...
Jannik's user avatar
  • 23
2 votes
1 answer
219 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 ...
EthanAlvaree's user avatar
  • 1,421
2 votes
3 answers
917 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|\...
Vladyslav Rehan's user avatar
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\...
James's user avatar
  • 59
-1 votes
1 answer
78 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?
LaTeX Learner's user avatar
1 vote
1 answer
76 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}...
Scot Parker's user avatar
2 votes
3 answers
168 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 ...
Vegeta the Prince of Saiyans's user avatar
0 votes
1 answer
56 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 ...
Mew's user avatar
  • 843
4 votes
2 answers
982 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 ...
tulio's user avatar
  • 338
1 vote
0 answers
112 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 ...
P. Oliva's user avatar
  • 112
1 vote
1 answer
91 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 ...
el_maxx's user avatar
  • 163
1 vote
0 answers
91 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 ...
Giuseppe Milazzo's user avatar
3 votes
1 answer
2k 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 ...
puf's user avatar
  • 57
0 votes
0 answers
38 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 $...
Aniruddh Sharma's user avatar
0 votes
2 answers
112 views

how to write this in latex form

I can't seem to find a code that would give me this format.
onazor's user avatar
  • 11
1 vote
1 answer
95 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 ...
user avatar
1 vote
3 answers
2k 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!
Jagger's user avatar
  • 81
4 votes
1 answer
146 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{...
wessi's user avatar
  • 292
0 votes
0 answers
180 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: \...
pi.mat's user avatar
  • 1
2 votes
3 answers
1k views

How to typeset a curly braced column vector

How to write this Ignore underbrace and the vector's content. Thanks.
Michael West's user avatar
0 votes
2 answers
84 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 ...
user avatar
0 votes
1 answer
224 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=...
Ben's user avatar
  • 105
2 votes
1 answer
529 views

Defining a new \Vec command to use with the esvect package

The esvect package uses the command \vv{v} to write an arrowhead above the letter in its argument (i.e., a vector), and the command \vv*{v}{n} to write a vector v with a subscript n. I would like to ...
PolyPhys's user avatar
  • 123
2 votes
2 answers
108 views

When using kpfonts, the vector versions of i and j don't behave nice with the physics package

When attempting to typeset unit vectors with the physics package shorthand \vu the following problems occur when using kpfonts which do not occur when using computer modern. \vu{i} and \vu{j} do not ...
OmnipotentEntity's user avatar
0 votes
1 answer
61 views

How do I get the bold round lower case x, like the one in the deeplearningbook for a vector?

the image below comes from https://www.deeplearningbook.org/contents/linear_algebra.html How do I get the x pointed out by the red arrow? I've tried $\boldsymbol{\mathit{x}}$ $\mathbf x$ both of ...
JJJohn's user avatar
  • 576
1 vote
1 answer
696 views

How to put a ~ (tilde) UNDER vectors i and j

Can anyone please how me an easy way to place a tilde (~) UNDER vector that is expressed in terms of i, j and k. I have seen the package undertilde mentioned, found at this link: https://www.ctan.org/...
Stephan's user avatar
  • 245
0 votes
1 answer
592 views

I have a problem in inserting the vector symbol

I have a problem with \vec command: instead of the vector symbol it inserts the tilde. I don't see what part of the code is wrong: $$\mathbf{\Gamma(\vec{B}) = \mu_0 I + \frac{d\phi(\vec{E})}{dt}}$$.
Lorenzo Molinati's user avatar
0 votes
1 answer
394 views

prevent the vector arrow from centering over the letter + subscript

I want to typeset a vector with an arrow over the top that has a long subscript. My approach makes the vector arrow center over the letter including its subscripts, but I want the arrow to be centered ...
M S's user avatar
  • 149
0 votes
1 answer
95 views

Plotting the path left by a vector rotating around the z axis and towards the xy plane with tikz-3dplot

I have a vector along the z axis and I want to show the path traced by the point of this vector while it is spiraling down towards the xy plane. In theory, this path should be traced on the surface of ...
offgabriele's user avatar
2 votes
3 answers
336 views

Too much space below norm of vector

I'm trying to find the right definition for the norm of a vector. I used this macro before : \newcommand{\norme}[2][]{\ensuremath{\left\lVert #2 \right\rVert_{#1}}} (optionnal argument is to specify ...
Nicolas FRANCOIS's user avatar
0 votes
0 answers
34 views

LaTeX Never Finishes Compiling After Renewing a Command [duplicate]

I have a document that frequently uses the \vec command from the amsmath package. I decided I wanted to make all the vectors boldfaced, so I added the following \renewcommand: \renewcommand{\vec}[1]{\...
VirtuallyRealistic's user avatar
1 vote
0 answers
158 views

Making a tikz vector drawing code from png

I have a .png image I would like to convert the edges into a vector drawing code from the path. An example where I have seen this done is in this poster template: https://www.overleaf.com/latex/...
Allentro's user avatar
  • 135

1
2 3 4 5 6