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

learn more… | top users | synonyms

1
vote
2answers
86 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
3
votes
1answer
87 views

Vectors images in pdflatex

I have some issues to have a good quality for images (due to scaling I presume) when compiling to pdflatex. I read if I convert bitmap images to vector images, it would be better (png -> pdf for ...
7
votes
5answers
440 views

How to change all \vec{} to \bf{}

I'm writing a paper and I used \vec{} to express all vectors. Now, I changed my mind and want to write them in bold letters using \bf{} for instance. Is there a fast way to change all that's been ...
8
votes
1answer
85 views

How can I add space before my unit vectors?

This is how I'm currently typesetting vectors: \documentclass{article} \newcommand{\ih}{\mathbf{i}} \newcommand{\jh}{\mathbf{j}} \newcommand{\kh}{\mathbf{k}} \begin{document} $1/z \ih + \jh - ...
1
vote
1answer
74 views

derivative of vector using prime symbol [duplicate]

The problem is shown on the picture. I want to use prime symbol for derivative of vector, but as you can see, it doesn't look well (prime symbol and vector arrow are 'glued' together). What would be ...
0
votes
0answers
22 views

Is there a built-in command like `\sin` except for curl? [duplicate]

I know that we can write \sin x to get a non-italic sin. I would have expected there to be a similar command for curl, so I could write \curl \mathbf{F}. Is there such a command, or should I define my ...
2
votes
1answer
55 views

Vector with boldface and a hat on top

Could one of you help me on how to get the following: I need a boldface vector with a hat on top, something like the vector with boldface and a hat as below: ${\mathbf \hat{p}}$ or $\bm{\hat{p}}$ ...
4
votes
1answer
71 views

Switch i, j dots with an arrow

I'm writing a Physics template and I came across this issue. I want the i, j to have vector lines instead of those dots. How can I do it?
4
votes
2answers
324 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?
6
votes
3answers
241 views

Vector vs. Raster: Is there any reason to include (larger) vector images into a LaTeX document?

I always prefer to keep my images in my library in vector form, so that they can be easily modified or scaled later if needed. However, when I am actually using these pictures in a LaTeX documented, a ...
5
votes
2answers
115 views

Defining a command and its starred version with different number of arguments

I want to create the commands: $\vecbi*{A}{s}$ and $\vecbi{A}$ To write bold vectors in my text. However, I have tried the following code, but I am still stucked without a solution. \makeatletter ...
0
votes
0answers
36 views

Aliased arrow for vector

I write a vector in a tikzpicture and the text of the vector is rotated. The arrow on the vector is aliased and very ugly. I obtain this arrow using esvect package (for defining arrows with adjusted ...
0
votes
0answers
70 views

providecommand for column vector

I'm trying to provide a command for a column vector. I defined this in the header: \providecommand{\vector}[3]{\ensuremath{\left( \begin{matrix} #1 \\ #2 \\ #3 ...
3
votes
2answers
60 views

Alignment of labeled vector with other vectos

I would like create 3 line vectors that are directly aligned to each other. I would to label the first vector (here example A, B, C ...) However the alignment (and the size of the brackts does not ...
0
votes
0answers
49 views

Text shape to use for vectors with arrows

Say we have the point P = (x, y, z) in three dimensional space. Say I have this vector from the origin to my point P called v, which I would denote in LaTeX as \vv{v} = (x, y, z) with the \vv command ...
2
votes
3answers
268 views

How to define vectors when used in equation

So in short I want to have something that looks like this: So far I managed to get to the following output: with the code as follows: \documentclass[12pt, a4paper] {article} ...
4
votes
3answers
162 views

Vectors and indices

I'm trying to write a vector, r, which is raised to the power two. Currently this is what I'm using $\vec{r}_{i}^{2}$ but the vector arrow and power of two are overlapping. Is there anyway I could ...
3
votes
0answers
147 views

How to draw the vectors from point to point

I have the file "gradmethod.dat" that contains the values ​​of the 3D coordinates: "gradmethod.dat" is 0.4166337995 -0.0003214561 0.1735863062 0.0036860331 0.0076438475 0.0014742969 ...
0
votes
0answers
37 views

Vectors symbols not rendering in exponentials

Hi all I am currently having trouble with vector notation I am using the latest version of Miktex and Texnic center. When I enter this code e^{i\vec{T}\cdot\vec{r}} = \Pi_\eta e^{iT_\eta r_\eta} ...
0
votes
1answer
316 views

Bold or arrow vectors with new command

Im quite new to latex, I would like to make either bold or arrow vectors. I found many solutions to this but i cant see where i am doing it wrong, my code is \documentclass[a4paper,11pt]{report} ...
3
votes
1answer
131 views

Multicolumn vector

How can I create a vector like this one? It is similar to this question, but with additional columns.
3
votes
2answers
319 views

Vectors with Arrow Under Symbol

My professor uses arrows below the symbol to denote vectors (example below), and I couldn't figure out how to do this in LaTeX. I tried \renewcommand{\vec}[1]{\underset{\rightarrow}{#1}} but it ...
1
vote
1answer
158 views

Unable to typeset vectors using physics package

I'm trying to typeset the equation for the dot product like this (using the physics package). $$ \va{A} \dot \va{B} = abs{A}abs{B}\cos{\theta}$$ However, LaTeX keeps throwing this: ./AP Physics ...
2
votes
1answer
293 views

Asymptote SVG export as vectors, instead of rendered. How?

TL;DR : my question is in bold below. Preamble: I'm pretty new to Latex. Been fiddling around with both MikTex and TexLive for a few days. Have got a working setup on Windows (with ghostscript, Image ...
2
votes
1answer
219 views

\dot{\vec{\hat{x}}}} fails to compile with svjour3

The title says it all. I would like to typeset the time-derivative of a vector whose symbol shall be \hat{x}. The documentclass svjour3 is used in Springer journals. The following MWE reproduces the ...
8
votes
3answers
2k views

Inline row vectors with smallmatrix

I typeset inline column vectors with the smallmatrix environment from the amsmath package: $\left(\begin{smallmatrix}a\\b\end{smallmatrix}\right)$ Unfortunately, when I do the same with row vectors ...
4
votes
2answers
2k 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 ...
4
votes
1answer
828 views

Why is the Zero Vector so Big?

The esvect package seems to produce a zero vector with height larger than I would have expected. The one shown in red is produced using $\norm*{\Vec{0}}$ and seems to have the delimiters resized ...
2
votes
2answers
449 views

What notation is used to show that a variable is a matrix? [closed]

When a variable is a vector, it is common to put an arrow above the variable, shown bellow \vec{x} When a variable is a matrix, sometimes a capital letter is used to distinguish it from the ...
2
votes
1answer
155 views

Column Vector Sweave \Sexpr

I'm having big problems trying to compile a file using Sweave displaying a vector defined in an R chunk, as a column vector in Latex using pmatrix, I have something like this: ...
1
vote
0answers
86 views

Remove off-page vertices in PDF [closed]

I have asked a similar question before, but this time my goal is different: I have a PDF containing blueprints on a single page. There object it depicts is drawn a couple of times: from the side, ...
6
votes
1answer
234 views

Why would esvect produce pixelated arrows?

When using esvect (MiKTeX, pdflatex) I get the following undesirable result: From this: \documentclass{article} \usepackage{esvect} \begin{document} \[\vv{u}\] \end{document} The arrows are ...
10
votes
2answers
621 views

Consistent macro for bold upright vectors in both latin and greek

I’m using pdfLaTeX, and I want all vectors I typeset to be in bold, upright font. Unfortunately, based on whether the symbol is latin, lowercase greek, or uppercase greek, there are different commands ...
4
votes
2answers
369 views

Array within Align*

LaTeX fresh beginner here. Using TexStudio. In the second row of an equation array (using align*), I am trying to multiply a row vector by a column vector, using the array command. Apparently the ...
1
vote
1answer
172 views

Code compilation problem - example on Tikz vectors

I would like to use the following code segment: Code \usetikzlibrary{arrows} \usetikzlibrary{calc} \begin{tikzpicture}[line/.style={>=latex}] \coordinate (V1) at (1, 1.3); \coordinate (V2) ...
7
votes
2answers
2k views

2D and 3D vectors in Tikz

I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire: I just need the first quadrant of the Cartesian coordinate system for ...
7
votes
1answer
791 views

“Double headed” vector

I want to have a double headed vector. I tried \overleftright, but the appearance is all but pretty. I would like to get the same kind of symbol, but with \vec appearance. Is it possible?
7
votes
6answers
846 views

derivative with respect to a vector

\[ \frac{\partial f} {\partial \left( \begin{array}{l} x \\ y \\ z \end{array} \right) } \] gives Can you help me to improve this by reducing the size of the denominator?
4
votes
1answer
461 views

Bold bracket row vector/matrix

I want to define a matrix-vector product, which is defined something like this: \left[\begin{array}{cccc} A & B & C & D \end{array}\right] \left[\begin{array}{c} u \\ v \\ w \\ y ...
4
votes
1answer
113 views

In standard, interpret characters as vectors

I need to write many equations with way more matrices and vectors than scalars and I would like to have LaTeX interpret "normal" characters as vectors and matrices. Consequently I need to mark the ...
3
votes
2answers
264 views

Typesetting a Row Vector - Vol 2

If one would just read the question, one could easily understand that this is not a duplicate. Previously in this question, it was asked how to typeset a column vector. Two answers were present, ...
8
votes
2answers
195 views

Non-slanted vector sign for numbers

I recently begun to worry about using \vec on numbers. The arrow is both off-center and slanted, which only works for italics. Is there a simple command to typeset number vectors properly? $\vec{x}$ ...
7
votes
2answers
425 views

Block matrix with vectors

I'm trying to typeset matrices composed of row vectors like this: It uses a bar to represent row vectors. I'd also like vertical bars to represent column vectors. What is the best way to achieve ...
4
votes
1answer
156 views

Import \vec from fouriernc?

I am wondering how to import the \vec font from fouriernc (which is much better designed than that in other fonts families, but I don't like other designs in fouriernc) without affecting the font ...
7
votes
1answer
343 views

Crop off-page vertices in vector graphic PDF

I have a PDF that contains one page, with a vector image on it. I want to use the left half of the image on the backside of the front cover-page of my work, and the right half on the front of the ...
0
votes
0answers
28 views

Undefined control sequence error when using \abs [duplicate]

I have the following line of code that is throwing up an undefined control sequence error: \begin{equation} \vec{N} = \frac{\vec{T'}(t)}{\abs{\vec{T'}(t)}} \end{equation} The problem is with the ...
0
votes
2answers
725 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: ...
11
votes
1answer
437 views

Telling Tikz/Tex to produce raster instead of vector in resulting PDF

I am using MikTeX and Tikz package to generate images (playing cards on A4 paper). The result is nice, but slow (too many vector objects, printing is hell slow). Is there a way to directly tell TeX ...
16
votes
3answers
1k views

How to typeset a primed vector

I write a vector with an arrow above the letter using \vec{p} and sometimes the vector needs to be primed using ' (or ^{\prime}, equivalently). However, neither \vec{p}' nor \vec{p'} looks ...
2
votes
1answer
746 views

Vector Formulas Representation in Latex

I want to write different formulas related vectors like subtraction, addition in latex, but don't know how to do this as I am new to Latex. I searched a lot but did not find any useful result.