From: Chris Malone <chris.m.malone@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: latex short caption broken?
Date: Thu, 30 Jun 2011 16:15:00 -0400 [thread overview]
Message-ID: <BANLkTimzp0EjgjgsBNmvJ0BS1+PxPmF=1Q@mail.gmail.com> (raw)
Hi all,
Tom Dye came up with a great patch to pass an optional title to
LaTeX's =\caption= command: see here
http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00311.html
That thread says the patch has been applied, and as far as I can tell
it appears to be in the code. I'm using version =org-version= 7.3.
This is a minimal non-working example:
---------------------------------------------------------------------------------------------------------------------------------------------------
#+TITLE: mnwe.org
#+AUTHOR: Chris Malone
#+EMAIL: xxxxx
#+DATE: 2011-06-30 Thu
#+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:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgm
ode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:
#+BEGIN_LATEX
\listoffigures
#+END_LATEX
* A minimal (non-working) example
Let's include a figure!
#+CAPTION: [Caption to list]{Caption to figure.}
#+ATTR_LATEX: width=\textwidth
[[file:f1.pdf]]
---------------------------------------------------------------------------------------------------------------------------------------------------
this produces the following .tex file:
---------------------------------------------------------------------------------------------------------------------------------------------------
% Created 2011-06-30 Thu 16:08
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{color}
\usepackage{listings}
\providecommand{\alert}[1]{\textbf{#1}}
\title{mnwe.org}
\author{Chris Malone}
\date{2011-06-30 Thu}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\listoffigures
\section{A minimal (non-working) example}
\label{sec-1}
Let's include a figure!
\begin{figure}[htb]
\centering
\includegraphics[width=\textwidth]{f1.pdf}
\caption{Caption to figure.}
\end{figure}
\end{document}
---------------------------------------------------------------------------------------------------------------------------------------------------
As you can see, the optional ([...]) argument to the caption command
is completely ignored upon export. Am I doing something wrong, or is
something else breaking this?
Chris
next reply other threads:[~2011-06-30 20:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 20:15 Chris Malone [this message]
2011-06-30 23:51 ` latex short caption broken? suvayu ali
2011-07-01 8:28 ` Bastien
2011-07-01 14:49 ` Chris Malone
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='BANLkTimzp0EjgjgsBNmvJ0BS1+PxPmF=1Q@mail.gmail.com' \
--to=chris.m.malone@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).