Posts Tagged ‘LaTeX’

Quotations Containing Hanging Paragraphs in LAΤΕΧ

Monday, 4 May 2020

In a paper on which I'm working, I needed a block quotation, within which there were hanging paragraphs — for each every line except for the first was indented — effected in a way that naturally complemented ordinary block quotations as defined in article.cls. Not being a master of LAΤΕΧ, I made a search for how to do this, but I did not find anything that quite did the job. I arrived at this

        \setlength{\parsep}{\z@ \@plus\p@}%

which I am posting for the benefit of someone which the same problem, or with a problem sufficiently similar that my solution is readily adapted to his or to hers.

Here's an example of the output: [screenshot]

To use the code, place it in the LAΤΕΧ preamble, and then nest each block of paragraphs for which it is to be used between \begin{hangquotation} and \end{hangquotation}.

LyXing the Problem

Wednesday, 16 March 2011

Last night and this morning, I used Writer2LAΤΕΧ to export the notes for my principal paper-in-progress from ODT format to a LAΤΕΧ file, imported that into LyX, and then spent some time cleaning things. This was in an attempt, which looks fairly successful, to overcome the problem that I now have of OpenOffice under RHEL failing to render various mathematical characters.

The results for the formulæ are not really WYSIWYG (nor does LyX seek to offer exactly a WYSIWYG display of formulæ), but they are close enough that, as I look at them, I don't have to spend most of my time thinking about the mark-up rather than thinking about the theoretical constructs that they are supposed to represent. (In fact, I'm one of those folk who prefers to word-process with the non-printing characters represented, and I'm quite comfortable with most of the extra stuff here in the representation of formulæ.) The symbols that I want are being rendered nicely, with the notable (but not egregious) exception of a symbol for definitional equality which is presently displayed as \defeq. (It's defined in a LAΤΕΧ document preamble as \stackrel{\mathrm{def}}{=}.)

I still have to learn more of my way around LyX but, barring some unexpected remedial action on the part of OpenOffice programmers, I will probably migrate to LyX for the production of technical documents.

Fifth Toss

Thursday, 3 September 2009

Last night, I finished the clean-up of a LAΤΕΧ version of my paper on incomplete preferences. From remarks by a person more knowledgeable about ΤΕΧ than I, it seemed that my best option in dealing with the under-sized angle brackets was to just fall back to using only parentheses, square brackets, and braces for taller delimiters. And most width problems were resolved by expressing formulæ over more lines. Unfortunately, these changes leave the formulæ harder to read than in the original.

This after-noon, I completed the submission process to one of the two specialized journals recommended by the advising editor who rejected it at the previous journal to which I submitted it. The submission process for this latest journal required that I name the other journals to which I'd submitted the paper. As simultaneous submissions are disallowed, basically they were asking for a list of which journals has rejected the paper. I gave it. (I didn't tell them that the third had been suggested by the second, nor that theirs had been suggested by the fourth.)

Anyway, I'm back to waiting for a response.

a LAΤΕΧ with an chi, sir; not latex with an x

Tuesday, 1 September 2009

Large parts of Sunday and of Monday were given-over to producing a LAΤΕΧ version of my paper on incomplete preferences. Some part of to-day will be spent trying to complete that conversion.

Each of the two journals suggested by the advising editor who last rejected my paper requires submissions to be either LAΤΕΧ or in the form of a Microsoft Word file with formulæ encoded for its equation editor.

The original is an ODT, whose equations are encoded for the OpenOffice formula editor. The OpenOffice software can export a Word .DOC, but the formula would be rendered as text (rather than for the equation editor), and pretty badly at that. I used Writer2LaTeX, a plug-in for OpenOffice, to create a first-pass version of LAΤΕΧ source for my paper. A great deal of formatting went by the way-side, but the formulæ themselves seem to have come through the process mostly intact. The worst glitch so far was that U+2280 () was translated to \nsucc (). (I've contacted the developer.)

I've nested the formulæ within more appropriate mark-up, and wrestled the rest of the mark-up of the paper into pretty good shape. The most glaring problems that I have right now are with the formulæ; those angle-brackets that should be rendered quite large are not, and some of the formulæ are simply too wide. And I still need to walk through the paper to make sure that my copying-and-pasting didn't go south anywhere.

This conversion of my paper represents the first time that I have worked much with LAΤΕΧ beyond creäting bald formulæ.

When I first started doing word-processing of more than plain-text files, LAΤΕΧ itself didn't yet exist, the ΤΕΧ system (on which LAΤΕΧ is founded) was still quite new, and I had personal connections to AT&T, such that I learned and used an older system, troff, which had been developed at AT&T (to justify the development of Unix). I had (and somewhere still have) a porting of troff to MS-DOS, could get pretty much any desired result with it (unlike most troff users, I knew its mark-up pretty thoroughly, and didn't rely on macros other than those that I'd written myself), and saw little reason to learn ΤΕΧ or LAΤΕΧ. When I did migrate from troff, it was to WYSIWYG programs.[1]

[1] There was an attempt, called Scientific Word, at something like a WYSIWYG interface for LAΤΕΧ; but, at the time that I investigated Scientific Word, it was ghastly. Its installation routine took hours, and, if the system already had a lot of installed fonts, would fail at the very end, in a way that its own programmers could not diagnose. And, if successfully installed, Scientific Word wouldn't produce decent LAΤΕΧ source anyway.