Thursday, September 19, 2019

Re: Formatting inconsistencies between vim and other text editors

On 18/09/2019 19:23, 'Ottavio Caruso' via vim_use wrote:
> First of all, I know vim is a text editor and not a word processor, but...
>
> I have a heavily formatted resume in pdf that I want to make as
> machine-readable as possible yet decently readable by a human.

You might want something a bit more sophisticated for that.

To achieve the exact same goals I use Org mode.[0] It is a format that
was made to be exported into other formats. You write the document once
(and the markup language is as readable as Markdown), and then export it
as plain text, UTF-8 text, [X]HTML, LaTeX (to PDF, EPUB, etc.),
LibreOffice formats, as presentation slides, etc. You can write the org
file in vim (or in spacemacs, which is emacs with vim keybindings), but
you will need emacs to do the export part.

>
> I have converted it into plain text first, then, in vim:
>
> :set textwidth=80
>
> I selected the text with "V" and applied "gq". Then I've removed all
> formatting and put a bit of spaces and tabs here and there.
>
> It looks great in vim, but when I view it in Pluma, Gedit or Xed
> (Debian Stretch) the formatting is all messed up. Some line breaks are
> not recognised; tabs are not implemented consistently.
>
> Where would I start troubleshooting the issue? Have I followed the
> wrong workflow?
>

[0] <https://orgmode.org/>

--
Regards,
Oleksii Vilchanskyi

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/66a93d63-1b3c-21ce-e5d7-01909a17ff1a%40gmail.com.

No comments:

Post a Comment