Archive for the ‘TeX’ Category

poster proposal for XML Prague 2007

Monday, June 11th, 2007

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.

* http://getfo.org/texml/ — URL linking to a web page related to the poster.
* http://consodoc.com/

general questions about DocBook -> LaTeX

Friday, February 23rd, 2007

In the mailing list docbook-apps, I recently answered to the post titled “General questions about DocBook -> LaTeX“. I think my notes are interesting not only for the subscribers, but also for others.

(more…)

file names in LaTeX

Monday, September 25th, 2006

The symbols like “_” and “<SPACE>” are special for LaTeX, therefore using them for file names used by LaTeX isn’t a good idea. Anyway, we can’t control environment and a solution is required. A bookmark for me: Passing Underscore.

LaTeX bizcard variation

Thursday, September 21st, 2006

I’ve adapted the LaTeX bizcard package for the following:
* A4 page.
* Two columns of visit cards, each card is of the size 85×55 mm.
* Top and bottom margins are 10mm.
* The distance between columns is 10mm.
* Left and right margins are 15mm.
Download.

GPL text variations

Monday, September 11th, 2006

I’ve spent some time trying to nicely format an GPL excerpt in LaTeX. The problem is that the all-caps text of the “no warrantly” section doesn’t fit to the TeX rules well. Finally, I gave up and decided to find out how this problem is handled by other people. I found the GNU General Public License (GPL) in LaTeX format on the official site gnu.org. Surprise! They don’t have a solution, they have a workaround. The all-caps text is converted to normal text. I like it. The workaround is adopted.

source specials for PDF

Monday, September 4th, 2006

Some TeX implementations or macro packages provide the facility to automatically include so-called “source specials” into a .dvi file. These contain the line number, eventually a column number, and the filename of the .tex source. This makes it possible to jump from a .dvi file to the corresponding place in the .tex source and back (also called “reverse search” and “forward search”). I’ve asked for the same for .pdf files, and have got an answer from Will Robertson in comp.text.tex:

(more…)

parsing latex log files

Thursday, August 10th, 2006

In mary cases, LaTeX should be run several times to get the correct result (for example, to resolve cross-references). The only way to detect if re-run is required is to analyze the log file. I haven’t found anything ready to use, so I’ve written it myself.

(more…)

understanding if LaTeX run is successful

Thursday, March 23rd, 2006

I’m using LaTeX in batch scripts, and I need to detect if the result is successful. It seems the best way is to look into the log file. I wonder if an imaginery tool “texloginfo” exists to:

(more…)

showbox in LaTeX

Sunday, February 26th, 2006

Not a first time when I need to trace a LaTeX layout by digging into the details, and again I’ve spend time remembering how to do it. Fixing the magic in writing.

(more…)

minipage and vertical spacing, parskip

Friday, October 14th, 2005

I noticed that my \parskip was ignored by the “minipage” environment. After some investigations I found that many vertical spacing commands have a special behaviour inside a minipage, and that the command “if@minipage” is used quite often.

(more…)

avoiding space before and after list in a table cell

Friday, October 14th, 2005

The problem is best described by someone else’s question:

I’m trying to use the generic list environment inside a longtable. Unfortunately I get unexpected space above and below the list environment. If I use the same list between normal paragraphs, this extra space is not there.

Any ideas?

(more…)

captions of wide longtables are indented

Wednesday, October 12th, 2005

Some of my longtables are wider than \hsize (=\columnwidth). It’s ok. The problem is the left-aligned captions of such tables. If a table is X too wide, then the caption is indented by X.

(more…)

revising LaTeX notes on font substitutions

Wednesday, October 5th, 2005

Automatic font selection scheme in LaTeX somethimes is not so good. For example, when series “n” (normal) and “bx” (extra bold) are defined for a font, and an user want “b” (bold), the system uses “n” font, not “bx” font.

(more…)

avoiding babel shorthands

Tuesday, October 4th, 2005

Babel allows LaTeX to speak multiple languages. It also introduces shorthands, one- or two-character sequences, which help non-English authors to type language-specific letters easily. Unfortunately, this feature leads to problems when generating LaTeX-files automatically.

(more…)

WingDings font in LaTeX

Thursday, September 29th, 2005

My documents should use WingDings font, so I’ve added the font to LaTeX. It wasn’t easy task because (1) the font is True Type (2) the font encoding is non-standard.

(more…)

using Helvetica symbols in LaTeX

Thursday, September 22nd, 2005

A LaTeX document sets Helvetica as the main font, but some special symbols (like “copyright”) look strange. After detailed look at PDF, I found that the symbols aren’t taken from the font, but assembled from different items.

(more…)

image color inconsistency by pdfLaTeX and dvipdf

Thursday, September 15th, 2005

I’ve noticed that results of pdfLaTeX and LaTeX plus dvipdf sometimes differ. One case is the color of an image.

(more…)

Are CJK and everysel compatible?

Monday, September 12th, 2005

CJK and everysel seems not compatible. If a CJK document loads “everysel” package (or “ragged2e”, which loads “everysel”), the result has artefacts.

(more…)

LaTeX, CJK, and “Font C70/song/m/n/6/57=cyberb57 at 6.0pt not loadable: Metric (TFM) file not found.”

Monday, September 12th, 2005

I started to use CJK in LaTeX recently, and I spend a lot of time trying to fix the following problem:

! Font C70/song/m/n/9/65=cyberb65 at 9.0pt not loadable:
                         Metric (TFM) file not found.
 
                   relax 
l.74 ^^e6^^97^^a0
                 \\par
? 

(more…)

making unicode pdf bookmarks with TeXML

Wednesday, September 7th, 2005

I’ve added a new feature to TeXML. Content of the element “pdf” is converted to utf16be and encoded using escape-sequences. It is useful for making PDF strings, in particular, for PDF bookmark strings.

(more…)