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

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
43 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
10 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
11 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
24 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
34 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
43 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
49 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
31 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
0answers
27 views

Wrap a block of html with one or multiple tags

Often my point is at a paragraph <p>The quick brown fox jumped over the fence</p> <br> Example and I want to wrap it like this <div class="row"> <div class="columns">...
0
votes
2answers
66 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 ...
0
votes
0answers
49 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
32 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
0answers
22 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
30 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
31 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 ...
0
votes
0answers
15 views

Stop indentation from altering pre-formatted text

.preformatted { white-space: pre-wrap; } <div class="preformatted"> THIS TEXT IS PREFORMATTED <= no spaces there, before pasting this text in this code ; It should render ...
0
votes
0answers
25 views

browse-url doesn't get href from html formatted mails

I'm using notmuch (https://notmuchmail.org/notmuch-emacs/). When viewing the HTML part of a mail that has a link (using a href tag), I can right-click on it and select "Open Link in <browser>". ...
0
votes
1answer
181 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-...
0
votes
1answer
108 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
83 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
2answers
93 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
28 views

Rmarkdown-like export of Leaflet for R webmap to html from org-mode

With RMarkdown it's easy to embed an interactive webmap. E.g.: --- title: Some title output: rmarkdown::html_document --- ```{r} library(leaflet) leaflet(width = "100%", height = "650px") %>%...
0
votes
0answers
80 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-...
0
votes
1answer
143 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
33 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 ...
2
votes
0answers
188 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
72 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?
2
votes
1answer
81 views

How to prevent Emacs from converting JavaScript symbols to HTML code?

When I insert a portion of JavaScript code within an HTML file, Emacs convert some basic JS symbols to their HTML code. For example when I type >, Emacs convert it automatically to &gt; which ...
0
votes
2answers
97 views

How to prevent losing indentation when editing JavaScript code within HTML files in Emacs?

When I edit JavaScript code which exists in an HTML file, I lose code indentation whenever I press Enter. first line of code: second line of code # Press Enter here Result after pressing Enter: ...
2
votes
1answer
74 views

eww/w3m search based on underlying page source

Is there a robust/general way in eww browser (or alternatively w3m in emacs) by which I can get the character position in a rendered page from a known character position in the page source? I'd like ...
1
vote
1answer
548 views

Live view an html document in emacs

Running emacs 25.2.2. Here is something (apparently) simple I want to do, but am unable to: I am editing an html document. I want to see the same document in the internal browser in a vertically ...
4
votes
2answers
274 views

How to put inline quotes in an org file for html export

I am exporting an org file with org-reveal. I would like to have the following html markup when exporting: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-...
0
votes
1answer
34 views

Convert HTML umlauts to corresponding characters

I have a list of strings containing german umlauts as their html representation, e.g. ü is &uuml; and so on. Is there an easy, maybe built-in, way to convert them within strings, i.e. "Pr&uuml;...
3
votes
0answers
55 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 ...
1
vote
0answers
587 views

mu4e : display inline images in html emails

I'd like to display inline images in html email in mu4e. I tried to ask to the creator of mu4e, but he told me that it's out of the scope of mu4e to do that. However, I can display for example the ...
0
votes
1answer
222 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....
2
votes
1answer
416 views

Where is mhtml mode defined? And why am I getting it by default when I open HTML files?

Under some very special conditions (namely, performing one particular edit in one particular HTML file), my Emacs session will freeze completely, and starts consuming ~100% of the CPU. The only ...
0
votes
1answer
45 views

Tell Emacs to use always the same browser

In my experience xhtml-mode's browse-url-of-buffer command uses different browsers depending, I guess, on the different desktop environments (or on their absence sometimes). My question, how can I ...
2
votes
1answer
234 views

how can I control table column widths when exporting to html?

I would like to specify the width of each column in tables that are exported from an org mode file to html. In terms of html I can think of two possible solutions, (i) add class attributes to each ...
1
vote
0answers
313 views

How to configure org-html-export-as-html to export drawer to html?

So, right now, I am trying to build my website with Nikola static site generator. There is a nice orgmode plugin for it where I can write my content in orgmode and Nikola can then render it to html (...
3
votes
2answers
380 views

Emacs picking the wrong browser

I'm working under org-mode. When I click on a [http://example.com] link, it opens a tab in Firefox as expected. The .emacs config is: '(browse-url-browser-function (quote browse-url-firefox)) ...
0
votes
1answer
588 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 ...
4
votes
0answers
615 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
3
votes
0answers
137 views

Is AsciiMath Possible in Org-mode?

I have been using Org-mode for largely everything including for maths text. Although I have gotten pretty good at writing LaTeX snippets, I have a lot of trouble reading it. I much prefer the syntax ...
0
votes
1answer
275 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 ...
2
votes
0answers
90 views

How to export org subtree as nested <ul>/<ol> HTML list?

I have a section of an org-file where there are only headings with no content within them, each line is a (sub)heading. * heading 1 * heading 2 ** heading 2.1 ** heading 2.2 *** heading 2.2.1 * ...
3
votes
0answers
35 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
106 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
44 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 ...