Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the ATTR_HTML option not supported ? #52

Open
justinjk007 opened this issue Apr 5, 2018 · 7 comments
Open

Why is the ATTR_HTML option not supported ? #52

justinjk007 opened this issue Apr 5, 2018 · 7 comments

Comments

@justinjk007
Copy link

No description provided.

@wallyqs wallyqs changed the title Why is the ATRR_HTML option not supported ? Why is the ATTR_HTML option not supported ? Apr 5, 2018
@justinjk007
Copy link
Author

justinjk007 commented Apr 10, 2018

What i wanted was making images and so on resizable or alignable but that is not available in markdown either I believe ? It will be cool if org documents can have it thou !

Which is the right one thou ATTR_HTML or ATTR_ORG ?

@kgrimes2
Copy link

Just noticed this too: neither ATTR_HTML nor ATTR_LATEX seemed to work to resize images.

@justinjk007
Copy link
Author

Lol, I was gonna learn some ruby to implement this , this summer, then completely forgot. I will look into getting this to work, this week. One thing I know is we need to use html if you want to resize images in markdown, as in it is not natively supported, I don't know if this exporter, exports org to somee special markup for github or html, if its html then this should not be that hard I suppose.

@alphapapa
Copy link

This seems related to #51, which might need to be solved first.

@melioratus
Copy link

org-ruby supports inline #+HTML: so you should be able to add the image attributes manually.

See workaround gist for issue #48 for syntax example.

@zzkt
Copy link

zzkt commented Nov 14, 2020

for example....

#+caption: Drone Organs - Francois Huber
#+ATTR_html: :width 600px
[[https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png]]

is rendered like so with org-ruby

<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" /></p>

...and like so with org export from emacs

<div id="orgd56755f" class="figure">
<p><img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="Drone_Organs_-_Francois_Huber.png" width="600px" />
</p>
<p><span class="figure-number">Figure 3: </span>Drone Organs - Francois Huber</p>
</div>

@muldoon2007
Copy link

More explicit example of the workaround mentioned above:

 #+HTML: <img src="path/to/image.png" width="500"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants