uwe_lueck > texmap > texhax — reload —  | heyctan

Best of texhax

— some “TeX studies” (Do you dislike to see your names? The page says “no” to any robot action.) — June — July — August — September — October — November — December

[ very brief | TUG news || tabs | mulcol-toc | @ | TeXpätzer | PDF booklets | not expanding | \maketitle | entering unicode | Fermat | output formats | letter-spacing | pdf/Xe/Lua | appendix | space after page break | LaTeX not on WWW | word2x/tex2x | env var | local search path | server/callable | i t e x | center | preserve dash | TeXbook appendices | re-use theorem | macros embedded | TEX→HTML+PDF | em-based settings | toad ]

[→| ↑ ]



Very brief subject summaries:
  1. technote.pdf in “Obsolete \centerline
  2. bb’s suggestion \text{-} for \stackrel demonstrates \mathchoice
  3. Endnotes
  4. kerTeX
  5. MS Word to Mathtype” has been a great discussion of Word vs. LaTeX and some peculiarities of TeX distributions and platforms, starting here. E.g., bb explained why journals may insist on LaTeX submissions
  6. lineno works with multicol?
  7. Hex and ANT (luispedro.org/software/hex, ant.berlios.de)
  8. [autism]
  9. quotation marks with babel in LuaLaTeX
  10. paracol
  11. PD/MS PDF/VT?
  12. Long entries in index — hyphenation solutions, alternative styles (Ronald Fehd, Phil Taylor)
  13. “Blank first page”Byte order mark (some more postings on Unicode variants, editors like Notepad and VIM, UNIX vs. Windows, compatibility)
  14. Produce InDesign-like documents with TeX (flows) mentions flowfram and textpos, asks about ConTeXt — becomes “The fundamental problem” frames with varying widths
  15. highlighting quotation marks in text editors
  16. “listmacros”: Michael Doob provides an interesting script — package idea! (“listdefs”). There is cmdtrack already, but listdefs may trim the reports.
  17. custom bold math font with Plain TeX/Eplain — result I / result II
  18. \@sptoken (my final posting) and “implicit spaces” in TeXbook
  19. Locked PDF reader on Windows: a flame war on locking/not locking PDF viewers, whether Acrobat Reader or Windows is responsible for locking, and Sumatra PDF vs. AR starts in “adobe 10”; there is a follow-up in June
  20. hyperref has option hidelinks
  21. PDF to EMF? difficulties with getting EPS into MS Word with good-looking fonts and little footprint
  22. Font used colors, neat things …
  23. Installing TL without being root this or that way
  24. “Using TTF, OTF, and T1 fonts” (PD) very much, see April 2011
  25. Adding section levels and repeated text …
  26. Changing fonts text fine, “math not trivial” (U.F.)
  27. ff. also in English, cf. Wiktionary
  28. Configure page and header …
  29. Using longtable to format a resume
  30. Misplaced headline with makeindex
  31. Win fonts under Linux interesting infos about non-MetaFont fonts (in following postings)
  32. figures for on-line and printable book becomes interesting
  33. Bibliography
  34. Throughput
  35. intelligent title capitalization — package idea!
  36. aliasing document environment
  37. texhash (TeX Live) —  recommendations on installation trees by Reinhard Kotucha | more of them
  38. Nested footnotes in \title{…} — with bigfoot!?
  39. Stephen Hicks studies code about “category code 16” on p. 209 of The TeXbook | Donald Arseneau comments
  40. Eplain […] \@optionalarg — Heiko points at \@getoptionalarg — more specific
  41. Detecting extension of main file not possible according to Heiko, except in .log
  42. Extracting display formulas from A LaTeX document (with an addition following, Vafa Khalighi)
  43. Use of \ldots becomes interesting … Susan Dittmar
  44. TeX sucks (Donald Arseneau on an advertisement that Paul Isambert found — “alchemists”)
  45. jfbu \DeclareSymbolFont\DeclareMathSymbol and more
  46. PDF features get lost with pdfpages, Heiko points to pax !? 2011/03/03: description (an “experiment” by Heiko — “steroids”)
  47. multiple pdfs from one dtx (2010-12-25) HeikoTODO
  48. A couple of questions
  49. spacing with math display (2010-12-25) amsmath | Phil
  50. multiple choice (2010-12-25) Phil | Hubert Lam: enumitem
  51. Centering delimiters with math accents, e.g., final answer, had something like this before, Philipp Stephani — but this also reminds of “spoon-feeding software” ...
  52. “Extracting math from pdf file” (“overlay” symbol with Computer Modern, 2010-12-05)
  53. “Xetex: using fonts with missing glyphs” — Susan Dittmar explains her problem
  54. “Frequency of reference citations” I recommend a counting macro (… to be written, 2010-11-29)
  55. “Misplaced parentheses” — Donald Arseneau on shortcomings of mathit.mf (2010-10-30)
  56. “Customising \& per font” — Philipp Stephani (2010-10-28) points to stackoverflow where redefining \sffamily etc. is suggested for font-dependent choices (using fontspec)
  57. “Stretchable \baselineskip, per-page?” — Heiko on “proportional” stretch component (2010-10-08)
  58. \input inserts an extra space …” — Heiko explains how end of file line works (2010-10-07 — TeXbook p. 46+48!)
  59. “Appendices to chapters” with memoir — Lars Madsen answers to Victor Ivrij (March 2008).

