LaTeX forum ⇒ GeneralA very long arrow

LaTeX specific issues not fitting into one of the other forums of this category.
Stefanie
Posts: 25
Joined: Fri Apr 04, 2008 2:39 pm

A very long arrow

Postby Stefanie » Sun Feb 01, 2009 3:34 pm

Hi guys,

i need to insert a very long arrow in my latex document, almost as long as the width of my text. do you know about a latex command which can do that? i don't mind using an extra package.

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sun Feb 01, 2009 3:45 pm

You could use the standard picture environment and draw a vector or use the pgf/tikZ package and do the according thing.


Best regards
Thorsten¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Postby gmedina » Sun Feb 01, 2009 4:15 pm

Another option would be to use the \xrightarrow or \xleftarrow comands provided by the amsmath package, as the following example suggests:
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3.  
  4. \begin{document}
  5.  
  6. \[ \xrightarrow{\hspace*{3cm}} \]
  7.  
  8. \[ \xrightarrow{\hspace*{8cm}} \]
  9.  
  10. \[ \xrightarrow{\hspace*{10cm}} \]
  11.  
  12. \[ \xleftarrow{\hspace*{2cm}} \]
  13.  
  14. \[ \xleftarrow{\hspace*{7cm}} \]
  15.  
  16. \[ \xleftarrow{\hspace*{11cm}} \]
  17.  
  18. \end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...

Stefanie
Posts: 25
Joined: Fri Apr 04, 2008 2:39 pm

Postby Stefanie » Sun Feb 01, 2009 5:59 pm

thank you gmedina, that was exactly what i was looking for. tikz and the picture environment are too complicated for what i had in mind (and difficult to get right). this solution is much quicker.

diazdeus
Posts: 19
Joined: Fri Sep 28, 2018 9:34 pm

Postby diazdeus » Sun Apr 14, 2019 7:12 pm

I need also long arrows, left and right, to put a broken line in up of a table. That's my solution:
  1. \renewcommand{\arraystretch}{1.3}
  2. \begin{table}[!h]
  3. \begin{center}
  4. \caption{Secuencia de emisiones}
  5. \hspace*{-8pt}$\xleftarrow{\hspace*{2.6cm}}\textrm{10 segundos}\xrightarrow{\hspace*{2.6cm}}$
  6. \begin{tabular}{c|cccccccc|c}
  7. \toprule
  8. \textbf{Estación} & \textbf{0,9} & \textbf{1,0} & \textbf{1,1} & \textbf{1,2} & \textbf{1,1} & \textbf{0,9} & \textbf{1,2} & \textbf{1,0} & \textbf{Situación}\\
  9. \hline
  10. \textbf{A} & 10,2 & 13,6 & 11,33 & & & 11,05 & & & Noruega\\
  11. \textbf{B} & & 10,2 & 13,6 & 11,33 & & & 11,05 & & Liberia\\
  12. \textbf{C} & & & 10,2 & 13,6 & 11,33 & & & 11,05 & Hawaii\\
  13. \textbf{D} & 11,05 & & & 10,2 & 13,6 & 11,33 & & & EE.UU.\\
  14. \textbf{E} & & 11,05 & & & 10,2 & 13,6 & 11,33 & & I. Reunion\\
  15. \textbf{F} & & & 11,05 & & & 10,2 & 13,6 & 11,33 & Argentina\\
  16. \textbf{G} & 11,33 & & & 11,05 & & & 10,2 & 13,6 & Australia\\
  17. \textbf{H} & 13,6 & 11,33 & & & 11,05 & & & 10,2 & Japón\\
  18. \bottomrule
  19. \multicolumn{1}{c}{} & \multicolumn{8}{|c|}{Intervalos entre emisión 0,2 segundos} & \\[-2pt]
  20. \cmidrule{2-9}
  21. \end{tabular}
  22. \end{center}
  23. \end{table}

The packages amsmath and booktabs are needed.


Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests