[BUG] ox-odt.el overrides auto-mode-alist defaults [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2023-12-08 Thread Peter Prevos
\n 
		  \\captionsetup[subfigure]{justification=centering}\n 
		  \\usepackage{pdfpages}\n 
		  \\pagestyle{myheadings}\n 
		  \\usepackage{ccicons}\n 
		  \\usepackage{nicefrac}\n 
		  \\usepackage[authoryear]{natbib}\n 
		  \\bibliographystyle{apalike}\n 
		  \\usepackage{nohyperref}\n 
		  \\usepackage{tikz}\n 
		  \\usetikzlibrary{shapes.geometric, calc, 
		  knots}\n\\usepackage{svg}"

  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" .
   "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
		  ("\\subparagraph{%s}" 
		  . "\\subparagraph*{%s}"))

 ("crc"
		  "\\documentclass[krantz2]{krantz}\n 
		  \\usepackage{lmodern}\n 
		  \\usepackage[authoryear]{natbib}\n 
		  \\usepackage{nicefrac}\n 
		  \\usepackage[bf,singlelinecheck=off]{caption}\n 
		  \\captionsetup[table]{labelsep=space}\n 
		  \\captionsetup[figure]{labelsep=space}\n 
		  \\usepackage{Alegreya}\n 
		  \\usepackage[scale=.8]{sourcecodepro}\n 
		  \\usepackage[breaklines=true]{minted}\n 
		  \\usepackage{rotating}\n 
		  \\usepackage[notbib, 
		  nottoc,notlot,notlof]{tocbibind}\n 
		  \\usepackage{amsfonts, tikz, tikz-layers}\n 
		  \\usetikzlibrary{fadings, quotes, shapes, 
		  calc, decorations.markings}\n 
		  \\usetikzlibrary{patterns, shadows.blur}\n 
		  \\usetikzlibrary{shapes,shapes.geometric,positioning}\n 
		  \\usetikzlibrary{arrows, arrows.meta, 
		  backgrounds}\n\\usepackage{imakeidx} 
		  \\makeindex[intoc]\n 
		  \\renewcommand{\\textfraction}{0.05}\n 
		  \\renewcommand{\\topfraction}{0.8}\n 
		  \\renewcommand{\\bottomfraction}{0.8}\n 
		  \\renewcommand{\\floatpagefraction}{0.75}\n 
		  \\renewcommand{\\eqref}[1]{(Equation 
		  \\ref{#1})}\n 
		  \\renewcommand{\\LaTeX}{LaTeX}"

  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
		  ("\\subsubsection{%s}" 
		  . "\\paragraph*{%s}"))

 ("magictrick"
		  "\\documentclass[11pt, a4paper, twocolumn, 
		  twoside]{article}\n\\usepackage{ccicons}\n\\usepackage{pdfpages}\n\\usepackage{times}\n\\usepackage{helvet}\n\\usepackage{geometry}\n\\geometry{a4paper, 
		  total={170mm,250mm}, left=20mm, top=30mm}\n% 
		  header 2008 x 332 
		  px\n\\usepackage{titlesec}\n\\titleformat{\\section}\n 
		  {\\bfseries}{\\thesection}{1em}{}\n\\titleformat{\\subsection}\n 
		  {\\itshape}{\\thesection}{1em}{}\n\\usepackage{fancyhdr}\n\\usepackage[font={small, 
		  it}, 
		  labelformat=empty]{caption}\n\\usepackage[hidelinks]{hyperref}\n\\pagestyle{fancy}\n\\renewcommand{\\headrulewidth}{0pt}\n\\renewcommand{\\footrulewidth}{0pt}\n\\setlength{\\parskip}{1em}\n\\renewcommand{\\baselinestretch}{1.1}\n\\setlength\\headheight{100.0pt}\n\\addtolength{\\textheight}{-100.0pt}\n\\fancyhead[LO]{\\Large{\\textsf{Magic 
		  Perspectives Presents}} 
		  \\includegraphics[width=\\textwidth]{header}}\n\\fancyhead[LE]{\\includegraphics[width=0.5\\textwidth]{header}}\n\\lfoot{Peter 
		  Prevos}\n\\rfoot{\\href{https://magicperspectives.net}{magicperspectives.net}};

  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}"))
 ("ebook"
		  "\\documentclass[11pt, 
		  oneside]{memoir}\n\\setstocksize{9in}{6in}\n\\settrimmedsize{\\stockheight}{\\stockwidth}{*}\n\\setlrmarginsandblock{2cm}{2cm}{*} 
		  % Left and right 
		  margin\n\\setulmarginsandblock{2cm}{2cm}{*} 
		  % Upper and lower 
		  margin\n\\checkandfixthelayout\n\\usepackage{times}\n\\OnehalfSpacing\n\\usepackage[authoryear]{natbib}\n\\bibliographystyle{apalike}\n\\setlength{\\bibsep}{1pt}\n\\usepackage[raggedright]{sidecap}\n\\setsecheadstyle{\\normalfont 
		  \\raggedright 
		  \\textbf}\n\\setsubsecheadstyle{\\normalfont 
		  \\raggedright 
		  \\emph}\n\\usepackage{subcaption} 
		  \n\\usepackage[font={small, 
		  it}]{caption}\n\\captionsetup[subfigure]{justification=centering}\n\\usepackage{pdfpages}\n\\usepackage[unicode=true,\n 
		  bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,\n 
		  bookmarksopenlevel=1, 
		  breaklinks=true,pdfborder={0 0 
		  0},backre

[BUG] Previewing equations [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2023-09-24 Thread Peter Prevos
s}")
		  ("\\subsubsection{%s}" 
		  . "\\subsubsection*{%s}")

  ("\\paragraph{%s}" . "\\paragraph*{%s}")
		  ("\\subparagraph{%s}" 
		  . "\\subparagraph*{%s}"))

 ("crc"
		  "\\documentclass[krantz2]{krantz}\n 
		  \\usepackage{lmodern}\n 
		  \\usepackage[authoryear]{natbib}\n 
		  \\usepackage{nicefrac}\n 
		  \\usepackage[bf,singlelinecheck=off]{caption}\n 
		  \\captionsetup[table]{labelsep=space}\n 
		  \\captionsetup[figure]{labelsep=space}\n 
		  \\usepackage{Alegreya}\n 
		  \\usepackage[scale=.8]{sourcecodepro}\n 
		  \\usepackage[breaklines=true]{minted}\n 
		  \\usepackage{rotating}\n 
		  \\usepackage[notbib, 
		  nottoc,notlot,notlof]{tocbibind}\n 
		  \\usepackage{amsfonts, tikz, tikz-layers}\n 
		  \\usetikzlibrary{fadings, quotes, shapes, 
		  calc, decorations.markings}\n 
		  \\usetikzlibrary{patterns, shadows.blur}\n 
		  \\usetikzlibrary{shapes,shapes.geometric,positioning}\n 
		  \\usetikzlibrary{arrows, arrows.meta, 
		  backgrounds}\n\\usepackage{imakeidx} 
		  \\makeindex[intoc]\n 
		  \\renewcommand{\\textfraction}{0.05}\n 
		  \\renewcommand{\\topfraction}{0.8}\n 
		  \\renewcommand{\\bottomfraction}{0.8}\n 
		  \\renewcommand{\\floatpagefraction}{0.75}\n 
		  \\renewcommand{\\eqref}[1]{(Equation 
		  \\ref{#1})}\n 
		  \\renewcommand{\\LaTeX}{LaTeX}"

  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
		  ("\\subsubsection{%s}" 
		  . "\\paragraph*{%s}"))

 ("magictrick"
		  "\\documentclass[11pt, a4paper, twocolumn, 
		  twoside]{article}\n\\usepackage{ccicons}\n\\usepackage{pdfpages}\n\\usepackage{times}\n\\usepackage{helvet}\n\\usepackage{geometry}\n\\geometry{a4paper, 
		  total={170mm,250mm}, left=20mm, top=30mm}\n% 
		  header 2008 x 332 
		  px\n\\usepackage{titlesec}\n\\titleformat{\\section}\n 
		  {\\bfseries}{\\thesection}{1em}{}\n\\titleformat{\\subsection}\n 
		  {\\itshape}{\\thesection}{1em}{}\n\\usepackage{fancyhdr}\n\\usepackage[font={small, 
		  it}, 
		  labelformat=empty]{caption}\n\\usepackage[hidelinks]{hyperref}\n\\pagestyle{fancy}\n\\renewcommand{\\headrulewidth}{0pt}\n\\renewcommand{\\footrulewidth}{0pt}\n\\setlength{\\parskip}{1em}\n\\renewcommand{\\baselinestretch}{1.1}\n\\setlength\\headheight{100.0pt}\n\\addtolength{\\textheight}{-100.0pt}\n\\fancyhead[LO]{\\Large{\\textsf{Magic 
		  Perspectives Presents}} 
		  \\includegraphics[width=\\textwidth]{header}}\n\\fancyhead[LE]{\\includegraphics[width=0.5\\textwidth]{header}}\n\\lfoot{Peter 
		  Prevos}\n\\rfoot{\\href{https://magicperspectives.net}{magicperspectives.net}};

  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}"))
 ("ebook"
		  "\\documentclass[11pt, 
		  oneside]{memoir}\n\\setstocksize{9in}{6in}\n\\settrimmedsize{\\stockheight}{\\stockwidth}{*}\n\\setlrmarginsandblock{2cm}{2cm}{*} 
		  % Left and right 
		  margin\n\\setulmarginsandblock{2cm}{2cm}{*} 
		  % Upper and lower 
		  margin\n\\checkandfixthelayout\n\\usepackage{times}\n\\OnehalfSpacing\n\\usepackage[authoryear]{natbib}\n\\bibliographystyle{apalike}\n\\setlength{\\bibsep}{1pt}\n\\usepackage[raggedright]{sidecap}\n\\setsecheadstyle{\\normalfont 
		  \\raggedright 
		  \\textbf}\n\\setsubsecheadstyle{\\normalfont 
		  \\raggedright 
		  \\emph}\n\\usepackage{subcaption} 
		  \n\\usepackage[font={small, 
		  it}]{caption}\n\\captionsetup[subfigure]{justification=centering}\n\\usepackage{pdfpages}\n\\usepackage[unicode=true,\n 
		  bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,\n 
		  bookmarksopenlevel=1, 
		  breaklinks=true,pdfborder={0 0 
		  0},backref=false,colorlinks=false,pdfborderstyle={/S/U/W 
		  .5}, allbordercolors={.8 .8 
		  .8}]{hyperref}\n\\pagestyle{myheadings}\n\\setcounter{tocdepth}{0}\n\\usepackage{ccicons}\n\\usepackage{nicefrac}\n"

  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
		  ("\\subsubsection{%s}" 
		  . "\\subsubsection*{%s}"))

 ("article"
		  "\\documentclass[10pt]{article}\n 
		  \\usepackage{tgpagella,eulervm}\n 
		  \\usepackage{nicefrac}"

 

Re: Bug: File variable no longer on first line when running org-id-get-create [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)]

2021-08-23 Thread Peter Prevos



Ihor Radchenko  writes:


Peter Prevos  writes:


-*- mode: org; ispell-local-dictionary: "nederlands" -*-

It works great, except when I need to add an ID for use in 
Org-Roam using the org-id-get-create function.


To make it work, convert the local-var line into proper 
comment. Just as

you would do in any other source code file:

# -*- mode: org; ispell-local-dictionary: "nederlands" -*-
:PROPERTIES:
:ID:   a60f6a47-9db9-49d6-ac00-307c7a84e43d
:END:

When you just have the line below, it is treated as ordinary 
paragraph

by Org, thus the property drawer is indeed inserted before:

:PROPERTIES:
:ID:   a60f6a47-9db9-49d6-ac00-307c7a84e43d
:END:
-*- mode: org; ispell-local-dictionary: "nederlands" -*-

Best,
Ihor


Thanks Ihor, that makes sense.


--
Dr Peter Prevos
---
peterprevos.com