{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

0
votes
0answers
9 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
27 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
24 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
98 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 ...
0
votes
1answer
65 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
70 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
52 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
250 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
154 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
67 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
20 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 ...
5
votes
3answers
355 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
96 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
58 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: ...
9
votes
2answers
711 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
185 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
106 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
646 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
97 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
144 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
81 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
87 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
804 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
325 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
120 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
48 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
116 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
67 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
56 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
391 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
189 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
177 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
596 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
158 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
428 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
208 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
400 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
366 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
4k 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 ...
5
votes
2answers
4k 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
1k 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
746 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
212 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
95 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
277 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 ...
11
votes
2answers
966 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
1k 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
207 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
3k 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 ...