From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8NSHLoUV719AXQAA0tVLHw (envelope-from ) for ; Fri, 01 Jan 2021 12:28:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GIoQKoUV71/wbAAA1q6Kng (envelope-from ) for ; Fri, 01 Jan 2021 12:28:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F41489404C8 for ; Fri, 1 Jan 2021 12:28:52 +0000 (UTC) Received: from localhost ([::1]:37538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvJY3-0007kd-T3 for larch@yhetil.org; Fri, 01 Jan 2021 07:28:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvJXZ-0007kQ-ML for emacs-orgmode@gnu.org; Fri, 01 Jan 2021 07:28:21 -0500 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]:43971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvJXX-0002W3-KD for emacs-orgmode@gnu.org; Fri, 01 Jan 2021 07:28:21 -0500 Received: by mail-il1-x12b.google.com with SMTP id q5so19275952ilc.10 for ; Fri, 01 Jan 2021 04:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=E9Xthv0Rcyc3Qik1bGEf4/245bgfv6tWJZC1Sg1EgSM=; b=aiNDPKArjJuNm19rIoz4fBzBBTGSKlY7LsPH0Uwxc64AaErNrJD6P5JfXRJazkrD6y Z9OQk25E+nUusC7YUF1RU9VdoS+VAbwqu8KYLHT7HY0QUnzz/1XyvdFMS3Pynhbgw/SV kYPgw1P39hcES7I4AoqdiuISLUJIrCp+c+AcIKDOUFPcGt9zQ6Fu3zQXlxSw0KO5gstP uqR+3sNXUSPN8E6cRA16JbMaLAOqiCOXIXAZOr+r5UequIywstlToK+Qow58uII+WAiw 0FTTyNgSSATNxZ5+D5c2rGqyV7bAPcJZoMQS0tumUoX8Huq4Ee0G0NDic3m58DdnrSos AKmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=E9Xthv0Rcyc3Qik1bGEf4/245bgfv6tWJZC1Sg1EgSM=; b=TkzYxIrUM0VQXjEXGs3Ulpbly4HN+Z4ERhWDqF0jW10y3K4AMONJCLDXl/hog8x6zO PQb46LTUgyD6Gmt8/cqktDAoP5NTu9lYQfbjLR6Kfpk9kmPlLvrNgyH8P8gI1cftsebf Dh6WLqTS3qeclv82jTHTwuRAQ13htyixaKFSVFxZSnsRJiAXhBbIiFl99VAFRHLJPdHK 2XceUA4W/5NjPandzd2YBuWTXj4YAvHDQ8XyqLVossywuAztVdPnlKvumd/x2k+yLVdZ +nSp8N84yhyBzAWyrL8gBfr8rAUWcM+/Hti7ZOVPDWuzu/L2w8oHi81/p8yEQeCQxvo0 XiCw== X-Gm-Message-State: AOAM531lFPCljzGK2ocWzOS501TQZtwN8mjhyVU5hiIse0JVf/LdK6bE SLYseZ0l2qsaiL6vl8gHRCGu92ljqhY= X-Google-Smtp-Source: ABdhPJxF9fWZw3wqB+Le/gL/qWulmdbJq7c0ZejwQKIB+p3amICQ5P6PylXIVqfYLLMR6j5W3kMiYQ== X-Received: by 2002:a05:6e02:1647:: with SMTP id v7mr56076147ilu.259.1609504097532; Fri, 01 Jan 2021 04:28:17 -0800 (PST) Received: from gusbrs-laptop ([143.244.47.150]) by smtp.gmail.com with ESMTPSA id r12sm29878463ile.59.2021.01.01.04.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jan 2021 04:28:16 -0800 (PST) From: Gustavo Barros To: "Blair, Erik" Subject: Re: underline with line breaks doesn't work References: <78B14F19-01D5-4EA8-B344-535AB8E84B9D@baylor.edu> Date: Fri, 01 Jan 2021 09:28:13 -0300 In-Reply-To: <78B14F19-01D5-4EA8-B344-535AB8E84B9D@baylor.edu> (Erik Blair's message of "Fri, 1 Jan 2021 05:22:59 +0000") Message-ID: <8735zkc04i.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::12b; envelope-from=gusbrs.2016@gmail.com; helo=mail-il1-x12b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=aiNDPKAr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: F41489404C8 X-Spam-Score: -1.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: VubYEpbrOJ5I Hi Enrique, On Fri, 01 Jan 2021 at 05:22, "Blair, Erik" wrot= e: > I would like to use \ul from the soul package in Org mode for underlining= with > line breaks (and *not* underlining spaces). It=E2=80=99s not working well= . It fails > like \underline (spaces get underlined, and lines don=E2=80=99t break and= run off the > page). My LaTeX export doesn=E2=80=99t work if I insert \ul{abc} into the= org file, > but I can insert \ulem{abc} or \underline{abc}, as well as the typical _a= bc_. > > More information: I=E2=80=99m actually trying to define a new command usi= ng logic in > the LaTeX header. This way, I can make notes with key words. I can toggle= a > Boolean variable, and it makes key words show up; or, it underlines the w= ords, > which are also hidden by \phantom. Also, we would like to avoid underlini= ng > spaces because it cues the reader to know how many words are missing. > > I note this previous discussion: > https://lists.gnu.org/archive/html/emacs-orgmode/2013-06/msg00376.html > > It seems like the issue that was fixed at one point and \ul should work, = but > maybe it=E2=80=99s not now. Or, maybe I don=E2=80=99t have the experience= to know how to apply > the solution to my Emacs/Org mode on my computer. `soul' was considered as a default for underline and strike-through in that thread, but some people reported problems with Chinese characters, so that eventually it was replaced by `ulem'. In other words, `soul' is not loaded by default by Org when exporting to LaTeX, `ulem' is. Much later, I've argued in that same thread in favor of `soulutf8' as a better default: https://orgmode.org/list/8736iobefh.fsf@gmail.com/ https://orgmode.org/list/871ry8bdo8.fsf@gmail.com/ But my necrobumping seems to have missed the opportunity at that point. Regarding your particular situation, you just tell us "it's not work well / doesn't work" which is not much to go about. And also not much about any Org export configurations you might have in your init. Anyway, the only guess I have with what you provided is that you are missing to load `soul' altogether. If that's the case, adding the following to your document should do: #+latex_header: \usepackage{soulutf8} That is, it should be enough for you to use it in your `\keyTest' or to use `\ul' directly. For Org to export `_abc_' as `\ul{abc}' you'd also need to configure `org-latex-text-markup-alist`. Note, however, that the `soul' underline will underline spaces. But that's an issue on the LaTeX side, and has nothing to do with Org. For this to work as you expect, you will either have to go fancy in your underlining (for which there is plenty of examples in tex.stackexchange) or, which is probably the easiest, provide that this is handled appropriately in your conditional for `\keyTest'. HTH, Gustavo.