-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathintro.txt
306 lines (219 loc) · 9.01 KB
/
intro.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
% vi: ft=viki:tw=72
% @Last Change: 2009-04-05.
* Introduction
#OPT: id=Introduction
#LIST fmt=html plain! sub!: toc
#INC: blurb.txt
In case deplate doesn't meet your needs, there are plenty of similar
tools you might want to give a try.
For converting mostly plain text to HTML, LaTeX etc.:
- [[http://www.maplefish.com/todd/aft.html][aft]]
- [[http://www.methods.co.nz/asciidoc/][asciidoc]]
- [[http://johnmacfarlane.net/pandoc/][pandoc]]
- [[http://mercnet.pt/plaindoc/pd.html][PlainDoc (pd2tex)]]
- [[http://docutils.sourceforge.net/rst.html][reStructuredText]]
- [[http://raa.ruby-lang.org/project/sisu/][sisu]]
- [[http://txt2tags.sourceforge.net][txt2tags]]
- [[http://yodl.sourceforge.net][yodl]]
With respect to website generation, you might also be interested in
these tools:
- [[http://raa.ruby-lang.org/project/webgen/][webgen]]
- [[http://raa.ruby-lang.org/project/rote/][rote]]
The authors of zoem (Stijn van Dongen and Joost van Baal) compiled a
comprehensive list of
[[http://micans.org/zoem/ecosphere.html][similar efforts]].
** Goals
# Use it as a personal wiki (via the
[[http://www.vim.org/scripts/script.php?script_id=861][Vim viki plugin]])
# Be able to publish to many other formats -- but do it in a way so
that the output looks nice and can be edited and shared with other
people
# Use a syntax that is convenient to use with all sorts of
non-specialized text editors (the most basic markup should be
wiki-style; more complex things should be done using a more
structured approach or by embedding ruby code)
# Support all the tags needed to write not-too-technical documents
(i.e., headings, footnotes, citations, indices, page
headers/footers, tables, figures, verbatim text, basic text styles
etc.)
# Conditionally allow the dynamic/on-the-fly generation of content
(e.g., statistical analyses via R, concept maps via dot ...)
# Use other programs for tasks they perform well
# Make it customizable
% ** Genesis
%
% In the beginning, there was a word: LaTeX. Then, there was a second
% word: Deppert. Together it was: Depperts LaTeX, which, in English, means
% something like "LaTeX sucks". So the word "\DepLate" was born, which was
% funny because this word was originally (one week earlier) spelled
% \DePlaTe, which means de(or undo)-plain-text.
* Getting ''deplate''
#OPT: id=GettingDeplate
#LIST fmt=html plain! sub!: toc
** Requirements
[[http://www.ruby-lang.org][Ruby interpreter]] :: ''deplate'' was
tested with Ruby/Cygwin {ruby: VERSION} under WinXP; the win32
binary was generated with exerb and doesn't require neither a ruby
interpreter nor the ''deplate'' sources to be installed
#NOIDX: Ruby interpreter
#IDX: Ruby|ruby
Optional (you only need these for certain tasks or if you want to use
certain modules):
[[http://www.tug.org/][LaTeX]], \
[[http://www.radicaleye.com/dvips.html][dvips]], \
[[http://www.cs.wisc.edu/~ghost/][Ghostscript]] ::
For support of inline LaTeX
#IDX: dvips; Ghostscript|gs
dvipng :: For rendering LaTeX snippets as png
#IDX: dvipng
kpsewhich (most likely part of your LaTeX distribution) :: For
searching bibliography files
#IDX: kpsewhich
[[http://www.imagemagick.org/][Image\Magick]] :: The LaTeX-formatter
uses the ''identify'' tool to guess image dimensions if you don't
provide them; see also{ref: identify}
[[http://code.whytheluckystiff.net/hpricot][hpricot]] :: HPricot is
required by [[modules#codeGvim][code-gvim71]] module.
#IDX: GVIM|gvim
[[http://www.jave.de][Jave]] :: For converting images to ASCII
representations to be used in plain text output.
#DONTIDX: dot, neato
[[http://www.research.att.com/sw/tools/graphviz/][dot, neato]] :: For
on-the-fly generation of figures and plots
[[http://www.r-project.org][R]] :: For on-the-fly generation of
plots and tables
#IDX: dot; neato; R
[[http://asciimathml.sourceforge.net/][ASCIIMathML.js]] :: For use
with the [[modules#asciimath][html-asciimath]] module
[[http://www.math.union.edu/~dpvc/jsMath/][jsMath.js]] :: For use
with the [[modules#jsmath][html-jsmath]] module
[[http://raa.ruby-lang.org/project/ansicolor/][Term::ANSIColor]] ::
For colored log output (when using the ''--color'' command line
option)
[[http://mathml.rubyforge.org][mathml]] by KURODA Hiraku :: For
[[modules#mathmlgem][mathml]] in conjunction with the
[[formats#xhtml10t][xhtml10t]] output formatter.
[[http://www.andre-simon.de/][highlight]] :: For syntax highlighting
(see{ref: codeHighlight} and {ref: codeRegion})
[[http://www.vim.org][GVIM]] :: For syntax highlighting (see{ref:
codeGvim} and {ref: codeRegion}) and maybe also for editing :-)
#AUTOIDX: Open\Office; RTF|rtf
Under MS Windows, the [[http://www.cygwin.com][Cygwin]] environment
comes with a convenient installer and provides ruby, latex, divps, gs,
and Image\Magick.
** Download
This program is free software; you can redistribute it and/or modify
it under the terms of the [[LICENSE.txt][GNU General Public License]!]
as published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
Download the most current version from the sourceforge project site:
http://sourceforge.net/projects/deplate/
The win32 binary was created using
[[http://exerb.sourceforge.jp/index.en.html][exerb]] and should work
without ruby being installed. Be aware that some modules don't work with
the win32 binary version.
% !!! I'm currently not able to build the win32 executable with
% ''exerb''.
If you have ruby installed, you might want to use the
[[http://docs.rubygems.org/][rubygem]] version.
** Support
If you have any questions, please post them to the support forum at:
http://sourceforge.net/forum/forum.php?forum_id=371484
* Installation
#OPT: id=Installation
#LIST fmt=html plain! sub!: toc
** Gem
This is the recommended way to install ''deplate''. Ruby and
[[http://docs.rubygems.org/][rubygems]] have to be installed.
While connected to the internet:
#Verb <<---
gem install deplategem
---
Offline after having downloaded the
[[http://rubyforge.org/frs/?group_id=126][gem package]]:
#Verb <<---
gem install deplate-VERSION.gem
---
** Win32
Copy the win32 executable to a directory included in the PATH variable.
** ZIP Archive
On the command line, go to the root directory of the deplate sources,
where setup.rb resides.
#Verb <<---
cd PATHTODEPLATE
---
See which options are available.
#Verb <<---
ruby setup.rb --help
---
% Configuration options:
%
% ''--win32'' :: Install a windows batch file instead of a bash script
Setup the ruby library and the bash or batch script (depending on
RUBY_PLATFORM). Copy the ruby files to ruby's site-lib directory, and
the script to an appropriate directory in $PATH.
#Verb <<---
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
---
or just:
#Verb <<---
ruby setup.rb
---
Check if the modules show up correctly. At the bottom of the help text,
there is a list of available formatting backends and modules. If this
list is empty, something went wrong.
#Verb <<---
deplate --help
---
In case something goes wrong, here are the starter scripts. As shell
script
#Verb <<---------
#!/usr/bin/env ruby
require 'deplate'
Deplate::Core.deplate
---------
and as batch script:
#Verb <<---------
@echo off
ruby -rdeplate -e Deplate::Core.deplate -- %*
---------
If you use an "older" version of MS Win & command.exe instead of
cmd.exe, you might have to replace ''%*'' with ''\%1 \%2 \%3 \%4 \%5 \%6
\%7 \%8 \%9''.
% You might also want to copy the manual page into a directory in
% $MANPATH.
% #Verbatim <<---
% cp man/man1/deplate.1 /usr/local/man/man1
% ---
In case you want to customize deplate, you should also build the api
documentation.
#Verb <<---
rdoc -S -N lib/deplate
---
This will install the following files/directories:
- ''[RUBY_BIN]/deplate[.bat]''
- ''[RUBY_SITELIB]/deplate.rb''
- ''[RUBY_SITELIB]/deplate/...''
''setup.rb'' doesn't provide an automatic uninstall routine. In order to
remove ''deplate'' from your harddisk, you can either remove these
directories and files by hand or you could try the following command:
#Verb <<---
rm -fv `cat InstalledFiles`
---
This requires of course that you keep the file "\InstalledFiles" which
is generated during installation.
** Initial configuration
You might want to create a file ''~/.deplate/deplate.ini'' and add a few
options (see{ref: configuration} for details). If you always trust your
source files, I'd suggest to allow ''all''. You might also want to
define a set of characters that form wiki names. The file could look
like this:
#Verb id=deplateIniInitial syntax=dosini <<--
allow all
wikichars A-ZÄÖÜ a-zäöüßáàéèíìóòçñ
--
** Related Software
[[http://rubyforge.org/projects/dokkit/][dokkit]] :: A document
generator by Andrea Fazzi.