[XeTeX] Is there a way to have a PDF generated via xelatex/xdvipdfm and not end up with CID encoded fonts?

2012-03-27 Thread Michael Joyner
Hello all,

I have run into a problem with CID encoded fonts.
I have a service I am trying to submit a large of number of PDFs to and
they said they can't handle CID encoded fonts.
Is there a way to have a PDF generated via xelatex/xdvipdfm and not end up
with CID encoded fonts?

-Mike


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Is there a way to have a PDF generated via xelatex/xdvipdfm and not end up with CID encoded fonts?

2012-03-27 Thread Michael Joyner
On Tue, Mar 27, 2012 at 2:41 PM, William Adams will.ad...@frycomm.comwrote:


 The only way I can think of to do this is to load the .pdf files into a
 tool which is able to save the files out re-encoding the fonts, picking a
 .pdf setting which doesn't allow CID fonts.


I am trying a conversion to Postscript 1.2 then conversion back to PDF. But
this loses the Bookmarks and other PDF specific features.


 You should re-proof the files after any such transcoding though.

 I'd suggest finding instead a printer w/ an up-to-date RIP, or asking them
 to test the files as they are --- I suspect they'll ``just work'' and it's
 an (over)abundance of caution on their part to not allow such files.


No RIP involved. This is a text an online indexing/online search/online
display system of some sort that can't currently handle CID fonts.

-Michael, NewsRx


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Is there a way to have a PDF generated via xelatex/xdvipdfm and not end up with CID encoded fonts?

2012-03-27 Thread Michael Joyner
On Tue, Mar 27, 2012 at 3:05 PM, William Adams will.ad...@frycomm.comwrote:

 On Mar 27, 2012, at 2:49 PM, Michael Joyner wrote:

  No RIP involved. This is a text an online indexing/online search/online
 display system of some sort that can't currently handle CID fonts.

 OIC.

 If you can use xdv2pdf on Mac OS X, then that doesn't generate CID fonts
 IME.


My platform is Centos 5.5


 William

 --
 William Adams
 senior graphic designer
 Fry Communications
 Sphinx of black quartz, judge my vow.




 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Thu, Sep 29, 2011 at 8:43 PM, Wilfred van Rooijen
wvanrooi...@yahoo.comwrote:

 But the real question remains: does the topic starter really produce a file
 with 65000 pages? Or is there some other error at play? The topic starter
 never mentioned how large his large tex file is



My tex file is 885 megs in size. :)





 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Fri, Sep 30, 2011 at 9:16 AM, Petr Tomasek toma...@etf.cuni.cz wrote:

 On Fri, Sep 30, 2011 at 09:13:03AM -0400, Michael Joyner wrote:
  On Thu, Sep 29, 2011 at 8:43 PM, Wilfred van Rooijen
  wvanrooi...@yahoo.comwrote:
 
   But the real question remains: does the topic starter really produce a
 file
   with 65000 pages? Or is there some other error at play? The topic
 starter
   never mentioned how large his large tex file is
 
  My tex file is 885 megs in size. :)

 Did you write it all by yourself? :-P


