public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Define LaTeX macros for normal text?
@ 2018-07-20  8:28 Axel Rauschmayer
       [not found] ` <58f781fb-4f67-40df-8567-847f62b54d35-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Rauschmayer @ 2018-07-20  8:28 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1138 bytes --]

I have the following use case: In LaTeX, \path{} is great for breaking up 
long paths and URLs in PDFs, so that they don’t overflow into the margins.

For example:

* You can open the following file inside the repository with the exercises: 
\path{demos/async-js/blocking.html}

But I don’t know how to make this work for HTML (apart from pre-processing 
via sed). One theoretical possibility (conditionally switched on if the 
target format is HTML):

\newcommand{\path}[1]{<code>#1</code>}

Alas, that only seems to work in math context.

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/58f781fb-4f67-40df-8567-847f62b54d35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1797 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-21  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-20  8:28 Define LaTeX macros for normal text? Axel Rauschmayer
     [not found] ` <58f781fb-4f67-40df-8567-847f62b54d35-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-07-20 12:23   ` mb21
     [not found]     ` <e613795f-c063-4b39-890d-2a33684d9054-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-07-20 12:29       ` Axel Rauschmayer
     [not found]         ` <25a92052-57c8-40e9-b51e-881285edefb2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-07-20 17:24           ` John MacFarlane
     [not found]             ` <yh480kva99zupz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-07-20 19:52               ` Axel Rauschmayer
2018-07-21  7:32   ` Axel Rauschmayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).