UP  |  HOME

Test markup

This is a document for orgmode hacking, markup testing, and HTML/LaTeX export testing. Everything below is nonsense for testing various things, or notes on what does and doesn't work.

It's also a good reference sometimes when I forget how things work.

1234

This is a bad header for CUSTOM_ID generation (anchors can't start with a number). It's here to test that feature fails to generate a suitable ID.

Nobody told me about this feature before. What does it do in various exports?

simple pre-formatted text
here's a multiline one
line 2
line 3

A little bug in SRC blocks

This block has language set to 'conf'. Several links in angle brackets are there, but the key seems to be that subsequent lines start with '#'. Then the html export does some bonkers things. Note how the # become links. Also the URLs aren't terminating with the '>', so each link URL is actually the rest of the source block.

Listing 1: fake caption
<http://>
# <http://>
# <http://>

Here's the same thing with language text. Produces a single link over the whole block contents.

Listing 2: fake caption
<http://>
# <http://>
# <http://>

And then with no language set. No link.

Uh oh. Why is this src block getting the example styling? I guess I never tested this before. (TODO : fix this)

<http://>
# <http://>
# <http://>

Something deep

Two

The Second

  • True beliebers
    Listing 3: legend
    has it that a boy once roamed the surface
    
    • Far in excess
      Listing 4: Televised disobedience
      They pelted the windows with cracker jacks
      
      • Magnificent
        Listing 5: small and precise
        What non-sense
        

The Third

Great clouds overhead
Tiny black birds rise and fall
Snow covers Emacs

   —AlexSchroeder

Three

Calling

It is said that composition is the most important aspect of a photograph. I disagree. An intriguing interplay of light and shadows can make a discarded candy wrapper look profound. An unflattering light makes even the most expertly framed scenery look pedestrian and dull.

— MC Hammer

swift

Why, yes, Captain. Didn't you just say to go… —Smee

Lists

A regular list

  • things
  • may
  • not
  • work
  • out

A description list

Paris
France
Warsaw
Poland
Berlin
Germany
Budapest
Hungary
Madrid
Spain

Yes, Pizza please

This has a NAME "hax". NAME gets added as an ID on the <pre> element in HTML, but does nothing in TeX. It also has a caption now.

hax
apt-cache search dwarf-fortress

This has a CAPTION "stax". CAPTION does nothing in HTML, but works in TeX. It should probably produce a <label class="org-src-name"> like listings do. TODO

stax
dwarf-fortress - Slaves to Armok: God of Blood Chapter II: Dwarf Fortress
dwarf-fortress-data - Dwarf Fortress data files

Test some source code

Listing 6: Put a caption on it
#include <stdio.h>

int main(int argc, char *argv[]) {
    printf("Hello, World!");
    return 0;
}

Now make these pull files into the publishing dir

SVG with caption

cs2_rear_panel.svg

Figure 1: CenterStage CS-2 Rear Panel

SVG without caption

This older SVG was missing the viewbox attribute, but it scales properly after it is added. We shouldn't actually have SVG without caption, because eventually it's going to be used for accessible image labels.

fades.svg

raster with caption

keyboard.png

Figure 2: Glorious IBM Model M

raster without caption

hex_display.png

crop a svg just because (should become a jpg)

glider2.jpg

Figure 4: glider, bottom row

A large PNG file (make this fit the page width)

fades.png

eneloop batteries cropped and having a red rectangle

eneloops.jpg

Figure 5: This is a some eneloops with a red rectangle drawn on

space invader, I will never want to shoot you

space_invader_tiles.jpg

Figure 6: So many modifications, a crop, a red rect, and solid black rect