Tag Info

109

You can use the standalone class to produce tight PDF files for one or multiple TikZ pictures. I originally wrote it to simplify the creation of the many pictures of my thesis. Since v1.0 it includes a convert option which can convert the produced PDF into a graphics file automatically (using external software, which requires the -shell-escape compiler ...

92

Using PDF as an intermediate format when converting from LaTeX to HTML is not very good idea. LaTeX and HTML are both mostly structural markup langauages, which means you use them to describe the document structure (sections, emphasize, formulas etc.), whereas PDF is mostly about representation of your document on the screen or paper. When converting LaTeX ...

80

Often, I have the use-case that I want to convert a given data table into a "suitable" LaTeX table. Typically, my data is of numeric type and requires number formatting, perhaps alignment at a decimal point, and in most cases, it requires elementary post-processing (like quotients, differences, gradients). Since I needed such stuff very often, I wrote ...

77

Very impressed by VisualObjects Web Equation Screenshot (of doncherry's clueless scribbling): Screenshot (of Aymon's expert scribing):

69

You should be able to cut and paste mathematics from your web browser to Word (or any of the Micorsoft Office suite). Unfortunately at present you have to make a small edit but any text editor will do for that. Given x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} Make a small html file that looks like <!DOCTYPE html> <html> <head> <script type="...

60

I implemented this for a large R&D lab. We produced several hundred (if not thousand) documents per year, and the LaTeX Users' community there wanted to be able to produce documents using 'tex as well as WYSIWYG software. The OP was right in that a well-defined workflow is essential. Part of this is the process, but you may also need to think about ...

56

I am in the typesetting, or composition business. So publishers are our clients. In the main, publishers themselves do not do anything with the files you send them. They pass them on to their suppliers. These days, most are in India (as is our production office) or other places with lower labour costs. What you need to remember is that to a good ...

55

I use the following very simple script: latexml --dest=$1.xml$1.tex latexmlpost -dest=$1.html$1.xml ebook-convert $1.html$1.epub --language en --no-default-epub-cover It makes use of latexml and ebook-converter (the command line tool that comes with calibre). This works very well with lots of formulas. Once mathML is encoded in newer epub versions ...

55

Here's Pandoc-based solution. You will have to enable --shell-escape for this to work, since it uses \write18. Depending on what you want, you may need to customize the Pandoc options. \documentclass{article} \usepackage{fancyvrb} \newenvironment{markdown}% {\VerbatimEnvironment\begin{VerbatimOut}{tmp.markdown}}% {\end{VerbatimOut}% \...

50

It is true that the main page of tex4ht and documentation seems obsolete, but the project itself is alive, as can be seen from the history of commits and the mailing list. We added MathJax output support recently, for example. It is also true that the full distribution which is on CTAN haven't been updated since the original author passed away, but the ...

48

I was reluctant to publish this humble tool, but here it goes. excel2datatool excel2datatool is a Java application I wrote to help me with a personal project. Since it was useful for me and I do believe it's generic enough for other purposes, I decided to make it publicly available. The repository is hosted on GitHub. The whole idea is to read Microsoft ...

44

If you're going completely free/open source, then I guess dropping MS Word for something like OpenOffice Writer might also be considered. For this, there's OOoLaTeX. From the OOoLaTeX SourceForge project webpage: OOoLatex is a set of macros designed to bring the power of LaTeX into OpenOffice. It contains two main modules: the first one, Equation, ...

44

New version of writer2latex is pretty good. It works with the Open Office, but I think their command line utility should work without the OO. You can set quality of the converted document - from LaTeX as clean as possible, to version which tries to emulate appearance of source word document. Structure and basic formatting should be converted well, but I am ...

39

Adding \def\patterns#1{} \catcode\{=12 \let\newtoks\relax \let\dump\relax \let\+\relax \let\newinsert\relax \input latex.ltx To a LaTeX file makes it a plain TeX file. This is a LaTeX answer I gave to a question earlier today which runs without error in pdftex as modified: \def\patterns#1{} \catcode\{=12 \let\newtoks\relax \let\dump\relax \let\+\relax \...

39

