Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-22 Thread Juan Manuel Macías
Hi Samuel, Samuel Banya writes: > Hey Juan, > > Just wanted to let you know that this works beautifully! > > I wish I was as good at Elisp to make this in the first place, but > this really helps since I wanted to have some minimum overhead for 2 > separate websites to be able to just write in Or

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-22 Thread Samuel Banya
Hey Juan, Just wanted to let you know that this works beautifully! I wish I was as good at Elisp to make this in the first place, but this really helps since I wanted to have some minimum overhead for 2 separate websites to be able to just write in Org Mode but include ideas for buttons, with c

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-20 Thread Samuel Banya
Thanks for this, will try this for my Emacs config. On Sat, Feb 19, 2022, at 4:51 AM, Juan Manuel Macías wrote: > Juan Manuel Macías writes: > > > If you want to pass the class or id 'manually' to each link, and thus > > have more control, you can evaluate this other version, where the class > >

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-19 Thread Juan Manuel Macías
Juan Manuel Macías writes: > If you want to pass the class or id 'manually' to each link, and thus > have more control, you can evaluate this other version, where the class > or id would be added at the end of the link description, after (for > example) "!style": PS: Sorry, this is the correct co

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-19 Thread Juan Manuel Macías
Samuel Banya writes: > To clarify, did you evaluate that code block on the org mode docs > itself? The code must be evaluated *before* using that new type of link, or saved to your ~/.emacs. You can simply evaluate it in your `scratch' buffer: (org-link-set-parameters "button"

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Samuel Banya
To clarify, did you evaluate that code block on the org mode docs itself? I ask because if I try to evaluate it, aka 'C-c C-c' on the '#begin_src' block, nothing happens. And after I export the Org Doc to HTML, it still gives me that same error as before. On Fri, Feb 18, 2022, at 3:51 PM, Juan

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Juan Manuel Macías
Juan Manuel Macías writes: > If you evaluate the `org-ling-set-parameters' expression that I gave > you, you should get when exporting to html: > > > formaction="http://www.sambanya.com/artgallery.html";>Art Gallery Page > Link > P.S.: I forgot to tell you that if you want to visit the link a

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Juan Manuel Macías
Samuel Banya writes: > I tried to use this idea, but I'm not sure how to set the 'target' in > your example: > [[button:some target][This is a button]] > > For example, I tried this: > [[button:http://www.sambanya.com/artgallery.html][Art Gallery Page > Link]] > > But received this error: > user-e

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Samuel Banya
Also, how could you possible add an 'id' or 'class' attribute to an existing lOrg mode style hyperink? I ask because I like your approach to just modify the stylesheet, but am unaware of how to actually utilize HTML's concept or 'id' or 'class' in an Org doc itself when using basic Org mode sty

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Samuel Banya
I tried to use this idea, but I'm not sure how to set the 'target' in your example: [[button:some target][This is a button]] For example, I tried this: [[button:http://www.sambanya.com/artgallery.html][Art Gallery Page Link]] But received this error: user-error: Unable to resolve link: "button:

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-17 Thread Juan Manuel Macías
Hi Samuel: Samuel Banya writes: > Is it possible to create HTML style buttons using Org Mode itself? One possibility is to use a custom link. For example: #+begin_src emacs-lisp (org-link-set-parameters "button" :face '(:foreground "green" :underline t)

Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-17 Thread Samuel Banya
Hey there, So I'm in the process of creating an art portfolio site, but am wondering if the following idea is possible: Is it possible to create HTML style buttons using Org Mode itself? Would I need to do this via a '#begin-src' block in order to create the button itself? I ask because I'm a