From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kyeong Soo (Joseph) Kim" Subject: Re: Changed behaviours of LaTeX exporter in version 8.0+ Date: Tue, 23 Sep 2014 11:03:10 +0800 Message-ID: References: <87lhpg3o60.fsf@berkeley.edu> <8738bn391c.fsf@berkeley.edu> <87mw9rlk6h.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c151d6b1b1ea0503b2cedf Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWGNq-0002fY-93 for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 23:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWGNo-0007OI-G0 for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 23:03:18 -0400 Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]:47428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWGNo-0007NJ-8E for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 23:03:16 -0400 Received: by mail-qg0-f51.google.com with SMTP id a108so3969828qge.10 for ; Mon, 22 Sep 2014 20:03:10 -0700 (PDT) In-Reply-To: <87mw9rlk6h.fsf@nicolasgoaziou.fr> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Kyeong Soo (Joseph) Kim" , Richard Lawrence , emacs-orgmode@gnu.org --001a11c151d6b1b1ea0503b2cedf Content-Type: text/plain; charset=UTF-8 On Tue, Sep 23, 2014 at 12:00 AM, Nicolas Goaziou wrote: > Hello, > > "Kyeong Soo (Joseph) Kim" writes: > > > By the way, as said, [[*Foo][Section Foo]] does not produce the link in > > LaTeX export any longer; version 8.x generates just "\texttt{Section > Foo}" > > unlike version 7.x. > > An ECM illustrating the problem would be nice. > > "\textt{Section Foo}" means that [[*Foo][Section Foo]] couldn't match > a headline. It can happen if there is no headline named exactly Foo in > the exported part of the buffer. > > > Regards, > > -- > Nicolas Goaziou > Below I provide ECM for LaTeX cross-referencing you requested, which itself summarizes the issues in the current export engine: We see that there are mix of results for different cases of heading title (i.e., \texttt{}, \hyperref[]{}, & \ref{}) and that only referring by custom_id results in a correct cross-reference. Note that, as mentioned in the list several time before, there is currently no way to customizing hyperref format using 'org-export-latex-hyperref-format' varible, which becomes obsolete now. ============ org-mode source ============ #+TITLE: \LARGE ECM for New Org-Mode \LaTeX Export Engine #+DATE: Time-stamp: <2014-09-23 10:52:34 Kyeong Soo (Joseph) Kim> #+AUTHOR: Joseph #+EMAIL: #+DESCRIPTION: ECM for testing LaTeX engine compatibility issues #+LANGUAGE: en #+OPTIONS: toc:nil email:t #+STARTUP: overview fnauto fnadjust hideblocks #+LaTeX_CLASS: article #+BEGIN_abstract We test \LaTeX cross-referencing in emacs org-mode version 8.x. #+END_abstract * OneWord :PROPERTIES: :CUSTOM_ID: sec:one_word :END: * Two Words :PROPERTIES: :CUSTOM_ID: sec:two_words :END: * With & in the Title :PROPERTIES: :CUSTOM_ID: sec:with_ampersand :END: * Cross-Referenceing For Section title with one word: - By custom ID: Sec. [[#sec:one_word]] - By name (using C-c l & C-c C-l): Sec. [[*OneWord][OneWord]] For Section title with multiple words: - By custom ID: Sec. [[#sec:two_words]] - By name (using C-c l & C-c C-l): Sec. [[*Two%20Words][Two Words]] For Section title with &: - By custom ID: Sec. [[#sec:with_ampersand]] - By name (using C-c l & C-c C-l): Sec. [[*With%20&%20in%20the%20Title][With & in the Title]] =============== Exported LaTeX file =============== % Created 2014-09-23 Tue 10:52 \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \author{Joseph} \date{Time-stamp: \textit{<2014-09-23 10:52:34 Kyeong Soo (Joseph) Kim>}} \title{\LARGE ECM for New Org-Mode \LaTeX Export Engine} \hypersetup{ pdfkeywords={}, pdfsubject={ECM for testing LaTeX engine compatibility issues}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.7c)}} \begin{document} \maketitle \begin{abstract} We test \LaTeX cross-referencing in emacs org-mode version 8.x. \end{abstract} \section{OneWord} \label{sec-1} \section{Two Words} \label{sec-2} \section{With \& in the Title} \label{sec-3} \section{Cross-Referenceing} \label{sec-4} For Section title with one word: \begin{itemize} \item By custom ID: Sec. \ref{sec-1} \item By name (using C-c l \& C-c C-l): Sec. \hyperref[sec-1]{OneWord} \end{itemize} For Section title with multiple words: \begin{itemize} \item By custom ID: Sec. \ref{sec-2} \item By name (using C-c l \& C-c C-l): Sec. \texttt{Two Words} \end{itemize} For Section title with \&: \begin{itemize} \item By custom ID: Sec. \ref{sec-3} \item By name (using C-c l \& C-c C-l): Sec. \texttt{With \& in the Title} \end{itemize} % Emacs 24.3.1 (Org mode 8.2.7c) \end{document} --001a11c151d6b1b1ea0503b2cedf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Sep 23, 2014 at 12:00 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr= > wrote:
Hello,

"Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> writes:

> By the way, as said, [[*Foo][Section Foo]] doe= s not produce the link in
> LaTeX export any longer; version 8.x generates just "\texttt{Sect= ion Foo}"
> unlike version 7.x.

An ECM illustrating the problem would be nice.

"\textt{Section Foo}" means that [[*Foo][Section Foo]] couldn'= ;t match
a headline. It can happen if there is no headline named exactly Foo in
the exported part of the buffer.


Regards,

--
Nicolas Goaziou

Below= I provide ECM for LaTeX cross-referencing you requested, which itself summ= arizes the issues in the current export engine: We see that there are mix o= f results for different cases of heading title (i.e., \texttt{}, \hyperref[= ]{}, & \ref{}) and that only referring by custom_id results in a correc= t cross-reference. Note that, as mentioned in the list several time before,= there is currently no way to customizing hyperref format using 'org-ex= port-latex-hyperref-format' varible, which becomes obsolete now.

=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
org-mode= source
=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

#+TITLE: \LARGE ECM for New Org-= Mode \LaTeX Export Engine
#+DATE: Time-stamp: <2014-09-23 10:5= 2:34 Kyeong Soo (Joseph) Kim>
#+AUTHOR: Joseph
#+EMA= IL:
#+DESCRIPTION: ECM for testing LaTeX engine compatibility iss= ues
#+LANGUAGE: en
#+OPTIONS: toc:nil email:t
#+STARTUP: overview fnauto fnadjust hideblocks
#+LaTeX_CLASS: ar= ticle

#+BEGIN_abstract
We test \LaTeX cr= oss-referencing in emacs org-mode version 8.x.
#+END_abstract

* OneWord
=C2=A0 :PROPERTIES:
=C2= =A0 :CUSTOM_ID: sec:one_word
=C2=A0 :END:
* Two Words
=C2=A0 :PROPERTIES:
=C2=A0 :CUSTOM_ID: sec:two_words
=C2=A0 :END:
* With & in the Title
=C2=A0 :P= ROPERTIES:
=C2=A0 :CUSTOM_ID: sec:with_ampersand
=C2=A0= :END:
* Cross-Referenceing
For Section title with one = word:
- By custom ID: Sec. [[#sec:one_word]]
- By name = (using C-c l & C-c C-l): Sec. [[*OneWord][OneWord]]

For Section title with multiple words:
- By custom ID: Sec.= [[#sec:two_words]]
- By name (using C-c l & C-c C-l): Sec. [= [*Two%20Words][Two Words]]

For Section title with = &:
- By custom ID: Sec. [[#sec:with_ampersand]]
- B= y name (using C-c l & C-c C-l): Sec. [[*With%20&%20in%20the%20Title= ][With & in the Title]]


= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Exported LaTeX = file
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=
% Created 2014-09-23 Tue 10:52
\documentclass= {article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{f= ontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepa= ckage{wrapfig}
\usepackage{rotating}
\usepackage[normal= em]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\use= package{amssymb}
\usepackage{hyperref}
\tolerance=3D100= 0
\author{Joseph}
\date{Time-stamp: \textit{<2014-09= -23 10:52:34 Kyeong Soo (Joseph) Kim>}}
\title{\LARGE ECM for = New Org-Mode \LaTeX Export Engine}
\hypersetup{
=C2=A0 = pdfkeywords=3D{},
=C2=A0 pdfsubject=3D{ECM for testing LaTeX engi= ne compatibility issues},
=C2=A0 pdfcreator=3D{Emacs 24.3.1 (Org = mode 8.2.7c)}}
\begin{document}

\maketit= le
\begin{abstract}
We test \LaTeX cross-referencing in= emacs org-mode version 8.x.
\end{abstract}

<= div>\section{OneWord}
\label{sec-1}
\section{Two Words}=
\label{sec-2}
\section{With \& in the Title}
=
\label{sec-3}
\section{Cross-Referenceing}
\label{= sec-4}
For Section title with one word:
\begin{itemize}=
\item By custom ID: Sec. \ref{sec-1}
\item By name (us= ing C-c l \& C-c C-l): Sec. \hyperref[sec-1]{OneWord}
\end{it= emize}

For Section title with multiple words:
\begin{itemize}
\item By custom ID: Sec. \ref{sec-2}
<= div>\item By name (using C-c l \& C-c C-l): Sec. \texttt{Two Words}
\end{itemize}

For Section title with \&= :
\begin{itemize}
\item By custom ID: Sec. \ref{sec-3}<= /div>
\item By name (using C-c l \& C-c C-l): Sec. \texttt{With \&a= mp; in the Title}
\end{itemize}
% Emacs 24.3.1 (Org mod= e 8.2.7c)
\end{document}
--001a11c151d6b1b1ea0503b2cedf--