Nope. :-P But my assembler of matching requested topic articles from our
DB did...



 --
 Petr Tomasek http://www.etf.cuni.cz/~tomasek
 Jabber: but...@jabbim.cz

 
 EA 355:001  DU DU DU DU
 EA 355:002  TU TU TU TU
 EA 355:003  NU NU NU NU NU NU NU
 EA 355:004  NA NA NA NA NA
 




 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Thu, Sep 29, 2011 at 4:01 PM, Michael Joyner mich...@newsrx.com wrote:



 On Thu, Sep 29, 2011 at 3:17 PM, Arno Trautmann arno.trautm...@gmx.dewrote:

 Michael Joyner wrote:

 HELP!

 I am getting this on a super-large tex file:

 ** ERROR ** Page number 65536l too large!

 I tried googling it, but did not find any references to this error. :(


 Maybe if you try to also report what you did, we could have a chance to
 help you …


 I have a large tex file: 'x.pdf'

 I am thinking it might be PDF related, as I have PDF contents, etc, being
 created, so I am trying at the moment: xelatex -interaction=batchmode
 -no-pdf x.tex


The xdv file was successfully written:


=
xelatex summary report
=

Here is how much of TeX's memory you used:
 19483 strings out of 494146
 322607 string characters out of 3152167
 534179 words of memory out of 300
 22463 multiletter control sequences out of 15000+20
 8984 words of font info for 66 fonts, out of 300 for 9000
 1018 hyphenation exceptions out of 8191
 38i,12n,84p,23992b,414s stack positions out of
5000i,500n,1p,20b,5s

Output written on x.xdv (352956 pages, 1612102060 bytes).


=
resulting files and sizes
=

$ ls -lh
total 6.4G
-rw-r--r-- 1 apache apache  22M Sep 30 10:18 x.aux
-rw-r--r-- 1 apache apache0 Sep 30 09:16 x.idx
-rw-r--r-- 1 apache apache  33M Sep 30 10:19 x.log
-rw-r--r-- 1 apache apache 1.6K Sep 30 10:19 x.out
-rw-r--r-- 1 apache apache 858M Sep 30 09:16 x.tex
-rw-r--r-- 1 apache apache  922 Sep 30 10:19 x.toc
-rw-r--r-- 1 apache apache 5.6G Sep 30 10:19 x.xdv
bash-3.2$

=
location of xdvipdfmx
=
which xdvipdfmx
/texlive/2011/bin/x86_64-linux/xdvipdfmx

=
results of xdvipdfmx
=

bash-3.2$ xdvipdfmx x.xdv
Found 82 where post_post opcode should be

** ERROR ** Something is wrong. Are you sure this is a DVI file?

Output file removed.

=
initial contents x.xdv
=

bash-3.2$ strings x.xdv | head -n 5
 XeTeX output 2011.09.30:0916
+pdf:pagesize width 433.62pt height 650.43pt
qpdf:docinfo/Title()/Subject()/Creator(LaTeX with hyperref
package)/Author()/Producer(XeTeX 0.9997)/Keywords()
3pdf:dest (page.i) [@thispage /XYZ @xpos @ypos null]
color push gray 0
bash-3.2$






 cheers
 Arno


 --**
 Subscriptions, Archive, and List information, etc.:
  
 http://tug.org/mailman/**listinfo/xetexhttp://tug.org/mailman/listinfo/xetex





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Michael Joyner
HELP!

I am getting this on a super-large tex file:

** ERROR ** Page number 65536l too large!

I tried googling it, but did not find any references to this error. :(

-Mike


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Michael Joyner
On Thu, Sep 29, 2011 at 3:17 PM, Arno Trautmann arno.trautm...@gmx.dewrote:

 Michael Joyner wrote:

 HELP!

 I am getting this on a super-large tex file:

 ** ERROR ** Page number 65536l too large!

 I tried googling it, but did not find any references to this error. :(


 Maybe if you try to also report what you did, we could have a chance to
 help you …


I have a large tex file: 'x.pdf'
This is the command I ran: xelatex -interaction=batchmode -halt-on-error
x.tex

I am thinking it might be PDF related, as I have PDF contents, etc, being
created, so I am trying at the moment: xelatex -interaction=batchmode
-no-pdf x.tex



 cheers
 Arno


 --**
 Subscriptions, Archive, and List information, etc.:
  
 http://tug.org/mailman/**listinfo/xetexhttp://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] epsdice package.

2011-07-16 Thread Michael Joyner
On Sat, Jul 16, 2011 at 3:38 AM, Michael Joyner mjoy...@vbservices.netwrote:





 For those curious, it is for number teaching via visual counting of dots.
 As part of a suggested layout for flash cards in a table as a starting
 point.

 As a sort of an aside (could tie into this) Is there a way to specify a
 fallback font for xetex to use when a glyph is not present in the current
 active font?




Here is the current results attached as a single page PDF.




 --

 ---


- Learn to speak Cherokee: http://www.cherokeelessons.com/
- Cherokee Language Help BBS/Chat:
http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
- Cherokee Lessons PDF made with: http://www.lyx.org/





-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Speak_Cherokee.pdf
Description: Adobe PDF document


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] epsdice package.

2011-07-16 Thread Michael Joyner
On Sat, Jul 16, 2011 at 10:37 AM, Peter Dyballa peter_dyba...@web.dewrote:


 Am 16.07.2011 um 10:55 schrieb Michael Joyner:

  Here is the current results attached as a single page PDF.

 I'm missing the use of IPA – how do you pronounce these words?


I don't the use of IPA. And I am sure my students would not have a desire to
learn another alphabet.

The Cherokee alphabet is a Syllabary.

ᏌᏊ: Sah-Gwoo (the g here is a bit hard, more like a k, but not that
hard)
ᏍᎪᎯ: Skoh-Hee (the k here is a bit soft, more like a g, but not that
soft)

Try this link for more information if interested:
http://www.cherokeelessons.com/phpBB3/viewtopic.php?f=11t=227

In particular, download the audio zip and play Track 04



 --
 Greetings

  Pete

 Almost anything is easier to get into than out of.
– Allen's Law




 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex




-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] epsdice package.

2011-07-16 Thread Michael Joyner
On Sat, Jul 16, 2011 at 4:54 PM, Philip TAYLOR (Webmaster, Ret'd) 
p.tay...@rhul.ac.uk wrote:




 The IPA has its drawbacks, that is true, and is more intended to
 convey intra-language differences than inter-language, but it is
 still almost certainly the best way in which to present the sounds
 of a language to an audience with no previous familiarity with
 the sounds of which it is composed.

 In Michael's own examples :

ᏌᏊ: Sah-Gwoo
ᏍᎪᎯ: Skoh-Hee

 the ᏌᏊ and ᏍᎪᎯ elements are fine for native speakers
 familiar with the sound system, but the broad transcription
 into Sah-Gwoo and Skoh-Hee does leave a great deal to
 be desired, as Peter Dyballa suggests.



The syllabary letters are named as they are normally sounded. Makes learning
to read and write much easier than with, say, English

http://en.wikipedia.org/wiki/Cherokee_syllabary

Just as an FYI: the language is also Tonal to a degree and is Polysynthetic.
-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] epsdice package.

2011-07-16 Thread Michael Joyner
On Sat, Jul 16, 2011 at 6:20 PM, Peter Dyballa peter_dyba...@web.de wrote:


 Am 16.07.2011 um 23:32 schrieb Michael Joyner:


  How would one leverage that to handle my font defines of (below) for
 only a fixed range of unicode?



 You either use a loop to activate the up to 128 characters or you use a
 font with Cherokee script and characters support to type Cherokee. Or I
 don't understand your question...

 Jonathan Kew uses this loop in CJKsample.tex:

\newcount\n \n=3000 \loop \ifnum\nA000
  \lccode`\~=\n \catcode\n=\active
  \lowercase{\xdef~{\brk \char\number\n \brk}} \advance\n by 1
 \repeat

 It's also possible to use \XeTeXinterchartoks to bind a character range to
 a particular font (I think). It's documented in The XETEX Companion (a work
 in progress), available for free from CERN – if it still exists (I don't
 know exactly what the strange particles they experiment with can perform).

 This is *way* beyond my current skill level. I use Lyx as a front-end. :)

The font definition I posted has Cherokee glyphs, but I have to fake bold,
etc.

As my text is very mixed, I have it set to use only these fonts for the
entire document. I would rather use the default fonts for the English parts
of the text as the fonts that contain the Cherokee glyphs are incomplete (no
smalluppercase, no proper italics, etc). There was one package I tried that
was supposed to allow switching between fonts based on unicode range, game
me results that were less than pleasing. Whatever font state which was in
effect before a switch is not restored. You have to specify a specific
switch back, not something that is very friendly. (fontspec says you should
encap font changes in {} blocks so that at the end of the block the previous
font settings are restored, but the only package I could find that let me
specify fonts via unicode range does not follow that paradigm)



 You don't need to type everything in only one font!

 --
 Greetings

  Pete

 People say that if you play Microsoft CD's backwards, you hear satanic
 things, but that's nothing, because if you play them forwards, they install
 MS Windows.





 --**
 Subscriptions, Archive, and List information, etc.:
  
 http://tug.org/mailman/**listinfo/xetexhttp://tug.org/mailman/listinfo/xetex




-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] epsdice package.

2011-07-14 Thread Michael Joyner
I am trying to use the epsdice package from inside LyX, and when I switch to
using xelatex as the formatting engine, the package malfunctions.

Instead of drawing a single die, it draws all 12 possible combinations of
dice on two lines. :(

Is there a working dice or dominoes or grouped dots package for xelatex ?
The document I am writing is in Cherokee, so xelatex is my only choice for
font reasons.

-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


die test-BAD.tex
Description: TeX document


die test-BAD.pdf
Description: Adobe PDF document


die test.tex
Description: TeX document


die test.pdf
Description: Adobe PDF document


die test.lyx
Description: Binary data


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] XeTeXcharclass and '\texttrademark'

2011-05-09 Thread Michael Joyner
Hello and help!

I am trying to setup a custom negative kerning setting for the following
letter pairs: ™. and ™, so that the . and the , are under the ™.

Here is my code fragment, but I can't figure how to tell it to also consider
'\texttrademark' as part of the charclass.

\XeTeXinterchartokenstate=1
\newXeTeXintercharclass \pAfterTM
\XeTeXcharclass `. \pAfterTM
\XeTeXcharclass `, \pAfterTM
\newXeTeXintercharclass \ptrademark
\XeTeXcharclass `™ \ptrademark
\XeTeXcharclass `\texttrademark \ptrademark
\XeTeXinterchartoks \ptrademark \pAfterTM = {\kern-0.75em}

Thanks for any suggestions!

-Mike


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] PDF encrypttion not supported by latest texlive?

2011-02-16 Thread Michael Joyner
Good afternoon all,

I am trying to encrypt a PDF while retaining the bookmarks and have
discovered pdftk eats said bookmarks. :(

So I discovered the existence of the pdfcrypt but now I get:

! Package pdfcrypt Error: No driver for encryption support found.
See the pdfcrypt package documentation for explanation.
Type  H return  for immediate help.
 ...

l.44 \begin{document}


Does there exist a method to encrypt latex generated PDFs and still retain
the PDF bookmarks?

-Mike

FYI:

xelatex --version
XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 4.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3
Compiled with FreeType2 version 2.3.11; using 2.3.11
Compiled with fontconfig version 2.3.1; using 2.2.3
Compiled with libpng version 1.2.40; using 1.2.40
Compiled with xpdf version 3.02pl4


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] xeindex bug. index entry mangles processing of section and chapter environments.

2011-02-15 Thread Michael Joyner
On Mon, Feb 14, 2011 at 6:25 PM, Paul Isambert zappathus...@free.fr wrote:


 Nice, you've just discovered a bug in XeSearch.

Bleck. I don't consider it nice. Why am I the one always finding these bugs
that don't afflict other people? :(


 Basically, it builds an horizontal box; \section inserts a vertical command
 (\vskip) at the end of its argument; but TeX doesn't like vertical commands
 in horizontal boxes, hence the complaining. This happens only when searching
 for phrases, not simple words, because such things as \vskip are boundaries
 to XeSearch, so it normally closes the box, but boundaries are ignored when
 searching for phrases.

Just ran into a case where it occurs for a single word. Please see example
document below.



 Right now I can only recommend stopping the search before the section title
 and starting it again after. I know it's far from satisfying, but I have to
 think about a better solution.

Haven't quite figured out how to do that yet without changing lots of stuff
not directly related to the indexing so I was trying to index just words
and not phrases. :)

===SNIPBAD=OUTPUT
.sty)) (./00234.out) (./00234.out) [1]
! Missing } inserted.
inserted text
}
l.69 \subsection*{\underbar{Herpes Simplex Virus}}

?
! Emergency stop.
inserted text
}
l.69 \subsection*{\underbar{Herpes Simplex Virus}}


** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
Output written on 00234.pdf (1 page).
Transcript written on 00234.log.

===SNIPBAD=DOCUMENT=
\documentclass[12pt,oneside,english]{book}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{makeidx}
\makeindex

\makeatletter
%% User specified LaTeX commands.
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{ifpdf}
\usepackage[unicode=true, pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,bookmarksopenlevel=1,
 breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}
\cftsetindents{chapter}{0em}{3em}
\addtocontents{toc}

%\usepackage{tocbibind}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont{Century Schoolbook L}

%%not enough save_memory can be allocated unless you use the patched
version!
%\usepackage{xeindex}
%\IndexList{autoSpecials}{?®,?©}
%,?™} the ™ does not seem to index correctly as part of a word, only shows
up by itself
%index%\IndexList{autoIndex}{}

%\input{\jobname-inc-preamble} %include externally generated latex code for
the preamble

\usepackage{xeindex} %
\IndexList{xeindexList}
{
Virus
}


%add the index to the toc // done this way to try and make pdf bookmark
correct
\let\myIndex\theindex\renewcommand{\theindex}{\cleardoublepage\myIndex\phantomsection\addcontentsline{toc}{chapter}{\indexname}}


\usepackage{babel}
\makeatother
\begin{document}
\frontmatter
\thispagestyle{empty}
\pdfbookmark[1]{Title Page}{titlePage}


\title{Avian Influenza (Bird Flu) for the Healthcare
Professional\label{titlePage}}


\author{Published by:  Inform Editions}


\date{02/15/2011}

\maketitle
\mainmatter

\begin{sloppy}

\subsection*{\underbar{Herpes Simplex Virus}}

\end{sloppy}

\printindex{}
\end{document}


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] Encrypting PDFs and maintaing PDF bookmarks. Howto ?

2011-02-15 Thread Michael Joyner
Good afternoon,

I was trying to encrypt some PDF's with pdftk, but discovered that it  eats
the PDF bookmarks!

After doing some Googling I discoved 'pdfcrypt', but I get an error about a
driver not being installed.

Then I discovered that xdvipdfmx supports a -S option, but, I don't see a
way to set the owner and user password via command line option.

Is there a way to set the passwords for xdvipdfmx via command line option?

Is there another better way that doesn't eat the PDF bookmarks?

-Mike

FYI: xelatex --version

XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 4.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3
Compiled with FreeType2 version 2.3.11; using 2.3.11
Compiled with fontconfig version 2.3.1; using 2.2.3
Compiled with libpng version 1.2.40; using 1.2.40
Compiled with xpdf version 3.02pl4


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] xeindex bug. index entry mangles processing of section and chapter environments.

2011-02-14 Thread Michael Joyner
Good afternoon all,

I having gotten much further along with the xeindexing, but have run into a
new problem.

I have created and inserted below a test document showing an un-numbered
section getting mangled.

What I really find strange is that the text being mangled is a substring of
the text being searched for indexing.

I am searching via xeindex for 'Clinical Trial Research', but the fragment
\section*{Resverlogix Activates First Site for ASSURE 1 Clinical Trial} is
ending up with a missing '}' after the word 'Trial'.

One can also change \chapter{Clinical Trials} to \chapter{Clinical
Trial} and have the error occur there instead.


Help!

Thanks!

-Mike

=SNIP=

\documentclass[12pt,oneside,english]{book}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{makeidx}
\makeindex

\makeatletter
%% User specified LaTeX commands.
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{ifpdf}
\usepackage[unicode=true, pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,bookmarksopenlevel=1,
 breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}
\cftsetindents{chapter}{0em}{3em}
%\addtocontents{toc}

\usepackage{fontspec}

\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont{Century Schoolbook L}

\usepackage{xeindex} %
\IndexList{xeindexList}
{Clinical Trial Research}

\let\myIndex\theindex\renewcommand{\theindex}{\cleardoublepage\myIndex\phantomsection\addcontentsline{toc}{chapter}{\indexname}}


\usepackage{babel}
\makeatother
\begin{document}
\frontmatter\thispagestyle{empty}


\title{Acute Coronary Syndrome for the Healthcare Professional}


\author{Published by:  Inform Editions}


\date{02/14/2011}

\maketitle
\begin{center}

\renewcommand\contentsname{Table of Contents}

\tableofcontents{}

\end{center}

\mainmatter
\begin{sloppy}


\chapter{Clinical Trials}

\section*{Resverlogix Activates First Site for ASSURE 1 Clinical Trial}

\end{sloppy}

\printindex{}
\end{document}


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-10 Thread Michael Joyner
On Thu, Feb 10, 2011 at 8:21 AM, Paul Isambert zappathus...@free.fr wrote:

 Le 10/02/2011 04:39, Ross Moore a écrit :

  Hi Michael, and Heiko,

 On 10/02/2011, at 1:49 PM, Michael Joyner wrote:


 On Wed, Feb 9, 2011 at 9:30 PM, Ross Mooreross.mo...@mq.edu.au  wrote:


 See how large you can set the  save size parameter.
 Multiply by 10, or 100, or 1000... .

 I'd say you are exploring to the boundaries of what XeTeX
 is capable of doing.


 save size won't go over 80,000 :(

 OK.

 But we don't need it now.
 Here's the cause of the problem.

 The package source  xesearch.sty   has a technical problem.
 The macros  \xs@String  and  \xs@Stack  are used as variables,
 repeatedly changing their expansions. However, sometimes the code
 uses \edef\xs@String{...} but mostly it uses \xdef\xs@String{...}.

 This mixture of local/global scope is what causes the loss of
 string space, because an \edef instance requires the previous \xdef
 instance to be retained, not discarded. Then comes another \xdef
 which may release the previous \edef's memory, but not that of the
  \xdef  prior to the \edef .  Hence memory usage grows.

 By making all instances become global, I now get your document to
 finish, along with the Index page.

 Here's the memory usage:

  Here is how much of TeX's memory you used:
  26092 strings out of 494542
  451878 string characters out of 3157455
  480737 words of memory out of 300
  29083 multiletter control sequences out of 15000+20
  8574 words of font info for 51 fonts, out of 300 for 9000
  669 hyphenation exceptions out of 8191
  40i,7n,43p,1687b,9339s stack positions out of
 5000i,500n,1p,20b,5s




 Here's the patch needed to modify  xesearch.sty .



Does this look right?

diff -u xesearch*sty
--- xesearch-orig.sty 2011-02-10 09:56:49.0 -0500
+++ xesearch.sty 2011-02-10 09:56:25.0 -0500
@@ -166,7 +166,7 @@
 \xdef\xs@Stack{%
   \xs@String\noexpand\xs@end\xs@unexpanded\expandafter{\xs@Stack}%
   }%
-\edef\xs@String{\xs@unexpanded\expandafter{\xs@String} }%
+\xdef\xs@String{\xs@unexpanded\expandafter{\xs@String} }%
 \XeTeXinterchartokenstate1
   \else
 \expandafter\xs@Lowercase\expandafter{\xs@String}\xs@lcString
@@ -175,7 +175,7 @@
   \xdef\xs@Stack{%
 \xs@String\noexpand\xs@end\xs@unexpanded\expandafter{\xs@Stack
}%
 }%
-  \edef\xs@String{\xs@unexpanded\expandafter{\xs@String} }%
+  \xdef\xs@String{\xs@unexpanded\expandafter{\xs@String} }%
   \XeTeXinterchartokenstate1
 \else
   \expandafter\expandafter\expandafter\xs@EndString
@@ -684,16 +684,16 @@
 \fi
   \fi\xs@next
   }
-\def\xs@Stack{}
+\xdef\xs@Stack{}
 \def\xs@Remainder{}
 \def\xs@StartString{%
   \xs@Stringtrue
   \let\xs@StartString\relax
-  \def\xs@String{}%
+  \xdef\xs@String{}%
   \def\PrefixFound{}%
   \def\SuffixFound{}%
   \def\AffixFound{}%
-  \def\xs@Stack{}%
+  \xdef\xs@Stack{}%
   \def\xs@Remainder{}%
   \xs@Phrasefalse
   \setbox\xs@Box=\hbox\bgroup
@@ -908,7 +908,7 @@
   \let\xs@next\xs@Evaluate
 \else
   \ifxs@Phrase
-\def\xs@Stack{}%
+\xdef\xs@Stack{}%
 \def\xs@next{\xs@String\xs@Restore}%
   \else
 \def\xs@next{\unhbox\xs@Box\xs@Restore}%
@@ -975,7 +975,7 @@
   \XeTeXinterchartokenstate=1
   }
 \def\xs@PopWord#1\xs@end#2\xs@end{%
-  \def\xs@String{#2}%
+  \xdef\xs@String{#2}%
   \def\xs@@PopWord#2##1\xs@end{%
 \edef\xs@Remainder{##1\xs@unexpanded\expandafter{\xs@Remainder}%
   }%
@@ -983,7 +983,7 @@
   \xs@@PopWord#1\xs@end
   }
 \def\xs@PopStack#1\xs@end#2\xs@@end{%
-  \def\xs@Stack{#2}%
+  \xdef\xs@Stack{#2}%
   \expandafter\xs@PopWord\xs@String\xs@end#1\xs@end
   }
 \def\SortByLength#1{%
[seeksort@www sty]$


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-10 Thread Michael Joyner
Good afternoon,

So far so good for the document sizes we are currently using.

 :) Many many thanks!

FYI:

Did a test on a merged super-document, and it died while writing the idx
file out.

wc -w 00207.utex
1666714 00207.utex

Interested in the file?

On Thu, Feb 10, 2011 at 10:16 AM, Paul Isambert zappathus...@free.frwrote:

  Le 10/02/2011 15:58, Michael Joyner a écrit :



 On Thu, Feb 10, 2011 at 8:21 AM, Paul Isambert zappathus...@free.frwrote:

 Le 10/02/2011 04:39, Ross Moore a écrit :

  Hi Michael, and Heiko,

 On 10/02/2011, at 1:49 PM, Michael Joyner wrote:


 On Wed, Feb 9, 2011 at 9:30 PM, Ross Mooreross.mo...@mq.edu.au
  wrote:


 See how large you can set the  save size parameter.
 Multiply by 10, or 100, or 1000... .

 I'd say you are exploring to the boundaries of what XeTeX
 is capable of doing.


 save size won't go over 80,000 :(

 OK.

 But we don't need it now.
 Here's the cause of the problem.

 The package source  xesearch.sty   has a technical problem.
 The macros  \xs@String  and  \xs@Stack  are used as variables,
 repeatedly changing their expansions. However, sometimes the code
 uses \edef\xs@String{...} but mostly it uses \xdef\xs@String{...}.

 This mixture of local/global scope is what causes the loss of
 string space, because an \edef instance requires the previous \xdef
 instance to be retained, not discarded. Then comes another \xdef
 which may release the previous \edef's memory, but not that of the
  \xdef  prior to the \edef .  Hence memory usage grows.

 By making all instances become global, I now get your document to
 finish, along with the Index page.

 Here's the memory usage:

   Here is how much of TeX's memory you used:
  26092 strings out of 494542
  451878 string characters out of 3157455
  480737 words of memory out of 300
  29083 multiletter control sequences out of 15000+20
  8574 words of font info for 51 fonts, out of 300 for 9000
  669 hyphenation exceptions out of 8191
  40i,7n,43p,1687b,9339s stack positions out of
 5000i,500n,1p,20b,5s




 Here's the patch needed to modify  xesearch.sty .



  Does this look right?


 This looks ok to me, except:

  @@ -975,7 +975,7 @@
 -  \def\xs@String{#2}%
 +  \gdef\xs@String{#2}%


  @@ -983,7 +983,7 @@
 -  \def\xs@Stack{#2}%
 +  \gdef\xs@Stack{#2}%


 (I've turned \xdef into \gdef). Now, if your document works properly, I'll
 release the patch.
 Thanks again,
 Paul




 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
Good Afternoon,

Help! :)

We are trying to use XeIndex/XeSearch on what we consider to be some
medium/small documents and are getting the following error:

! TeX capacity exceeded, sorry [save size=8].
\pdfstringdef ... \let \GenericError \@gobblefour
  \let \GenericWarning
\@gob...
l.5671
Here is how much of TeX's memory you used:
 26308 strings out of 494522
 458137 string characters out of 503842
 738532 words of memory out of 300
 29310 multiletter control sequences out of 15000+20
 9330 words of font info for 51 fonts, out of 300 for 9000
 670 hyphenation exceptions out of 8191
 40i,7n,43p,500b,80001s stack positions out of
5000i,500n,1p,20b,8s
Output written on 02944.pdf (79 pages).


I have tried increasing the 'save size' above 8, but it doesn't seem to
go any higher. :(

This occurs when the package is loaded, regardless as to whether we specify
words to index or not.

We tested with just XeSearch loading, and the same error occurred.

We would really appreciate any advice on this.

Thanks!
-Mike


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
On Wed, Feb 9, 2011 at 4:17 PM, Paul Isambert zappathus...@free.fr wrote:

  Le 09/02/2011 20:52, Michael Joyner a écrit :

 Good Afternoon,

  Help! :)

  We are trying to use XeIndex/XeSearch on what we consider to be some
 medium/small documents and are getting the following error:

  ! TeX capacity exceeded, sorry [save size=8].
 \pdfstringdef ... \let \GenericError \@gobblefour(TeX capacity is generally
 exceeded because it has entered a loop.)


This only seems to occur on documents that exceed 35,000 words according
to wc -w output.
I can trim the document down to just under that and all is well.
Put in a couple of returns or just a few words and it gets triggered.

I will send off list an example document.

Thanks for any help.

(Note. This occurs on just loading XeSearch. Not actually using anything in
it explicitly


 Best,
 Paul



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
On Wed, Feb 9, 2011 at 4:16 PM, Ross Moore ross.mo...@mq.edu.au wrote:

 Hello Michael,
 That will not help.

 What causes  hyperref to load?  Is it up-to-date?


Latest TexLive install.


 Let's see more of your .log file/Console output.


I will send you a copy off list. (size)



 
  We would really appreciate any advice on this.
 
  Thanks!
  -Mike

 Hope this helps,

Ross

 
 Ross Moore   ross.mo...@mq.edu.au
 Mathematics Department   office: E7A-419
 Macquarie University tel: +61 (0)2 9850 8955
 Sydney, Australia  2109  fax: +61 (0)2 9850 8114
 






 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
On Wed, Feb 9, 2011 at 8:35 PM, Heiko Oberdiek 
heiko.oberd...@googlemail.com wrote:

 On Wed, Feb 09, 2011 at 02:52:01PM -0500, Michael Joyner wrote:

  We are trying to use XeIndex/XeSearch on what we consider to be some
  medium/small documents and are getting the following error:
 
  ! TeX capacity exceeded, sorry [save size=8].

 Do you have the document inside a group?


I don't think I do...

Would loading XeSearch cause this to happen?


 Then local macro definition (labels, ...), changed counters, ...
 will occupy save positions.


Here is the start of the document:

\documentclass[12pt,oneside,english]{book}
 \usepackage{geometry}

 \geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}
 \pagestyle{headings}
 \setcounter{secnumdepth}{3}
 \setcounter{tocdepth}{3}
 \usepackage{amsmath}
 \usepackage{makeidx}
 \makeindex

 \makeatletter
 %% User specified LaTeX commands.
 %\usepackage{tocloft}
 %\usepackage{fancyhdr}
 %\usepackage{ifpdf}
 %\usepackage[unicode=true, pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,bookmarksopenlevel=1,
 breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false] {hyperref}
 %\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}
 %\cftsetindents{chapter}{0em}{3em}
 %\addtocontents{toc}

 %\usepackage{tocbibind}

 %\usepackage{fontspec}
 \usepackage{xunicode}
 \usepackage{xltxtra}
 %\setmainfont{Century Schoolbook L}

 %%not enough save_memory can be allocated!
 \usepackage{xeindex}
 \IndexList{mylist}{Cancer,Blood,Research,Institut?}




 \usepackage{babel}
 \makeatother
 \begin{document}
 \frontmatter\thispagestyle{empty}


 \title{Type 2 Diabetes for the Healthcare Professional, Volume II, Volume
 2}


 \author{Published by:  Inform Editions}


 \date{02/09/2011}

 \maketitle
 \begin{center}

 \renewcommand\contentsname{Table of Contents}

 \tableofcontents{}

 \end{center}

 \mainmatter

 \begin{sloppy}


 \chapter{Surgery}


 \subsection*{\underbar{Allergan, Inc.}}


 \section*{FDA Advisory Committee Recommends Approval to Expand Use of
 LAP-BAND(R)
 Adjustable Gastric Banding System for Obese Adults}


 \paragraph*{   2010 DEC 22}

 -- Allergan, Inc. (NYSE: AGN) announced the U.S. Food and Drug
 Administration (FDA) Gastroenterology and Urology Devices Panel of the
 Medical Devices Advisory Committee has recommended with an 8-2 vote that the
 FDA extend the currently approved use of the LAP-BAND® System, Allergan's
 gastric band, on the basis of a favorable benefit-risk profile for weight
 reduction in obese adults who have failed more conservative weight reduction
 alternatives and have a Body Mass Index (BMI) of at least 35 or a BMI =30
 and at least one comorbid condition.



Here is the end of the document:

\subsection*{\underbar{College of Medicine, U.S.}}


 \section*{Research results from College of Medicine update understanding of
 diabetes}


 \paragraph*{  2010 SEP 30}


-- Fresh data on diabetes are presented in the report 'Elevated risk of type
 2 diabetes and metabolic syndrome among Asians and south Asians: results
 from the 2004 New York City HANES.' According to a study from the United
 States, \char`\{}Although numerous studies have identified an elevated risk
 of diabetes or impaired fasting glucose among Asians, there are limited data
 examining variability in risk among Asian subpopulations.  We estimated
 prevalence of diabetes (DM), metabolic syndrome (MS) and impaired fasting
 glucose (IFG), by race/ethnicity and by Asian subgroup.\char`\{}


 \end{sloppy}

 \printindex{}
 \end{document}



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
On Wed, Feb 9, 2011 at 8:55 PM, Heiko Oberdiek 
heiko.oberd...@googlemail.com wrote:

 On Wed, Feb 09, 2011 at 10:17:54PM +0100, Paul Isambert wrote:

  Le 09/02/2011 20:52, Michael Joyner a écrit :

  We are trying to use XeIndex/XeSearch on what we consider to be
  some medium/small documents and are getting the following error:
  
  ! TeX capacity exceeded, sorry [save size=8].
  \pdfstringdef ... \let \GenericError \@gobblefour
\let
  


 The example shows that each word creates two command sequences,
 example for Hello:

  {changing \Hello@cs@xs@words=undefined}
  {into \Hello@cs@xs@words=\relax}
  {changing \hello@ncs@xs@words=undefined}
  {into \hello@ncs@xs@words=\relax}

 I don't know the internals of xesearch.sty, but do you really need
 the meaning \relax? Or it is just the usual side effect of TeX's
 \csname?

 In \xs@@F@Test you are using:

  \expandafter\ifx\csname\xs@String @cs@xs@words\endcsname\relax

 Perhaps you can replace it by \ifcsname ...\endcsname?

 I haven't the faintest idea. :) I am not the author of xesearch. is this an
easy change to test?


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Running out of memory in XeSearch while trying to XeIndex on largish latex files.

2011-02-09 Thread Michael Joyner
On Wed, Feb 9, 2011 at 9:30 PM, Ross Moore ross.mo...@mq.edu.au wrote:



 See how large you can set the  save size parameter.
 Multiply by 10, or 100, or 1000... .

 I'd say you are exploring to the boundaries of what XeTeX
 is capable of doing.


save size won't go over 80,000 :(


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex