From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OvZ5MFH50WSMZAEASxT56A (envelope-from ) for ; Tue, 08 Aug 2023 10:14:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OC67LlH50WQDOwAAG6o9tA (envelope-from ) for ; Tue, 08 Aug 2023 10:14:09 +0200 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 3ED7354BC9 for ; Tue, 8 Aug 2023 10:14:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=CqJb63aR; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691482449; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dvwq/LTR3XoI1pA8/iWC4UxMi/Y9U3N5Qa9EE+zOACc=; b=mnN8W4iV+KCxZ5ohyyVCsXp2Gbc08KvmohU7wD6zMCW9VTxyYS9EWCYKRbDXFk+XhmLDKC XEMKIS2sz7mSuNTxurHmNE2e4v6+03gXxlpN+n5Q4A6i7wxmHFEckcRYtsRudtKIz6JVo9 Srwmq9kmb+6+ZvzPvVUeAMBjgMyK3k9FYjG3/Pw1L43RzNoMKwzldOzfZlVUzRVoa/zzEe deco0y40s3c7vpo1kVdSFcLFP7wAr485NKiKqVpnxiz5bVKTJUPEK/suFoF5OhE2yN3RLI NXarR56wn+/VYUp8Q+1PVDGXooIbGhhwQP8lAn30ulPOdrM6kLrgmn8mPyt1HQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691482449; a=rsa-sha256; cv=none; b=Lf5wxI/IQxnpM97jM3laB2p37AwE1N3KOj8UT28LhUAaaRFhC4Vh7pkm5y6B3iJRC1xQ7v gSUmWKAtnpiFKZTnBK7qB77CLVvlIwagvmxrzjruwFg+7oVQsbpjQXidRf0GQ0mHBdwhTm dyFUnbofEBeajvXCCLDwivYqJeXsmLZ2d78UH8V3N/ZUvNiGb+w26wt7mXrJ6uOrMdvuAT A53T52AdKV4cmfPRwFDo75lSzVYn/qycrQvAQFa30249A7DU7aBHVX3SlysGmtbLZV/Z2y XycO4OnHucBtgYyY4WjfyI7ZUGtaqQUMRJ+WApMWmcVLG53mB71iGzP3BO0AtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=CqJb63aR; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTHqB-0006li-5m; Tue, 08 Aug 2023 04:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTHpv-0006jm-Nk for emacs-orgmode@gnu.org; Tue, 08 Aug 2023 04:13:04 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTHpq-0007OB-U9 for emacs-orgmode@gnu.org; Tue, 08 Aug 2023 04:13:03 -0400 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b9e6cc93c6so82211331fa.2 for ; Tue, 08 Aug 2023 01:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691482376; x=1692087176; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dvwq/LTR3XoI1pA8/iWC4UxMi/Y9U3N5Qa9EE+zOACc=; b=CqJb63aRdG5ZOWPD9+FiHlLMVYO5wOGi0j7mHvqLiKshMZ+n4EeXHeTKLuw0McOVtI PH2hi3dAidvGH04le1O1L9BKEB/yyX9naPtb5suQHURMSO5+ULN+wHj+LPcv+W+005fd 6EZWodonmUDA0I0o3EKff6FZPhhVe/jyt4PJdB+b2s9gMD5nazJD5iPjGzKx+Dc/AjK0 DOJk87VuHcFlz6k3QsKuMmkvvtrWGiMSfhn3dxgY5TULuKc5UQPL62NWv2+nfNLLs/BF 3GGwpIqHeQtLHb1GhYVs+VxBtwc+Q6sU3167uHrFKHIBH9+5GaJi8BP7zQuY3RKBvMkl n2lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691482376; x=1692087176; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dvwq/LTR3XoI1pA8/iWC4UxMi/Y9U3N5Qa9EE+zOACc=; b=TEQreB0bjmHtTeZpHLVNUsYuBmCizGlK5WpymHNLrxXH6pvec0KDvk8aQrSN11v5gT hqGJBkpxvnxrvV5pKVSOxLGf39UG8REwQS2BEbo4c70+WqaYiS6fCbKlJ9H+jVclbAhV a5hepfbhMe7nR9bLr0ilfWtOa3sWRvB8huuGaA/+l7bXcg6eEvRo2eT6YM/NyG66Dj7g ctqmdUH+UU8OQjYku3iu8JnfLSIojetEAoMh83orrhWBdgOKWFsay5xHuyHsZfmKgeNi YHc5irpziI6E+TFUHHqnoPzAPzvka2b0zagSD48E7D9Eh/qWo4s0AB0nfJRyJ7lmtoRd +kQw== X-Gm-Message-State: AOJu0YyjU+VhIE3SEtBJqGqkD60imvhB/CgsEjaK8JGaO52LwMiDPzPE lunRKttyiA1HzC+fKztq5RG77Vk7EUGscg0bYAM= X-Google-Smtp-Source: AGHT+IHHpeoSHO93Lv7xzZ6NiWBpI2r7lkDM6pZrScj1K5H8MkPHKWso1vufiz2lrevo0ZPhTVTZeU0w2sev+FNaj6U= X-Received: by 2002:a2e:7d11:0:b0:2b6:d5af:1160 with SMTP id y17-20020a2e7d11000000b002b6d5af1160mr8025448ljc.28.1691482376253; Tue, 08 Aug 2023 01:12:56 -0700 (PDT) MIME-Version: 1.0 References: <874jlbkqxl.fsf@christianmoe.com> In-Reply-To: <874jlbkqxl.fsf@christianmoe.com> From: Zenny Date: Tue, 8 Aug 2023 10:12:44 +0200 Message-ID: Subject: Re: kaobook tex template integration to a org file to make self-contained, portable? To: Christian Moe Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000002e3559060264ee20" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=garbytrash@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 3ED7354BC9 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.54 X-Spam-Score: -8.54 X-TUID: HvQJs52Ndu5Q --0000000000002e3559060264ee20 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Christian for the pointer, But I already have, (add-to-list 'org-latex-classes > `("kaobook" > ,(string-join > '("\\documentclass{kaobook}" > "\\usepackage{color}" > "\\usepackage{amsmath,amssymb}") > "\n") > ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > yet `C-c C-e l o` fails to produce pdf. Cheers, On Mon, Aug 7, 2023 at 1:55=E2=80=AFPM Christian Moe wrote: > > > Hi, > > For starters, have you added the kaobook document class to the variable > org-latex-classes? (If yes, ignore the rest of this message, if not, do > so and see what happens.) > > This is needed to tell Org how to set the document class and what command= s > are used for sections. See the manual 13.10.2 and 13.10.3, > [[info:org#LaTeX specific export settings]] and [[info:org#LaTeX header > and sectioning]], and look up the docstring for org-latex-classes if you > need help. > > E.g., in .emacs I have this for Tufte-Latex: > > (add-to-list 'org-latex-classes > '("tufte-handout" > "\\documentclass[11pt,a4paper]{tufte-handout}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}"))) > > (add-to-list 'org-latex-classes > '("tufte-book" > "\\documentclass[11pt,a5paper,nols]{tufte-book}" > ("\\part{%s}" . "\\part*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}"))) > > Yours, > Christian > > > Zenny writes: > > > Hi, > > > > References of interest: > > 1. https://github.com/fmarotta/kaobook > > 2. https://github.com/asilata/emacsconf2021 > > > > Can anyone guide me how to get a self-contained and portable template > that > > executes kaobook tex templates (see 1) to create an org-file that > resembles > > with the instance in 2 above? > > > > I tried the best I can by adding the kaobook.cls and kaobook.sty files > > inside `~/texmf/tex/latex/kaobook/` folder and specified 'kaobook' in t= he > > `#+latex_class: kaobook` but it failed to produce the desired look of p= df > > similar to > > > https://github.com/fmarotta/kaobook/blob/master/example_and_documentation= .pdf > > withing the same examples directory! > > > > Any input appreciated! > > > > Cheers and have a nice week, > > /z > > --=20 Cheers, /z -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its contents by anyone other than the intended recipient is unauthorized as it contains privileged and confidential information, and is subject to legal privilege. Please do not re/distribute it. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver the email and part of its contents to anyone this message (or any part of its contents or take any action in connection to it. In such case, you should destroy this message, and notify the sender immediately. If you have received this email in error, please notify the sender or your sysadmin immediately by e-mail or telephone, and delete the e-mail from any computer. If you or your employer does not consent to internet e-mail messages of this kind, please notify the sender immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail and attachments included. As the sender cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments it is recommended that you are responsible to follow your virus checking procedures prior to use. The views, opinions, conclusions and other informations expressed in this electronic mail are not given or endorsed by any company including the network providers unless otherwise indicated by an authorized representative independent of this message. -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. --0000000000002e3559060264ee20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Christian for the pointer,

