# Tag Info

## Hot answers tagged restructured-text

7

According to its description, pandoc can convert between: markdown and (subsets of) reStructuredText, HTML, and LaTeX; and it can write plain text, markdown, reStructuredText, HTML, LaTeX, ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, groff man pages, and S5 HTML slide shows. It will happily convert ...

7

Markdown is quite limited when it comes to logical markup. It lacks the necessary structural elements like “sender”, “receiver” etc. I think it's not possible to create letters solely in markdown. A solution would be to use a pre-processor like gpp to create a logical markup which translates into different structural elements of the final format. There's a ...

3

I'm not sure how much you're willing to do from the preamble, but here's a suggestion: \documentclass{article} \begingroup \catcode\.=\active \gdef.{\normalperiod\allowbreak}% \endgroup \newcommand\aepath[1]{%% \bgroup \let\normalperiod=.%% \catcode\.=\active \everyeof{\noexpand}%% \endlinechar=-1%% \ttfamily\scantokens{#1}%% ...

3

Pandoc lets you specify both templates and variables. For instance, see the example here: http://pmagwene.github.io/blog/2013/02/07/pandoc-latex-letters/ Paraphrasing that link: you just create the latex template file with your desired letter class, etc, and then add pandoc macros (such as $title$ or $body$) to include the variables (defined in the compile ...

2

The problem is in the produced code %%% Title Data \title{\phantomsection% This it the title% \label{this-it-the-title}} that works in article and other classes, but not in memoir because of untimely expansions. A workaround would be persuading rst2latex to put \protect before \phantomsection and \label, but I really don't understand those commands ...

1

Stealing egreg's answer at How to emulate \url hyphenating without using the url package?, wherein he redefined \url, I start with that same redefinition to instead redefine \texttt instead of \url. In egreg's original incarnation, it allowed linebreaks at . and / characters. But other breakpoint symbols can be added, for example, below I also make [ a ...

Only top voted, non community-wiki answers of a minimum length are eligible