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
7 votes
3 answers
281 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,394
0 votes
0 answers
30 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 ...
PokeLu's user avatar
  • 101
0 votes
1 answer
50 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
61 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
2 votes
1 answer
85 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
379 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
0 votes
1 answer
59 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: ...
dtn's user avatar
  • 177
1 vote
3 answers
95 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
14 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
128 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
139 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
128 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,337
0 votes
0 answers
28 views

How to Insert Wider Unit Vector? [duplicate]

I've been looking for a way to insert a unit vector into a document that scales horizontally with the size of the argument. E.g. if I try \hat{AB} or \hat{PQ} the resulting overhead hat is not wide ...
User23456234's user avatar
  • 1,475
2 votes
3 answers
715 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
72 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
67 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
145 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
45 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
  • 771
3 votes
2 answers
301 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
  • 308
1 vote
0 answers
46 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
75 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
55 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
756 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
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 $...
Aniruddh Sharma's user avatar
0 votes
2 answers
103 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
87 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
810 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
  • 71
4 votes
1 answer
139 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
  • 282
0 votes
0 answers
127 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
1 vote
3 answers
628 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
71 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
166 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
296 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
79 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
37 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
  • 556
1 vote
1 answer
340 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
  • 145
0 votes
1 answer
371 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
269 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
  • 139
0 votes
1 answer
82 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
278 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
130 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
0 votes
2 answers
396 views

Redefining latex command

Originally, I used: \hat{x} in my document with XeLaTeX. However, I now want to bold and italicise the alphabet with the hat. I tried the redefinition: \AtBeginDocument{\renewcommand{\hat}[1]{\...
user avatar
0 votes
1 answer
181 views

Help with bolding numbers with XeLaTeX

I am using: \usepackage{unicode-math} \setmainfont{Latin Modern Math} \setmainfont{Latin Modern Roman} to help typeset mathematical notation with XeLaTeX. I used the following to change typesetting ...
user avatar
6 votes
4 answers
336 views

Vector Align amsmath isn't working as intended. Is there another way than using the and '&' sign?

I am only trying to have each element aligned with the associated symbol from Eq. 1. Sorry if the question is too obvious. I tried looking at other examples, but non had the exact same issue as me. \...
johnny_1010's user avatar
0 votes
1 answer
261 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 ...
user157226's user avatar
-1 votes
2 answers
99 views

How do I write a "vector" with equations followed by a condition that is true for both in LaTeX? [closed]

How do I write the following in LaTeX? I would also need that it has the same equation number.
Andreas Bruun's user avatar
1 vote
0 answers
41 views

math-mode: \vec and vector vector norm: Vector arrownot covered [duplicate]

When using vector arrow notation (\vec) combined with \lVert and \rVert, the norm won't cover the vector arrow if a capital letter issued for the vector, but instead cover extra "white space"...
Larzeb's user avatar
  • 11
2 votes
0 answers
112 views

Adjusting horizontal spacings around product signs, in math mode

This issue may be inexistent to the eyes of most people, but it currently scroches my aesthetical eyes! I would like to adjust the spacings around the usual product signs (scalar product, vectorial ...
Cham's user avatar
  • 2,190

1
2 3 4 5 6