Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-21 Thread enrico . gregorio
rstand this, as expected. I still feel that it's quite useless: if I find "Louis XIV" I may want to copy it and get the real name, not "Louis 14". Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@uni

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-21 Thread enrico . gregorio
thod=escape,ActualText=#1}% \@Uromanx{#1}\EndAccSupp{}} \makeatother \begin{document} \Ordinal{239} \Ordinal{8} \ordinal{999} \end{document} === Works with AR 9, though not perfectly in the selections. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 0

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-20 Thread enrico . gregorio
man "digits" evolved from the Etruscan shape until they became identical to some letters. For example, the digit for 1000 was a circle divided into quarters. I'll think to a way for adding the /ActualText to the macros I showed you. Ciao Enrico -- Enrico Gregorio + Diparti

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-19 Thread enrico . gregorio
body uses the "XIV" in "Louis XIV" to perform calculations. That's just a different way of writing "quatorze". I see it just as the ability to copy "quatorze" from a text and paste it into a worksheet cell accepting numbers to get 14. In the case of Roman

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-19 Thread enrico . gregorio
t languages. It's possible to convert Thai numerals into Western Arabic ones, because they are simply different representations of the same thing: the language is the same, only in a different script. For Roman numerals it's nothing like that. Ciao Enrico -- Enrico Gregorio

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-18 Thread enrico . gregorio
voiding a line break. This will use the character corresponding to the number, if in the range 1–12, otherwise the number will be constructed from the Roman numerals. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.i

Re: [XeTeX] Roman Numerals as stylistic alternatives

2011-06-18 Thread enrico . gregorio
%%% XeTeX code ends Since Unicode defines numerals from 1 to 12, I use those when the counter's value is in that range; otherwise I mimick the procedure for getting uppercase Roman numerals of the LaTeX kernel. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica

Re: [XeTeX] Package conflict

2011-06-11 Thread enrico . gregorio
> That's my fault. I'll release an update to mathspec soon to correct this. Would you also look at the problem raised here? <http://tex.stackexchange.com/questions/20430/> Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8

Re: [XeTeX] textup superscript

