emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Christopher W. Ryan" <cryan@binghamton.edu>
To: emacs-orgmode@gnu.org
Subject: Re: how to include graphics in pdf output
Date: Tue, 20 Mar 2012 00:12:11 -0400	[thread overview]
Message-ID: <4F68039B.3010208@binghamton.edu> (raw)
In-Reply-To: <12681.1332200900@alphaville>

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

I've attached a small org file that reproduces my problem with getting 
images to export to pdf. I've also attached the resulting .tex file.

I think my issue may have something to do with my misunderstanding of 
inline tasks, since if I put my org code for inclusion of the image 
elsewhere in the org file, under its own 2nd level heading (2 stars) 
then it exports fine. The narrative text in the attached org file 
explains my observations in more detail.

Thanks.

--Chris Ryan

Nick Dokos wrote:
> suvayu ali<fatkasuvayu+linux@gmail.com>  wrote:
>
>> On Mon, Mar 19, 2012 at 20:53, Nick Dokos<nicholas.dokos@hp.com>  wrote:
>>>> [[./DataLoggerImage.jpg]]
>>>>
>>>> The figure does not appear in the resulting pdf.  Any advice as to what
>>>> I am doing wrong?
>>>>
>>>
>>> Can you post your org file and the tex file that's produced on export?
>>>
>>
>> Is the above correct syntax? Shouldn't it be as shown below?
>>
>> [[file:./DataLoggerImage.jpg]]
>>
>
> I had the same reaction at first, but I tried it and the pdf export went
> through without a hitch in either case. I'm not sure whether that's intended
> behavior or an accident though.
>
> Nick
>
>

[-- Attachment #2: WhereIsImage.org --]
[-- Type: text/plain, Size: 1148 bytes --]

#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


* I guess I don't understand enough about Org's hierarchical trees yet

** Study design

Here's what we'll do.

As patients of home care agencies, the subjects will all be considered homebound by definition. Subjects with cognitive impairment or psychiatric illness sufficiently severe to make them unable to consent to the study will not be eligible.
****** TODO notice how "end" on next line is expandable
****** END
Somehow this text is under, hierarchically-speaking, the END statement of this inline task.

So it does not show up in the final pdf

****** TODO there is text >>and the image file<< inside "end"
****** END

Neither does this paragraph.

Neither does this image, which must also be under the END statement of the inline task

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]

** But if I start a new 2-star heading

and put the image here, it works fine.

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: WhereIsImage.tex --]
[-- Type: text/x-tex; name="WhereIsImage.tex", Size: 1253 bytes --]

% Created 2012-03-20 Tue 00:04
\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[margin=1in]{geometry}
\usepackage{graphicx}
\providecommand{\alert}[1]{\textbf{#1}}

\title{WhereIsImage}
\author{Chris Ryan}
\date{\today}

\begin{document}

\maketitle



\section{I guess I don't understand enough about Org's hierarchical trees yet}
\label{sec-1}
\subsection{Study design}
\label{sec-1-1}


Here's what we'll do.

As patients of home care agencies, the subjects will all be considered homebound by definition. Subjects with cognitive impairment or psychiatric illness sufficiently severe to make them unable to consent to the study will not be eligible.
\subsection{But if I start a new 2-star heading}
\label{sec-1-2}


and put the image here, it works fine.

\begin{figure}[htb]
\centering
\includegraphics[width=10em]{./DataLoggerImage.jpg}
\caption{\label{datalogger}Temperature and humidity data logger}
\end{figure}

\end{document}

  reply	other threads:[~2012-03-20  4:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cryan@binghamton.edu>
2012-03-19 19:20 ` how to include graphics in pdf output Christopher W. Ryan
2012-03-19 19:53   ` Nick Dokos
2012-03-19 23:32     ` suvayu ali
2012-03-19 23:48       ` Nick Dokos
2012-03-20  4:12         ` Christopher W. Ryan [this message]
2012-03-20  4:46           ` Nick Dokos
2012-03-21  2:59             ` Christopher W. Ryan
2012-03-21  9:54               ` Sebastien Vauban
2012-03-21 10:39                 ` John Hendy
2012-03-21 14:05                   ` Christopher W. Ryan

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=4F68039B.3010208@binghamton.edu \
    --to=cryan@binghamton.edu \
    --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).