Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage[authoryear]{natbib}
- begin{document}
- Over twenty years ago, cite{McAfee1992Dominant} introduced the first
- double auction mechanism.
- bibliographystyle{plainnat}
- bibliography{mwe}
- end{document}
- @article{McAfee1992Dominant,
- author = {McAfee, R. Preston},
- title = {{A dominant strategy double auction}},
- year = {1992}
- }
- Over twenty years ago, McAfee<ref>{{Cite journal|author=R. Preston McAfee|title=A dominant strategy double auction|year=1992}}</ref> introduced the first double auction mechanism.
- pandoc -f latex -t mediawiki mwe.tex > mwe.wiki
- Over twenty years ago, introduced the first double auction mechanism.
- documentclass{article}
- usepackage[style=authoryear]{biblatex}
- usepackage[utf8]{inputenc}
- usepackage[T1]{fontenc}
- addbibresource{mwe.bib}
- begin{document}
- section{Hello world}
- subsection{Hello, hello}
- Over textit{twenty years} ago, cite{McAfee1992Dominant} textbf{introduced} the first
- double auction mechanism.
- end{document}
- Preamble{xhtml}
- % remove html structure
- Configure{HTML}{}{}
- Configure{@HEAD}{}
- Configure{BODY}{}{}
- Configure{DOCTYPE}{}
- Configure{HEAD}{}{}
- Configure{TITLE}{}{}
- Configure{VERSION}{}
- newcommandstarttag[1]{NoFontsHCode{#1}}
- newcommandstoptag[1]{NoFontsHCode{#1}}
- newcommandConfigureInlinetag[2]{%
- Configure{#1}{starttag{#2}}{stoptag{#2}}%
- }
- ConfigureInlinetag{textit}{''}
- ConfigureInlinetag{textbf}{'''}
- newcommandConfigureSection[2]{%
- Configure{#1}{}{}{starttag{#2}}{stoptag{#2Hnewline}}%
- }
- ConfigureSection{section}{==}
- ConfigureSection{likesection}{==}
- ConfigureSection{subsection}{===}
- ConfigureSection{likesubsection}{===}
- % remove section id
- defgobbleone#1#2{}
- Configure{toTocLink}{gobbleone}{}
- % remove <p> elements
- Configure{HtmlPar}{}{}{HCode{Hnewline}}{HCode{Hnewline}}
- DeclareFieldFormat[article]{entrytype}{Cite journal}
- DeclareFieldFormat*{titlecite}{{title=#1}}%
- DeclareFieldFormat*{yearcite}{{year={#1}}}%
- DeclareNameFormat*{labelname}{ifthenelse{value{listcount}=1}{#1}{}}
- DeclareCiteCommand{cite}%
- {printnames{labelname}HCode{<ref>}{{}%
- {%
- printfield{entrytype}
- setunit{|}%
- printtext{author=}%
- printnames{author}%
- setunit{|}%
- printfield[titlecite]{title}%
- setunit{|}%
- printfield[yearcite]{year}%
- }%
- {}%
- {}}HCode{</ref>}}%
- begin{document}
- EndPreamble
- % remove html structure
- Configure{HTML}{}{}
- Configure{@HEAD}{}
- Configure{BODY}{}{}
- Configure{DOCTYPE}{}
- Configure{HEAD}{}{}
- Configure{TITLE}{}{}
- Configure{VERSION}{}
- newcommandstarttag[1]{NoFontsHCode{#1}}
- newcommandstoptag[1]{NoFontsHCode{#1}}
- newcommandConfigureInlinetag[2]{%
- Configure{#1}{starttag{#2}}{stoptag{#2}}%
- }
- ConfigureInlinetag{textit}{''}
- ConfigureInlinetag{textbf}{'''}
- newcommandConfigureSection[2]{%
- Configure{#1}{}{}{starttag{#2}}{stoptag{#2Hnewline}}%
- }
- ConfigureSection{section}{==}
- ConfigureSection{likesection}{==}
- ConfigureSection{subsection}{===}
- ConfigureSection{likesubsection}{===}
- DeclareFieldFormat[article]{entrytype}{Cite journal}
- DeclareFieldFormat*{titlecite}{{title=#1}}%
- DeclareFieldFormat*{yearcite}{{year={#1}}}%
- DeclareNameFormat*{labelname}{ifthenelse{value{listcount}=1}{#1}{}}
- DeclareCiteCommand{cite}%
- {printnames{labelname}HCode{<ref>}{{}%
- {%
- printfield{entrytype}
- setunit{|}%
- printtext{author=}%
- printnames{author}%
- setunit{|}%
- printfield[titlecite]{title}%
- setunit{|}%
- printfield[yearcite]{year}%
- }%
- {}%
- {}}HCode{</ref>}}%
- DeclareFieldFormat[publication type]{entrytype}{publication info}
- make4ht -um draft -c hello.cfg filename
- biber filename
- make4ht -um draft -c hello.cfg filename
- ==Hello world==
- ===Hello, hello===
- Over ''twenty years'' ago, McAfee<ref>{{Cite journal |author=McAfee, R. Preston|title=A dominant strategy double auction|year=1992}}</ref> '''introduced''' the first double auction mechanism.
- pandoc -f latex -t mediawiki --bibliography=mediawiki.bib mediawiki.tex -o mediawiki.wiki
Add Comment
Please, Sign In to add comment