2011-06-10 Thread enrico . gregorio
xtupsuperscript}[1]{\textsuperscript{\normalfont #1}} Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax

Re: [XeTeX] jobname in tikz externalizing

2011-05-21 Thread enrico . gregorio
'\beginpgfgraphicnamed' command to control the externalized > picture names as that illustrated in the section 86 of the pgf manual. Don't use \pgfactualjobname. Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8027937 enrico

Re: [XeTeX] How to make externalizing work with xelatex?

2011-05-21 Thread enrico . gregorio
ibrary the compiler you have to use (page 345 of the manual); in your case this should be \tikzset{external/system call={xelatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"} as the default is "

Re: [XeTeX] Space characters and whitespace

2011-03-03 Thread enrico . gregorio
in your document will translate to "breakable thin space" and "non breakable thin space" respectively. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (gre

Re: [XeTeX] Space characters and whitespace

2011-03-03 Thread enrico . gregorio
hose who don't know how to input it will never use the packages to define an action for that character, will they? ;-) Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Universi

Re: [XeTeX] Space characters and whitespace

2011-03-02 Thread enrico . gregorio
racter by code point (in XeLaTeX, as with LaTeX there's already \DeclareUnicodeCharacter). Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unip

Re: [XeTeX] No-Break Space

2011-03-02 Thread enrico . gregorio
code of #1 is changed. Actually the catcode change might even be deferred at a later moment. Of course I don't expect that anybody calls \newunicodechar inside a group. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr

Re: [XeTeX] No-Break Space

2011-03-02 Thread enrico . gregorio
ironment \end{document} The initial x is just because (Xe)TeX doesn't hyphenate the first word in a paragraph. You'll see that "environmental" is hyphenated. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.gre

Re: [XeTeX] No-Break Space

2011-03-02 Thread enrico . gregorio
as itself, this is a felicitous consequence of the implementation of \newunicodechar. :) Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le

Re: [XeTeX] question about the support of pstricks in xetex

2011-02-27 Thread enrico . gregorio
I'd rather use feyn (font based) or feynmf (in its Metapost incarnation). Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 /

Re: [XeTeX] Space characters and whitespace

2011-02-22 Thread enrico . gregorio
ug.org/pipermail/xetex/2011-February/020100.html> concerning U+00A0 (NO BREAK SPACE). Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le

Re: [XeTeX] No-Break Space

2011-02-20 Thread enrico . gregorio
on the same line. The explicit tie is way better. You can achieve the same behavior as ~ with \catcode`=\active \protected\def{\nobreakspace{}} or, loading the new package newunicodechar, \newunicodechar{}{\nobreakspace{}} Here denotes the character U+00A0, of course and that character must

Re: [XeTeX] Puzzling hyphenation with polyglossia and xelatex

2011-01-10 Thread enrico . gregorio
com/fc7/polyglossia/commit/64d826e9f3ee62de8f5913382bfd44f4d4da67c4> Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134

Re: [XeTeX] hyphenmins for default language

2010-12-06 Thread enrico . gregorio
der depended on the declaration of the languages. Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it)

Re: [XeTeX] irregular spaces between lines in Tibetan

2010-12-06 Thread enrico . gregorio
actor. Modify at will. Ciao Enrico -- Enrico Gregorio  + Dipartimento di Informatica  + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-

Re: [XeTeX] Hyphenation rules problem in my french document

2010-12-05 Thread enrico . gregorio
it tells XeTeX to consider the right quote just as an (ASCII) apostrophe as far as hyphenation is concerned, which is precisely what you needed. If you use other languages, it's probably useful to add \addto\noextrasfrench{\lccode"2019=0 } and similar pairs of constructions for langua

Re: [XeTeX] Hyphenation rules problem in my french document

2010-11-28 Thread enrico . gregorio
an (ASCII) apostrophe, with respect to hyphenation. So, add \addto\extrasfrench{\lccode"2019=`\' } just after the call to babel. This is because the default font receives the option Mapping=tex-text and so an ASCII apostrophe is seen as a right quote, which doesn't appear in t

Re: [XeTeX] Avoiding hyphenation before a combining diacritical mark

2010-11-15 Thread enrico . gregorio
ing word as βαίνο i.e., inserting a COMBINING ACUTE TONE MARK (U+0341) after the iota (the software used for this message probably does the combination by itself). The same if I use COMBINING ACUTE ACCENT (U+0301). But no, not with \char. Ciao Enrico -- Enrico Gregorio  + Dipartimen

Re: [XeTeX] Strange hyphenation with polyglossia in French

2010-10-18 Thread enrico . gregorio
essary to initialize the lccode table for them. But the experiment seems to prove that this works. Alas, it doesn't in LuaTeX, because I read that \savinghyphcodes is not enabled in the current version (but it should be in 0.70, according to Taco Hoekwater). Ciao Enrico -- Enrico Gregorio

Re: [XeTeX] Strange hyphenation with polyglossia in French

2010-10-17 Thread enrico . gregorio
en French or Italian patterns are read in should also avoid the need of pattern duplication. It is a problem also for Catalan and some other languages, Of course this can't be used in regular knuthian TeX, but it shouldn't be an issue, since we are discussing about Unicode input. Ciao

Re: [XeTeX] Error with latest expl3?

2010-10-16 Thread enrico . gregorio
nt, the trick of saying \expandafter\let\csname intexpr_if_even:nTF\expandafter\endcsname \csname int_if_even:nTF\endcsname just after loading fontspec should work. Either fontspec will be updated to use \int_if_even:nTF or expl3 will define the alias. I hope. :) Ciao Enrico -- Enrico Greg

Re: [XeTeX] Strange hyphenation with polyglossia in French

2010-10-16 Thread enrico . gregorio
the right character (all Unicode fonts have a straight quote in that position); but when it's used, there are no patterns containing U+2019. This is a problem which should be examined by the "hyphenation pattern team": all patterns containing the apostrophe should be duplicated wi

Re: [XeTeX] Problem changing default fonts

2010-10-02 Thread enrico . gregorio
propriate in running text and should be used only inside environments or as arguments to commands, properly protected by groups in order to delimit the action of the declaration. To change the aspect of section headings, use the package titlesec. Ciao Enrico -- Enrico Gregorio  + Diparti

Re: [XeTeX] Fake old-style figures & small-caps with XeTeX?

2010-07-23 Thread enrico . gregorio
;mathpazo" package, for Palatino. You can substitute the text font with the TeX Gyre version: \usepackage{mathpazo} \setmainfont[Numbers=OldStyle]{TeX Gyre Pagella} With declarations in this order, XeLaTeX should be happy: and indeed it is, I've tried compiling the documentation of amsm

Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?

2010-07-02 Thread enrico . gregorio
height. (Xe)LaTeX users would take care of non standard page sizes with geometry, anyway. Plain TeX addicts should simply say \special{papersize=,} Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli

Re: [XeTeX] polyglossia and ledpar conflict

2010-06-13 Thread enrico . gregorio
% \POLYselectlanguage[#1]{#2}% \ifledRcol \gdef\theledlanguageR{#2}% \else \gdef\theledlanguageL{#2}% \fi} } The strange \letcs is for accessing the internal name of \selectlanguage without incurring in a loop; commands with an optional argument are bad beasts. :) Give it a tr

Re: [XeTeX] polyglossia, Spanish and indentfirst

2010-06-06 Thread enrico . gregorio
..@afterindenttrue and the \nofre...@indent macro actually does nothing. If, instead, indentfirst is loaded after polyglossia, \nofre...@indent replaces \...@afterindentfalse (which probably is equivalent to \...@afterindentrue) with \@@fterindentfalse, giving it the LaTeX kernel meaning. Ciao Enric

Re: [XeTeX] polyglossia, Spanish and indentfirst

2010-06-05 Thread enrico . gregorio
= Minimal example? Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134

Re: [XeTeX] unicode-math testing

2010-05-27 Thread enrico . gregorio
his is XeTeX, Version 3.1415926-2.2-0.9995.3 (TeX Live 2010/pretest) (format=xelatex 2010.5.26) 27 MAY 2010 11:18 I didn't find any problem. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli

Re: [XeTeX] polyglossia hyphenation questions: lonely words, punctuation, etc.

2010-05-16 Thread enrico . gregorio
27;s already an explicit hyphen, past that hyphen. Putting \hspace{0pt} before the problematic part cures the problem. Probably a macro such as babel's \allowhyphens might be a good solution: \providecommand{\allowhyphens}{\nobreak\hspace{0pt}} You wouldn't want a break at the explici

Re: [XeTeX] Using hyperref causing spurious output text

2010-04-11 Thread enrico . gregorio
The problem is in the \obeylines before \begin{document}, which interferes with the material in \AtBeginDocument which is evaluated after it. It's generally a bad idea to use \obeylines outside a group. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel