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
3
votes
0answers
37 views

syncing html with w3m

How can I split Emacs to two buffers, one for html and the other for w3m so that when I save the html it refreshes the w3m buffer. Also, when I press E in the w3m buffer it takes me to the ...
0
votes
2answers
108 views

can I quickly clean up html files with emacs (prelude)

How do you clean up an html file? For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there. <html> <body> &...
3
votes
0answers
48 views

Synchronised scrolling of HTML file and eww buffer

I am editing a HTML file. I have done C-x 3. Now, in the other split window, I want to open a browser, such as eww. And as I move in the HTML file, I want the browser window to show the ...
1
vote
1answer
191 views

org-mode inline html while exporting using ox-pandoc

I am not able to use inline html through macro in org-mode when exporting through ox-pandoc. For example if I use @@html:<span class="small">@@Small Text@@html:</span>@@ and export the ...
0
votes
2answers
159 views

Orgmode export html with fontawesome characters

I have an org document in which I inserted fontawesome characters (with the package fontawesome). When exporting to html, the characters are exported as is instead of being exported in html ...
1
vote
1answer
399 views

solution for html “intellisense” style completion for emacs like Atom or Brackets have

I've started taking an html course and I'm trying to figure out how to add functionality to emacs that exists in programs like atom or brackets. I've seen a few modes web-mode.el and nxhtml mentioned ...
1
vote
1answer
214 views

Syntax highlighting inside HTML5 <script> tags

I was curious if there was a way to get highlighting/indentation for any JavaScript that's inside of HTML5 tags? I don't frequently use JavaScript but for a class I'm in we're working with it. I ...
1
vote
1answer
100 views

HTML-mode insert tag without attribute(s) [duplicate]

In HTML-mode C-c C-o is bound to sgml-tag which inserts a tag of choice and one or more attributes. My question is this: How can I insert a tag with sgml-tag and skip insertion of an attribute. For ...
2
votes
1answer
42 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"...
5
votes
1answer
606 views

orgmode - html export image and code top alignment

This pgfplot gallery is excellent. I try to use org mode to generate similar html but the image and code block not align. #+HTML_HEAD: <style type="text/css"> #+HTML_HEAD: .example {background-...
3
votes
1answer
200 views

How to export readable HTML links in Org mode?

When exporting an Org file to HTML all internal links of the form [[link]] are given section indicators of the form X.Y.Z. This makes sentences in which words have been linked unreadable. Input * ...
0
votes
1answer
80 views

Is it possible to auto select the mode depending on where the file is?

One can use auto-mode-alist to define modes based on the regex and the filename. However I want to use different modes for files depending on which folder they are in. So, for example, in a django ...
3
votes
1answer
461 views

gnus to send html-formatted emails

I'm trying to send an html-formatted email via gnus. I found this: https://groups.google.com/forum/#!topic/gnu.emacs.help/nZBJxHHYdko which suggests: 1. M-x mml-insert-part enter 2. Content type: ...
6
votes
1answer
2k views

How to include rendered HTML in org mode?

It looks like this question was asked in this thread, but was not resolved. I hope it doesn't sound redundant, but it seems there must be a way to accomplish this in org mode. In my example, I am ...
5
votes
2answers
2k views

HTML mode that closes tags

Regular HTML mode doesn't close tags. Or, if it does, I haven't found out how. Transitioning out of Sublime Text, I am searching for an HTML markup mode that will close tags intelligently. The HTML ...
3
votes
0answers
75 views

eww filter rules

emacs-w3m has very useful function: w3m-filter. Namely, one can change html before rendering it. Does eww have something similar? For example on some site i want to change: <span class="tag">...
3
votes
0answers
295 views

how to expand org-mode macros in HTML blocks in export to HTML?

I'd like to use org-mode macro replacement to expand macros inside HTML blocks in org-mode export to HTML. I'd like this... #+MACRO: event-url bar #+HTML_HEAD: <meta property="og:url" content="...
2
votes
2answers
1k views

HTML editing with preview [duplicate]

Editing html is good but I really would like to have a way of fast previewing the changes that I made. Is there e.g. a script to open Chromium or refresh a site for that?
5
votes
1answer
739 views

siunitx, MathJax, org-mode and html export

