Graphics, Figures & TablesA small tick on the end of a vector

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
topsquark
Posts: 71
Joined: Wed Oct 05, 2022 10:30 pm

A small tick on the end of a vector

Post by topsquark »

The diagram is good. But if you look at the vector v at the top of the diagram you will see a little "tick" at the end of it. Why is it there and how do I get rid of it?

Thanks!

-Dan

Here's the code. (I put the line for v in bold.)

Code: Select all

\begin{tikzpicture}
     \draw (4.7,4.7) -- (0,0) -- (5,0) --(5,4.41);
     \coordinate [label={$\theta$}] (t) at (0.8, 0.1);
     \draw (2,2) -- (1, 3) -- (3, 5) -- (4,4);
     \draw node at (2.5, 3.5) {$M$};
 [b]    \draw [->] (2,5) edge node[above left] {v} (3,6);[/b]
     \fill [black] (9,3) circle(2pt);
     \coordinate [label={M FBD}] (MFBD) at (8,5);
     \path [->] (9,3) edge node[right] {Mg} (9,0);
     \path [->] (9,3) edge node[above right] {N} (7.5,4.5);
     \path [->] (9,3) edge node[above left] {f} (8.29,2.39);
     \path [->] (9,3) edge node[above left] {T} (10.41,4.41);
     \fill [black] (13,3) circle(2pt);
     \coordinate [label={m FBD}] (mFBD) at (13,5);
     \path [->] (13,3) edge node[right] {mg} (13,1.5);
     \path [->] (13,3) edge node[above right] {T} (13,5);
     \draw [dashed] (9,3) -- (10.5,1.5);
     \coordinate [label={$\theta$}] (t) at (9.2, 2);
     \fill (5.41,5.41) circle (2pt);
     \path (5.41,5.41) circle (1cm) [draw];
     \draw (3.5,4.5) -- (4.41,5.41);
     \draw (5.71,4.45) -- (5.71,2.5);
     \draw (5.21,1.5) rectangle (6.24,2.5);
     \draw node at (5.71,2) {$m$};
\end{tikzpicture}
Last edited by topsquark on Thu Oct 06, 2022 2:07 am, edited 4 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

A small tick on the end of a vector

Post by MjK »

Code: Select all

% Automatically added code
\documentclass{article}
\usepackage{tikz}

\begin{document}
% End of automatically added code

\begin{tikzpicture}
     \draw (4.7,4.7) -- (0,0) -- (5,0) --(5,4.41);
     \coordinate [label={$\theta$}] (t) at (0.8, 0.1);
     \draw (2,2) -- (1, 3) -- (3, 5) -- (4,4);
     \draw node at (2.5, 3.5) {$M$};
     \draw [->] (2,5) -- node[above left] {v} (3,6);% <-- THIS LINE CHANGED
     \fill [black] (9,3) circle(2pt);
     \coordinate [label={M FBD}] (MFBD) at (8,5);
     \path [->] (9,3) edge node[right] {Mg} (9,0);
     \path [->] (9,3) edge node[above right] {N} (7.5,4.5);
     \path [->] (9,3) edge node[above left] {f} (8.29,2.39);
     \path [->] (9,3) edge node[above left] {T} (10.41,4.41);
     \fill [black] (13,3) circle(2pt);
     \coordinate [label={m FBD}] (mFBD) at (13,5);
     \path [->] (13,3) edge node[right] {mg} (13,1.5);
     \path [->] (13,3) edge node[above right] {T} (13,5);
     \draw [dashed] (9,3) -- (10.5,1.5);
     \coordinate [label={$\theta$}] (t) at (9.2, 2);
     \fill (5.41,5.41) circle (2pt);
     \path (5.41,5.41) circle (1cm) [draw];
     \draw (3.5,4.5) -- (4.41,5.41);
     \draw (5.71,4.45) -- (5.71,2.5);
     \draw (5.21,1.5) rectangle (6.24,2.5);
     \draw node at (5.71,2) {$m$};
\end{tikzpicture}

% Automatically added code
\end{document}
% End of automatically added code
BTW: Please don't add further BBCode tags to code. It will not work and makes the code also not work. And please always add a Infominimal working example instead of only a code snippet. In the example above the automatically added code seems to work (after removing the bold tags), but this is not always the case. So it is always better to show a minimal working=complete example. See the link for more information.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
topsquark
Posts: 71
Joined: Wed Oct 05, 2022 10:30 pm

A small tick on the end of a vector

Post by topsquark »

Thanks! I'll look at the edge code a little more carefully.

-Dan
Post Reply