emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Latex export issues when external links are used inside tables.
@ 2009-06-15 11:34 Yuva
  2009-08-31 12:31 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Yuva @ 2009-06-15 11:34 UTC (permalink / raw)
  To: Emacs org mode mailinglist

hi,
   If I try to use link abbrevations inside tables, there are some issues
when exporting to latex. Say for example, if we consider the following eg :

------------8<---------------------------------8<--------------------

#+TITLE:     Simple refs stuff
#+AUTHOR:    Yuva
#+EMAIL:
#+DATE:
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:nil skip:t d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

* Bug-References

#+CAPTION: References
#+LABEL: tbl:references
#+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
#+LINK: ads http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s&db_key=AST
| bug  | link         |
|------+--------------|
| 129  | [[bugzilla:129]] |
| test | [[ads:test]]     |


------------8<---------------------------------8<--------------------

If the link contains this ampersand '&' character, which has special meaning
inside latex table, org mode generates incompatible .tex file. With the
latest org-mode {from git sources}, I have the following generated output :



------------8<---------------------------------8<--------------------

% Created 2009-06-15 Mon 16:51
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{hyperref}


\title{Simple refs stuff}
\author{Yuva}
\date{15 June 2009}

\begin{document}



\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Bug-References}
\label{sec-1}


\begin{table}[htb]
\caption{\label{tbl:references}References}
\begin{center}
\begin{tabular}{ll}
 bug   &  link

                          \\
