Edward MacKinnon | 12 Aug 2012 06:51
Picon

Compiling to .pdf

Problem Compiling in Pdf. Pdf is the default compiler for Mixtex 2.9. This
does not give diagrams that functioned in 2.7, compiling to a .dvi file.
At the begining of a document I include the lines
\def\jwline#1#2#3#4{%
\put(#1,#2){\special{em:moveto}}%
\put(#3,#4){\special{em:lineto}}}
\def\newpic#1{}
then a command, \jwline{40}{90}{50}{80}, draws a precise line. This 
compiles
under Miktex 9.5, but the lines don't show. Any suggestions on how to make
this work compiling to pdf files.
Thanks,
Ed. MacKinnon

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Ulrike Fischer | 12 Aug 2012 11:38
Picon

Re: Compiling to .pdf

Am Sat, 11 Aug 2012 21:51:55 -0700 schrieb Edward MacKinnon:

> Problem Compiling in Pdf. Pdf is the default compiler for Mixtex 2.9. This
> does not give diagrams that functioned in 2.7, compiling to a .dvi file.

The default compiler pdftex can also generate a dvi. 

> At the begining of a document I include the lines
> \def\jwline#1#2#3#4{%
> \put(#1,#2){\special{em:moveto}}%
> \put(#3,#4){\special{em:lineto}}}
> \def\newpic#1{}
> then a command, \jwline{40}{90}{50}{80}, draws a precise line. This 
> compiles
> under Miktex 9.5, but the lines don't show. Any suggestions on how to make
> this work compiling to pdf files.

Here is a text of Hans Hagen which describes how to implement the
emtex-specials in pdftex with pdf output:
www.ntg.nl/maps/25/10.pdf 

But would suggest to use a package like tikz instead of such
outdated specials.

\documentclass{article}
\usepackage{tikz}
\begin{document}
A line: 
\tikz \draw[red] (0,0) -- (2.5,3) -- (5,0);
\end{document}
(Continue reading)


Gmane