source: rtems-source-builder/source-builder/sb/asciidoc/doc/latex-bugs.txt @ 0464153

4.104.114.95
Last change on this file since 0464153 was 0464153, checked in by Chris Johns <chrisj@…>, on 03/03/13 at 04:58:11

Change asciidoc to the 8.6.4 release package because Windows was broken.

  • Property mode set to 100644
File size: 4.2 KB
Line 
1Bugs in asciidoc latex backend
2==============================
3Geoff Eddy
4
5Benjamin Klum was unable to maintain the LaTeX backend beyond version
68.2.7, and as a consequence the `latex.conf` file ceased to work with
7`asciidoc` sometime after this. For version 8.4.3 I made some changes
8to the file to get it working again. This document summarises the
9remaining issues which I have found with generating LaTeX and thence
10PDF output with `asciidoc`, which is done as follows:
11
12- `asciidoc --backend=latex --unsafe FILE.txt`
13- `latex FILE.tex`
14- `kpdf FILE.pdf`
15
16Many of these were found by processing the `asciidoc.txt` file and
17comparing the HTML output with the PDF.
18
19== Footnotes
20
21Priority:: Low.
22
23Problem:: References to footnotes, and a sensible value for the
24`[footnoteref-inlinemacro]` section, don't seem to be possible.
25
26Cause:: LaTeX doesn't support footnoting much beyond creating a
27footnote at a certain point in text and displaying the footnote
28itself.
29
30Solution:: Unclear. How important or necessary is this, anyway?
31
32== Spurious text at starts of paragraphs
33
34Priority:: Medium
35
36Problem:: It is necessary to insert spurious text in paragraphs.
37
38Cause:: This `asciidoc` input:
39+
40  -------------------------------------------------------------------
41  Text
42  -------------------------------------------------------------------
43+
44generates this LaTeX code:
45+
46  \begin{lstlisting}
47  SPURIOUS TEXTText\end{lstlisting}
48+
49which should be:
50+
51  \begin{lstlisting}[]
52  Text\end{lstlisting}
53
54Solution:: Find out a way to generate the correct LaTeX output as
55above. The obvious solution, as explained in `latet.conf`, doesn't
56work.
57
58== Tables
59
60Priority:: Rather high.
61
62Problem:: Not all of the table configuration options can be passed
63through to the LaTeX backend. In particular, I've had to assume that
64all tables will be fifteen or fewer left-justified columns wide.
65
66Cause:: The table models in LaTeX and HTML are too dissimilar for one
67`asciidoc` specification to generate valid output in both formats by
68simple regexp replacement. Related to this is the unfortunate fact
69that `<COLGROUP>` and related tags aren't a required part of HTML4,
70and some broswers (at least Firefox and Konqueror) don't implement
71them.
72
73Solution:: Perhaps table processing could be handled by a Python
74plugin, which would read in a table spec and generate the appropriate
75text?
76
77== Unicode escaping
78
79Priority:: Rather high, to me at least.
80
81Problem:: The commented-out section in `latex.conf`, if uncommented,
82converts `&#960;` to `\unichar{960}`, which then causes LaTeX to
83complain that the resulting command is unavailable in encoding T1. The
84more common non-ASCII characters, such as those in `félicité` and
85`świeca`, are handled properly, but some - such as the IPA characters
86in the `tipa` package - are not.
87
88Cause:: The encodings in the LaTeX output are wrong.
89
90Solution:: Correct the encodings.
91
92== Text colours
93
94Priority:: Probably low
95
96Problem:: The text colour options are not processed by LaTeX; for
97example `[#ff0000]#Red text#` is not rendered in red.
98
99Cause:: LaTeX and HTML represent RGB triads differently: HTML is happy
100with `#ff8000`, but LaTeX needs `[rgb]{1,0.5,0}`.
101
102Solution:: Provide some sort of internal RGB conversion mechanism
103which can convert RGB triads to different representations.
104
105== Text sizes
106
107Priority:: Probably low
108
109Problem:: The text size options are not processed by LaTeX:
110`[,,1]#text#` is rendered in the same size as normal text.
111
112Cause:: HTML size tags - `h1` through `h7` - are directly derivable
113from the size number, whereas LaTeX has a series of descriptive words
114(`HUGE` through `normalsize` to `scriptsize`).
115
116Solution:: Provide a way to treat the number as an index into an
117array.
118
119== Background colour in paragraphs
120
121Priority:: Medium
122
123Problem:: If the `backgroundcolor` attribute is specified in the
124`lstset` command, all paragraphs are displayed as black rectangles by
125`kpdf`, `xpdf`, and `evince`, although `kdvi` has no problems. I've
126had to remove the attribute, and so paragraphs all appear on white
127backgrounds. The PDF viewers also complain:
128
129  Error (NNNN): Unknown operator 'rgb'
130
131Cause:: Apparently a known bug in the output of `pdflatex`. Not a bug
132in `asciidoc`.
133
134Solution:: Wait until this bug is fixed?
Note: See TracBrowser for help on using the repository browser.