Date: Thu, 6 Dec 2001 20:00:01 -0500
Subject: MacOSX-TeX Digest #174 - 12/06/01
From: "TeX on Mac OS X Mailing List" 
To: "TeX on Mac OS X Mailing List" 
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Sender: 
Precedence: Bulk
List-Software: LetterRip Pro 3.0.7 by Fog City Software, Inc.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 

MacOSX-TeX Digest #174 - Thursday, December 6, 2001

  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Claus Gerhardt" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Radhakrishnan CV" 
  Re: Online Tutorials for LaTeX?
          by "david craig" 
  Online Tutorials for LaTeX?
          by "david craig" 
  Re: [Mac OS X TeX] Re: Online Tutorials for LaTeX?
          by "Gus Gollings" 
  Re: [Mac OS X TeX] Online Tutorials for LaTeX?
          by "Radhakrishnan CV" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Maarten Sneep" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Frank STENGEL" 
  Re: [Mac OS X TeX] Re: paths
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] Online Tutorials for LaTeX?
          by "William Adams" 
  LyX (was Re: [Mac OS X TeX] Re: paths)
          by "William Adams" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Nick Matsakis" 
  File Types and Creators
          by "Holger Frauenrath" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "William Adams" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Arun Mangalam" 
  Re: [Mac OS X TeX] File Types and Creators
          by "Benji Fisher" 
  Re: [Mac OS X TeX] File Types and Creators
          by "Holger Frauenrath" 
  Petition for Matlab on Mac OS X
          by 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Nick Matsakis" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] TEX -> EPDF?
          by "Ross Moore" 


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] TEX -> EPDF?
From: "Claus Gerhardt" 
Date: Thu, 6 Dec 2001 02:35:02 +0100

--=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D_-1204519956=3D=3D_ma=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
Content-Type: text/plain; charset=3D"iso-8859-1" ; format=3D"flowed"
Content-Transfer-Encoding: quoted-printable

>So, I'm curious whether anyone knows a good way to get a single TeX
>equation as a piece of embedded PDF?  I'm envisioning a package that =
works
>like this:
>
>\usepackage{pdfout}
>\include{allmywackytexmacros.tex}
>
>\begin{document}
>
>\begin{pdfout}{exp1.pdf}
>\[ 1+1 =3D3D 2 \]
>\end{pdfout}
>
>\begin{pdfout}{exp2.pdf}
>\[ A =3D3D \pi \cdot r^2\]
>\end{pdfout}
>
\end{document}

Let me add some thoughts to my first mail to this problem: One can 
produce arbitrary many  formulas in one latex document, e.g.

\documentclass[a4paper]{article}
\usepackage[metapost]{mfpic}
\opengraphsfile{myname}

\begin{document}

\begin{mfpic}[20]{0}{4}{0}{4}
%the numbers are arbitrary but reasonable in the present context.


\tlabel(0,0){ $\int_a^bf(x) dx$ }


\end{mfpic}

\medskip

\begin{mfpic}[20]{0}{4}{0}{4}
%the numbers are arbitrary but reasonable in the present context.


\tlabel(0,0){ $\sin\pi =3D3D0$ }


\end{mfpic}


%etc, preferably separated by \medskip
\closegraphsfile
\end{document}

After the first run of the document a file myname.mp is created which 
one has to transform via the terminal using the command

mpost myname

After the second run of the document the file myname.pdf contains all 
formulas. One can then open this file with Adobe Illustrator, copy 
each formula separately, and save each of the formulas as an .eps 
file which can either be used independently or can be transformed 
with epstopdf to an embedded pdf file that can be read in via an 
\includegraphics command.


Claus
>


-- 


Claus Gerhardt
Institut f=3DFCr Angewandte Mathematik
Ruprecht-Karls-Universit=3DE4t Heidelberg
Im Neuenheimer Feld 294
69120 Heidelberg
Germany

Homepage: http://www.math.uni-heidelberg.de/studinfo/gerhardt/
--=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D_-1204519956=3D=3D_ma=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
Content-Type: text/html; charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Re: [Mac OS X TeX] TEX ->
EPDF?
So, I'm curious whether anyone knows a good way to get a single TeX
equation as a piece of embedded PDF?  I'm envisioning a package that works
like this:

