From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ODm2MgT7D2LuMwEAgWs5BA (envelope-from ) for ; Fri, 18 Feb 2022 21:01:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UOyDKwT7D2IY3gAAG6o9tA (envelope-from ) for ; Fri, 18 Feb 2022 21:01:08 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AECA63AAA7 for ; Fri, 18 Feb 2022 21:01:07 +0100 (CET) Received: from localhost ([::1]:49516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nL9RC-00073p-AG for larch@yhetil.org; Fri, 18 Feb 2022 15:01:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nL9QO-00073S-E0 for emacs-orgmode@gnu.org; Fri, 18 Feb 2022 15:00:16 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nL9QJ-0002KS-LE for emacs-orgmode@gnu.org; Fri, 18 Feb 2022 15:00:16 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D68665C0458; Fri, 18 Feb 2022 15:00:09 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Fri, 18 Feb 2022 15:00:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=OHwLbIuWlKDUX8FLb5moSsWpQNLPlJiKWRkQXI gM8qg=; b=jvGPIUvqshsVVL1KL/acaVRRlyUxFxqiN2/BxV4DaMRRUXQAW0Tjld asbBrjg4Muv2I/8koesSnSXMJZnl+SWmOUKSpCiRyiFBceRu/UkT0XF8NkBH3XYj yFUaKEDE7n7ZsonBBGxSsPwB0l0wk07J/HZpdlakjrWomQsN6a78OfL83VnWPx3K mz64xOorXIzcWTv/VonQOSWCq1cMbyY/j35ll9aL1NenxkVRTkAZ/U6IJQqnFSWt P80aq46vNT3q+o9DOZOZped+BRiiQR6J4Fw3J2NsYswucew6awxdRmVtOZDzJcEO fz3npmTbOrsm82qvyBKay5lWFg8rqlZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=OHwLbIuWlKDUX8FLb 5moSsWpQNLPlJiKWRkQXIgM8qg=; b=G7hhBF/oLfub7sVw5yxvLdaJTTQZ32OG0 gPvii9p80ZGo+ljyxqNmJ1k3rGPXf9auLCO68cRx//wwKDNIEUrWhuTP/LTLko0I bu6KrBmMwbGPEt4DMkUreBTUaW5UJ+eT7yPxImOIYDw0ZlBlPc/HwEOFEjZRWhUw hxA3LTSTT9Dia6ccHJNeUWJxXLHcL9kJ+I/+HQx7SgmGm8G+hCPNlTXdJb+Tnr/L zTFw4c9JSiww/wShvJed366xc2khGk1DebSHXrK2cmBU+D8OVDk1Mj2ULp03N+Zn zwx+LuTzdzL/0yBLfYJqeZH0eBXZM6KJFnN/Qx/i5hnByQyKKcVKw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkedtgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreerjeenucfhrhhomhepfdfurghm uhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehfrghsthhmrghilhdrtghomheqnecugg ftrfgrthhtvghrnhepvdejtdfguefgjeettdeguefhfedtffdttdeileetiedvgfeugfev gedvhfejiedtnecuffhomhgrihhnpehsrghmsggrnhihrgdrtghomhdpfiefshgthhhooh hlshdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 73B4CF6007E; Fri, 18 Feb 2022 15:00:09 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997 Mime-Version: 1.0 Message-Id: <45e958d4-9c0c-4ea6-90b7-433ed9f38d44@www.fastmail.com> In-Reply-To: <871r01i1pm.fsf@posteo.net> References: <086129c3-de30-4e0b-a0b7-6b1c9b0578b6@www.fastmail.com> <871r01i1pm.fsf@posteo.net> Date: Fri, 18 Feb 2022 14:59:42 -0500 From: "Samuel Banya" To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Subject: Re: Question Regarding Creating HTML Style Buttons With Org Mode Content-Type: multipart/alternative; boundary=c58228b565fc465c88640b08fcbef69f Received-SPF: pass client-ip=66.111.4.26; envelope-from=sbanya@fastmail.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Charles Berry Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645214468; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OHwLbIuWlKDUX8FLb5moSsWpQNLPlJiKWRkQXIgM8qg=; b=D+yKYunm7uFHNi9IWthfDte6pBWhZ4nAqt8/2AvxDoWZsx03za5Ys5ciaEa2hVNPEk5VVH WKntuBsiyzDgpQuLLoNdkkmgGW9wr8u64PvQ9CBsxTBCnsJvUIn+YLgsml2Nr7m4qe1RNf BZD821JxPIhUE9gHKmPf1G8qOwhD6KCUG07EVD/11lpHQLNqkZWFAgl4IiLQ6YZNKFTjwD CN/SVOOm6mH0f9Y0qWiwouRuEfBJIcAF8HL+XfB0NV/wOBhEn3jKkXRkch58O20Iu7VsRa JhbD5RNNffpuuvi9QrOvAc3zm5D+6y436q5A0M70It+3TlU3+pO2csKShzPkGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645214468; a=rsa-sha256; cv=none; b=C+AmDBWjlLLPLLWRSKIHaCkAKiD2QujBvaYHIoRIc6MdSwAhMcJPEOkHDOKmml1ehxMwZ9 flu3n3yvxB2b80Q2pkA0fQx47nTQSZHosHzheiBXtkJxWvIzgGSzcACNQn7uuMCNQw08kd jiJF64fkJF1EKRbv1XTajTTLoRptaU87l7dXtOCCOrloo3IGqPGQ+JBFAJrBRMmagVKkao pWIH5526j8fHkkpNohcKGK1a+WkFK3QBXJsld7NZ329ZwbWRVPJ1yuBN2ntEWpqexdd062 UcA7dopZYji4BFV8LRJpBK1ub5quXYcxwt0DkCAa2wNpMq4NfgUY7/p2MoCZTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b=jvGPIUvq; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="G7hhBF/o"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b=jvGPIUvq; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="G7hhBF/o"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AECA63AAA7 X-Spam-Score: -0.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: KpOOvjXBEqY+ --c58228b565fc465c88640b08fcbef69f Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable I tried to use this idea, but I'm not sure how to set the 'target' in yo= ur 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:http://www.sambanya.com/artg= allery.html" Thanks, Sam On Thu, Feb 17, 2022, at 5:10 PM, Juan Manuel Mac=C3=ADas wrote: > Hi Samuel: >=20 > Samuel Banya writes: >=20 > > Is it possible to create HTML style buttons using Org Mode itself? >=20 > One possibility is to use a custom link. For example: >=20 > #+begin_src emacs-lisp > (org-link-set-parameters "button" > :face '(:foreground "green" :underline t) > :export (lambda (path desc backend) > (when (eq backend 'html) > (format "
" path desc)))) > #+end_src >=20 > #+HTML_HEAD: >=20 > [[button:some target][This is a button]] >=20 > NB: I have borrowed the style from here: https://www.w3schools.com/csS= /css3_buttons.asp >=20 > Best regards, >=20 > Juan Manuel=20 >=20 --c58228b565fc465c88640b08fcbef69f Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
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:

Bu= t received this error:
user-error: Unable to resolve link:= "button:http://www.= sambanya.com/artgallery.html"

Thanks,

Sam

On Thu, Feb= 17, 2022, at 5:10 PM, Juan Manuel Mac=C3=ADas wrote:
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:<= br>

#+begin_src emacs-lisp
 = (org-link-set-parameters "button"
   :face '(:f= oreground "green" :underline t)
   :export (lamb= da (path desc backend)
     (when (eq = backend 'html)
       (forma= t "<form><button class=3D\"mybutton\" formaction=3D\"%s\">%s= </button></form>" path desc))))
#+end_src
<= /div>

#+HTML_HEAD: <style> .mybutton{background= -color:#4CAF50;border:none;color:white;padding:15px32px;text-align:cente= r;text-decoration:none;display:inline-block;font-size:18px;margin:4px2px= ;cursor:pointer;</style>

[[button:som= e target][This is a button]]

NB: I have bor= rowed the style from here: https://www.w3schools.com/csS/css3_buttons.asp

Best regards,

Ju= an Manuel 


--c58228b565fc465c88640b08fcbef69f--