From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uBE+NN06LmLxSwAAgWs5BA (envelope-from ) for ; Sun, 13 Mar 2022 19:41:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gOvGMd06LmJVbQAA9RJhRA (envelope-from ) for ; Sun, 13 Mar 2022 19:41:33 +0100 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 4D8AD38D0D for ; Sun, 13 Mar 2022 19:41:32 +0100 (CET) Received: from localhost ([::1]:37700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTT9m-0008Nh-1L for larch@yhetil.org; Sun, 13 Mar 2022 14:41:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTT81-0008NI-Se for emacs-orgmode@gnu.org; Sun, 13 Mar 2022 14:39:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTT7z-0005D1-Sn for emacs-orgmode@gnu.org; Sun, 13 Mar 2022 14:39:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5EF7A240026 for ; Sun, 13 Mar 2022 19:39:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647196775; bh=Vu83kynGwaAoq9FHphw2Ux3B2IqK1x29PYETddW9tZc=; h=From:To:Cc:Subject:Date:From; b=egTiI707AOFpEWiqS1BsQe7xM+CiEHLJ4UiX1MIxjxBXU85vD/LdZDOfrZC57uP3U t1s+WcsAVrC0XgOvgVJ+cuzfqfBwFge9b4FewbvcHOuxt/GBy35rCUFOoAD2felJN3 9E3Dh/zYQrIKzqxYEaMg1l4HGM7pAKUIT6EwzdnDnnJnlo20KrZ2a/aRt9OzCVJ2M0 yWu54fEI+0RBOfjgleNyR3gF9E38RbHXATKBL7ZwA5YPgDJmOZuIkXI4xfDca1rpj8 gUqB/TSeky+9Cttj9DWQopEZ773GunagiVklJgn8AnZmlTFXagBExa+WHMbZRxUVOr ONt9o/b0OBbvw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KGpP15TCcz6tn9; Sun, 13 Mar 2022 19:39:33 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Kaushal Modi Subject: Re: Code blocks and quotes export style References: Date: Sun, 13 Mar 2022 18:39:26 +0000 In-Reply-To: (Kaushal Modi's message of "Sun, 13 Mar 2022 12:06:11 -0400") Message-ID: <8735jlbstd.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode , =?utf-8?Q?S=C3=A9bastien?= Gendre Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647196892; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Vu83kynGwaAoq9FHphw2Ux3B2IqK1x29PYETddW9tZc=; b=DMHzoDujXpZBL8X3IKKQVv5lnZ8vGpWINMXYl5GNXbc8cMCMaq59CQfVIwdm7xui4s6NmQ GPVAFKk1ylixXmJ+TagiBThZ32dwLUr4TeBtmhwUokDdbOihobNTdNI461ZyIxraF35H3L VdnUkH6IMk+EAPQNVUBoSIf78Xdy4ctEMBsNzeEQXkZaT+jqnCpHj4+/pEjmf/8H/Gf8mx 6eERtk2STQE/rYPqWaVhalFfKGZKuk8lfPvPiIJCwxpXPNd+GPBWRPz0eh1T/crVaxJaRP w95IJHb3KQnXjnJTrrPKZxibPSIQw5PDyo8xVTLs1SB7B4H6QLutryCuqmDQGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647196892; a=rsa-sha256; cv=none; b=trSb5UhDRqjl9WMxnLUHCF7zZXKGzjv2z21Z0sqRX7o1N707m1vQHBrN8x9y8p0cTY2BCh 5h49OUs1y+EtP2S3qIcirbeJUzd6oO8sCSe/ZH0lgJBY4qwkF2xsUTRf7RL4oc1R64xDRX Z8YIjMx28Z6uxug3be1qOOZ+PbR6XQiIQStVawNpP3B35h52vhkpBRZgZLURBR26dNIGZX wGPHJnEaLQYjgpy/1Jro3eF2apZAjwnv4pE3TmqVK+OZAXypH2gkCZAeIwZ4s+odoE2hyO Z0xtjWfwPyBNnM+kjEDuO0dUzo7pLLQE5mgCjt/g/SoH6/8d+DFqlsqTWPcv7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=egTiI707; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=egTiI707; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4D8AD38D0D X-Spam-Score: -6.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: Qp4LzpUPNlVA Kaushal Modi writes: > Well, that will at least help the code blocks going out of bounds. It > won't help the quotes.=20 With the quotes going out of bounds issue it would be nice to see a screenshot. But if a line of normal text goes outside the margin, it is usually due to a TeX overfull hbox, perhaps because TeX hasn't been able to hyphenate a long word correctly (also perhaps because the text is in a language other than the main language, and that text should be encased in the secondary language specifications). For this type of lines outside the margin there are several LaTeX solutions: The quick fix is to add a discretionary hyphen (\-). For example, if the word that goes outside the margin is "supercalifragilistic", the discretionary can be added with an export snipett: Supercali@@latex:\-@@fragilistic Or even breakpoints can be indicated with the '\hyphenation' macro in the preamble (we can add a list of words separated by commas): #+LaTeX_Header: \hyphenation{Supercali-fragilistic} Another solution is to disable TeX's line break algorithm at the paragraph where the line overflows, using the slopypar environment. The result can be ugly, with too wide separations between words. On the other hand, loading the microtype package (in pdfTeX or LuaTeX) usually helps a lot in the construction of the paragraphs. And finally, if LuaTeX is used to compile, the linebreaker (https://www.ctan.org/pkg/linebreaker) package automatically prevents all overfull hboxes in the document. Also note that the Org quote block supports the :environments attribute, where we can apply environments other than 'quote', such as quotation or those provided by the csquotes package. For example, for quotes in another language: #+LaTeX_Header:\usepackage[german,english]{babel} #+LaTeX_Header:\usepackage{quoting} #+LaTeX_Header:\usepackage[babel=3Dtrue,autostyle=3Dtrue,german=3Dquotes]{c= squotes} #+LaTeX_Header:\SetBlockEnvironment{quoting} #+ATTR_LaTeX: :environment foreigndisplayquote :options {german} #+begin_quote Eine Erkl=C3=A4rung, wie sie einer Schrift in einer Vorrede nach der Gewohnheit vorausgeschickt wird (Hegel). #+end_quote Best regards, Juan Manuel=20