\usepackage{pdfout}
\include{allmywackytexmacros.tex}

\begin{document}

\begin{pdfout}{exp1.pdf}
\[ 1+1 =3D3D 2 \]
\end{pdfout}

\begin{pdfout}{exp2.pdf}
\[ A =3D3D \pi \cdot r^2\]
\end{pdfout}
\end{document}

Let me add some thoughts to my first mail to this problem: One can produce arbitrary many  formulas in one latex document, e.g.

\documentclass[a4paper]{article}
\usepackage[metapost]{mfpic}
\opengraphsfile{myname}

\begin{document}
\begin{mfpic}[20]{0}{4}{0}{4}
%the numbers are arbitrary but reasonable in the present context.


\tlabel(0,0){ $\int_a^bf(x) dx$ }


\end{mfpic}

\medskip

\begin{mfpic}[20]{0}{4}{0}{4}
%the numbers are arbitrary but reasonable in the present context.


\tlabel(0,0){ $\sin\pi =3D3D0$ }


\end{mfpic}


%etc, preferably separated by \medskip
\closegraphsfile
\end{document}
After the first run of the document a file myname.mp is created which one has to transform via the terminal using the command

mpost myname

After the second run of the document the file myname.pdf contains all formulas. One can then open this file with Adobe Illustrator, copy each formula separately, and save each of the formulas as an .eps file which can either be used independently or can be transformed with epstopdf to an embedded pdf file that can be read in via an \includegraphics command.


Claus



-- 


Claus Gerhardt
Institut f=3DFCr Angewandte Mathematik
Ruprecht-Karls-Universit=3DE4t Heidelberg
Im Neuenheimer Feld 294
69120 Heidelberg
Germany

