Converters

From TeX on Mac OS X wiki

Revision as of 13:28, 9 August 2010 by Cfr (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Your helpful TeX on Mac wiki depends on you to support it by adding your valuable information!


The converters on this page can be used to automate, or partially automate, the conversion of a document in a TeX format such as LaTeX, TeX or ConTeXt into a document in a non-TeX format such as HTML, ODF or Word, or the conversion of a document in a non-TeX format into one in TeX format.


Many converters can be built directly from the command line if you have the Apple Developer tools. Alternatively, both Fink and i-Installer have most everything that exists. Most of these converters still require the use of the command line. The Terminal application can be found in your utilities folder.

Contents

TeX -> Other

ConvTeX

Freeware?

Mac version of multi-platform utility. Converts LaTeX and LyX files to OpenOffice format.

latex2applehelp

Open source (GPL)

Converts LaTeX files to Apple Help format.

Note: I (--Cfr 00:03, 18 September 2008 (UTC)) have not been able to find the source for this project. See my comments here and here.

This software was developed by Kevin Walzer (based on latex2html) and announced on the Mac OS X TeX list ([1]) and made available on his then home page ([2]). Aquamacs (now grown up as Aquamacs Emacs) used it or had it. Norm Gall integrated it as part of YACED (Yet Another Carbon Emacs Distribution, [3], [4]) which has been abandoned in favour of Carbon Emacs Package.

The Apple Installer package is still available from SourceForge: [5]. It looks incomplete – either a LaTeX2HTML installation is needed and then many files are overwritten or missing utilities like texexpand will prevent a successful conversion. The source code for /Applications/Utilities/latex2applehelp/latex2applehelp.app, a PPC executable, does not come with the package. This convertor uses some scripts that are configured to use teTeX. Also the absolute path names of utilities to convert between graphics formats are recorded. On a PPC based Mac it still works.

latex2rtf

Open source (GPL)

When your boss/funding agency/advisor insists on getting an MS Word document, this just might do the trick.

At this moment, a 2.1.1 installer package by Adam Maxwell exists. --Joseph Slater 20:06, 4 August 2010 (UTC)

See also MacLaTeX2rtf.

MacLaTeX2rtf

Freeware

GUI interface for running LaTeX2rtf.


SimpleTeX4ht

Open source (GPL)

SimpleTeX4ht is a GUI interface for TeX4ht.


TeX4ht

Open source (LPPL)

Convert to various formats including html, Open Office.

TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext. It interacts with TeX-based applications through style files and postprocessors, leaving the processing of the source files to the native TeX compiler. Consequently, TeX4ht can handle the features of TeX-based systems in general, and of the LaTeX and AMS style files in particular.

Note that TeX4ht is part of TeX Live (htlatex filename.tex from the terminal prompt)

Another note: if you install TeX4ht yourself, you will also get a number of specialised scripts including one called 'oolatex' which does a reasonably good job of converting LaTeX to Open Document Format (.odt) which is the native format of OpenOffice. Since the latter offers various export formats, including Word (.doc), TeX4ht and OpenOffice can be used together to convert LaTeX to Word. Although the scripts are not essential, they are rather convenient and useful if you are not familiar with the range of options TeX4ht offers.

Also see SimpleTeX4ht


TeX4ht was developed by Eitan Gurari TeX4ht original site. After Eitan died unexpectedly in June 2009, TeX4ht is maintained by CV Radhakrishnan and Karl Berry.

tth

by Ian H. Hutchinson Mixed License. See your situation.
From the tth web site:
TTH translates TEX, the predominant mark-up language for expressing mathematics, into HTML, the language of world-wide-web browsers. It thereby enables mathematical documents to be made available on the web. Document structure, using either the Plain or LaTeX macro packages, is also translated and incorporated in the form of hyperlinks. TTH is extremely fast and completely portable. It produces more compact, faster viewing, web documents than other converters, because it really translates the equations, instead of converting them to images.

Other -> TeX

Excel2LaTeX

by JAM Software
Freeware
It's difficult to create tables in LaTeX, especially if some columns are calculated. Excel2LaTeX allows you to transform the current selection from Excel to Latex. Most of the formatting will be kept (bold, italic, border lines, multicolumn cells, etc.). The LaTeX code can be copied to the clipboard or saved as a LaTeX file, which then can be included in an existing LaTeX document using the \input command.
Don't mind that the page says that it is Windows software.

Note: Given that Microsoft Office 2008 does not have visual basic anymore this will not work with it. It does however, work with Microsoft Office 2004. Microsoft plans to add back visual basic support for future versions of Office (corporate clients have a lot invested in that feature).


rtf2latex2e

by Ujwal Sathyam

Open source (GPL)

Convert from Rich Text Format (MS Word and other programs can save in this format) to LaTeX.

May be available via Fink or MacPorts.

wvware

Open source (GPL)

Converter from MSWord documents to other formats, including LaTeX.

May be available via Fink or Macports.

Other

Odd Jobs

by Andrew Trevorrow
Shareware - $20
68K and PowerPC (System 7 or later)
Updated: 8/27/2004Odd Jobs is a collection of powerful file-processing tasks. The easiest way to use Odd Jobs is to drop files/folders/disks onto an appropriate "joblet" (or a conveniently located alias). Some of the supplied joblets are very handy for TeX users:

     Alpha Doc         - converts given text files to Alpha documents
     BBEdit Doc        - converts given text files to BBEdit documents
     Count Items       - counts files/aliases/folders
     Delete 4bit Icons - deletes 16-color custom icons from selected files
     Delete 68K Code   - deletes 680x0 code from fat applications
     Delete Res Fork   - deletes resource forks from given text files
     EPSF <-> TEXT     - changes an EPSF file to TEXT and vice versa
     Mac Text          - converts Unix/DOS text files to Mac format
     Same Names        - finds all duplicate file names in given folders/disks
     Send PS           - sends PostScript files to the current printer
     Show Aliases      - shows aliases (and detects bad links)
     Show Apps         - shows applications and their creator codes
     Show Essential    - shows files/folders with the "Essential" label
     Show Folders      - shows the folder hierarchy in given folders/disks
     Show Long Names   - shows file/folder names longer than 25 characters
     Show Weird Names  - shows file/folder names with invisible characters
     Sort PKs          - moves PK files into appropriate subfolders
     Trash TeX Temps   - moves TeX's *.log/aux/toc files to the Trash
     Unlock Files      - have a guess!

Many other tasks are possible. Joblets run specific tasks based on the general-purpose jobs built into Odd Jobs. It's a simple matter to modify an existing joblet (just double click on it), or to create new ones. Details are provided in the Help menu. The most interesting feature in Odd Jobs is its pattern matching capabilities. You can restrict processing to files/folders whose names, types, creators or attributes match grep-like patterns. Some examples: The Show Weird Names joblet uses the pattern *[\0-\31\127]* to find all file/folder names containing any control character or delete; Show Long Names uses the pattern ?<26->; and Send PS uses *.(ps|eps(|f)) to match file names ending in .ps or .eps or .epsf. Such patterns allow you to do sophisticated selections that can't be done using Find File.


OmniOutliner add-ons

Freeware

Users of OmniOutliner may be interested in the TeX-related add-ons included among these OmniOutliner Extras. Apparently relevant options include:

  • OmniOutliner Export Plugin which supports export from OmniOutliner 3.0 Pro (not earlier versions, and only the Pro version) to LaTeX Article and Book formats. A sample file is included in the Plugin download.
  • ConTeXt Plugin;
  • LaTeX Equation Script which can convert a LaTeX-encoded equation to a PDF for inclusion in your outline.
Personal tools