But I already have,

=C2=A0(add-to-list 'org-latex-classes
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0`("kaobook"=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0,(string-jo= in
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= '("\\documentclass{kaobook}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\\usepackage{color}&q= uot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0"\\usepackage{amsmath,amssymb}")
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\n")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\chapter= {%s}" . "\\chapter*{%s}")
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\section{%s= }" . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsect= ion*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0("\\paragraph{%s}" . "\\paragraph*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\su= bparagraph{%s}" . "\\subparagraph*{%s}")))

yet `C-c C-e l o` fails to produce pdf.

=
Cheers,

On Mon, Aug 7, 2023 at 1:55=E2=80=AFPM Christian Mo= e <mail@christianmoe.com>= ; wrote:


Hi,

For starters, have you added the kaobook document class to the variable
org-latex-classes? (If yes, ignore the rest of this message, if not, do
so and see what happens.)

This is needed to tell Org how to set the document class and what commands<= br> are used for sections. See the manual 13.10.2 and 13.10.3,
[[info:org#LaTeX specific export settings]] and [[info:org#LaTeX header
and sectioning]], and look up the docstring for org-latex-classes if you need help.

E.g., in .emacs I have this for Tufte-Latex:

(add-to-list 'org-latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("tufte-handout&q= uot; "\\documentclass[11pt,a4paper]{tufte-handout}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\section{%s}= " . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{= %s}" . "\\subsection*{%s}")))

(add-to-list 'org-latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("tufte-book"= ; "\\documentclass[11pt,a5paper,nols]{tufte-book}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\part{%s}&qu= ot; . "\\part*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\section{%s}= " . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{= %s}" . "\\subsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\paragraph{%= s}" . "\\paragraph*{%s}")))

Yours,
Christian


Zenny writes:

> Hi,
>
> References of interest:
> 1. https://github.com/fmarotta/kaobook
> 2. https://github.com/asilata/emacsconf2021
>
> Can anyone guide me how to get a self-contained and portable template = that
> executes kaobook tex templates (see 1) to create an org-file that rese= mbles
> with the instance in 2 above?
>
> I tried the best I can by adding the kaobook.cls and kaobook.sty files=
> inside `~/texmf/tex/latex/kaobook/` folder and specified 'kaobook&= #39; in the
> `#+latex_class: kaobook` but it failed to produce the desired look of = pdf
> similar to
> https://github.com= /fmarotta/kaobook/blob/master/example_and_documentation.pdf
> withing the same examples directory!
>
> Any input appreciated!
>
> Cheers and have a nice week,
> /z



--
Cheers,
/z

-.. .. ... -.-. .-.. .- .. -- .= .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
CONFIDENTIALITY NOTICE= AND DISCLAIMER: Access to this e-mail and its contents by anyone other tha= n the intended recipient is unauthorized as it contains privileged and conf= idential information, and is subject to legal privilege. Please do not re/d= istribute it.=C2=A0 If you are not the intended recipient (or responsible f= or delivery of the message to such person), you may not use, copy, distribu= te or deliver the email and part of its contents to anyone this message (or= any part of its contents or take any action in connection to it. In such c= ase, you should destroy this message, and notify the sender immediately. If= you have received this email in error, please notify the sender or your sy= sadmin immediately by e-mail or telephone, and delete the e-mail from any c= omputer. If you or your employer does not consent to internet e-mail messag= es of this kind, please notify the sender immediately. All reasonable preca= utions have been taken to ensure no viruses are present in this e-mail and = attachments included. As the sender=C2=A0 cannot accept responsibility for = any loss or damage arising from the use of this e-mail or attachments it is= recommended that you are responsible to follow your virus checking procedu= res prior to use. The views, opinions, conclusions and other informations e= xpressed in this electronic mail are not given or endorsed by any company i= ncluding the network providers unless otherwise indicated by an authorized = representative independent of this message.
-.. .. ... -.-. .-.. = .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
=
--0000000000002e3559060264ee20--