[→| ↑ ]



TUG news:

[→| ↑ ]



“Simulating tab character”
  1. Problem (PD)
  2. DA suggests his tabto.sty — CTAN identifier tabto-ltx, as opposed to tabto-generic. Robin Fairbairns made a documentation file tabto.pdf
  3. A discussion of tabto.sty ensues with UF.

[→| ↑ ]



“Partially multicolumn TOC” — recommendations result in
\addtocontents{toc}{\protect\begin{multicols}{2}}

\addtocontents{toc}{\protect\end{multicols}}
For an odd number of entries (or otherwise different columns), Lars Madson suggested
\addtocontents{toc}{\protect\begin{multicols}{2}}

\addtocontents{toc}{\vfill\protect\strut}
\addtocontents{toc}{\protect\end{multicols}}
(adding the \vfill line, where \protect preceding \strut may be mine). This may be experimental, just worked so far. The OP was happy without \vfill\strut at his present project, but also about Lars’ idea for the future.

[→| ↑ ]



TUGbo@.
  1. Phil Taylor initiated a discussion of rationales behind choosing names of internal (“private”) control sequences (‘“@” : vowel or glottal stop ?’), triggering quite a few contributions.
  2. Arno Trautmann suggested summarizing this discussion in a TUGboat article.
  3. While I consider this matter nothing but fun, again more funny and serious attempts followed (Paul Isambert, bb, Philipp Stephani).

[→| ↑ ]



What is a TeXpätzer? in Herb Schulz interview

[→| ↑ ]



PDF booklets:

[→| ↑ ]



To not expanding … besides \string?
  1. Phil’s e-TeX HTML manual
  2. Paul Isambert precisely
  3. Josef Wright employing \toks@ (looks simpler than mine below)
  4. Reinhard Kotucha: change category codes, e.g., verbatimwrite environment from moreverb
  5. me employing \@onelevel@sanitize (2011-01-05)
  6. TeX by topic Section 12.4 adds \noexpand which doesn’t change category codes

[→| ↑ ]



Spacing with \maketitle
(2010-12-22)
  1. bb: \vspace*
  2. Steve Schwartz: titling
  3. Phil: “sledgehammer” \title{\kern-4pt}
  4. happy about the latter two

[→| ↑ ]



Entering Unicode: XeTeX and LuaTeX don’t help much when you are unable to enter unicode code with your editor, or your editor can’t display the glyphs. Here is:

