Graphics, Figures & Tablescoordsys | '\numbline' Command not working

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
alpg49
Posts: 1
Joined: Tue Sep 06, 2011 7:04 pm

coordsys | '\numbline' Command not working

Post by alpg49 »

I'm following all the instructions for creating a numberline. Any time I invoke the coordsys package, it fails to create a PDF file. Here's the code:

Code: Select all

\documentclass[14pt,a4paper]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[center]{coordsys}

\begin{document}
\large 
\begin{center}
Math \newline
College Algebra \newline
Test 1 \newline
September 21, 2011 \newline\newline
\end{center} 
%\begin{picture}(20,2)(-7.5,-1.5)
%\numbline{-7.5}{12.5}
%\end{picture}
\end{document}
Note that the use of \numbline is commented-out.

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

coordsys | '\numbline' Command not working

Post by localghost »

To your code.
  • The package option is »centred«, not »center«. But you don't need to give it explicitly since it is default (see package manual).
  • There is no »14pt« font size option for the used document class.
It seems that the command only accepts integer values. The example from the manual works fine.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{coordsys}

\begin{document}
  \begin{picture}(200,20)(-75,125)
    \numbline{-75}{125}
  \end{picture}
\end{document}
The package uses the old-fashioned picture environment which has heavy limits. Packages like pgf/tikZ or PSTricks are much more sophisticated and therefore preferable.

And next time please use the code button when posting code.


Best regards and welcome to the board
Thorsten
Post Reply