I use org-mode to write documents that are both exported into PDF via latex and HTML. I use the package siunitx to typeset numbers with si-units. It is a bit tedious to do but I got used to it (...
1
vote
1answer
344 views

Web-mode uses 1 space indent instead of 2

I have this config in my init.el: (setq-default indent-tabs-mode nil) (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) (defun my-web-mode-hook () "Hooks for Web mode." (setq web-mode-...
1
vote
1answer
153 views

Exporting tables to html with fixed header when scrolling

I have a rather tall table (200-300 lines) being exported to html. It would be nice to have the header visible at all times when scrolling to the lower entries. So far no googling has turned up a ...
2
votes
0answers
81 views

How can we use a specific command from LaTeX package while exporting to html?

I can add LaTeX equation in my org file using for instance. \begin{equation} x^2 + y^2 = z^2 \end{equation} In this case when I export to html everything works fine. However, when I try to use a ...
1
vote
1answer
553 views

Find and replace matching html tags

I want to transform some of the opening and closing tags in an html document to other tags. That is I would like to transform <div class='foo'> This is some text. </div> to something ...
4
votes
3answers
508 views

Emacs org mode export paragraph in block to HTML, The content does not wrap

it became to one long straight bar, instead of showing as a block of the paragraph. I use #+begin_example. if I use quote it looks ok but I want to have the block looks.
1
vote
1answer
419 views

args-out-of-range error with ac-html

I tried using ac-html recently since I'm an auto-complete user and I'd like to have HTML completion in html-mode and web-mode buffers. However, it has been acting somewhat strangely and throws an ...
2
votes
2answers
274 views

Changing HTML Table Formatting When Exporting from R

I am generating several tables in R and then exporting them to HTML(5). For instance: #+BEGIN_SRC R :session *R-org* :results output raw :exports results df <- data.frame(x=0.110, y=0.132) ...
6
votes
1answer
2k views

Markdown preview in Emacs using pandoc

Platform: Windows 7, Emacs 24.2, Pandoc 1.17.2 Scenario: I am writing a markdown file in Emacs. I need to use pandoc to render the output, because it supports citations (using pandoc-citeproc). ...
8
votes
2answers
1k 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 ...
2
votes
2answers
2k views

Center image in GitHub's README.org

I want to center an image in my project's GitHub README.org file, but everything I've tried so far hasn't worked: #+ATTR_HTML style="center" [[/path/to/img.png]] #+ATTR_HTML align="center" [[/path/...
1
vote
0answers
615 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</...
0
votes
1answer
110 views

Why does my latex src code block ignore exports header arguments

GNU Emacs 25.1.50.2 Org-mode version 8.3.5 At some point in the past I could put down a block like this #+begin_src latex :exports results :results {latex|html} \begin{equation} a = 1 + b \end{...
1
vote
1answer
175 views

`markdown-mode` only renders some, not all, LaTeX strings

I'm using markdown-mode. I followed these instructions to render LaTeX math strings: http://jblevins.org/projects/markdown-mode/ I am rendering to HTML with markdown-export and markdown-live-preview-...
1
vote
1answer
183 views

How do I replace html <p> tag contents from one html file to another html file

I am having difficulty with bibliography citations in HTML export. I am able to generate two html files with citations, one from the standard html export from an org file, and another from exporting ...
1
vote
0answers
280 views

Delete opening and closing tag in web-mode

Is there a way to delete opening and closing html tags in web-mode? I have tried using sgml-delete-tag from within web-mode but can't get it to work properly (I get an error message sgml-lexical-...
1
vote
0answers
64 views

Open HTML email in browser but preventing loading of images and scripts

Email mail clients such as mu4e are not perfectly suited to view HTML emails. I usually try to view it in Emacs (using Emacs' own HTML redinging enging shr) but revert to opening the email in a ...
2
votes
2answers
760 views

How to org-export this tag into HTML?

how to export dir="rtl" into HTML file from an org buffer? TL;DR: I want to export this simple org-buffer written in Arabic into HTML. The direction should be from right to left. I have this setting ...
1
vote
2answers
705 views

Embbed html/javascript in org-mode html export

Is it possible to embed an html file within an html exported from org-mode? I don't mean to "quote" the source of the file (which is possible with #+INCLUDE: "someFile.html" src html). My use case ...
7
votes
1answer
474 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
397 views

Org-Mode: Exclude specific code line from html export

I'm writing a Lilypond typesetting tutorial in Org to be published on a web page. I would like to exclude the line with set-default-paper-size from html export, cause it doesn't belong to the tutorial ...
2
votes
0answers
166 views

How can I use an absolute path to my CSS with impatient-mode?

I installed impatient-mode through MELPA, and I'm having some trouble with the CSS functionality. If I create a directory called temp with an HTML file and a CSS file inside: temp ├── index.html └── ...
8
votes
1answer
140 views

automatically move to n-th character on line after each C-n or C-p

this feature would go nicely with emmet mode. With emmet-mode, I can expand li*3 to <li></li> <li></li> <li></li> effortlessly. But after i enter something in ...
7
votes
1answer
1k views

Org-mode external links not working when exported to HTML

I have 2 .org files: // a.org contains the anchor <<my_anchor>> // b.org contains the link to my_anchor [[file:a.org::my_anchor][My Link]] When I click on the link in org-mode, it links ...
7
votes
2answers
2k views

no html/jsx indentation in jsx-mode

For some reason the html/jsx in my react source files always wants to indent as follows, i.e. there is almost no indentation: return ( <DateRangePicker ranges={this.state.ranges} startDate={this....
2
votes
0answers
664 views

How to use custom :sitemap-function with org-publish?

I have this component in org-publish list : ("presentations" :base-directory "~/presentations/org/" :base-extension "org" :publishing-directory "~/presentations/" :publishing-function org-reveal-...
3
votes
1answer
962 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 ...
2
votes
0answers
93 views

Org LaTeX problems with themes when exporting to html

I use the two great html theme, bigblow and readtheorg, from https://github.com/fniessen/org-html-themes. They're awesome ! Looks really professionnal. The problem is that when I export some LaTeX, in ...
2
votes
1answer
794 views

Do not add TITLE as heading to body when exporting org file

This export option: #+TITLE: My title Does two things: adds a meta tag on the document's head: <title>My title</title> adds a heading at the start of the generated content div: <h1 ...
8
votes
1answer
613 views

How to export svg images as <img …> in html export

Normally, when I export to html an org-mode buffer that contains a link to an image, the link is coverted to a proper html <img...>. However, if that image has a .svg extension, it is exported ...
10
votes
1answer
1k views

How do I export an ORG file to an interactive HTML site?

Is there a way to export a .org file into an html that supports expanding and collapsing titles? What I want is to be able to press a key like TAB and expand and collapse the outline, but on a html ...
1
vote
2answers
26 views

When opening “/tmp/foo.html”, don't prompt for Document Title

If I do "ctrl-x ctrl-f /tmp/foo.html" (where /tmp/foo.html doesn't exist), emacs prompts me for "Document Title:" How do I turn off this behavior (which I'm guessing is an html-mode hook of some sort)...