From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Barros Subject: Re: Org-mode latex pdf export issue: Underlined lines not breaking properly Date: Mon, 29 Jul 2019 20:37:22 -0300 Message-ID: <8736iobefh.fsf@gmail.com> References: <20130306115906.GT7544@kuru.dyndns-at-home.com> <20130306140248.GX7544@kuru.dyndns-at-home.com> <87vc5nve0n.fsf@gmail.com> <87fvwqeu4o.fsf@news.tumashu-localhost.org> <87ppvsonjt.fsf@gmail.com> <87bo7cdcrf.fsf@news.tumashu-localhost.org> <87li6gok59.fsf@gmail.com> <877gi0da9k.fsf@news.tumashu-localhost.org> <871u84iiek.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51683) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsFCr-0004Va-NE for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 19:37:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsFCq-0006bx-Hu for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 19:37:29 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:38589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsFCq-0006bY-E6 for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 19:37:28 -0400 Received: by mail-qk1-x743.google.com with SMTP id a27so45318409qkk.5 for ; Mon, 29 Jul 2019 16:37:28 -0700 (PDT) In-Reply-To: <871u84iiek.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 14 Jun 2013 21:47:31 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Feng Shu , emacs-orgmode@gnu.org Hi all, On Fri, Jun 14 2013, Nicolas Goaziou wrote: >>>> Nicolas Goaziou writes: >>>>> 1. Does \underline{=E4=B8=AD=E6=96=87=E6=B5=8B=E8=AF=95} work prope= rly (notwithstanding the line >>>>> breaks)? >>>> >>>> \underline can show chinese, but the command can't resolve lines >>>> breaking properly. >>>> >>>>> 2. Does \uline from "ulem" package handle it correctly, including t= he >>>>> line breaks? >>>> >>>> \uline seem to work properly. >>> >>> Then, the best solution seems to add "ulem" package to >>> `org-latex-default-packages-alist' and use \ulem for underline. "soul" >>> will only be used for strike-through. >>> >>> Is there any objection to this change? >> >> May be \ulem should be used for strike-through too! > > Done. > I know this is a very old thread, and that perhaps this boat has sailed definitely. But it seems to me that the attempt to use soul back then eventually backfired because soul does not handle utf8 properly, as Feng Shu=E2=80=99s issue demonstrated. Indeed it does not. But there is a patch to soul, by Heiko Oberdiek, to handle this precise issue, and it is the package soulutf8. I=E2=80=99ve checked the commit history around the time of this thread, and= it seems soul, rather than soulutf8, was the attempt (https://code.orgmode.org/bzg/org-mode/commit/95eeefa9bca1b6c57fe62c248a0a3= 5302cd7374d). Neither soul nor ulem is very active nowadays, but are used quite extensively, as far as I know (from following TeX.SX). And both have their limitations. But the ability to have line breaks is a clear edge of soul, and the reason of the original request which started this thread. So, if the only reason to prefer ulem back in 2013 was utf8 support, perhaps soulutf8 might be worthy of your reconsideration. Best regards, Gustavo Barros.