2022 Developer Survey is open! Take survey.

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
0 answers
37 views

Writing out vectors in a figure [closed]

I have a problem with writing a 2x1 vector in my figure (code below). They will only become 2x2 matrices with the element in the diagonal as one can see in the picture. Code: \def\arrowlength{2cm} \...
user avatar
0 votes
2 answers
59 views

how to write this in latex form

I can't seem to find a code that would give me this format.
user avatar
  • 11
1 vote
1 answer
39 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
0 votes
0 answers
40 views

Macro for inline column vector

I try to make a macro for typesetting inline column vector based on this post: Typesetting inline row vector May I ask if there is a way to modify it for inline column vector like ? I define a new ...
user avatar
1 vote
3 answers
114 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!
user avatar
  • 71
3 votes
1 answer
96 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{...
user avatar
  • 252
0 votes
0 answers
52 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: \...
user avatar
  • 1
1 vote
3 answers
41 views

How to typeset a curly braced column vector

How to write this Ignore underbrace and the vector's content. Thanks.
user avatar
1 vote
0 answers
32 views

arrow of appropriate length over 𝐼ʹ with TeX Gyre Termes Math and lualatex or xelatex

Feeding \documentclass{standalone} \usepackage[math-style=ISO]{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Termes} \setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ok. \setmonofont{TeX Gyre ...
user avatar
0 votes
2 answers
47 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
76 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=...
user avatar
  • 33
2 votes
1 answer
79 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 ...
user avatar
  • 123
2 votes
2 answers
47 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 ...
user avatar
0 votes
1 answer
22 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 ...
user avatar
  • 470
1 vote
1 answer
88 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/...
user avatar
  • 35
0 votes
1 answer
64 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}}$$.
user avatar
0 votes
1 answer
121 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 ...
user avatar
  • 139
