Questions tagged [html]

HTML (HyperText Markup Language) is the principal markup language used for structuring web pages and formatting content. The most recent revision to the HTML specification is HTML5.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Why is Org mode converting spaces in links to HTML entities?

I store a link such as [[file:~/path/to/dir/some file.txt::# heading]], either manually or through org-capture. A few days later, Org has converted all spaces to the HTML entity %20: [[file:~/path/to/...
0
votes
0answers
24 views

Inject backlinks into structured HTML (nav,ul,li) before org processing by org-publish with ox-slimhtml backend

I'm trying to inject backlinks (org-roam user) into <nav> ... </nav> html5 section at the end of my <article> section during ox-export. Idea was to obtain something like that : <...
1
vote
1answer
51 views

Open the manuals in the default web browser without accessing the internet

I am talking about this to be precise. Suppose there are an emacs installation and a web browser on an X session (desktop). I know you can open the manuals in emacs itself using M-x info, but is it ...
0
votes
1answer
50 views

Expanding some elisp into HTML inside Org

I am creating an HTML file containing some notes exported from org mode. I would like to add all images from a folder into the HTML file generated i.e the images should display in the webpage when ...
1
vote
2answers
29 views

How to add picture before a title in HTML exported by OrgMode

I am writing an article in org mode to be exported to HTML for being published on the web. By looking at the documentation, I have not been able to find a way to insert an image before the title of ...
1
vote
1answer
55 views

Orgmode - Vertical header

is it possible to create a vertical header with org mode, too? Something like this (cyan colored fields): You can create a horizontal header like this: | Header | Header | Header | Header | ...
0
votes
0answers
42 views

hash filenames for html publishing in org-mode

Background: I use org-mode publish a website for a class I teach. I want to keep all my old notes on the hosting server. I want to keep using very predictable filenames (e.g. "hw1.pdf", &...
0
votes
0answers
23 views

Auto-format an html file

Is there a way to auto-format (in terms of things like indentation etc) the entire buffer or a region in an html file?
0
votes
1answer
31 views

export custom element in html from org-mode

I'm trying to figure out the simplest possible way to export an html document from org-mode and have it include a working custom-element. I've tried the following, but it gives me an error message in ...
0
votes
1answer
72 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
2
votes
1answer
88 views

Properly exporting latex to HTML from org-mode using dvisvgm / dvipng

I need to export my org notes containing latex to HTML format. Example document : #+latex_class: article #+latex_header: \usepackage{chemfig} #+latex_header: \usepackage[version=3]{mhchem} #+...
0
votes
1answer
60 views

Export resume.org to both pdf and html

I've been maintaining my resume in orgmode for some time now, with export to pdf. I just decided it would be nice to also export to html which has uncovered a problem. I'm using headings to list my ...
0
votes
0answers
24 views

How to have a tag replace its parent in web-mode? (Equivalent to paredit-raise-sexp in paredit)

I'm having a hard time searching for the answer to this, probably I'm using the wrong terminology. How do I have a child element replace its parent element (the parent element deleted completely and ...
0
votes
1answer
123 views

Launch emacs in eww mode, display local .html file at startup

I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina. I have a twist on a common request. I had the idea to customize the emacs startup screen, but I see those options are ...
0
votes
0answers
15 views

Org Mode: Use mhtml for HTML editing in an export environment

To export raw HTML, one can use: #+begin_export html some HTML #+end_export However, mhtml-mode has some very desirable features, most notably, javascript syntax highlighting. So I use #+...
1
vote
1answer
26 views

Org mode HTML export presets

When I export something with org mode to html, with it comes a load of presets such as id, labels, classes, preambles and post ambles. For example: <div id="outline-container-org16cf335" class="...
0
votes
1answer
22 views

Make eqref work in HTML export

I'm trying to use org-ref to reference to equation numbers. It works with PDF export but never works in HTML export. In the web page it only shows a clickable (???) link with no destination. I tried ...
0
votes
2answers
102 views

Emacs acting strangely with indentation

So I've recently come back to working with emacs again I mostly write JavaScript in particular React these days and I'm noticing some strange behaviour when trying to indent my code. it seems the ...
2
votes
0answers
233 views

org mode, html export of LaTeX equations with tikz support

In my org-mode file I have some LaTeX equations using tikz and tikz-cd packages: #+TITLE: Mixing tikz and equations * An example \begin{equation*} \begin{tikzcd} A\arrow[yshift=.7ex,r,"f"] \arrow[...
0
votes
0answers
77 views

org-file with embedded latex and pseudo code converting to html via MathJax

I would like to use org-mode files with embedded latex code. Some of the latex content is based on packages like \usepackge{algorithm, algorithmic} to generate pseudo-code. These org-files should ...
1
vote
1answer
100 views

How to render html in web-mode?

I'm using web-mode within emacs to edit an html file, in html-mode I can use C-c C-v to render html, it opens the file straight to Firefox. How I do that with web-mode? Thanks a lot, P.S : Using ...
1
vote
1answer
210 views

HTML export with Org mode : all CSS specifications in one external file

I am using org mode to write my personnal website. I use the workflow described in the documentation (cf. https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html) and I therefore have a ...
0
votes
1answer
165 views

Exporting LaTeX commands to HTML/MathJax

I am writing a document that is specifying a language with associated grammar and semantics. For this I have written the specification in Latex, using a method very similar to the one presented here. ...
1
vote
0answers
27 views

Wrong numbering of sections - html export - org-mode - RTL languages

This small example: #+LANGUAGE: ar #+HTML: <style> html,h1,h2,h3,h4,h5,h6,body { direction: rtl} </style> * 1 ** - 1. 1 ** - 1. 2 ! ** - 1. 3 ! * 2 ** - 2. 1 ! ** - 2. 2 ** ...
0
votes
1answer
31 views

Don't open a HTML link if drag-and-dropped to Emacs

I keep my notes in Markdown. Often I would like to collect various links by drag-and-dropping them from the browser. However, Emacs opens them instead. I know that this is probably what most people ...
1
vote
0answers
44 views

How to supress transforming link names by org-export to html?

The HTML export of an org file transforms the links to "to equivalent HTML links in the output" How can I suppress this? I want to keep the same link names. Example: If we have this org file. ** ...
0
votes
0answers
28 views

Setting a maximal line length in html exports

I don't like long lines. How can I set a maximal line length in html exports?
0
votes
1answer
193 views

Cannot export org mode to collapsible HTML

I am trying to have basic collapsing/folding functionality for sections in the HTML file that has been exported from org-mode, since the files I want to share are very large. I am using Emacs 26.2 (9....
0
votes
0answers
26 views

creating custom org blocks for html classes

We can embed pure html inside org mode before exporting to a webpage using begin_export html (the html snippet was taken from https://alligator.io/css/collapsible) #+begin_export html <div class="...
0
votes
0answers
19 views

Easy way to edit JSFiddle file sets in Emacs

I use JSFiddle quite a bit to share HMTL/CSS/JS file sets ("fiddles") with others. Bigger edits of these files I do in Emacs. Is there an easy way (or a package) to do the download->edit->upload ...
0
votes
1answer
92 views

How do I center the title when exporting org file to HTML

#+TITLE: Hello World #+AUTHOR: A. U. Thor #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style.css"/> #+HTML_DOCTYPE: html5 currently gives me this as output where the title is ...
1
vote
1answer
36 views

CUSTOM_ID for HTML breaks “next line” in LaTeX

If in Org, I have **** Scancode :PROPERTIES: :CUSTOM_ID: input-types-scancode :END: Representing a Scancode is simple. the ID properly gets set in HTML: <ol class="org-ol"> <li><...
0
votes
0answers
73 views

org-mode: Remove loading message when exporting HTML and then converting to PDF

My goal is to export an HTML document and convert it to a PDF so I can have some of the advanced syntax highlighting and source code background coloring options in a PDF file. It seems to be working ...
0
votes
0answers
53 views

How to export trees to HTML table

Is there a built-in function/feature to export org headlines (not just properties drawers) and associated content into a HTML table? Can this be done with a custom css and if so, what might the ...
1
vote
1answer
55 views

Does `<meta charset=utf-8 />` obviate `-*- coding: utf-8 -*-` in an HTML file?

Is writing <meta charset=utf-8 /> in an HTML file (being edited by Emacs) sufficient, or do I also need to specify -*- coding: utf-8 -*- on the first line? In other words, do I have to write &...
0
votes
2answers
105 views

How to get current language at point?

How can i get current programming language at current cursor. For example, if my cursor is inside script tag, then it should return js or javascript and if it is inside style tag, then it should be ...
1
vote
0answers
82 views

web-mode didn't work properly under Emacs

I am using Emacs 25.3.1 under MS Windows 64-bit, Everything seems working fine except the web-mode. If I try to edit an HTML file there is no syntax highlighting, when mixing PHP and HTML only the PHP ...
1
vote
1answer
45 views

How write begin_export html blocks in an inline fashion?

A code which takes up several lines of screen realestate can be written as Inline code src_sh[:exports code]{echo -e "test"} foo source: https://stackoverflow.com/a/16193498 Is is possible to write ...
0
votes
1answer
51 views

hideshowvis text shown in Org mode source code

I am using in Org-mode to document inherited Java code. Here is shown an enum: However, when I export to HTML, the document is rendered like this: Which incorrectly shows a *hideshowvis* text. I ...
0
votes
1answer
104 views

How to disable commented date in org mode html export

When you export an org file to html, a date will appear in the html source though commented. Example, line 5 of https://imgur.com/a/BY4QSdt .
1
vote
1answer
146 views

Is it possible to disable wrapping of inline HTML with <p> tags?

If I have the following line in an org-mode file @@html:<section>@@ If I export to HTML, it becomes: <p> <section><br> </p> This applies the CSS I have for my <p ...
1
vote
1answer
590 views

Setting variable for org-mode html export?

I am trying to set org-html-link-org-files-as-html to nil for a single org-file (but have the value equal t for all other org files). This is a variable defined in ox-html. (defcustom org-html-link-...
2
votes
2answers
343 views

Definitive answer to org-mode export HTML versus LaTeX

I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \...
0
votes
1answer
156 views

Cannot export org file into html. Error: make-htmlize-fstruct: Symbol’s function definition is void: record

For some reason I cannot export certain org-mode files to html. Org-files without headers work fine. However, if I have a file with #+TITLE: This is the title of my website #+HTML_HEAD: <link rel="...
0
votes
3answers
263 views

How to programmatically export org buffer to html ( mimic the org mode sequence `C-c C-e h o` )?

In brief: I would like to programmatically mimic the org mode sequence C-c C-e h o to export a buffer to HTML and open the web browser. My scenario: I have a written a shell-command (in my code ...
0
votes
0answers
188 views

How to change caption size in org-mode export to HTML

Say I have the following figure: #+ATTR_HTML: :title This Figure #+ATTR_HTML: :width 50% #+CAPTION: blah blah blah. [[./figure.png]] The resulting caption in the .html (generated from org-html-...
1
vote
1answer
258 views

Make gnus display inline html images by default

How can I make gnus display inline images from html articles by default? A command exists to display them on a per-article basis: gnus-article-show-images however I would like this behavior ...
2
votes
1answer
34 views

Exporting help for multiple emacs lisp symbols into a single Texinfo file

I am looking for a way to produce HTML documentation for functions and variables defined in my .el files. One way I have seen suggested is by using texi2html tool. The challenge is to produce the ...
3
votes
0answers
314 views

exporting .svg images to .pdf in org-mode

I have a set of .svg images that I need to export to pdf by using org-mode. Even though I can see the images inside emacs, I cannot export them to .pdf. On the other hand, if I export my .org file to ...
0
votes
1answer
81 views

Emacs forces me to write HTML tags instead of PHP code

When I edit a PHP file, and when to type for example <?php I get the cursor moved to the lower buffer suggesting me to write an HTML tag instead: How to circumvent this issue?