emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com>
To: "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com>,
	Richard Lawrence <richard.lawrence@berkeley.edu>,
	emacs-orgmode@gnu.org
Subject: Re: Changed behaviours of LaTeX exporter in version 8.0+
Date: Tue, 23 Sep 2014 11:03:10 +0800	[thread overview]
Message-ID: <CACsgZ=p2nan9Lh19k4Z9oSvKdNqU3P_8-Nqvvi-A7B_K04LgxA@mail.gmail.com> (raw)
In-Reply-To: <87mw9rlk6h.fsf@nicolasgoaziou.fr>

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

On Tue, 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]] 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}

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

  reply	other threads:[~2014-09-23  3:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18  4:50 Changed behaviours of LaTeX exporter in version 8.0+ Kyeong Soo (Joseph) Kim
2014-09-18  7:07 ` Kyeong Soo (Joseph) Kim
2014-09-18  7:32   ` Kyeong Soo (Joseph) Kim
2014-09-18 16:10     ` Richard Lawrence
     [not found]       ` <CACsgZ=r1vzPQg1KB3N7j6Mn+nyu=PUrxJCeRr5ebqmpywsQ0bg@mail.gmail.com>
2014-09-19 15:49         ` Richard Lawrence
2014-09-20 15:32           ` Kyeong Soo (Joseph) Kim
2014-09-22 16:00             ` Nicolas Goaziou
2014-09-23  3:03               ` Kyeong Soo (Joseph) Kim [this message]
2014-09-27 22:01                 ` Nicolas Goaziou
2014-09-29  4:51                   ` Kyeong Soo (Joseph) Kim
2014-09-29  7:07                     ` Nicolas Goaziou
2014-09-29  7:57                       ` Kyeong Soo (Joseph) Kim
2014-09-29  8:53                         ` Rasmus
2014-09-29  9:59                           ` Kyeong Soo (Joseph) Kim
2014-09-29 10:09                             ` Rasmus
2014-09-29 12:18                               ` Kyeong Soo (Joseph) Kim
2014-09-29 14:18                                 ` Rasmus
2014-09-29 14:18                                 ` Rasmus
2014-10-01  9:39                                   ` Kyeong Soo (Joseph) Kim
2014-09-18 15:47   ` Richard Lawrence
  -- strict thread matches above, loose matches on Subject: below --
2014-09-17 14:54 Kyeong Soo (Joseph) Kim
2014-09-17 19:01 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACsgZ=p2nan9Lh19k4Z9oSvKdNqU3P_8-Nqvvi-A7B_K04LgxA@mail.gmail.com' \
    --to=kyeongsoo.kim@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=richard.lawrence@berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).