I'm not sure why a Pandoc-based solution/answer on this page harvested so many upvotes, while being overly complicated. If you use Pandoc, the method is far easier: Just write Markdown. At occasions where you want to apply LaTeX features in your final document, just sprinkle the Markdown with your LaTeX snippets... Here is a working (not so minimal) ...

38

Excel2LaTeX An Excel add-in that converts parts of a spreadsheet into equivalent LaTeX tables. Free. CTAN: http://www.ctan.org/tex-archive/support/excel2latex/ Source: https://github.com/krlmlr/Excel2LaTeX Pros Most Excel formatting is supported. Bold and italic (if applied to the whole cell) Left, right, center, and general alignment (per-cell or per-...

36

A proper markdown parser is a task too complex for latex. Not because TeX is not a Turing complete language (it is), but because it would be very difficult to implement, and probably will have a very poor performance. One idea which immediately comes to mind is to use LuaTeX, and code the markdown parser in Lua language. This sound certainly feasible. ...

34

You can use the fmtcount package to achieve that: \documentclass{minimal} \usepackage{fmtcount} \begin{document} 4: \numberstringnum{4} 31: \numberstringnum{31} \end{document} Use \Numberstringnum and \NUMBERstringnum respectively for capitalized and full-caps versions.

34

Orgmode Orgmode is a notes/planning mode for Emacs that has a nice table feature. http://orgmode.org/ Pros Column widths auto-adjust based on contents Behaves as a spreadsheet, including calculations, row/column insert and delete, row/column moves, rectangular selection Import and export of TAB or whitespace separated data Lots of export options (LaTeX, ...

32

Assume that you want to create an animation as follows. Step 1: Create a PDF file consists of at lease 2 pages. Compiling the following input file with either latex-dvips-ps2pdf or xelatex produces a PDF file with 30 pages. Each page represent one frame. % input.tex \documentclass[pstricks,border=0pt]{standalone} \usepackage{pstricks-add,fp} \FPeval{Size}...

30

Check out InftyReader. Quoting the start page: InftyReader is an Optical Character Recognition (OCR) application that recognizes and translates scientific documents (including math symbols) into LaTeX, MathML and XHTML!

30

Update: 2012-01: The standalone class now has a varwidth option, so with the current release, one would simply use the [varwidth] package option: \ifdefined\formula \else \def\formula{E = m c^2} \fi \documentclass[border=2pt,varwidth]{standalone} \usepackage{standalone} \usepackage{amsmath} \begin{document} $\formula$ \end{document} Save the ...

29

The Mathpix app (for iOS only, Android coming soon) actually does this all on your phone via the camera. Just take pictures, and you can export as Latex, PDF, or you can get an Overleaf link (they have a really nice browser based editor). The iOS link is: https://itunes.apple.com/us/app/mathpix/id1075870730?ls=1&mt=8 and the main website is just http:...

28

After an add-in has been installed, it is available to use, but it has to be activated first. For this, follow these instructions. An abbreviated list of steps are: Click the Microsoft Office Button. Click Excel Options. Click Add-Ins. Note the Add-in Type in the list displayed. Select the Add-in Type in the manage box and click Go. Select [clear] the check ...

28


27

ConTeXt does not directly output XHTML, it outputs XML. However the current browsers (at least Opera, Firefox and Chromium) are able to display XML correctly. The XML can be styled using CSS. When you want real XHTML, you have to transform the XML to XHTML using external tools. ConTeXt standalone ships with an example file: texmf-context/tex/context/base/...

25

Proof of concept The following code implements a "proof of concept" showing that the approach (1) I proposed in another answer is feasible. This example defines a Markdown environment which dumps its contents verbatim to an auxiliar file (called \jobname-aux.md), and inmediatelly uses Lua to parse that file as markdown. For this parsing it uses the library ...

24

I'm the developer of MyScript (formerly VisionObjects), but I'm not in the research team. TeX characters are not all supported. Gregory posted on HN a list of chars we support. Suggestions are welcomed. Do not hesitate to send us missing symbols or UI improvement ideas.

Only top voted, non community-wiki answers of a minimum length are eligible