WIKI2BEAMER(1)
π WIKI2BEAMER π
okay bestie, sit down, hydrate, because today we're talking about wiki2beamer β it's a little command-line icon that takes your wiki-flavored text and turns it into latex-beamer code. yes. that's the whole vibe. slay.
β¨ NAME β¨
wiki2beamer β convert wiki-formatted text to latex-beamer code. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
wiki2beamer [OPTION...] [FILE...]
π¦ DESCRIPTION π¦
okay so here's what you can hand her:
FILEβ the text-file(s) to be processed. give her the goods. π-h,--helpβ show a short usage help. she'll tell you how she works, real quick.--versionβ show version information. who is she? this is who she is. π-o,--output FILEβ write output to FILE instead of stdout. so instead of screaming into the void (terminal), she writes it to a file. iconic.
π USAGE π
Usually you want to pipe the output of wiki2beamer into a file, no cap:
wiki2beamer footalk.txt > footalk.tex
If called with multiple input files, wiki2beamer processes them in order with their content being simply concatenated. so like, first one, then the next one, glued together, in order, fr fr.
If called without any input file, wiki2beamer will attempt to read input from STDIN. If no input files are supplied and nothing is available on STDIN, wiki2beamer prints its usage message and exits. (she's not gonna sit there forever waiting for you, bestie π)
If an error occurs, wiki2beamer returns a return code other then 0. so like, check your exit codes. nonzero = something went sideways.
π SYNTAX π
Wiki2beamer has it's own wiki-syntax which (evolved without much of a concept ;) and) is described below. Everything that is unknown to wiki2beamer will be passed through to the LaTeX output (unless inside special environments).
honestly? the syntax grew up organically, no plan, just vibes, and we love her for it. π«Ά
π§ Overall Structure
A wiki2beamer txt file can consist of two sections: the head and the body. The head is optional and is an autotemplate environment. The body contains the content of the document. If the head (autotemplate) is not given, then only the code for the body will be generated and can be included into a manually crafted LaTeX template file.
π Managing Input
You can split input to wiki2beamer into multiple files. This helps to keep things apart and avoids conflicts. There are two ways to split input. The first is to use multiple input files which wiki2beamer will read and process in order as if they were one concatenated file. The second is to use the >>>include<<< syntax.
>>>includefile<<<β Include the file named includefile at this line. Works recursively. Endless recursion will be detected and treated as an error. Including files doesn't work inside[nowiki]and[code]environments (see below).
recursive includes are giving infinite-loop energy and she WILL catch you. π
β Structuring the Presentation
== sectionname ==β opens a section called sectionname== longsectionname ==[shortname]β opens a section called longsectionname, passing the parameter shortname to latex=== subsectname ===β opens a subsection called subsectname=== longsubsectname ===[shortname]β opens a subsection called longsubsectname, passing the parameter shortname to latex==== frametitle ====_β opens a frame with the title frametitle==== frametitle ====[param]β opens a frame with the title frametitle, passes frame parameters liket,fragile,verbatimetc. to latex!==== frametitle ====[param]β the!added in front of a frame, selects a frame for exclusive generation. It makeswiki2beamerskip all frames that are not selected. You can select multiple frames. This can speed up the edit-compile-view cycle massively. π₯
Sectioning commands work only at the beginning of a line. (start of line or it doesn't count, periodt.)
π Lists (Bullets/Enumerations)
* textβ create a bullet (itemize) with text*<onslide> textβ create a bullet (itemize) with text that only appears on the specified slides (onslide)# textβ create a numbered item (enumerate) with text#<onslide> textβ create a numbered item (enumerate) with text that only appears on the specified slides (onslide)
Cascaded lists, mixed ordered and unordered items β look at this chaos, she ate:
* This is a crazy list.
*# It contains different items.
*# In different formats.
*** On different levels.
***<2-> which are animated
*<3-> Quite a lot of fun.
**<4-> Isn't it?
π Environments
LaTeX knows many environments, some of which are as simple as \begin{center} \end{center}, others are more complicated. To use these in a more wiki-like fashion, use <[name] to open and [name]> to close environments. It will be simply converted to \begin{name} and end{name}.
Warning No parsing is done. The user is responsible for closing any opened environment. Environment-tags are only recognized at the beginning of a line.
like. she is NOT your mom. if you open an environment, YOU close it. no takebacks, no auto-close, no mercy. π
πΈ Special Environments
Unlike standard environments, some environment names are recognized by wiki2beamer. These are: nowiki, code, autotemplate and frame. If wiki2beamer detects one of these it will do some advanced parsing, which can even fail with a syntax error.
π Autotemplate
Autotemplate can be used at the beginning of a beamer .txt file. It will create the required LaTeX headers to compile the content.
<[autotemplate]β opens the autotemplate environment[autotemplate]>β close the autotemplate environmentkey=value(inside[autotemplate])_ β insert a template command\keyvalue
key=value pairs are converted to \keyvalue in the output (except special keys) β everything after = is just appended to \key.
<[autotemplate]
usepackage=[utf8]{inputenc}
[autotemplate]>
will be converted to \usepackage[utf8]{inputenc}. yes way. β¨
There is a built-in set of options:
<[autotemplate]
documentclass={beamer}
usepackage={listings}
usepackage={wasysym}
usepackage={graphicx}
date={\today}
lstdefinestyle={basic}{....}
titleframe=True
[autotemplate]>
titleframe is a special key that tells wiki2beamer to create a title frame. To set the title, subtitle and author of the presentation use the keys title, subtitle and author. Overriding of the default options works on:
- per-key level for:
documentclass,titleframe - per-package level for:
usepackage - no overriding for: everything else
so like, some things you can customize, and some things are simply not up for discussion. she said what she said. π
π§ Code
Use code-environments to display animated code listings. animated!! code!! listings!!
<[code]β open a code environment<[code][param]β open a code environment passing parameters to the latexlstlistingenvironment.[code]>β close the code environment
<[code][key=value,...]
...
[code]>
<[code] opens the environment, [code]> closes it, everything after <[code] is passed to the LaTeX listings package as options for this listing. Inside the code environment, [ and ] must be escaped as \[ and \]. Things between [ and ] are animations. There are two kinds of animations:
[<slidespec>some code]β show "some code" only on specified slides[[<slidespec>some code][<slidespec>some other code]]β show "some code" on the slides in the first spec, show "some other code" on the slides in the second spec, fill up space on slides without content with spaces
Slide-specs can be of the form:
nβ one single framenn-mβ sequence of framesntomspec,spec,...β combine multiple specs into on (e.g.<1-3,5>)
π¦ Nowiki
Nowiki-Environments completely escape from wiki2beamer replacements. <[nowiki] opens the environment, [nowiki]> closes it.
it's the safe space. nothing gets touched in here. protected. π‘οΈ
β Frame
The LaTeX-frame environment is where the content of a slide goes. You can manually close a frame-environment which was opened with ==== Frametitle ==== with [frame]>. Wiki2beamer is then aware that the last frame is already closed and doesn't try to close it again.
π Text Formatting
'''text'''β typeset text bold''text''β typeset text italic@text@β typeset text in typewriter type, to ignore an@, escape it as\@!text!β alert text, to ignore an!, escape it as\!_ color _ text _β make text appear in color
π Columns
<[columns]β opens the column environment[[[ width ]]]β creates a column of width, everything below goes into this column[columns]>β closes the column environment
π Graphics
<<<pathtofile>>>β include image from pathtofile<<<pathtofile,_key=value_>>>β include image from pathtofile passingkey=valueparameters to latex
π Footnotes
create a footnote containing text.
π Layout
--length--β when found at start of line, with nothing afterwards, insert a\vspace{length}(vertical space of length length)--*length--β same as above, but insert a\vspace*(a forced vspace)+<_overlay_>{content}β\uncoverthe content on the given overlay subframes. They will already take up the space, they need to be displayed, so the geometry of the frame doesn't change when the element pops up.-<_overlay_>{content}β\onlyshow the content on the given overlay subframes. They will not take up the space they need to be displayed, so the geometry of the frame changes when the element pops up.
one keeps the layout calm and stable, the other lets it shift. choose your fighter. π₯
πΈ Substitutions
-->β becomes$\rightarrow$==>β becomes$\Rightarrow$<--β becomes$\leftarrow$<==β becomes$\Leftarrow$:-)β becomes\smiley(requires packagewasysym):-(\β becomes\frownie(requires packagewasysym)
π§ Frame Headers/Footers
There are two variables, FRAMEHEADER and FRAMEFOOTER. The content of these will be inserted at the beginning/end of all following slides.
@FRAMEHEADER=textβ set frameheader to text@FRAMEFOOTER=textβ set framefooter to text
Leave text empty to reset frame headers and footers. (empty = factory reset, we love a clean slate β¨)
π LICENSE π
Copyright Β© 2009 Kai Dietrich, Michael Rentzsch and others.
π Documentation License
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation;
π Code License
wiki2beamer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
π AUTHOR π
wiki2beamer developers
and that's the whole page, bestie!! this one is version dated 2022-08-27, it's WIKI2BEAMER(1) from the WIKI2BEAMER manual, source WIKI2BEAMER. go forth and make pretty slides, you absolute main character. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: wiki2beamer 0.10.0-5 Β· GPL-2.0-or-later
- debian trixie: wiki2beamer 0.10.0-5 Β· GPL-2.0-or-later
- ubuntu noble: wiki2beamer 0.10.0-5 Β· GPL-2.0-or-later
- ubuntu questing: wiki2beamer 0.10.0-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms