How can I convert an .rtf or .doc document to LaTeX? [closed] - latex

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program.
What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keeps my formatting).
I am using Mac OS 10.5.8.

Open Office can. Download it.

See the fmtconv question on the UK TeX FAQ, or, more specifically, the page on Converters from PC Textprocessors to LaTeX - Overview, which is specifically about this question and has many many examples. This general list of word-processor filters may help too.

UnRTF claims to be able to convert RTF to LaTeX as well as other formats (e.g. HTML). It claims to support HTML best, so perhaps RTF->HTML->LaTeX (e.g. with html2latex) might work better. I haven't actually tried any of this though.

Make your rtf/doc document into docx, and convert it using docx2tex.
You need the System.IO.Packaging .NET class to get this to work, which is no problem if you are using Windows, and is in principle supported by Mono if you are not. If anyone has success doing this with Mono, I'd like to hear of your experiences: this didn't work a year or so ago, but their implementation of that class has improved since then.
I say more about the utility in an answer at tex.stackexchange. Suffice it to say that I consider this by far the cleanest, most Latex-friendly option out there.

Related

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

I want to write a script to convert my .mobi files to epub [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Hey guys/girls,
I am in need of a script to turn my 100+ mobi files into epub.
I am currently using stanza (mac) to convert each file one by one.
I was wondering if someone could tell me how to do all of them at once. IE. A script that will do it for me. Time is not an issue. I just don't want to sit here and do it. I found a couple of sites that allow you to upload you file to them and they would give the epub format back to you. This is great except that they only allow one file at time as well.
Sorry if this was not clear. English is not my first language.
Thanks.
try calibre, it allows bulk conversion between many ebook formats and I used it successfully on some PDFs I wanted to read on my kobo.
I would also suggest using Calibre. You can BULK convert mobi files to epub files. Going from mobi to epub can usually be done with just the default conversion settings in Calibre (going from PDF to epub, on the other hand, typically requires a bunch of fiddling around with settings and regex in order to get it to look okay in epub). As you have mobi files it's likely you'll have them converted in no time.
Get Calibre from: http://calibre-ebook.com
Get help with Calibre from: the Calibre forum at http://www.mobileread.com (directly link: http://www.mobileread.com/forums/forumdisplay.php?f=166 )
The online manual is here: http://manual.calibre-ebook.com/
I think you'll find writing your own script is not necessary.

View VRML file with WebGL-capable browser [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have a legacy application that generates VRML 1.0 files. I'd like to build a WebGL-based web interface that can display these VRML files. Is there an easy way to do so?
Edit: Specified that they are VRML 1.0.
If you can get it to VRML 2.0 (VRML '97) using a tool like the above-referenced one from Parallelgraphics, you can use the Fraunhofer Institute's tools (see discussion and links to InstantReality at http://www.x3dom.org/?page_id=532) to go from VRML 2 to either X3DOM or X3D. With Firefox or Chrome and a current graphics card and driver, you've got the WebGL support needed to run X3DOM. X3DOM handles only a subset of X3D, but can be referenced straight from XHTML and CSS, or plug-ins required. It's at a much higher level and easier to deal with than dealing directly with WebGL.
As I understand it, X3D is a development from VRML, and there's a WebGL-based renderer for it called X3DOM. Converting over is unlikely to be zero-effort, but it might be easier than trying to make the jump all the way to a "native" WebGL format.
VRML can be pretty complex with lots of interactivity and it doesn't look like a ont-to-one converter is available. However, here is what you could try:
Convert your VRML file to a standard OBJ file using something like MeshConv
Import the converted file in CopperLicht (Free) or CopperCube (Not free)
You will then have some kind of conversion of your VRML file which you can fine-tune.

include a .tex file with spaces in the filename [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am including chapters in my latex file one by one by using the \include{} statement, up till now I've had no problem with that. But I've recently written a chapter which I've saved under a name including spaces...because you can.
Now the include{} statement apparently doesn't like spaces, and prints just the filename in my document in stead of the chapter.
It is probably a pretty easy fix (apart from removing the spaces in the filename, ;-) ), but I can't find it.
UPDATE
It doesn't bode well for this question according to this wiki. It says that you can't unless you use a recent distribution like teTeX 3 or MikTeX 2.4.
However one smidge of hope left, the page is dated 2005 (a lot can happen in 5 years) and I am using pdflatex included in ubuntu which I assume is a fairly recent distribution.
Try
\include{"file\space name"}
(I.e., use quotes and \space.) You may need to remove old .aux files and/or run Latex twice.
Well I'm closing this question by giving the (quite unsatisfying) answer, I've found (on this wiki).
At the moment the answer unfortunately is: you can't, unless you use a recent version which happens to handle this problem more gracefully. Examples: teTeX 3 and MikTeX 2.4.
It seems that unusual filenames are still a problem within latex, so your best bet is to abstain or, if you have to, find a version that has solved the problem.
It works. What you need to do is if your chapter file is File Of Mine.tex then in the main .tex file put
\include{"File\space Of\space Mine"}
but inside File Of Mine.tex you just need to have \chapter{File Of Mine}. Try this and see if it works for you. It does for me.

Code snippets for Delphi? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there a good code snippets application for Delphi or general purpose with IDE integration? I would like to store Code, queries, notes, etc..
Thanks
GExperts has a Code Librarian feature for code snippets amongst many other nice features and integrates with the IDE. Well worth to check out even if you don't decide to use the Code Librarian feature.
Delphi 2006 and later has Live Templates. They are a bit tricky because you've got to edit XML files to really make them work, but they are powerful when they do. See Nick's Live Templates Camtasia Presentation. Ctrl-J is the shortcut to invoke this.
Prior to that, Delphi 2005 and earlier had simple code snippets. I believe Ctrl-J also invoked them.
Another option is to use Castalia and its Code Templates feature.
Dittos to Ozmosys above.
Also check CodeSnip Database Viewer from the delphidabbler:
http://www.delphidabbler.com/software/codesnip
I use Knowledgebase from Ozmosys. It hasn't been updated in a while, but it works, and it is written in Delphi. Ozmosys
I have to endorse Ozmosys' Knowledge Base too. The reason it hasn't been updated in a while is that it just works. When I DID have issues early in the development of the program, the author was very responsive and quick about doing it. It's logical and easy to post code and other types of hints. I use it every day, juggling the three or so projects that seem to be perpetually on my plate.

Resources