emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Exporting multiple #+AUTHOR keywords
@ 2024-02-17  0:36 ypuntot
  2024-02-17 10:34 ` Juan Manuel Macías
  0 siblings, 1 reply; 7+ messages in thread
From: ypuntot @ 2024-02-17  0:36 UTC (permalink / raw)
  To: yantar92; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

Is it related with AUTHOR property?
I am starting to add these properties to every book, and chapter of the book, that I study. I hope this doesn't lead to a suboptimal workflow.

Doesn't this work?

:PROPERTIES:
    :AUTHOR:   García-Ael, Cristina and Pérez-Garín, Daniel and Recio Saboya, Patricia
    :BTYPE:    incollection
    :BOOKTITLE: Psicología de los Grupos
    :TITLE:    Métodos y Técnicas de Investigación en Psicología de los Grupos.
  
    :PUBLISHER: UNED

    :ADDRESS:  C/ Bravo Murillo, 38; 28015; Madrid
    :INSTITUTION: UNED
    :YEAR:     2017
    :CHAPTER:  2
    :PAGES:    49-83
    :END:

[-- Attachment #2: Type: text/html, Size: 2213 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Possible LaTeX export bug: Footnotes in items
@ 2024-01-22 20:42 Eric Anderson
  2024-01-24 12:11 ` [BUG] Footnotes in section titles Ihor Radchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Anderson @ 2024-01-22 20:42 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 976 bytes --]

Hi All,

I'm new to the developers' mailing list, so I hope this is the right place
to post potential bugs.  I don't claim to know exactly why, but at least
for certain TOC options, the LaTeX exporter produces invalid code for item
titles containing footnotes.  I've attached a minimal (non)working example.

The resulting LaTeX code (also attached) uses \footnote inside \section and
\paragraph macros, producing compiler errors.  A little googling turns up
the following comp.text.tex usenet post
https://comp.text.tex.narkive.com/lkZWQYaS/using-footnotes-in-paragraph,
explaining that \footnote is fragile and cannot be used in those contexts
without \protect.  Manually adding \protect before \footnote in the
automatically-generated tex file appears to produce correct results.

I don't know if the best fix is to always \protect \footnotes in LaTeX
export, or if more contextual smarts are required, but this seems like an
issue worth addressing.

Cheers!
Eric Anderson

[-- Attachment #1.2: Type: text/html, Size: 1237 bytes --]

[-- Attachment #2: org-bug-mwe.org --]
[-- Type: application/octet-stream, Size: 73 bytes --]

#+OPTIONS: toc:nil H:6
* a [fn:: note a]
** b
*** b
**** d [fn:: note b]

[-- Attachment #3: org-bug-mwe.tex --]
[-- Type: application/octet-stream, Size: 847 bytes --]

% Created 2024-01-22 Mon 15:34
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{tabularx}
\author{Eric Anderson}
\date{\today}
\title{}
\hypersetup{
 pdfauthor={Eric Anderson},
 pdftitle={},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 27.2 (Org mode 9.6.9)}, 
 pdflang={English}}
\usepackage[style=ieee]{biblatex}

\begin{document}

\section{a \footnote{note a}}
\label{sec:orgc7711ed}
\subsection{b}
\label{sec:orgc167c8a}
\subsubsection{b}
\label{sec:org14707a4}
\paragraph{d \footnote{note b}}
\label{sec:org6daeb07}
\end{document}

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-17 10:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17  0:36 Exporting multiple #+AUTHOR keywords ypuntot
2024-02-17 10:34 ` Juan Manuel Macías
  -- strict thread matches above, loose matches on Subject: below --
2024-01-22 20:42 Possible LaTeX export bug: Footnotes in items Eric Anderson
2024-01-24 12:11 ` [BUG] Footnotes in section titles Ihor Radchenko
2024-01-24 14:14   ` Max Nikulin
2024-01-24 15:23     ` Juan Manuel Macías
2024-01-24 15:31       ` Colin Baxter
2024-01-24 15:41         ` Juan Manuel Macías
2024-01-26 12:53           ` Ihor Radchenko
2024-01-26 16:43             ` Max Nikulin
2024-02-01 14:44               ` [DISCUSSION] Allowing footnote-references inside parsed keywords (#+AUTHOR, #+TITLE, etc) (was: [BUG] Footnotes in section titles) Ihor Radchenko
2024-02-01 17:44                 ` [DISCUSSION] Allowing footnote-references inside parsed keywords (#+AUTHOR, #+TITLE, etc) Juan Manuel Macías
2024-02-02 17:00                   ` Ihor Radchenko
2024-02-02 18:10                     ` Juan Manuel Macías
2024-02-02 20:21                       ` Exporting multiple #+AUTHOR keywords (was: [DISCUSSION] Allowing footnote-references inside parsed keywords (#+AUTHOR, #+TITLE, etc)) Ihor Radchenko
2024-02-02 22:26                         ` Exporting multiple #+AUTHOR keywords Juan Manuel Macías
2024-02-04 15:21                           ` Ihor Radchenko
2024-02-04 16:16                             ` Max Nikulin
2024-02-04 22:13                               ` Juan Manuel Macías
2024-02-05 14:57                               ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).