{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
0answers
25 views

Automatic rasterisation of EPS images?

I'm writing a document which contains a large number of vector images. Since EPS was the easiest way for me to get them into the document, all vector images are in that format. However, since my ...
1
vote
0answers
28 views

pgfplot: 3D version of a plane and its the gradient vector

Checking pgfplot for the addplot3-command was easy! I've found this very nice possibility to plot a plane: \begin{tikzpicture} \begin{axis} \addplot3[ surf, mesh, ] {x+y+1}; \end{axis} ...
2
votes
1answer
47 views

Correct typesetting for vectors with subscript

Instead of the arrow notation \vec{a} vectors in scientific journals are often represent in bold font \bold{a}. My question is if I have a vector with a subscript is it conventional to use ...
1
vote
1answer
18 views

labelling entries in a column vector [closed]

I wish to have a square column vector where the entries are labeled. I know I can kind of do this with bordermatrix: \[ \bordermatrix{ & \cr a & 1\cr b & ...
1
vote
3answers
67 views

how to set vector and tensor symbols with horizontal bars above

(Newbie) hi, how do I produce vector (text symbol(s)) with horizontal bar over it? Better, if possible, would be the \rightharpoonup mark above the letter (or word) that is the vector in ...
1
vote
0answers
38 views

How do you typeset a fraction of vectors?

I have my latex document setup as follows: % UniversalHyperbolicGeometry.tex \documentclass[12pt]{book} \usepackage{imakeidx} \usepackage{xcolor} \usepackage{setspace} \usepackage{lipsum} ...
0
votes
0answers
42 views

What are recommended notations for 2nd order tensor and trace of the tensor?

In this forum, there several posts asking about specific notations for second order tensors, see in particular Double-bar notation for second-order tensors, Double sided arrow notation for ...
2
votes
1answer
68 views

Overlay vector field and contour plot with tikz and gnuplot

I've been trying to produce a plot which has a contour of the magnitude of a vector field and the same vector field plotted on top. There seems to be no problem with generating the contour, but I ...
0
votes
0answers
22 views

How do I make arrows in vectors for lowercase letters line up in equation? [duplicate]

\vec{a} + \vec{b} = \vec{b} + \vec{a} Makes arrow in a go lower than in b, how do I line them up?
2
votes
1answer
73 views

How to prevent \vec from making \left(\vec{f}\right) ugly?

It seems like \vec makes \left( and \right) expand in an ugly fashion: \begin{align*} \ g(\vec{f}) \ g\!\left(\dot{f}\right) \ g\!\left(\dot{\vec{f}}\right) \ g\!\left(\vec{f}\right) ...
3
votes
1answer
36 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); ...
1
vote
0answers
59 views

Inkscape unable to render latex text

I didn't really know if this was a question for the latex or graphic board, then sorry if I am in the wrong place. I am trying to render some Latex text in Inkscape (on Windows) but I keep getting ...
0
votes
0answers
49 views

pdf_tex to pdf while maintaining font and size consistency

I am using this workflow for figures in a latex document: Generate vector pdf from an external software -> Edit and refine the pdf with inkscape -> Save as pdf_tex which generates two files, a pdf ...
1
vote
0answers
28 views

Adding vertical padding to characters in math

This is my first post here, so please bear with me. I'm writing a dissertation with a heavily modified version of the book cls. This dissertation is very equation-heavy. I'm writing vectors in ...
3
votes
1answer
104 views

How to override the \vec{} command so that we have an underline?

I have been using the \vec{} command for specifying vectors in this paper I am writing, but I would like to denote vectors with just an underline, and I would like to keep using the \vec{} command, so ...
1
vote
1answer
70 views

Vectors from functions in tikz 3d plots

I designed this graphic but now I want to make a change. I would like to sample with 10 points the three functions that define the coordinates x, y, z. I would then create 10 vectors that depart from ...
3
votes
2answers
199 views

How to control size of matrix brackets [closed]

The brackets in this matrix-vector equation have different heights. How can we use a standard size or, even better, ensure that all terms in an equation have a common size? Minimum Working Example: ...
2
votes
1answer
66 views

The sign of vector and degree are too close [duplicate]

Why is the vector sign and "2" are too close? Never faced it before..... I wrote: \vec{p}^2
8
votes
3answers
263 views

macro for writing vectors

I want to simplify codes for writing vectors. For example, if I write \vector{1,2,3} it would be equivalent to \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} Similarly \vector{1,2,3,4} would be ...
1
vote
3answers
270 views

Vector: Bold and arrow sign on top

Consider I have a vector x containing different x_i values. I want x to be both blond and have arrow sign on top. But if I use $\vv\textbf{x}}$ the font of x would be different from the fonts of ...
2
votes
1answer
90 views

Vector Arrow Weirdness

Here's something strange: \documentclass[letterpaper]{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{gensymb} \DeclareMathOperator{\Vi}{\vec{i}} \begin{document} $\Vi$ $\vec{i}$ ...
1
vote
1answer
24 views

pdfcomment including \vec: conflict when silence and newtxmath loaded

This MWE \documentclass{article} \usepackage{silence} \usepackage{newtxmath} \usepackage{pdfcomment} \begin{document} \pdfcomment{$\vec{x}$} \end{document} errors for me with the following ...
7
votes
3answers
657 views

TiKz. Angle between two vectors and a projection

I'm having trouble to draw something with TiKz. What I want to draw I think is simple: SIM is a vector in the YZ-plane with a Beta = 38º, source is just a random vector with positive x and y ...
5
votes
2answers
119 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 ...
2
votes
2answers
86 views

Issue with displaying unit vectors

I am using the following command to display unit vectors for my report: \newcommand{\ihat}{\boldsymbol{\hat{\textbf{\i}}}} \newcommand{\jhat}{\boldsymbol{\hat{\textbf{\j}}}} This is my result: ...
10
votes
2answers
1k views

How to create a zero vector?

$\vec{0}$ and $\overrightarrow{0}$ generate the following: The first arrow is decentered (it assumes an italic font), the second one is clearly too large. How to get an upright version of \vec?
1
vote
2answers
302 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
112 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 ...
9
votes
5answers
774 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
102 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
205 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 ...
1
vote
0answers
25 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
121 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
96 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
1k 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
351 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 ...
6
votes
2answers
123 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
55 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 ...
4
votes
2answers
153 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
69 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
57 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
575 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
208 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 ...
4
votes
0answers
211 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
1answer
746 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
189 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
514 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
263 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
474 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 ...
3
votes
2answers
483 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 ...