Re: [O] Dual document export slides and lecture notes title slide issue

2019-01-31 Thread Joseph Vidal-Rosset
Sorry, the quotation of the file content beamer-fr.org missed. Here is:

#+TITLE:
#+DATE:
#+OPTIONS: H:2 toc:nil author:t
#+LATEX_CLASS: beamer-ahp-ul
#+LANGUAGE:fr




**
:PROPERTIES:
 :BEAMER_opt: allowframebreaks,label=
:END:
bibliography:/home/joseph/MEGA/org/reforg.bib
bibliographystyle:apalike
Best wishes,

Jo.


Le jeu. 31 janv. 2019 à 12:08, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> 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\}\\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.
>


Re: [O] Dual document export slides and lecture notes title slide issue

2019-01-31 Thread Joseph Vidal-Rosset
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 : 

#+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é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\}\\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")

#+END_SRC

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

#+BEGIN_SRC lisp
#+TITLE: 
#+DATE:
#+OPTIONS: H:2 toc:nil author:t
#+LATEX_CLASS: beamer-ahp-ul
#+LANGUAGE:fr



** 
:PROPERTIES:
 :BEAMER_opt: allowframebreaks,label=
: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 

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. 


[O] Dual document export slides and lecture notes title slide issue

2019-01-31 Thread johanna . may

Dear org-mode community,

I'm a noob, started using org-mode about probably only 9 months ago. 
However, I'd say my latex knowledge is intermediate, so that helps.


I followed some of the instruction in 
https://orgmode.org/worg/exporters/beamer/beamer-dual-format.html in 
order to get dual beamer and scrrprt document export. In this link the 
author mentions the following:


    "In my environment, I used a hack that assumes Beamer has been 
added to |org-latex-classes| under the exact string "beamer." This is 
not ideal, because a user might have added a custom class under a 
different name. Nicolas Goaziou proposed an alternate approach using 
regular expressions, but I didn't implement it in my environment."


Since in my set-up (probably newer than this 2014 instruction) I cannot 
find ox-beamer.el as a separate file - and this hack seems fishy to me - 
I tried to find Nicolas Goaziou's regexp instructions of how to include 
the titlepage in the beamer presentation in spite of the 
ignorenonframetext option. However, I could not find anything that was 
related by him in my searches.


So, my question is: Could I add this titlepage by making some sort of 
copy of the beamer class (something like mybeamer, similar to myscrartcl 
in https://www.suenkler.info/notes/emacs-config/) in my dotemacs, just 
adding a few lines there? And what would I add there? Or the other 
option would be to switch on the ignorenonframetext option later in the 
document, i.e. after the title slide - how could I get that done? 
Something like :beamer_opt: ignorenonframetext in every section's 
property drawer? I don't really care about elegance, I'm interested in 
stable function.


It would be great if you could just point me at well documented examples 
of other people who are making dual documents for both teaching (slides) 
and for students to recap with notes (lecture notes) based on the same 
diagrams. I also am considering using html instead of pdf for the 
slides, but I haven't so far because I haven't come across any tablet 
annotating possibility for browser pages: In some slides I want to leave 
blank spaces in order to demonstrate the calculations live.


So, thank you very much for your ideas in advance. I subscribed to the 
digest, not the single emails, so I probably won't read your answers 
before this evening (and also not reply to questions about clarification 
of my issue).


I have to say, that I really like what org-mode, and org-babel can do. 
And I want to thank all of you who are contributing on this. At some 
point of time I also want to start a blog and share my working examples 
so that others can profit. But I first need to re-make my lecture notes 
in a more sustainable and reproducible way.


Cheers,

J. M.