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
23 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 ...
1
vote
1answer
33 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
44 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
22 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
45 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
10 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 #+...
0
votes
1answer
16 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
16 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
62 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 ...
1
vote
0answers
110 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
48 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
78 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
121 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
104 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
22 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
24 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
41 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
144 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
22 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
63 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
35 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
67 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
51 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
53 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
94 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
74 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
42 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
44 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
69 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
121 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
1answer
467 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-...
1
vote
2answers
267 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
136 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
205 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
144 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
233 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 ...
3
votes
0answers
270 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
77 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
96 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
143 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
81 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
1k 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
354 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
44 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;...
4
votes
0answers
119 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
825 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
295 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....