[XeTeX] asterism

peter wilson herries.press at earthlink.net
Thu Jan 14 01:27:33 CET 2010


teginch at bluewin.ch wrote:
> Hmm.... one more question.
> I must admit that I'm still a novice in Latex and if this /asterism command works fine at first sight, I find no way 
> to center it, neither by adding \begin{center} to the newcommand definition, nor by adding it where the new command is 
> actually used. The asterism sticks left whatever I try. How can I center it, either directly in the command definition 
> or probably rather at the command usage ?
> 
> Tom
> 
>>Some time ago, Peter Flynn suggested this on comp.text.tex (changed slightly to my own needs):
> 
>>%%=========8><--------%%
> 
>>% !TEX encoding = UTF-8 Unicode
>>% !TEX TS-program = XeLaTeX
>>\documentclass{article}
>>\usepackage{xltxtra}
>>\setromanfont{Adobe Garamond Pro}
>>\newcommand{\asterism}{%
>>	\smash{%
>>		\raisebox{-.15em}{%
>>			\setlength{\tabcolsep}{0.05em}%
>>			\begin{tabular}{@{}cc@{}}%
>>				\multicolumn2c*\\[-.75em]*&*%
>>			\end{tabular}%
>>		}%
>>	}%
>>} 
>>    
>>\begin{document}
>>This \asterism\ is an asterism.
>>\end{document}
>>%%=========8><--------%%
>>Stephen Moye

     Delete the \smash part of the definition (the second and 
penultimate lines).

Peter W.



More information about the XeTeX mailing list