[→| ↑ ]



“Fermat’s Gambit”
  1. Philip Taylor “too small …” (“Fermat” – Phil’s idea or mine much older? 2010/11/20)
  2. Philip Taylor another time (2010/12/04)
  3. James Quirk beats “Fermat’s Gambit” – read on for the “Mandelbrot Viewer” allowing squeezing everything into one page – and
  4. pets as mathematicians, those liars

[→| ↑ ]



Output formats: On December 2 and 3, 2010, there was a huge amount of postings about TeX output formats – .dvi vs. .pdf – their future and graphics/PostScript capabilities. Two were triggered by Michael Barr, the first one was “Can this be done using only LaTeX?”, his other was “dvi vs pdf”. Between these subject, Peter Davis triggered many postings with “PostScript output (from XeTeX)?”

[→| ↑ ]



“Inserting a space after each char in string”
  1. Reinhard Kotucha: \@tfor
  2. proposed package (expandable)
  3. existing packages (soulutf8 and letterspacing missing in Jürgen’s list)
  4. Robert points to the letterspace package included in his microtype bundle (missing in Jürgen’s list as well as in the package descriptions!)
  5. caveat about my proposed package

[→| ↑ ]



pdfTeX/XeTeX/LuaTeX, actual subject “image XObjects in pdfTeX or XeTeX PDF output”, e.g., Peter Davis (Nov 22, 2010), comparisons including, e.g.,

[→| ↑ ]



Numbering in appendix: actually two different subjects that were confused a little:
  1. “Problem with appendices” 2010-10-29
  2. “appendix numbering and page numbering” 2010/11/19
  3. Barbara Beeton same day reports on the first posting
  4. second poster makes use of her suggestion
  5. bb points to the AMS FAQ
  6. some reasonings on package compatibility with Boris Veytsman followed, finally “VIP”

[→| ↑ ]



“Calculating remaining space after page break”
  1. OP Wolfgang Lorenz 2010/11/10 poems, \pagegoal, \pagetotal
  2. Donald Arseneau
  3. Paul Isambert

[→| ↑ ]



“Why LaTeX not on WWW?”
  1. history from William Adams’ view, mentioning MathML, Stix fonts, BlueSky, and Y&Y
  2. Peter Davies criticizes “(mythical) separation of ‘content’ from ‘presentation’”

[→| ↑ ]



“Word → x / …TeX to y:”

“Converting Word files to text” (or even (La)TeX)
  1. Wilfried Hennings’ list of converters
  2. CTAN:
  3. request (2010-11-01, focus on “many files” and batch approach)
  4. more recommendations from list answers:
  5. OP chooses antiword and catdoc
  6. in a different thread of April 2011 (“Converting from .doc to .tex including styles conversion”)
  7. In a later thread, AbiWord (cf. homepage) was mentioned here for the more general purpose. This thread also dealt with MathType.

“TeX → Word”
  1. Note: CTAN seems to offer these approaches:
  2. Wilfried Hennings’ other list of converters
  3. request (2010/12/11)
  4. recommendations:
TODO earlier similar requests …

[→| ↑ ]



“Help with pdflatex”—here rather “calling TeX with environment variable”, Reinhard Kotucha 2010-10-30:
 
$ echo hello > ~/foo.tex 
$ tex ’\input $HOME/foo.tex’ 

[→| ↑ ]



“Local search path”
  1. Thierry 2010-10-26 on my suggestion to use export—partial solution
  2. cvr at river-valley.org
  3. Thierry

[→| ↑ ]



Server/callable
  1. Paul Isambert 2010-10-23
  2. Peter Davis
  3. William Adams on xexmltex
  4. callable (2010-10-27) – many interesting answers, e.g., Karl Berry: “LuaTeX has been unbundling the typesetter, but there is no standalone C library at this point, as far as I know.” – pointing to tug.org/pipermail/pdftex/2007-January/006999.html and runptex.sarovar.org – “but it is about encapsulating runs of pdfTeX (as a whole) in a library, rather than the kind of piecemeal functionality Peter is describing.”
  5. … and another subject of this kind: Send requests to texlive (2010/11/25) …“to be compiled from a web page” –

[→| ↑ ]



i T e X
  1. 2nd mention… (2010/09/30)
  2. COMEFROM
  3. Wikipedia
  4. secret euphoric joke (2010-10-07 on creating inputtrc, answered euphoricly privately, as I realize only 2010/11/15)
  5. pronunciation
  6. Instant TeX 2001
  7. spelling

[→| ↑ ]



“Difference between \centering and \begin{center}
  1. Daniel Freedman—with tabular as opposed to figure? (2010/09/09)
  2. Axel Retif
  3. Stephen Hicks
  4. Martin Schröder
  5. Daniel Freedman thanks

[→| ↑ ]



“Preserving dash when hyphenating compound words:”
  1. OP Aleksandar Zec 2010/07/31
  2. my follow-up 2010/08/19
  3. Alex Zec: my solution doesn’t suffice, presents a better one, maybe not elegant
  4. I announce an elegant solution for …
  5. Reinhard Kotucha points to Spanish(?) babel, p. 157 of babel.pdf

[→| ↑ ]



TeXbook appendices: This is not bad. It is fine for science when researchers indepently find the same conclusions. In the present case, I am very happy for Karl!

I even (really) note again here how smart Donald is: he needed 2 lines in a single posting for both appendixes “K” and “L”, where the parallel thread needed 3 postings. (The other thread developed further.—Donald once wrote me that he seems not to receive all texhax postings, maybe the security department of his company …)

[→| ↑ ]



“Theorem numbering”, rather “(p)re-using” a theorem—Stefan Witzel’s query (2010/06/02)—Barbara Beeton’s answer (2010/06/04), leaving “re-use” of body text “as an exercise to the reader.” Actually doing the exercise:

I thought of extract or some verbatimwrite (quite a few packages for this)—difficult to learn—easy instead (although not tested, sorry): Type theorem body code in an extra file, say, thm-outs.tex. To typeset the theorem at its proper place, type

 
\begin{thm}\label{thm:outs} 
  \input{thm-outs} 
\end{thm} 

Barbara’s xrefthm is enlightening, yet I would prefer the following generalization (in the document preamble—once I desired to have this! e.g.: Thm. 2* an “analogue” of Thm. 2 for a different setting):
 
\newenvironment*{var-id-thm}[1]{% 
  \def\thethmid{#1}% 
  \begin{the-var-id-thm}% 
}{% 
  \end{the-var-id-thm}% 
} 
\newtheorem*{the-var-id-thm}{Theorem \thethmid} 

To be used like this:
 
\begin{var-id-thm}{\ref{thm:outs}} 
  \input{thm-outs} 
\end{var-id-thm} 

—cf. thmtools!
similar question without AMS (2010-10-21) …
—similar: counting equations relative to a proposition (2010-10-08)—late answersuggestion on \label/\ref in this case (requested off list)

[→| ↑ ]



“Creating a source with macros embedded” (Mike B., 2010/07/30)—trying to reword: While abbreviating macros work as “substitutions” at compiling only, Mike wants them to work as substitutions on the source files.

One might answer that Mike just had been impressed too much by TeX’s macro mechanism and chose abbreviating macros erroneously when he should have used a different program (not TeX) to perform those substitutions, …

[→| ↑ ]



“LaTeX, Webpages, and PDF files”—generating HTML/PDF from same source

[→| ↑ ]



“Revtex incompatibility” or rather “em-based settings:

[→| ↑ ]



“Goodbye, you little toad”

Tip: download .zip files for each month from the texhax archives page.

Last generated 2013-01-19 © Uwe Lück

[→ top of page ]