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
1answer
9 views

Disable quote replacement in sgml-mode

In sgml-mode, when I type quotes ", they are automatically replaced by ". The culprit is the function sgml-name-self. Perhaps it is called automatically on characters in the variable sgml-...
0
votes
1answer
32 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
0answers
19 views

Make “#+BEGIN_EXPORT latex” also exported to html (orgmode)

I know that placing latex code in the main text body solve my issue: the latex code is taken into account both when exporting to latex and to html. However, I like to use Latex blocks because of the ...
1
vote
2answers
40 views

How to export an html file with a foldable & dynamic TOC from an org file?

When HTML pages are extended I find it quite useful to have a TOC (table of Content) available all along with your scrolling. A good example of an implementation of such a functionality is the Worg ...
0
votes
1answer
61 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
0answers
34 views

How to export org mode to html using Google Fonts & CSS?

I'm trying to change the headers and body fonts of HTML exported from org files. The idea is to have Bebas Neue for headers and Lato for body (both are available through Google fonts). first I ...
0
votes
0answers
16 views

CSS to export org to printable(A4papers) HTML with headers

I export org buffers to A4paper size pdf with header and footer customized as my letterhead using xelatex. It requires latex to be installed on each machine. Is it possible to achieve the same using ...
3
votes
1answer
1k views

Org-mode export to HTML - problem with indentation

When I export an elisp source code block to html, the indentation of the code gets messed up. I've tried calling (setq org-src-preserve-indentation t), but that didn't help. I imagine there is perhaps ...
0
votes
1answer
33 views

Hook to run on completion of exporting org to html

I've defined a custom command with shell-interpreter to rsync files to my VPS... (defun rsync_html () (interactive) (with-shell-interpreter :path "~/org" :interpreter "bash&...
0
votes
1answer
417 views

Code block evaluated when exporting, not when publishing

I have this basic org publishing project to test that code blocks evaluation is triggered by publishing in html (org-html-publish-to-html). While exporting through org-mode export dispatcher does ...
0
votes
0answers
12 views

Writing an rfc sort of with emacs -nw

I'm trying to write a document like this with emacs -nw It will be exported via ftp to a website so a client can see the research/report with their browser. Essentially ability to center a heading ...
13
votes
1answer
456 views

Is there a plugin that does color HTML matching tags like rainbow delimiters?

I would like some plugin which colors html tags with a corresponding color based on which tag they match. For example <div> <p></p></div> <div> and </div> would ...
0
votes
1answer
337 views

Batch convert local HTML webpages to plain text

Here is my zsh code function eweb() { emacsclient -t --eval "(eww-open-file \"$1\")" "(save-buffer \"$2\")" } There are two parameters, the first is the local webpage filename, for example, ./1....
0
votes
2answers
117 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
54 views

Random href ids in Org 9 exported HTML?

Something seems to have changed in the way HTML is exported from org mode between the 8 and 9 versions.One example, in the Table of Contents, I get entries with anchors like this: a href="#orgfaf035e"...
7
votes
1answer
633 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
2
votes
1answer
142 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} #+...
1
vote
1answer
764 views

Emmet-mode: Wrapping individual lines in HTML tags

I'm new to Emacs, new to Emmet, and new to Stack Overflow. I'm trying to wrap a list of text in individual html tags. Home About Something is supposed to become <ul> <li>Home</...
1
vote
4answers
354 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
26 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/...
14
votes
2answers
2k views

Org mode - Parsing rich HTML directly when pasting?

Currently, for notetaking tools like Evernote and Quiver, I can directly copy HTML content from my favorite browser and then paste them into the app, with all the formatting + link preserved. However ...
0
votes
0answers
44 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
57 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
54 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
60 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
71 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
26 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
80 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 ...
9
votes
3answers
2k views

Embed Image as Base64 on HTML export from Orgmode

The goal is to make a self-contained html file when exporting from orgmode so that the images are intrinsic to the file and a single html file will can be distributed (I am trying to do this for a ...
0
votes
1answer
216 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 ...
4
votes
0answers
139 views

dvisvgm baseline in org-mode HTML export

When using #+OPTIONS: tex:dvisvgm and exporting to HTML with org-mode, the baseline of the latex exported images does not match the baseline of the text (when using subscripts, for instance). Is there ...
0
votes
0answers
18 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
33 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
2answers
1k views

yaml frontmatter in org mode

When exporting and org file in emacs to either html or md for a jekyll-based web page, the yaml front matter gets twisted. As suggested here, I have attempted enclosing it in an html block in the ...
0
votes
1answer
26 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
141 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
338 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[...
1
vote
0answers
108 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 ...
2
votes
2answers
421 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: \...
1
vote
1answer
123 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
329 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
199 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
31 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
39 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
49 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
1answer
134 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 ...
0
votes
1answer
232 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....
1
vote
1answer
39 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><...