Graphics, Figures & TablesCreating longer Arrows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jpaulwarrington
Posts: 1
Joined: Wed Jun 22, 2011 5:51 pm

Creating longer Arrows

Post by jpaulwarrington »

Hi there, I have the following code and I want to lengthen the arrow so that it stretches to the left most box in the grid. Can someone please helP!

\begin{picture}(75,75)(0,0)
\multiput(0,0)(0,25){2}{\line(1,0){250}}
\multiput(0,0)(25,0){11}{\line(0,1){25}}
\put(180,30){
\xymatrix{\ar@/^1.5pc/@{<-}[r]&}
}
\put(230.25,9.5){$x_{n-1}$}
\put(205.25,9.5){$x_{n-2}$}
\put(180.25,9.5){$x_{n-3}$}
\put(155.25,9.5){$x_{n-4}$}
\put(130.25,9.5){$x_{n-5}$}
\put(105.25,9.5){$x_{n-6}$}
\put(80.25,9.5){$x_{n-7}$}
\put(56.25,10.5){$.....$}
\put(31.25,10.5){$.....$}
\put(6.25,10.5){$.....$}
\end{picture} \newline

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Creating longer Arrows

Post by localghost »

forget the picture environment and take a look at more sophisticated packages like pgf/tikZ or PSTricks. If you insist working in this environment, the pict2e package helps with some enhancements.

By the way, the forum software offers a »Code« environment to tag code as such. You can find it in the button list right above the input window while composing a post. Would be very kind if you use it. It just keeps a post clear and legible.


Best regards and welcome to the board
Thorsten
Post Reply