Hello,

Ligatures like \ae are specific to the LaTeX (and thus PDF) writer, so they don't work in any other formats. Pandoc just passes it through unchanged. For HTML output, you can use an entity: `Æ` or `æ`, for upper case or lower case. Another option is to use the unicode character directly (how you do this depends on your system and text editor; in Windows hold Alt and type 0230 on the number pad; in vim type CTRL-K a e; use a character-map app, etc.) This should work for most output formats. It'll work with LaTeX if you use XeLaTeX or LuaLaTeX, as those allow unicode input.

Jason

On Monday, September 21, 2015 at 5:57:37 AM UTC-5, Chris Wright wrote:

I want to publish a document with an \ae ligature to html and to pdf. The latex form "\ae robic" converts to the appropriate form and displays properly in pdf, but the html just drops the ligature.


Simple test case:


chriswri$ cat > test.txt

\ae robic

chriswri$ more test.txt

\ae robic

chriswri$ pandoc -t native test.txt

[Para [RawInline (Format "tex") "\\ae ",Str "robic"]]

chriswri$ pandoc -t html test.txt

<p>robic</p>


What's the best way around this - write a filter? finding some docs that will help? (I've found that ... is automatically converted to an ellipsis  - so \dots isn't necessary).


with thanks


Chris



--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bbaae9b2-c139-415f-9063-86a887358b4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.