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

Drawing the projection of a vector on the other [duplicate]

I want to draw this simple figure and I need some help.
4
votes
2answers
81 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
228 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
119 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
60 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
54 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
148 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 ...
9
votes
2answers
134 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
60 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
79 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
613 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
304 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
708 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
185 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
80 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
196 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
158 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
331 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
116 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
227 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
341 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
338 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
469 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
482 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.
11
votes
2answers
3k 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
231 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
302 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
484 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
326 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
145 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 ...
10
votes
2answers
7k 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
295 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
755 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
253 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
806 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 ...
8
votes
1answer
987 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
611 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
318 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 ...
4
votes
2answers
2k views

Replacing vector images in a PDF with raster images [closed]

Is there any easy (scriptable) way to convert a PDF with vector images into a PDF with raster images? In other words, I want to generate a PDF with the exact same text but with each vector image ...
2
votes
1answer
540 views

Diagonal arrows/vectors not working

For some reason I can't get diagonal arrows/vectors to work. Only the arrowhead shows up - the line is missing. For example, in the following, the first vector is fine (horizontal) but the second just ...
13
votes
2answers
1k views

What's the proper way to write a vector with a single character subscript?

I've always(-ish) thought that the proper way to typeset a vector which is labeled by a letter with a single character subscript, like v1, was to set the arrow over just the letter, like \vec{v}_1 (I ...
5
votes
2answers
674 views

Conventions for typesetting complex vectors and vectors with complex components

I was wondering if there were conventions for typesetting vectors and complex numbers. I grew up in France and I'm used to putting an arrow on my vectors ($\vec{v}$) and a bar on my complex numbers ...
16
votes
3answers
2k views

Typesetting a Row Vector

In the question typesetting a column vector, a very nice solution was given for typesetting a column vector with an arbitrary number of rows. I am attempting to modify the code to produce row vectors ...
3
votes
1answer
565 views

Vector images in PDF

I use latexmk to automatically generate my LaTeX files. I want to use vector graphics, exported from Matlab (*.eps) but I know, that this is not possible (for some reason) - just image files like ...
1
vote
0answers
128 views

How to use trigonometric functions in tikz coordinates [duplicate]

Possible Duplicate: Problems with TikZ calculations I am trying to get the following arrows to get lengths defined by a trigonometric function, in this case cos. This was my attempt, but it ...