Code Monkey home page Code Monkey logo

Comments (10)

linktohack avatar linktohack commented on July 29, 2024

Hi @miguelazo82, I forgot that I have org-latex-caption-above set to nil. You can try the minimal working init.el bellow. I will update the README, too.

(package-initialize)
(use-package ox-latex-subfigure
  :init
  (setq org-latex-caption-above nil)
  :load-path "~/Dropbox/ProjectWeekends/lisp/ox-latex-subfigure/"
  :config (require 'ox-latex-subfigure))

from ox-latex-subfigure.

linktohack avatar linktohack commented on July 29, 2024

Also remember to have subcaption package included, please check README.org.

from ox-latex-subfigure.

 avatar commented on July 29, 2024

Hi Quang-Linh,

thank you for your quick reply.
Yes it works like that, but I would have two more issues:

  • With (setq org-latex-caption-above nil) how can I turn on table
    captions above on a per-table basis?
  • Is there any way to pass arguments to \includegraphics: the width of
    the graphics cannot be influenced, which would mean that I have to
    resize them outside LaTeX...

Greetings and thank you again,

Michael

On 20/02/16 17:14, Quang-Linh LE wrote:

Hi @miguelazo82, I forgot that I have org-latex-caption-above set to
nil. You can try the minimal working init.el bellow. I will update the
README, too. > (package-initialize) > (use-package ox-latex-subfigure
:init > (setq org-latex-caption-above nil) > :load-path
"~/Dropbox/ProjectWeekends/lisp/ox-latex-subfigure/" > :config
(require 'ox-latex-subfigure)) > > — > Reply to this email directly or
view it on GitHub.

from ox-latex-subfigure.

 avatar commented on July 29, 2024

Hello again,

I found that I can set the width simply putting using latex code in the
table:
\includegraphics[width = .9\linewidth]{../picture/renex.jpg}
Then I do not have a clickable link anymore, but no problem...

I did quite some search but do not seem to find how to set the
org-latex-caption-above on a per float basis...

All the best,

Michael

On 20/02/16 17:25, Quang-Linh LE wrote:

Also remember to have |subcaption| package included, please check
|README.org|.


Reply to this email directly or view it on GitHub
#1 (comment).

from ox-latex-subfigure.

linktohack avatar linktohack commented on July 29, 2024

Michael,

Code updated with respect to org-latex-caption-above. About the subfigure width, it is the default value from org-latex-image-default-width which is ".9\\linewidth". If you want to set it to a different value, you can have a look on #+BIND: keyword 1, also remember to set org-export-allow-bind-keywords to non-nil.

from ox-latex-subfigure.

 avatar commented on July 29, 2024

I see now that I did have the image-default-width variable modified - that was my mistake...

But having to set org-latex-caption-above to nil globally is a problem, as the format demanded needs table captions to be on top.
I see #+BIND could only change this option buffer-wide but not per float.
Is there any way to implement this without having to change this option?

from ox-latex-subfigure.

linktohack avatar linktohack commented on July 29, 2024

The easiest way should be a second #+BIND after the environment, it you still need this option, feel free to add an option here 1 and a replace-regex some where here 2. A pull request is welcome 👍

from ox-latex-subfigure.

linktohack avatar linktohack commented on July 29, 2024

Anyway, org-latex-caption-above is no longer need to be set to nil.

from ox-latex-subfigure.

 avatar commented on July 29, 2024

Sorry for bothering. I had downloaded the new git-version, reloaded the package and it did not work. Restarting emacs helped, will do that in the future before posting here....

Now it works perfectly - nice work and thank you very much. No need for #+BIND and adding hacking an option in the code - would not have had a clue how to do that anyway...

from ox-latex-subfigure.

linktohack avatar linktohack commented on July 29, 2024

Ok, glad it helps, Michael.

from ox-latex-subfigure.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.