Homepage: http://www.math.uni-heidelberg.de/studinfo/gerhardt/
--=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D_-1204519956=3D=3D_ma=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D-- ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Radhakrishnan CV" Date: Thu, 6 Dec 2001 09:28:58 +0530 (IST) On Wed, 5 Dec 2001 at 17:54, Nick Matsakis wrote: So, I'm curious whether anyone knows a good way to get a single TeX equation as a piece of embedded PDF? I'm envisioning a package that works like this: Yes, pdftricks.sty (available at CTAN) does this for you. pdftricks is meant for using pstricks code in pdftex documents. Your source should be modified in the following manner: \usepackage[shell]{pdftricks} % if you have shell escape enabled or \usepackage[noshell]{pdftricks} % if you dont have shell escape \begin{psinputs} \include{allmywackytexmacros.tex} \end{psinputs} \begin{document} \begin{pdfpic} \[ 1+1 =3D 2 \] \end{pdfpic} \begin{pdfpic} \[ A =3D \pi \cdot r^2\] \end{pdfpic} \end{document} If you have shell escape facility enabled, single run of pdflatex will result in as many number of small pdf's as you expected. If you dont have shell escape, you need to run the pst2pdf shell script at the end of the pdflatex job which will do the job of making different pdf's. Running pdftex on the output would create two files in the directory, exp1.pdf and exp2.pdf, each containing the appropriate equations. Does this make sense? This would be useful because the resulting files could be dragged into Omnigraffle or Powerpoint X, allowing one to have nicely typeset equations in posters and presentations. But why should you go for this round about way of making a presentation while pdfTeX itself could be used to make presentations. Pdfscreen.sty coupled with TeXpower or PPower4 helps you to make presentations that has page transition effects, incremental builds etc. -- Radhakrishnan ---------------------------------------------------------------------- Subject: Re: Online Tutorials for LaTeX? From: "david craig" Date: Thu, 6 Dec 2001 00:39:52 -0500 (EST) I'm not sure what happened -- I haven't received the digest for a couple of days (until I got two today), and neither of them contained my original message, nor any replies, if there were any. Since the help message for this list makes no mention of an archive, ummm .... WERE there any replies? If so, I'd really appreciate it if someone would tell me what they were. Thanks, David Craig ---------------------------------------------------------------------- Subject: Online Tutorials for LaTeX? From: "david craig" Date: Tue, 4 Dec 2001 16:30:14 -0500 (EST) I believe it was on this list -- quite recently, in fact -- that someone suggested as a nice online TeX tutorial. Trouble is, all of the linked pdf files appear to be missing. I e-mailed the contact given on the page about a week ago, but haven't heard back, and the links are still all broken. If the person who posted the link is still reading -- do you have any connections to this site that might help? David Craig ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] Re: Online Tutorials for LaTeX? From: "Gus Gollings" Date: Thu, 06 Dec 2001 16:51:21 +1100 The list doesn't seem to have gotten your post nor any replies! On 6/12/01 4:39 PM, "david craig" wrote: > > I'm not sure what happened -- I haven't received the digest for a couple > of days (until I got two today), and neither of them contained my > original message, nor any replies, if there were any. Since the help > message for this list makes no mention of an archive, ummm .... WERE > there any replies? If so, I'd really appreciate it if someone would > tell me what they were. > > Thanks, > David Craig > > > > > > ----------------------------------------------------------------- > To UNSUBSCRIBE, send email to with > "unsubscribe macosx-tex" (no quotes) in the body. > For additional HELP, send email to with > "help" (no quotes) in the body. > This list is not moderated, and I am not responsible for > messages posted by third parties. > ----------------------------------------------------------------- > ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] Online Tutorials for LaTeX? From: "Radhakrishnan CV" Date: Thu, 6 Dec 2001 11:29:39 +0530 (IST) On Tue, 4 Dec 2001 at 16:30, david craig wrote: I believe it was on this list -- quite recently, in fact -- that someone suggested as a nice online TeX tutorial. Trouble is, all of the linked pdf files appear to be missing. I e-mailed the contact given on the page about a week ago, but haven't heard back, and the links are still all broken. If the person who posted the link is still reading -- do you have any connections to this site that might help? I'm sorry, I too discovered lately that the links are broken. But you can get all the screen and print version pdf's from: http://www.river-valley.com/tug/tutorial/ and the TeX sources and supporting packages from: http://www.river-valley.com/tug/tutorial/src/ -- Radhakrishnan ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Maarten Sneep" Date: Thu, 06 Dec 2001 11:03:41 +0100 (CET) Hi all, On 06-Dec-01 Claus Gerhardt wrote: # >So, I'm curious whether anyone knows a good way to get a single TeX # >equation as a piece of embedded PDF? I'm envisioning a package that = works [snip] # Let me add some thoughts to my first mail to this problem: One can # produce arbitrary many formulas in one latex document, e.g. # [snip] # # After the first run of the document a file myname.mp is created which # one has to transform via the terminal using the command # # mpost myname # # After the second run of the document the file myname.pdf contains all # formulas. One can then open this file with Adobe Illustrator, copy # each formula separately, and save each of the formulas as an .eps # file which can either be used independently or can be transformed # with epstopdf to an embedded pdf file that can be read in via an # \includegraphics command. The use of Illustator is a bit tricky here: I don't have that program. Here's what I do, YMMV. 1) Create a latex file for each formula, e.g. \documentclass[12pt]{article} %% your style files, amsmath comes to mind \pagestyle{empty} \begin{document} \begin{equation*} 2 + 2 =3D 5 \qquad\text{G. Orwell, 1984} \end{equation \end{document} 2) run file through normal latex 3) run dvi through dvips, with the following options: dvips -Ppdf -E -o formula.eps formula.dvi 4) run eps-file through the epstopdf script. epstopdf formula.eps There you have it. The drawbacks are: only one formula per file, needs to = use the cmd-line. Advantage: no need for illustator. Of course I assume you have teTeX installed and GhostScript. If you have = other tools, you may want to use those. If someone knows a way of skipping the = latex dvips step (i.e. an option for pdflatex to generate epdf directly, I'd = like to hear. Maarten Sneep >>>----------------------------------------------------------------------- It's better to have something to remember than nothing to regret... >>>----------------------------------------------------------------------- Maarten Sneep Atomic- and Laser Physics group vrije Universiteit, amsterdam The Netherlands ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Frank STENGEL" Date: Thu, 06 Dec 2001 12:07:54 +0000 I am working with a somehow old version of TeXShop's teTeX distribution = and OSX.0.4, so I hope that what I am saying does still apply. Bash me if I'm hopelessly out of date... So when Radhakrishnan CV wrote: [snip] > Yes, pdftricks.sty (available at CTAN) does this for you. pdftricks > is meant for using pstricks code in pdftex documents. Your source [snap] I say: Works, sort of that is: the script has to be slightly rewritten to accomodate for the fact that bash is not the standard shell that comes = with OSX. dvips has also to be coaxed into understanding that one wants the = type 1 fonts (like TeXShop does when invoking it) A tentative version for it would be: [start of script pst2pdf.OSX, beware of line endings...] #! /bin/sh # pst2pdf.OSX # PSTricks 2 PDF converter : # Usage: "pst2pdf.OSX" produces PDF files for all files of the form *-fig*.tex # "pst2pdf.OSX " only considers FILE-fig.tex # It removes intermediary files at the end. FILE=3D$1 if [ -z ${FILE} ]; then FIGURES=3D`ls *-fig*.tex`; else FIGURES=3D`ls -- ${FILE}-fig*.tex`; fi for f in ${FIGURES} ; do fig=3D`basename ${f} .tex` latex ${fig} dvips -R -u +psfonts.map -u +pdftex.map -u +Ttbbold.map -E -o ${fig}.eps ${fig} epstopdf ${fig}.eps rm ${fig}.eps ${fig}.dvi ${fig}.log ${fig}.aux done [end of script] Have fun! -- Frank STENGEL (fstengel@nordnet.fr) (fstengel@wanadoo.net.ma) ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] Re: paths From: "Gerben Wierda" Date: Thu, 6 Dec 2001 14:05:35 +0100 On Wednesday, December 5, 2001, at 11:55 , David R. Morrison wrote: >> As far as I know, the only distribution that has ever conflicted with >> my >> distribution is fink, because it forces itself at the start of the >> path. > > And as pointed out in the previous message, the latest version of fink > no > longer does this, because it inserts > > /usr/local/teTeX/bin/powerpc-apple-darwin-current > > prior to the fink paths (when the system-tetex fink package is > installed). Which is good. That does not solve the conflict between fink an /usr/local/bin, which is the default location for ghostscript and thus also the location where my ghostscript is installed. Maybe, David, a system-gs package would be helpful as well. I have had people contacting me to ask how they could get fink to accept the gs I ship as they wanted lyx (whatever that is) and fink says it requires gs for that. But they do not want the fink gs as it conflicts with Apple's Quartz engine in certain cases. G ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] Online Tutorials for LaTeX? From: "William Adams" Date: Thu, 06 Dec 2001 08:44:54 -0500 I'm also working on a sort-of tutorial / formatting example (The Confederate Soldier's Pocket Manual of Devotions, a gift for my father) using documentclass{book}. I'm almost done on the first pass, was thinking I'd post it to comp.text.tex for commentary / improvement, and will encode all the commentary as comments in the source file. Will mention that posting here for those who don't do usenet. William (and after that it's on to up-dating the FontName docs....) -- William Adams, publishing specialist ATLIS Graphics & Design / 717-731-6707 voice / 717-731-6708 fax Sphinx of black quartz, judge my vow. http://www.atlis.com ---------------------------------------------------------------------- Subject: LyX (was Re: [Mac OS X TeX] Re: paths) From: "William Adams" Date: Thu, 06 Dec 2001 08:57:34 -0500 Gerben said: >...I have had people contacting me to ask how they could >get fink to accept the gs I ship as they wanted lyx (whatever that is) >and fink says it requires gs for that.... LyX is a ``what you see is what you mean'' document processor which uses LaTeX as its back-end. Neat thing, and it'd be nice to see it running natively on Mac OS X (say having been ported to GNUstep). www.lyx.org for those who're interested. William -- William Adams, publishing specialist ATLIS Graphics & Design / 717-731-6707 voice / 717-731-6708 fax Sphinx of black quartz, judge my vow. http://www.atlis.com ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Nick Matsakis" Date: Thu, 6 Dec 2001 10:52:52 -0500 (EST) > What one wants is for TeXShop.app to provide a Service, ``TeX eq -> > EPDF'', so that one could then, within OmniGraffle, type the desired > equation (say \magstep2$1+1=3D2$), select it, choose the Service and = then > get in situ the ``epdf''---that's how it works in NeXTstep, and I can't > think of a more efficient fashion to get this sort of thing done.... Well, this would definitely be useful and I would use such a feature. However, one of the powers of LaTeX comes from piling on the macros... So, this would only really work with vanilla equations, UNLESS you had an additional service which was "TeX -> EPDF in environment..." where you could specify a file that had the declarations. Even better _still_ would be to create an object that could be embedded into graphic apps that would allow you to edit the equation in place. Nick Matsakis ---------------------------------------------------------------------- Subject: File Types and Creators From: "Holger Frauenrath" Date: Thu, 06 Dec 2001 10:16:58 -0600 Hi. Since I opened the editor Pepper once, all (at least a lot) of my files of the file type TEXT have the Pepper creator code (they had been previously created with Alpha, BBEdit or TeXShop; they have different extensions such as .tex, .txt, .html), which just annoys me. Apparently, there must be a system-wide preference or something like that which defines which app to open files of a certain file type with. Is this correct? Can someone point me to where I can readjust this? Slightly off-topic, but on a related matter: John Syracusa, who has = written some very good articles on arstechnica.com on MacOS X in general, and, = more specifically, on metadata such as file types/creators, has a proposal and = a petition on how the MacOS should handle metadata and file extensions in = the future (and how it should not). For those who are interested: Holger ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "William Adams" Date: Thu, 06 Dec 2001 12:18:52 -0500 I said: > > What one wants is for TeXShop.app to provide a Service, ``TeX eq -> > > EPDF'', so that one could then, within OmniGraffle, type the desired > > equation (say \magstep2$1+1=3D2$), select it, choose the Service and = then > > get in situ the ``epdf''---that's how it works in NeXTstep, and I = can't > > think of a more efficient fashion to get this sort of thing done.... > and Nick replied: > > Well, this would definitely be useful and I would use such a feature. > However, one of the powers of LaTeX comes from piling on the macros... = So, > this would only really work with vanilla equations, UNLESS you had an > additional service which was "TeX -> EPDF in environment..." where you > could specify a file that had the declarations. Even better _still_ = would > be to create an object that could be embedded into graphic apps that = would > allow you to edit the equation in place. > Yes, adding macros / formats would be a good thing. My math is pretty limited though, so I've not experimented with that sort of thing---I'm sure the worst case scenario in NeXTstep would be one'd have to build a (default) format using initex with the macros / environment on wanted active, or just include an input instruction at the beginning of the eq source. Altys Virtuoso won't replace a text object with a graphic when using such a Service with selected text, so what I do there is have a separate layer ``Equation-source'' which I send to the background and refer to as necessary, so that's not been an issue for me---worst case here would be to clone the text before activating the Service for drawing / layout programs. Word processors / text editors would kinda be SOL..... Ideally, I guess one'd want to tag the .pdf, or use an XML-based or other taggable graphic format (SVG, maybe PNG) which would allow one to store the source and refer back to it later. William -- William Adams, publishing specialist ATLIS Graphics & Design / 717-731-6707 voice / 717-731-6708 fax Sphinx of black quartz, judge my vow. http://www.atlis.com ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Arun Mangalam" Date: Tue, 6 Nov 2001 12:31:10 -0500 Hello all, If you have ConTeXt installed, having equations in a separate small cropped pdf is as simple as ConTeXt-ing the following [TeXShop has support for ConTeXt]: \starttext \startTEXpage[scale=3D3000,offset=3D5pt] $ x^2 + \sum_{i=3D4}^{n}i $ \stopTEXpage \stoptext ConTeXt does many other awesome things [especially with MetaPost]. It is a very well organized, powerful [free] package for professional typesetting, that continues to grow. ConTeXt is expecially integrated with pdf's, from presentations to regular screen/printed documents... - Arun ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] File Types and Creators From: "Benji Fisher" Date: Thu, 06 Dec 2001 12:34:55 -0500 Holger Frauenrath wrote: > > Hi. > > Since I opened the editor Pepper once, all (at least a lot) of my files = of > the file type TEXT have the Pepper creator code (they had been = previously > created with Alpha, BBEdit or TeXShop; they have different extensions = such > as .tex, .txt, .html), which just annoys me. > > Apparently, there must be a system-wide preference or something like = that > which defines which app to open files of a certain file type with. Is = this > correct? Can someone point me to where I can readjust this? [snip] Find the file in Finder, and choose "Show Info" from the File menu. = (If you are a keyboard junkie, like me, use Cmd-I.) Choose "Open with application" from the pull-down list, and there is an option to use your favorite application for all files having the same extension. HTH --Benji Fisher ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] File Types and Creators From: "Holger Frauenrath" Date: Thu, 06 Dec 2001 11:40:57 +0000 on 12/6/01 5:34 PM, Benji Fisher at benji@e-math.AMS.org wrote: > Find the file in Finder, and choose "Show Info" from the File menu. (If > you are a keyboard junkie, like me, use Cmd-I.) Choose "Open with > application" from the pull-down list, and there is an option to use your > favorite application for all files having the same extension. > > HTH --Benji Fisher Thanks. That will help, I hope. However: I actually do NOT want to open = ALL files with a certain extension (say html) in one app, but all files of one file type (say text) ... these need not coincide ... Just out of interest: where do I find the preference file or whatever for this system-wide behaviour. Holger ---------------------------------------------------------------------- Subject: Petition for Matlab on Mac OS X From: Date: Thu, 6 Dec 2001 14:59:28 -0500 --Apple-Mail-1--703202513 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=3DUS-ASCII; format=3Dflowed Dear Fellow Mac OS X Users, There is a petition on PetitionOnline.com for Mathworks to support Matlab for the Mac. Please sign this petition to help people at Mathworks realize the market they are missing by their continued omission support for the Mac platform. http://www.PetitionOnline.com/matlabx/petition.html Best, -Aaron p.s. I am sorry if anyone thinks this to be SPAM. The past discussions related to Matlab on this mailing list made be believe that this advertisement is warranted. --Apple-Mail-1--703202513 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=3DUS-ASCII Dear Fellow Mac OS X Users, There is a petition on PetitionOnline.com for Mathworks to support Matlab for the Mac. Please sign this petition to help people at Mathworks realize the market they are missing by their continued omission support for the Mac platform. 0000,0000,FFFFhttp://www.PetitionOnline.co= m/matlabx/petition.html Best, -Aaron p.s. I am sorry if anyone thinks this to be SPAM. The past discussions related to Matlab on this mailing list made be believe that this advertisement is warranted. --Apple-Mail-1--703202513-- ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Nick Matsakis" Date: Thu, 6 Dec 2001 15:19:20 -0500 (EST) I'm only getthing the digest version of this list, so I'm sorry if this has been addressed somehow. Ross Moore's solution works very well for what I wanted to do. I've distilled it down a bit more and made it into the resulting LaTeX macro, which works fine with pdflatex, as far as I can tell. Furthermore, the PDF it produces is "transparent" in the background, which means that I can bring the equations into Omnigraffle and put them in colored boxes! So far, it only seems to work right the first time it is called, and I can't figure out why. This is ok because I really want one equation per file, since Omnigraffle (and presumably most graphics programs) can only embed the first page. Now, does anyone know how to get the \pdfinfo command to work properly? I think it would be _really cool_ if the PDF subject was the original tex for the equation. Regards, Nick Matsakis ---------------------------------------------- % Note, the argument to this macro requires latex that can be formatted in % a horizontal box. Thus, no "displaymath". If you want display style % math, write your argument like "$\displaystyle 1 + 1 =3D 2$" \newcommand*{\shipoutpdf}[1]{ \newpage \pdfinfo{/Subject (#1)} \setlength{\parindent}{0cm} \setlength{\leftmargin}{0cm} \setbox0=3D\vbox{\kern -1truein \hbox{\kern -1truein #1 \kern 1truein}% \kern1truein}% \dimen0\ht0 \advance\dimen0\dp0 \setlength{\pdfpageheight}{\dimen0} \setlength{\pdfpagewidth}{\wd0} \shipout\box0 } ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Gerben Wierda" Date: Thu, 6 Dec 2001 21:54:20 +0100 > If you have ConTeXt installed, having equations in a separate small > cropped pdf is as simple as ConTeXt-ing the following [TeXShop has > support for ConTeXt]: > > \starttext > \startTEXpage[scale=3D3000,offset=3D5pt] > $ x^2 + \sum_{i=3D4}^{n}i $ > \stopTEXpage > \stoptext > > > ConTeXt does many other awesome things [especially with MetaPost]. It > is a very well organized, powerful [free] package for professional > typesetting, that continues to grow. ConTeXt is expecially integrated > with pdf's, from presentations to regular screen/printed documents... Yes, I have also seen impressive results form ConTeXt, that is why I have added it as a format to be created by default to my teTeX distribution. However, I haven't found a good tutorial for its use, for example, how do you process that piece you type above? It is not like other tex stuff, where you load a format, say pdfetex &cont-uk foo.tex because that just writes a dvi file. G ---------------------------------------------------------------------- Subject: Re: [Mac OS X TeX] TEX -> EPDF? From: "Ross Moore" Date: Fri, 7 Dec 2001 08:34:38 +1100 (EST) > > So far, it only seems to work right the first time it is called, and I The \newpage is irrelevant, and you should probably suppress the blank spaces created from the end of lines, after a '}'. e.g. \setlength{\parindent}{0cm}% ^---- suppresses end-of-line token > can't figure out why. This is ok because I really want one equation per > file, since Omnigraffle (and presumably most graphics programs) can only > embed the first page. > Now, does anyone know how to get the \pdfinfo command to work properly? = I What do you find is going wrong ? I'd guess that \pdfinfo{/Subject (#1)} is rather dangerous, as any active tokens within the #1 would not expand into the text of their name. Instead, you'll need something more intricate, such as: {\let\zz\catcode \zz`m=3D12 \zz`a=3D12 \zz`c=3D12 \zz`r=3D12 \zz`o=3D12 % avoid the letters m a c r o in the name of this next macro \gdef\stipening macro:->#1@@!@@{#1} } \def\shipoutpdf#1{% \bgroup \def\tmp{#1}% \edef\tmpinfo{/Subject (\expandafter\stipening\meaning\tmp@@!@@)}% % \show\tmpinfo \expandafter\pdfinfo\expandafter{\tmpinfo}% \egroup .... other stuff here .... } Test: \shipoutpdf{$ \alpha^2 + \beta^2 =3D \gamma^2 $} > think it would be _really cool_ if the PDF subject was the original tex > for the equation. Try the above. Cheers, Ross Moore > Regards, > > Nick Matsakis > > ---------------------------------------------- > > % Note, the argument to this macro requires latex that can be formatted = in > % a horizontal box. Thus, no "displaymath". If you want display style > % math, write your argument like "$\displaystyle 1 + 1 =3D 2$" > \newcommand*{\shipoutpdf}[1]{ > \newpage > \pdfinfo{/Subject (#1)} > \setlength{\parindent}{0cm} > \setlength{\leftmargin}{0cm} > \setbox0=3D\vbox{\kern -1truein > \hbox{\kern -1truein #1 \kern 1truein}% > \kern1truein}% > \dimen0\ht0 > \advance\dimen0\dp0 > \setlength{\pdfpageheight}{\dimen0} > \setlength{\pdfpagewidth}{\wd0} > \shipout\box0 > } > > > > > > > ----------------------------------------------------------------- > To UNSUBSCRIBE, send email to with > "unsubscribe macosx-tex" (no quotes) in the body. > For additional HELP, send email to with > "help" (no quotes) in the body. > This list is not moderated, and I am not responsible for > messages posted by third parties. > ----------------------------------------------------------------- ---------------------------------------------------------------------- End of MacOSX-TeX Digest ----------------------------------------------------------------- To UNSUBSCRIBE, send email to with "unsubscribe macosx-tex" (no quotes) in the body. For additional HELP, send email to with "help" (no quotes) in the body. This list is not moderated, and I am not responsible for messages posted by third parties. -----------------------------------------------------------------