\hline
 129   &  \href{http://10.1.2.9/bugzilla/show_bug.cgi?id=129}{http://10.1.2.9/bugzilla/show\_bug.cgi?id=129}
                                                           \\
 test  &  \href{http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=test&db_key=AST}{http://adsabs.harvard.edu/cgi-bin/nph-abs\_connect?author=test\&db\_key=AST}
 \\
\end{tabular}
\end{center}
\end{table}


\end{document}


------------8<---------------------------------8<--------------------

'pdflatex' simply fails to produce a pdf because '&' has creeped in due to
'#+LINK: ads' expansion. This simple problem can be solved by treating
'&' as special character, and replace it with '\&'. For above example,
just replace 'test&db' with 'test\&db' IN-THE-FIRST-ARG-OF \href. Well, I
am new to elisp, and I am still figuring out how to counter this issue.
[Oh! what a lame excuse!].

Thanks,

-- 
YUVA

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

* Re: Latex export issues when external links are used inside tables.
  2009-06-15 11:34 Latex export issues when external links are used inside tables Yuva
@ 2009-08-31 12:31 ` Carsten Dominik
  2009-09-01  5:19   ` Yuva
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-08-31 12:31 UTC (permalink / raw)
  To: Yuva; +Cc: Emacs org mode mailinglist

Hi Yuva,

sorry that it took so long for me to look at this problem.

This is a very strange one, in particular because it is different
inside versus outside of tables.  Could be classified as a LaTeX
problem if you ask me.

However, I have implemented a work-around now, so this problem *should*
go away now.  Please verify and report back.

Thanks for your report and patience.

- Carsten

On Jun 15, 2009, at 1:34 PM, Yuva wrote:

> hi,
>   If I try to use link abbrevations inside tables, there are some  
> issues
> when exporting to latex. Say for example, if we consider the  
> following eg :
>
> ------------8<---------------------------------8<--------------------
>
> #+TITLE:     Simple refs stuff
> #+AUTHOR:    Yuva
> #+EMAIL:
> #+DATE:
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE:  en
> #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
> #+OPTIONS:   TeX:t LaTeX:nil skip:t d:nil todo:t pri:nil tags:not-in- 
> toc
> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
> path:http://orgmode.org/org-info.js
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+LINK_UP:
> #+LINK_HOME:
>
> * Bug-References
>
> #+CAPTION: References
> #+LABEL: tbl:references
> #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
> #+LINK: ads http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author= 
> %s&db_key=AST
> | bug  | link         |
> |------+--------------|
> | 129  | [[bugzilla:129]] |
> | test | [[ads:test]]     |
>
>
> ------------8<---------------------------------8<--------------------
>
> If the link contains this ampersand '&' character, which has special  
> meaning
> inside latex table, org mode generates incompatible .tex file. With  
> the
> latest org-mode {from git sources}, I have the following generated  
> output :
>
>
>
> ------------8<---------------------------------8<--------------------
>
> % Created 2009-06-15 Mon 16:51
> \documentclass[11pt]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{graphicx}
> \usepackage{longtable}
> \usepackage{hyperref}
>
>
> \title{Simple refs stuff}
> \author{Yuva}
> \date{15 June 2009}
>
> \begin{document}
>
>
>
> \setcounter{tocdepth}{3}
> \tableofcontents
> \vspace*{1cm}
> \section{Bug-References}
> \label{sec-1}
>
>
> \begin{table}[htb]
> \caption{\label{tbl:references}References}
> \begin{center}
> \begin{tabular}{ll}
> bug   &  link
>
>                          \\
> \hline
> 129   &  \href{http://10.1.2.9/bugzilla/show_bug.cgi?id=129}{http://10.1.2.9/bugzilla/show 
> \_bug.cgi?id=129}
>                                                           \\
> test  &  \href{http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=test&db_key=AST 
> }{http://adsabs.harvard.edu/cgi-bin/nph-abs\_connect?author=test\&db 
> \_key=AST}
> \\
> \end{tabular}
> \end{center}
> \end{table}
>
>
> \end{document}
>
>
> ------------8<---------------------------------8<--------------------
>
> 'pdflatex' simply fails to produce a pdf because '&' has creeped in  
> due to
> '#+LINK: ads' expansion. This simple problem can be solved by treating
> '&' as special character, and replace it with '\&'. For above example,
> just replace 'test&db' with 'test\&db' IN-THE-FIRST-ARG-OF \href.  
> Well, I
> am new to elisp, and I am still figuring out how to counter this  
> issue.
> [Oh! what a lame excuse!].
>
> Thanks,
>
> -- 
> YUVA
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

=======================
PLEASE NOTE NEW ADDRESS
=======================
prof.dr. Carsten Dominik				dominik@uva.nl
Astronomical Institute 'Anton Pannekoek' 	 	www.astro.uva.nl/~dominik
Faculty of Science, University of Amsterdam		phone 	+31-20-5257477/7491
SCIENCE PARK 904, ROOM C4-106			fax   	+31-20-5257484
1098 XH Amsterdam, The Netherlands
mail: PO BOX 94249, 1090GE, Amsterdam

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

* Re: Latex export issues when external links are used inside tables.
  2009-08-31 12:31 ` Carsten Dominik
@ 2009-09-01  5:19   ` Yuva
  0 siblings, 0 replies; 3+ messages in thread
From: Yuva @ 2009-09-01  5:19 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs org mode mailinglist

hi Carsten,

On Mon, Aug 31, 2009 at 6:01 PM, Carsten Dominik<dominik@uva.nl> wrote:
> Hi Yuva,
>
> sorry that it took so long for me to look at this problem.
I think I should thank you for your reply ;-)

>
> This is a very strange one, in particular because it is different
> inside versus outside of tables.  Could be classified as a LaTeX
> problem if you ask me.
Well, I don't know much about latex. Its one of the reasons why I've switched
to org-mode.

>
> However, I have implemented a work-around now, so this problem *should*
> go away now.  Please verify and report back.
I have pulled the latest 6.30 and its working great! Thanks for the solution
once again.

>
> Thanks for your report and patience.
>
> - Carsten
>
[snip]


-- 
YUVA

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

end of thread, other threads:[~2009-09-01  5:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15 11:34 Latex export issues when external links are used inside tables Yuva
2009-08-31 12:31 ` Carsten Dominik
2009-09-01  5:19   ` Yuva

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).