From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 iOX4OcLk0GRNAAEASxT56A (envelope-from ) for ; Mon, 07 Aug 2023 14:34:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UPbUOcLk0GQrEwAA9RJhRA (envelope-from ) for ; Mon, 07 Aug 2023 14:34:10 +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 85C565A2CF for ; Mon, 7 Aug 2023 14:34:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=SYV7EWno; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691411650; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=aqWOfIJiPe8jQWiILx+MzHPx0Ga2HyweCgFPT568GeU=; b=koj7dR/fTD1VLEs4z0A9xcIVAwOuRYUm9ioebFsiLaFxREThpjJ5TM1jOx7MNCFRibr7S4 JcO9jNrXCEIjUdG+kCGI+K5HxHzjexXnwCcNmlL7ADDvWmPOUPfWeN5Y4TCbSS5gfQMnSu DmOQJ/B0QunAWsIMemNwQ8NDLkMR9JICPjgEUo4ScQ26R+nnp7KrH5Ppjq4Ou6MJES0+r0 qFHL2JybtQ4fys7eQoiF/uAdmHkqZpqMYlSOTCnsS7/v6TscS8g6gsQWfeDlbOMlImA4Fk gkGXkqiXBod0Cu6DS9DJXNacAO6nInmXBxk2wChf3JY7xgB7tGAefvBXybnIjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691411650; a=rsa-sha256; cv=none; b=OFty8KQKP53AzeZ2O58wS5CgzSqUO0CUUuGgDcPEf4rBnXg0ed0rcRXJ3foeXOCWzS9ojl IH+sHk+rObYARnmJbKdhNybISYFtSEKg/lsmAKDTjFENV5DlMoEbQ3mogFvxHrtU518TUo 1MBOL56k7YlP/+t0Xg8iN6r5tLbX3FJCQMWCOUDbszigTUDGkgt6BulolgEfV2huR+DUSL XyfqexOS+l9AHahXTJ8SbzlBFLd6eVrqDUdS5zNlZyB2dGY9KmZLnVU9KmzyA3ka/kfq0M pKijbKWo9Z5TNC1oPIGvOdUIVtDB7W9bbv9tkhDBtCUAhgDlm84fHlui799Jwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=SYV7EWno; 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSype-0004MD-I1; Mon, 07 Aug 2023 07:55:30 -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 1qSypc-0004KX-8Z for emacs-orgmode@gnu.org; Mon, 07 Aug 2023 07:55:28 -0400 Received: from mailer-211-161.hitrost.net ([91.185.211.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSypZ-0008EU-Lp for emacs-orgmode@gnu.org; Mon, 07 Aug 2023 07:55:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=christianmoe.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:To:From:References:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aqWOfIJiPe8jQWiILx+MzHPx0Ga2HyweCgFPT568GeU=; b=SYV7EWnongcpEKociMKftah2Jp 6y5+hWiKt57R4+x4EPwG2/w51iukH8e9L8tCCRJphVPB6s24QpccfwSn8tUmkrjkh6Bw6hhLzVsDZ 4+DYiVwh4NWerG41fExC5tsNn1rHPiz3zdnRjvhn4ILm1ShqjDdhw+VkSnxpwk/n44mppbEah5xTV XI2mHr2HUUU71NIVx2R+tzdIV+Bb8sH2enHmrThd9DFbiavc0DTDoGrDME37dDLFjhymrTsDo826L 0X6JPD1Gj8WodHm+5z8zsZtoyNaKpyZS1GXECObMZB4aFuGWqiD0WHsdX89DUM2xqFSrxFwZLGpWF l/Iu7lmQ==; Received: from [178.74.13.195] (helo=Tauriel) by b1.hitrost.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96-58-g4e9ed49f8) (envelope-from ) id 1qSypT-00GsmK-2F; Mon, 07 Aug 2023 13:55:19 +0200 References: User-agent: mu4e 1.2.0; emacs 27.2 From: Christian Moe To: emacs-orgmode@gnu.org Subject: Re: kaobook tex template integration to a org file to make self-contained, portable? In-reply-to: Date: Mon, 07 Aug 2023 13:55:18 +0200 Message-ID: <874jlbkqxl.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain X-GeoIP: Country [IP], NO [178.74.13.195] X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-Authenticated-Id: mail@christianmoe.com Received-SPF: pass client-ip=91.185.211.161; envelope-from=mail@christianmoe.com; helo=mailer-211-161.hitrost.net X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: 85C565A2CF X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.11 X-Spam-Score: -5.11 X-TUID: FLatN6HmrS+7 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 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 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