Text FormattingImporting rich text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Importing rich text

Post by AleCes »

Is there a way to import at least basic features (italic, bold etc...) into LaTex? I mean, is there a way to avoid reformatting it from scratch?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Importing rich text

Post by frabjous »

What format is it in now, RTF?

Take a look at rtf2latex2e or wvWare or pandoc, for example. Here's a blog post on converting documents to LaTeX format which might provide some tips.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Importing rich text

Post by localghost »

I guess the rtf2latex2e project is what you are searching for. There are OS specific versions available on the project page.


Thorsten
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Re: Importing rich text

Post by AleCes »

Thank you guys, I'll let you know if those solutions may satisfy me. Going to tell you soon.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Importing rich text

Post by AleCes »

OK, trying to ./configure rtf2latex I get this error message:

Code: Select all

loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking host system type... ./config.guess: 1015: Syntax error: end of file unexpected (expecting ")")
configure: error: can not guess host type; you must specify one
What's wrong with it??? :roll:
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Importing rich text

Post by frabjous »

I remember having the same kind of problem when I tried to compile rtf2latex2e. I guess the config.guess program it comes with is faulty.

For me, the solution was to use the --host option to configure program to manually specify the host. For me, this was:

Code: Select all

./configure --host=x86_64-pc-linux-gnu
But obviously that only makes sense for a 64-bit version of Linux, and I don't know what you're using. (E.g., you might use i686-pc-linux-gnu instead if you've got a 32 bit version of Linux running, or maybe i486-pc-linux-gnu for an older processor, etc.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Re: Importing rich text

Post by AleCes »

OK I configured, made and installed it. It works!
Thank you everybody!
Post Reply