Re: Compiling to .pdf
Ulrike Fischer <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <[email protected]> |
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}
or with plain tex:
\input tikz
A line in plain:
\tikz \draw[red] (0,0) -- (2.5,3) -- (5,0);
\bye
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
------------------------------------------------------------------------------
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/