From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: Dual document export slides and lecture notes title slide issue Date: Thu, 31 Jan 2019 12:08:55 +0100 Message-ID: <878sz15bjs.fsf@gmail.com> References: <6ea9b5cc-fd3b-75ea-a4ae-773f8e4b144a@th-koeln.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpADN-0004dM-HV for emacs-orgmode@gnu.org; Thu, 31 Jan 2019 06:09:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpADM-0002yz-Br for emacs-orgmode@gnu.org; Thu, 31 Jan 2019 06:09:01 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:38760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpADL-0002yj-Vm for emacs-orgmode@gnu.org; Thu, 31 Jan 2019 06:09:00 -0500 Received: by mail-wr1-x429.google.com with SMTP id v13so2792906wrw.5 for ; Thu, 31 Jan 2019 03:08:59 -0800 (PST) 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: johanna.may@th-koeln.de Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Johanna,=20 I am using scimax from John Kitchin [[https://github.com/jkitchin/scimax ]]and I recommend it to you warmly.=20 In my /user/user.el, here is what is about beamer :=20 #+BEGIN_SRC lisp (add-to-list 'org-latex-classes '("beamer-ahp-ul" "\\documentclass\[10pt,svgnames,fragile]\{beamer\} [NO-DEFAULT-PACKAGES] [PACKAGES] [NO-EXTRA] \\theoremstyle{plain}% default \\newtheorem{thm}{Theorem}[section] \\newtheorem{theo}{Th=C3=A9or=C3=A8me}[section] \\newtheorem{lem}[thm]{Lemma} \\newtheorem{prop}[thm]{Proposition} \\newtheorem*{cor}{Corollary} \\theoremstyle{definition} \\newtheorem{defi}{Definition}[section] \\newtheorem{rema}[thm]{Remarque} \\newtheorem{Conjecture}[theorem]{Conjecture} \\newtheorem{exa}{Example}[section] \\newtheorem{exem}{Exemple}[section] \\\hypersetup{colorlinks, citecolor=3Dblue, linkcolor=3D., menucolor=3Dwhite, filecolor=3Dpink,=20=20=20 anchorcolor=3Dyellow } \\AtBeginSection\[\]\{\\begin\{frame\}\\frametitle\{\}\\tableofcont= ents\[currentsection,hideothersubsections\]\\end\{frame\}\} \\subtitle\{\} \\institute\[Universit=C3=A9 de Lorraine\]\{D=C3=A9partement de philosophie= \\\\ Archives Henri Poincar=C3=A9 - UMR 7117 du CNRS \\\\ Universit=C3=A9 = de Lorraine \\\\ 91 bd Lib=C3=A9ration, 54000 Nancy \\\\ France \} \\titlegraphic\{\\includegraphics\[height=3D1cm\]\{ahp\}\\includegraphics\[= height=3D1cm\]\{udl\}\\includegraphics\[height=3D1cm\]\{cnrs\}\} \\usetheme\{CambridgeUS\} \\usepackage\{beamer_udl_theme\} \\setbeamertemplate\{navigation symbols\}{% %insertslidenavigationsymbol% %insertframenavigationsymbol% %insertsubsectionnavigationsymbol% %insertsectionnavigationsymbol% %insertdocnavigationsymbol% %insertbackfindforwardnavigationsymbol% } \\setbeamertemplate{theorems}[numbered] " ("\\section\{%s\}" . "\\section*\{%s\}") ("\\subsection\{%s\}" . "\\subsection*\{%s\}") ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) (require 'autoinsert) (auto-insert-mode) ;;; Adds hook to find-files-hook (setq auto-insert-directory "~/MEGA/org/my_org-templates/") ;;; Or use = custom, *NOTE* Trailing slash important (setq auto-insert-query nil) ;;; If you don't want to be prompted before in= sertion (define-auto-insert "\.beamer-fr.org" "beamer-fr.org") #+END_SRC in my folder ~/MEGA/org/my_org-templates/ there is the file beamer-fr.org: #+BEGIN_SRC lisp #+TITLE:=20 #+DATE: #+OPTIONS: H:2 toc:nil author:t #+LATEX_CLASS: beamer-ahp-ul #+LANGUAGE:fr **=20 :PROPERTIES: :BEAMER_opt: allowframebreaks,label=3D :END: bibliography:/home/joseph/MEGA/org/reforg.bib bibliographystyle:apalike #+END_SRC I have also defined a theme that corresponds to my institution and that is located in /home/joseph/texmf/tex/latex/local/beamer_udl_theme.sty=20 Now, as soon as I write a file that ends with the expression "beamer-fr.org", it is immediately with this template and the export beamer works smoothly. I have nothing with notes, but I hope it helps.=20 Best wishes,=20 Jo.=20 --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Hello Johanna,

I am using scimax from John Kitchin https://github.com/jkitchin/scimax and I recommend it to you warmly.

In my /user/user.el, here is what is about beamer :

(add-to-list 'org-latex-classes
             '("beamer-ahp-ul"
               "\\documentclass\[10pt,svgnames,fragile]\{beamer\}
                [NO-DEFAULT-PACKAGES]
                [PACKAGES]
                [NO-EXTRA]
\\theoremstyle{plain}% default
\\newtheorem{thm}{Theorem}[section]
\\newtheorem{theo}{Théorème}[section]
\\newtheorem{lem}[thm]{Lemma}
\\newtheorem{prop}[thm]{Proposition}
\\newtheorem*{cor}{Corollary}
\\theoremstyle{definition}
\\newtheorem{defi}{Definition}[section]
\\newtheorem{rema}[thm]{Remarque}
\\newtheorem{Conjecture}[theorem]{Conjecture}
\\newtheorem{exa}{Example}[section]
\\newtheorem{exem}{Exemple}[section]
\\\hypersetup{colorlinks,
citecolor=blue,
linkcolor=.,
menucolor=white,
filecolor=pink,   
anchorcolor=yellow
}
\\AtBeginSection\[\]\{\\begin\{frame\}<beamer>\\frametitle\{\}\\tableofcontents\[currentsection,hideothersubsections\]\\end\{frame\}\}
\\subtitle\{\}
\\institute\[Université de Lorraine\]\{Département de philosophie \\\\ Archives Henri Poincaré - UMR 7117 du CNRS \\\\ Université de Lorraine \\\\ 91 bd Libération, 54000 Nancy \\\\ France \}
\\titlegraphic\{\\includegraphics\[height=1cm\]\{ahp\}\\includegraphics\[height=1cm\]\{udl\}\\includegraphics\[height=1cm\]\{cnrs\}\}
\\usetheme\{CambridgeUS\}
\\usepackage\{beamer_udl_theme\}
\\setbeamertemplate\{navigation symbols\}{%
        %insertslidenavigationsymbol%
        %insertframenavigationsymbol%
        %insertsubsectionnavigationsymbol%
        %insertsectionnavigationsymbol%
        %insertdocnavigationsymbol%
        %insertbackfindforwardnavigationsymbol%
}
\\setbeamertemplate{theorems}[numbered]
"
               ("\\section\{%s\}" . "\\section*\{%s\}")
               ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
               ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))

(require 'autoinsert)
(auto-insert-mode)  ;;; Adds hook to find-files-hook
    (setq auto-insert-directory "~/MEGA/org/my_org-templates/") ;;; Or use custom, *NOTE* Trailing slash important
(setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion
(define-auto-insert "\.beamer-fr.org" "beamer-fr.org")

in my folder ~/MEGA/org/my_org-templates/ there is the file
beamer-fr.org:

#+BEGIN_SRC lisp

/home/joseph/MEGA/org/reforg.bib

#+END_SRC

I have also defined a theme that corresponds to my institution and
that is located in
/home/joseph/texmf/tex/latex/local/beamer_udl_theme.sty

Now, as soon as I write a file that ends with the expression
« beamer-fr.org », it is immediately with this template and the export
beamer works smoothly.

I have nothing with notes, but I hope it helps.

Best wishes,

Jo.

--==-=-=-- --=-=-=--