I was a speaker at the TeX users meeting in Wuppertal, with the talk “Erfahrung und Vorhersagen für automatisches XML-nach-PDF-Publizieren mit TeX” (experience and prediction for automatical from-XML-to-PDF publishing using TeX).
Archive for the ‘TeX’ Category
I’ve tried to install a TeX package and got the error message:
tlmgr: The TeX Live versions supported by the repository http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/texlive/tlnet (2014--2014) do not include the version of the local installation (2013)
I’ve updated “cals” package — multipage tables with wide range of features — to version 2.2. In the new version, alignment of tables should work. Also, I’ve added hooks for the package “bidi” (right-to-left writing support). CTAN is updated, and the coming TeX Live 2013 should include the new version.
The official way to introduce custom styles to LyX is:
* the layout-file should be located in a special directory,
* after the layout file is changed, the user should:
. – execute re-configure and
. – restart LyX.
This way is too cumbersome for experimenting and developing styles. Fortunately, there is a solution.
I prefer to use TeX from TeXlive distribution, not the default TeX bundled with an operating system. The problem is that rpm and apt tools check dependencies and insist on installing the wrong TeX. To trick the system, a fake package should be made and installed.
XeLaTeX package “fontspec” provides an useful command “AddFontFeature” to add an effect to the curently selected font. Unfortunately, it works only if fontspec is used. Otherwise, a workaround is required. So far here is a draft to make text narrow:
After reading Paul Isambert’s article “Three things you can do with LuaTeX that would be extremely painful otherwise ” I finally decided to check LuaTeX. Unfortunately, the code from the article does not work under old LuaTeX from TeX Live 2009 (and probably from TeX Live 2010 too). I downloaded a binary from the site, tried to run it and got an expected error:
This is LuaTeX, Version beta-0.40.6-2009100220 (TeX Live 2009) (Fatal format file error; I'm stymied)
In XeTeX, an unicode version of TeX, it’s logical to use unicode math. However, till now (march 2010) unicode math publishing doesn’t work directly out of the box. Here are two solutions, one is fast (and not so wrong) and one is probably the future standard.
Bug (?) report: “after switching from LaTeX(pdflatex) to XeTeX(xelatex) as the PDF generator something has ceased to work. Mathematical operators given as unicode characters in math formulas do not show up in the final document.´´
I’m experimenting with LaTeX and chess. As there is no “for dummies” information in internet, my notes (even if incorrect) could be useful for beginners.
So, the step 1. Print some game or some position.
To put an image to a document, LaTeX provides the command “\includegraphics“. As it often happens, due to LaTeX was designed for manual typesetting, this command is a nightmare for automatic generation. For a long time, I use a wrapper to solve 99% of the problems.
I’ve noticed that headers and footers of the documents, generated by XeLaTeX, use some other font instead of Helvetica. After digging into the LaTeX code, the problem is solved.
I’m a bit furious. I spent a lot of time on getting EPS from LaTeX. Portability of PostScript and PDF is a great myth. This idea works only in theory. But in practice, one has to struggle with buggy software.
Finally, I’ve found a working sequence of conversion commands.
* Indents: first, left, right
\parindent, \leftskip, \rightskip
* Space: above, below:
* Align: left, right, center, justified
\Centering \RaggedRight \RaggedLeft
* Font, linespacing
\selectfont and family
* Keep with next or previous paragraph:
\nobreak or some penalty
In addition to my talk “Generative XPath” at XML Prague 2007, I decided to submit also a poster:
Title: XML to beautiful documents
Abstract: I’d like to present an alternative to XSL-FO. Using TeX to create PDF from XML is an old trick, but thanks to TeXML (an XML syntax for TeX) and Consodoc (a publishing server), the process is greately simplified and the produced documents are of high quality.