Tagged Questions

{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
25 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
41 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
70 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
112 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
58 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
99 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
66 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 ...
4
votes
3answers
144 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
165 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
338 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
155 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
86 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
61 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
159 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
181 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
74 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
95 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) ...
6
votes
2answers
758 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 ...
6
votes
1answer
372 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
734 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?
2
votes
0answers
235 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
84 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
214 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
169 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
344 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
124 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 ...
6
votes
1answer
243 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
1answer
398 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
360 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 ...
14
votes
2answers
558 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
553 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.
12
votes
2answers
5k views

Extensible \vec instead of \overrightarrow

Instead of changing to \overrightarrow{}, which uses a usual extensible arrow and puts it above the argument, I would like to get an extensible \vec{} symbol. My intention is to obtain a new command ...
4
votes
1answer
253 views

LaTeX 'Missing $' Cannot find the reason

So i am writing up some maths definitions for my exams and for some reason Texworks says that I have a 'missing $' in my line of work, however I cannot see anything wrong with it. ...
-1
votes
1answer
411 views

Vector Notation in optimization problems [closed]

I am typing optimization problems in latex. Half of the variables are vectors. First I used bold to mention vectors, but it looked ugly. Now I am using $\mathbbmss{p}$ but I am not sure if this looks ...
1
vote
1answer
2k views

How to use harpoon-style arrows over vectors, like this? [duplicate]

How do I typeset harpoon arrows that look like this in LaTeX? I've tried the harpoon package's \overrightharpoon feature, but its arrowhead is too big/prominent... I'm hoping for something that ...
6
votes
2answers
517 views

Vector notation in siunitx

I'm trying to use the siunitx package to format a number which is a vector (using \hat{x} to represent a vector in the x direction). Using \hat{x} leads to complaints about invalid tokens. After ...
3
votes
0answers
46 views

How to improve row vector appearance inside paragraph? [duplicate]

Possible Duplicate: Parentheses size around matrix When using a row vector inside paragraph with double line spacing the output looks ugly (imo) because the brackets are too tall and much ...
4
votes
1answer
361 views

Too long/short pipe (absolute value) in math mode with certain letters

In the question Absolute Value Symbols I read about the best ways to write absolute values. I found the accepted answer pretty good and it works in almost all cases. Sadly, only in almost. For example ...
2
votes
1answer
151 views

esvect with transparency makes part of the arrow darker

When using the esvect package in a transparency context, one can see that the arrow is built by superposing two "blocks": a line and an arrowhead. But as the line overrides the arrow head, the center ...
12
votes
2answers
8k views

How do you write a vector with an underline instead of an arrow?

I don't like the way the vector with an arrow $\vec{x}$ looks. I would prefer to indicate it with a line underline but when I google it nothing comes up to show me how to do it. Does anyone know? ...
12
votes
2answers
310 views

smart vector command

I need to make a smart vector command that meets the following criteria: There are three arguments: an optional first argument specifying a delimiter (comma by default), a mandatory second argument ...
14
votes
3answers
889 views

Writing a macro in LaTeX for getting a vector i,j,k representation by passing parameters

I want to create a newcommand \vecty to create a vector which will take 3 parameters like \vecty{1}{2}{3} and this should display as $\hat{i}+2\hat{j}+3\hat{k}$ and if I give \vecty{0}{3}{-3} then it ...
6
votes
1answer
1k views

Why does \dot over \vec over {\bf E} gives a tilde?

When using AMSmath and trying to put a \dot over a \vec of a bold symbol it works, but subsequent instances have a tilde instead of a vector over the bold symbol, and strangely my partial wrt become ...
4
votes
2answers
266 views

How to build macros for vector-matrix operators?

Can anybody build macros for doing the following vector operations? Or are there already such macros? For example, 1) Example data: \def\a{(5,3,0)} \def\b{(5,1,6)} ...
2
votes
1answer
893 views

Can I make a greek letter extra-bold in math mode? [duplicate]

Possible Duplicate: How can I get bold math symbols? I would like to distinguish between a vector of betas and the individual betas and I want to use bold symbol, rather than an error, to ...
10
votes
1answer
1k views

TIKZ drawing vector field from external file

I would like to draw a vector field from a data file. I tried to adapt code from Manual for Package pgfplots but this doesn't work \documentclass{standalone} \usepackage{pgfplots} ...
10
votes
4answers
661 views

Typesetting coordinates

I'm trying to typeset coordinates like: (0 0 0) or (0, 0, 0) I'm not sure if LaTeX offers a package which can make the notation a bit more professional than just manually inserting spaces between ...
2
votes
2answers
5k views

How do I embed vector graphics to LaTeX document

I have a vector grahpics file. Could someone please help me embed a image into my LaTeX document ? I have no clue.
4
votes
1answer
331 views

How do I add a \vector to a table?

I am trying to make a table that shows how an element moves from location in the table to another. I would like to add a vector that starts at the first element and goes to the second element. How do ...