* "runaway argument" exporting: * _is_?
@ 2013-04-25 22:00 Greg Minshall
2013-04-26 12:00 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2013-04-25 22:00 UTC (permalink / raw)
To: emacs-orgmode
hi. i'm running
----
Org-mode version 8.0.1 (release_8.0.1-42-g267cbe @
/Users/minshall/usr/share/emacs/site-lisp/org/)
----
my test case is
----
#+DATE: <2013-04-25 Thu>
#+OPTIONS: H:2 texht:t
#+BEAMER_COLOR_THEME:
#+BEAMER_FONT_THEME:
#+BEAMER_HEADER:
#+BEAMER_INNER_THEME:
#+BEAMER_OUTER_THEME:
#+BEAMER_THEME: default
#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS:
#+LATEX_HEADER:
#+LATEX_HEADER_EXTRA:
* _is_?
----
exporting via "C-c C-e lO" (or, "lo"), i get an error from latex.
if i change H:2 to H:1, all (seemingly) works. here is a diff of the
.tex file generated by each H:
----
bash greg-minshalls-mbp: {1039} diff sectbug.texH:1 sectbug.texH:2
38,39c38,39
< \begin{frame}[label=sec-1]{\underline{is}?}
< \end{frame}
---
> \section[\underline{is}?]{\underline{is}?}
> \label{sec-1}
----
am i doing something wrong? (this is fallout converting from 7.9.3f to
8.)
cheers, Greg Minshall
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "runaway argument" exporting: * _is_?
2013-04-25 22:00 "runaway argument" exporting: * _is_? Greg Minshall
@ 2013-04-26 12:00 ` Nicolas Goaziou
2013-04-26 13:37 ` Sebastien Vauban
2013-04-29 15:07 ` Greg Minshall
0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2013-04-26 12:00 UTC (permalink / raw)
To: Greg Minshall; +Cc: emacs-orgmode
Hello,
Greg Minshall <minshall@umich.edu> writes:
> hi. i'm running
> ----
> Org-mode version 8.0.1 (release_8.0.1-42-g267cbe @
> /Users/minshall/usr/share/emacs/site-lisp/org/)
> ----
>
> my test case is
> ----
> #+DATE: <2013-04-25 Thu>
> #+OPTIONS: H:2 texht:t
> #+BEAMER_COLOR_THEME:
> #+BEAMER_FONT_THEME:
> #+BEAMER_HEADER:
> #+BEAMER_INNER_THEME:
> #+BEAMER_OUTER_THEME:
> #+BEAMER_THEME: default
> #+LATEX_CLASS: beamer
> #+LATEX_CLASS_OPTIONS:
> #+LATEX_HEADER:
> #+LATEX_HEADER_EXTRA:
>
> * _is_?
> ----
>
> exporting via "C-c C-e lO" (or, "lo"), i get an error from latex.
>
> if i change H:2 to H:1, all (seemingly) works. here is a diff of the
> .tex file generated by each H:
> ----
> bash greg-minshalls-mbp: {1039} diff sectbug.texH:1 sectbug.texH:2
> 38,39c38,39
> < \begin{frame}[label=sec-1]{\underline{is}?}
> < \end{frame}
> ---
>> \section[\underline{is}?]{\underline{is}?}
>> \label{sec-1}
> ----
>
> am i doing something wrong? (this is fallout converting from 7.9.3f to
> 8.)
Isn't it a LaTeX limitation? What would the correct LaTeX code be in
that case?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "runaway argument" exporting: * _is_?
2013-04-26 12:00 ` Nicolas Goaziou
@ 2013-04-26 13:37 ` Sebastien Vauban
2013-04-29 15:07 ` Greg Minshall
1 sibling, 0 replies; 4+ messages in thread
From: Sebastien Vauban @ 2013-04-26 13:37 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Nicolas,
Nicolas Goaziou wrote:
> Greg Minshall <minshall-63aXycvo3TyHXe+LvDLADg@public.gmane.org> writes:
>>
>> * _is_?
>>
>> exporting via "C-c C-e lO" (or, "lo"), i get an error from latex.
>>
>> if i change H:2 to H:1, all (seemingly) works. here is a diff of the
>> .tex file generated by each H:
>>
>>> \section[\underline{is}?]{\underline{is}?}
>>> \label{sec-1}
>>
>> am i doing something wrong? (this is fallout converting from 7.9.3f to
>> 8.)
>
> Isn't it a LaTeX limitation? What would the correct LaTeX code be in that
> case?
I have exactly similar problems with fboxes used for framing the tags (see
function `org-latex-format-headline-default-function'): I use the following
code for having nicer boxes around the tags:
(format "\\hfill{}\\fbox{\\textsc{%s}}"
When such a code (\fbox) is put between the [], everything breaks... LaTeX
error...
AFAICS, there are 2 ways to solve this:
- not using the [] notation when the "short title" is exactly the same as the
"long title"
- having an heuristic to clean the "long title" for converting it into a
"short" one (like remove all LaTeX macros, keep text only -- not sure it's
good, because the tags would be "glued" next to the title)
I guess the first point would make more sense. What do you think?
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "runaway argument" exporting: * _is_?
2013-04-26 12:00 ` Nicolas Goaziou
2013-04-26 13:37 ` Sebastien Vauban
@ 2013-04-29 15:07 ` Greg Minshall
1 sibling, 0 replies; 4+ messages in thread
From: Greg Minshall @ 2013-04-29 15:07 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Nicolas,
> Isn't it a LaTeX limitation? What would the correct LaTeX code be in
> that case?
this seems to be something in beamer rather than inside "vanilla" latex.
for example, the following foo.tex file fails:
----
\documentclass{beamer}
\begin{document}
\section{\underline{is}?}
\end{document}
----
but, changing to \documentclass{article} makes things work.
i'm not a beamer expert, so i can't say what is going on.
cheers, Greg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-29 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25 22:00 "runaway argument" exporting: * _is_? Greg Minshall
2013-04-26 12:00 ` Nicolas Goaziou
2013-04-26 13:37 ` Sebastien Vauban
2013-04-29 15:07 ` Greg Minshall
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.