0 votes
1 answer
51 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 ...
user avatar
2 votes
3 answers
165 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 ...
user avatar
0 votes
0 answers
31 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]{\...
user avatar
1 vote
0 answers
63 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/...
user avatar
  • 135
0 votes
2 answers
88 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
83 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
320 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. \...
user avatar
0 votes
1 answer
114 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 ...
user avatar
-1 votes
2 answers
63 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.
user avatar
1 vote
0 answers
27 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"...
user avatar
  • 11
2 votes
0 answers
58 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 ...
user avatar
  • 2,024
6 votes
2 answers
294 views

Define a macro for a vector to display differently in inline/display math mode

I'd like to define a command that defines a vector based on whether it's in display or inline math mode. I've tried this so far, but it hasn't worked: \newcommand{\ve}[1]{\ensuremath{% \mathchoice{...
user avatar
  • 173
0 votes
2 answers
113 views

Create two vectors in the same row

I have two vectors y and b one over the other. I wish to have the two vectors on the some row, in order to save pages in my document. \begin{align*} y = \begin{pmatrix} ...
user avatar
0 votes
0 answers
34 views

Name of the Vector symbol found in electrostatics [duplicate]

today I came across a vector symbol in electrostatics denoting the position vector of a test charge with respect to a source charge. The symbol is attached. I searched for the same on the internet but ...
user avatar
  • 1
0 votes
1 answer
115 views

Put \overrightarrow in section title [duplicate]

I've been trying to put a vector in the title of a section but no matter what I've tried, I keep getting the same error message (see below). I am using pdfLaTeX. \section{Das Drehmoment $\...
user avatar
0 votes
1 answer
20 views

How to type frameshift-operator | Custom vector operator

I have to use this frameshift-operator, but I could not find a way to reproduce it. I've only found \vec{} and the \vv command from the esvect-package, but the index is at the wrong side of the arrow ...
user avatar
  • 3
2 votes
2 answers
165 views

Recommendations for markup of vectors and matrices [closed]

Up to now I was used to denote vectors by bold italic symbols and matrices by upright bold symbols. Now that I learned that by the norm ISO-80000 also matrices should be written using italic letters, ...
user avatar
7 votes
1 answer
423 views

What do \vec{\mkern0mu x} and \vec{{} x} mean?

In the following posts and many other besides [0] [1], I've seen people use \vec{\mkern0mu x}, \vec{{} x}, and variants thereof to adjust the vector arrow's kerning. How do these work? What's the ...
user avatar
  • 854
1 vote
1 answer
104 views

Vector too wide

I am trying to include a very large vector in my tex document. However, the vector is too wide and cuts in the right side. I want to 'shift' it a little bit to the left so it fits to the site without ...
user avatar
0 votes
0 answers
65 views

Convert Excel spreadsheets data to LATEX graphic

Does anybody know a xla to Convert Excel data to a LATEX native graphic? For tables we can use this module https://ctan.org/tex-archive/support/excel2latex?lang=en I know you can save as a picture but ...
user avatar
2 votes
2 answers
375 views

Conventional notation for a vector that is half zeros and half ones [closed]

I was wondering if there was a mathematical convention for expressing the notion of "a vector which is half zeros and half ones". If you consider the two separately, I guess one could write $...
user avatar
2 votes
1 answer
84 views

Tip of a distorted and curved vector

Supposing to have this MWE, \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{tikz} \newcommand\Bcirc[1][3]{\mathbin{\tikz[baseline=-#1]{\draw[thick](0,0)circle[radius=#...
user avatar
  • 46.2k
0 votes
0 answers
70 views

Problem resizing vector image: Font is also resized

I have created my graph as vector format (.eps) with 12pt title size with Python. However, when I import it in Latex and resize the image (such as [width = \textwidth]), as expected, everything gets ...
user avatar
  • 1
0 votes
1 answer
193 views

Insert a big word embedding vector in latex

I am using gensim to get the word embedding vector for the token 'cow'. from gensim.models.word2vec import Word2Vec import gensim.downloader as api corpus = api.load('text8') model = Word2Vec(corpus) ...
user avatar
  • 105
1 vote
1 answer
150 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 ...
user avatar
1 vote
1 answer
126 views

Dot over column vector

I create column vectors using: \newcommand*\colvec[1]{\begin{pmatrix}#1\end{pmatrix}} How do I put a "dot" above the vector? \colvec{q\\ f(q, \dot{q}, u)} I mean, I don't want \dot to be visually ...
user avatar
  • 153
0 votes
0 answers
17 views

Problem in horizontal vector width [duplicate]

Good morning everyone, I have a problem using the command $$\mathbf{u} = \begin{Bmatrix} u_i & v_i & w_i & \theta_i & \phi_i & \psi_i & u_j & v_j & w_j & \theta_j &...
user avatar
1 vote
1 answer
95 views

Can you please help me write this out in TikZ

I need help writing this diagram in tikz and my skills are not yet advanced enough to do it. Can any of you help me? Please? so far all I have done is this \begin{tikzpicture} \draw (2,2) circle ...
user avatar
3 votes
2 answers
216 views

Automatically bold certain letters in math (for vectors, matrices), but not if followed by underscore with indices

I am looking for a way to automatically bold certain characters in math mode (for vectors and matrices) but not if the character is followed by an underscore. The substitution of normal characters to ...
user avatar
  • 173
1 vote
1 answer
226 views

Vertical vectors to horizontal vector with arrows

I am trying to create the following diagram in Tikz. And i've got some code for some parts but im struggling with a few basics and connecting it all. Mostly I'm looking to understand how to create ...
user avatar
  • 195
4 votes
1 answer
84 views

Should an accent be used before or after boldface?

When I want to have an accent (e.g. hat, tilde or dot) be used on a vector. Should that accent also be boldface, or not? E.g. should I write \mathbf{\hat{a}} or \hat{\mathbf{a}}? I have also asked ...
user avatar
  • 67
6 votes
1 answer
157 views

Row vector with equal spacing

In this MWE the alignment of the last element in the tuple is not nice. How can I get the spacing for the last element at the same size as the others? The description "n+1" may overlap the comma from ...
user avatar
10 votes
5 answers
4k views

How can one denote vectors using a squiggly line beneath them in LaTeX?

I know that LaTeX has the \vec{} command to denote vectors with an arrow above them, but I was taught to denote vectors using a squiggly line beneath them. Is it possible to denote vectors like this ...
user avatar

1
2 3 4 5