emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Guillaume MULLER <guillaume.muller@univ-st-etienne.fr>
To: emacs-orgmode@gnu.org
Subject: Rescaling #+INCLUDES / Not centering #+INCLUDE?
Date: Tue, 5 Oct 2021 16:18:33 +0200	[thread overview]
Message-ID: <620d1fd6-69a2-eb2d-c5f6-49157a43a8ed@univ-st-etienne.fr> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1893 bytes --]

Hi,

I have Emacs 26.3 + Org mode 9.4.6.

I tried to recompile an org-beamer file I created a few moths ago (see equivalent MCE attached), but it did not succeed.

The thing is I was #+INCLUDing a .dot file (also attached for completeness, but it could be any .dot file). I was putting the result inside a scalebox:

@@latex: \center \scalebox{.85}{@@
#+INCLUDE: test.dot src dot :file test.png
@@latex:}@@

I don't know how it was translated in previous versions of org-mode but it compiled perfectly.

Now I get error "! LaTeX Error: Something's wrong--perhaps a missing \item." during LaTeX compilation.

It seems the problem comes from the fact that the included file is automatically \begin{center}ed, which conflicts with my scalebox, as seen in output .tex file:

\begin{frame}[label={sec:org0a44c10}]{Test Slide}
 \center \scalebox{.85}{
\begin{center}
\includegraphics[width=.9\linewidth]{./images/DesignPatterns/23_DesignPatterns.png}
\end{center}

}
\end{frame}

When I remove the \begin/end{center}, the .tex file compiles fine.

I've tried to add ":center false" in the #+INCLUDE instruction and in a #+ATTR_LATEX preceding the #+INCLUDE. With no success.

I cannot find anything about centering (or not) a #+INCLUDE results in the docs nor in the mailing list.

Maybe there is a way to rescale the output without the \scalebox too, but I couldn't find how. Whatever I put in the #+ATTR_LATEX before the #+INCLUDE or in the #+INCLUDE (:cmdline -Gsize for dot) does not seem to be taken into account.

So any help would be appreciated.

BTW, thanks for the magnificent tools. I use them everyday and I love them!

Regards,

-- 
Guillaume MULLER
Data Scientist, PhD
Télécom Saint-Étienne (office i119)
25 rue du Dr Remy Annino
-
Laboratoire Hubert Curien (office e002)
18 rue du Pr Benoît Lauras
-
42000 Saint-Étienne
FRANCE

[-- Attachment #1.1.2: test.dot --]
[-- Type: application/msword-template, Size: 2283 bytes --]

[-- Attachment #1.1.3: test.org --]
[-- Type: text/plain, Size: 217 bytes --]

#+STARTUP: showall indent beamer

#+LATEX_CLASS: beamer

* Test Slide

#+ATTR_LATEX: :width .1\textwidth
#+ATTR_DOT: size="9,15"
#+INCLUDE: test.dot src dot results :cmdline -Tpng -Gsize=9,15 -Gdpi=100 :file test.png

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

             reply	other threads:[~2021-10-05 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 14:18 Guillaume MULLER [this message]
2021-10-05 15:06 ` Rescaling #+INCLUDES / Not centering #+INCLUDE? Eric S Fraga
2021-10-06 15:30   ` Guillaume MULLER
2021-10-07  7:24     ` Eric S Fraga
2022-09-10  8:54     ` Ihor Radchenko
2022-09-10 11:22       ` Max Nikulin

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=620d1fd6-69a2-eb2d-c5f6-49157a43a8ed@univ-st-etienne.fr \
    --to=guillaume.muller@univ-st-etienne.fr \
    --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).