emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giuseppe Lipari <giulipari@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: problem with the on-line manual
Date: Sat, 8 Oct 2022 16:19:37 +0200	[thread overview]
Message-ID: <CABHo5SCm-zH3188N8Au0mLDv3g+siFRXn51zN0DvUmhaaJMTDg@mail.gmail.com> (raw)
In-Reply-To: <bbe9cfbd-62ae-5474-e1cc-5ac640a89247@gmail.com>

Thank you very much, Max.

By further investigating the problem I had, I tried to export the
following snippet:

---
** Example
*** Temperature control                                          :B_example:
    :PROPERTIES:
    :BEAMER_env: example
    :END:

    Let us make a simple example of temperature control.

    #+attr_latex: :float t :width .5\textwidth
    [[file:room1-crop.pdf]]
---

When exported, this produces the following :

---
\begin{frame}[label={sec:orgb828ded}]{Example}
\begin{example}[Temperature control]
\footnotesize
Let us make a simple example of temperature control.

\begin{t}
\centering
\includegraphics[width=.5\textwidth]{room1-crop.pdf}
\end{t}
---
Which is of course not what I want. Notice the \begin{t} ... \end{t}.

If I remove the ":float t" option :

---
** Example

*** Temperature control                                           :B_example:
    :PROPERTIES:
    :BEAMER_env: example
    :END:

    #+begin_export latex
    \footnotesize
    #+end_export
    Let us make a simple example of temperature control.

    #+attr_latex: :width .5\textwidth
    [[file:room1-crop.pdf]]
---

The exporter produces

---
\begin{frame}[label={sec:org5a5b3f6}]{Example}
\begin{example}[Temperature control]
\footnotesize
Let us make a simple example of temperature control.

\begin{center}
\includegraphics[width=.5\textwidth]{room1-crop.pdf}
\end{center}
---

Which is certainly more correct.
There is no mention of this behavior in the manual, and in the past
the ":float t" option worked as expected. In facts, I have tens of
org-mode documents for my slides, all containing the ":float t"
option, and now they are all exported incorrectly.

Is this a bug, or has the syntax changed in a way that is not documented yet ?

Best,

Giuseppe Lipari

Le sam. 8 oct. 2022 à 14:42, Max Nikulin <manikulin@gmail.com> a écrit :
>
> On 08/10/2022 15:58, Giuseppe Lipari wrote:
> >
> > I would like to point out that the following link in the org-mode
> > on-line manual is broken :
> >
> > https://orgmode.org/manual/Images-in-LaTeX-export.html
> >
> > can someone please fix/restore it ?
>
> See the following thread:
> Tim Landscheidt. Some links in online manual do not work. Sun, 02 Oct
> 2022 20:00:54 +0000.
> https://list.orgmode.org/87r0zqknbd.fsf@vagabond.tim-landscheidt.de
> >
> > Also : in recent versions of org-mode (I have the 9.5.3), it seems that
> > exporting figures in latex/beamer does not apply the ":float t" flag,
> > and does not center the figure. Can you please tell me the exporter
> > option that I have to set to enable floating figures ?
>
> To get manual for your version you may try
> M-: (info "(org) Images in LaTeX export")
>
> For a while single-page variant of the manual is not affected by the problem
> https://orgmode.org/org.html#Images-in-LaTeX-export


  reply	other threads:[~2022-10-08 14:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-08  8:58 problem with the on-line manual Giuseppe Lipari
2022-10-08 12:42 ` Max Nikulin
2022-10-08 14:19   ` Giuseppe Lipari [this message]
2022-10-09  3:54     ` Ihor Radchenko
2022-10-12  6:50 ` Ihor Radchenko

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=CABHo5SCm-zH3188N8Au0mLDv3g+siFRXn51zN0DvUmhaaJMTDg@mail.gmail.com \
    --to=giulipari@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).