From MacOSX-TeX@email.esm.psu.edu Mon Jun  6 19:55:32 2005
Received: from engremail2.engr.psu.edu ([130.203.201.116]) by ENGRMAIL1.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.6713);
	 Mon, 6 Jun 2005 19:55:32 -0400
Received: from email.esm.psu.edu ([130.203.247.204]) by engremail2.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.6713);
	 Mon, 6 Jun 2005 19:55:30 -0400
Date: Mon, 6 Jun 2005 20:00:13 -0400
Message-ID: <32813.51361@email.esm.psu.edu>
Subject: MacOSX-TeX Digest #1395 - 06/06/05
From: "TeX on Mac OS X Mailing List" 
To: "TeX on Mac OS X Mailing List" 
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Sender: 
Precedence: List
List-Software: LetterRip Pro 4.05 (0531) by LetterRip Software, LLC.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 
X-LR-SENT-TO: mail.engr.psu.edu
Return-Path: MacOSX-TeX@email.esm.psu.edu
X-OriginalArrivalTime: 06 Jun 2005 23:55:30.0205 (UTC) FILETIME=[382DCCD0:01C56AF3]

MacOSX-TeX Digest #1395 - Monday, June 6, 2005

  Re: [OS X TeX] Tiger Change All Open With
          by "Alan Curtis" 

  TeXShop wishlist
          by "Richard Seguin" 

  Bounding Boxes for jpg Files
          by "Sam.Bradley" 

  Re: [OS X TeX] Bounding Boxes for jpg Files
          by "Herbert Schulz" 

  Re: [OS X TeX] TeXShop applescripts macros
          by "Cyril Borrelly" 

  Re: [OS X TeX] TeXShop applescripts macros
          by "Herbert Schulz" 

  Texshop & chapterbib
          by "Ingo Reich" 

  Re: [OS X TeX] Texshop & chapterbib
          by "Herbert Schulz" 

  Strange behavior of tabular / \hline
          by "Bernhard Barkow" 

  Re: [OS X TeX] Strange behavior of tabular / \hline
          by "Johan Almqvist" 

  Re: [OS X TeX] Strange behavior of tabular / \hline
          by "Bernhard Barkow" 

  Re: [OS X TeX] Texshop & chapterbib
          by "Ingo Reich" 

  scrolling
          by "Ingo Reich" 

  iTeXMac
          by "Riboni Enrico" 

  Re: [OS X TeX] iTeXMac
          by "Simon Spiegel" 

  Re: [OS X TeX] iTeXMac
          by "Peter S. Burrage" 

  Re: [OS X TeX] Texshop & chapterbib
          by "Jonas Wellendorf" 

  Re: [OS X TeX] Texshop & chapterbib
          by "Claus Gerhardt" 

  Re: [OS X TeX] Bounding Boxes for jpg Files
          by "Maarten Sneep" 


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Tiger Change All Open With
From: "Alan Curtis" 
Date: Sun, 5 Jun 2005 20:50:36 -0400


On Jun 5, 2005, at 7:33 PM, Alan Curtis wrote:

> On 6/5/05, Bob Kerstetter  wrote:
>
>>
>> On Jun 4, 2005, at 2:16 AM, Michael Gedalin wrote:
>>
>>
>>>> For some reason, my Tiger has associated .tex files with Script
>>>> Editor. I can Get Info and change one file's open with to TexShop,
>>>> but when I press the Change All button it reverts to Script Editor.
>>>> Anyone know how to fix this?
>>>>
>>>> Alan
>>>>
>>>>
>>>>
>>>>
>>>
>>> I had similar problems with associating all .tex files with
>>> StuffitExpander. Removal of SE and cleaning caches worked. I put SE
>>> back and everything is ok. May be deep cache cleaning would suffice
>>> for you. I used AppleJack.
>>>
>>>
>>
>> Things here seldom get messy, maybe because the machine gets
>> restarted once a week, so it does the "start up disk maintenance"
>> weekly.
>>
>> But when things do get messy, restarting the machine, running these
>> commands from the terminal and then restarting again always cleans up
>> things:
>>
>> rm -rfv ~/Library/Caches/*
>> sudo rm -rfv /Library/Caches/*
>> sudo rm -rfv /System/Library/Caches/*
>> sudo rm -rfv /System/Library/Extensions.kextcache
>>
>> For the final three commands you have to be logged into the terminal
>> as an admin. Because I run with a standard account, not an admin
>> account, I must use:
>>
>> su adminaccountname
>>
>> and then enter the password for adminaccountname before doing the
>> sudo commands.
>>
>> Maybe the restarts are not necessary. But clearing the caches appears
>> to clean up problems when they arise, now and then.
>>
>
> I cleaned my caches using both Bob's and Michael's method, but Finder
> still associates .tex files with Script Editor.
>
> I deleted Script Editor and repeated deleting caches. Then Finder
> associated .tex files with TeXShop.
>
> I restored Script Editor from backup. Finder went back to associating
> .tex files with Script Editor again.
>
> I don't want to delete Script Editor permanently, in case I want to
> edit my scripts. I don't want to reinstall Tiger just to update Script
> Editor.
>
> Is there another way I can fix this problem? I seem to recall a
> utility that can edit the Finder file association preferences.
>
> Is it just a coincidence that Script Editor and Stuffit Expander have
> initials S.E.?
>


An update.

Some googling found this thread at macosxhints. It seems the problem  
is caused by something wrong with LaunchServices.

http://forums.macosxhints.com/showthread.php?t=3D39145

The application X-Ray solved my problem by doing what Get Info in the  
Finder could not. My .tex files are now correctly associated with  
TeXShop.

Alan




----------------------------------------------------------------------

Subject: TeXShop wishlist
From: "Richard Seguin" 
Date: Sun, 5 Jun 2005 20:21:28 -0500

When I'm using hyperref and click on a reference in the TeXShop PDF =20
viewer, the scroll bar positions change and the text is no longer =20
centered in the window. It would be nice if the scroll bar positions =20
were retained when navigating like this, because I like to view the =20
PDFs at 100% scale for readability, and I have to manually position =20
the scroll bars in order to do this.

Richard S=E9guin=

----------------------------------------------------------------------

Subject: Bounding Boxes for jpg Files
From: "Sam.Bradley" 
Date: Sun, 05 Jun 2005 21:24:18 -0400

I am using TeXShop 1.34 on Moc OS X 10.3.9.  Over the past 10 months, I hav=
e
been slowly migrating a autobiography from the PC world to the Mac OS X
world.  I have been able to migrate my document (including 100=B9s of graphic=
s
in .jpg format) without problem until today.  Today, as I entered my
=8Cstandard=B9 command for including a new graphic,

\begin{figure
    \begin{center}
        \includegraphics[width=3D\columnwidth]
        {../jpeg/Sam-Eileen-15Dec2001.JPG}\\
        \color{blue}\caption[15 December 2001 - Sam Jr. and Eileen]{15
December 2001 - Sam Jr. and Eileen immediately prior to graduation
ceremonies for Sam's Masters Degree}
        \index{Bradley!Samuel Edward, Jr.}
        \index{Anderson!Eileen}
    \end{center}
\end{figure}

I was told that TeXShop could not determine the size of the graphic due to =
a
lack of a bounding box.  In the PC world, I would have included a =8Cbb=3D0 0 x
y=B9 command immediately following the width command and the system would hav=
e
been happy.  TeXShop does not seem to like the bb command.

Any ideas on how to feed the bounding box information directly to TeXShop o=
r
how to embed the bounding box information in the .jpg file so that TeXShop
can find it?  Thanks.  Sam.....

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Sam E. Bradley, Jr.
Program Manager, CEEIS Configuration Management
US Army Corps of Engineers
Office: =A0601-634-3638
Mobile: =A0601-618-3638 =A0<=3D=3D New Number
Fax: =A0601-634-2301


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Bounding Boxes for jpg Files
From: "Herbert Schulz" 
Date: Sun, 5 Jun 2005 21:09:18 -0500


On Jun 5, 2005, at 8:24 PM, Sam.Bradley wrote:

> ...
> I was told that TeXShop could not determine the size of the graphic =20=

> due to a
> lack of a bounding box.  In the PC world, I would have included a =20
> =91bb=3D0 0 x
> y=92 command immediately following the width command and the system =20=

> would have
> been happy.  TeXShop does not seem to like the bb command.
> ...

Howdy,

According to the documentation for the graphicx package (I assume =20
that's what you're using) something like

bb =3D 0 0 x y

should work;  i.e., try to put a space before and after the `=3D' sign. =20=

Can't guarantee that will worl.

By the way, TeXShop is only acting as an interface between you, your =20
document and a standard TeX distribution so it isn't TeXShop that is =20
complaining; it's the underlying LaTeX processor.

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------

Subject: Re: [OS X TeX] TeXShop applescripts macros
From: "Cyril Borrelly" 
Date: Mon, 6 Jun 2005 12:49:35 +0200


Le 3 juin 05 =E0 23:56, Herbert Schulz a =E9crit :

>
> On Jun 3, 2005, at 9:16 AM, Cyril Borrelly wrote:
>
>
>> It seems Applescript Macros from Herb Schulz's contributions to =20
>> TeXShop are broken with TeXShop 2.03 and Tiger 10.4.1 : 'Find Next =20=

>> Tab' and 'Find Previous Tab' return an applescript error ; it was =20
>> working with TeXShop 1.35 and Panther 10.3.9.
>> And the link to www.uoregon.edu/~koch/texshop/Herb_Schulz/=20
>> CommandCompletion.sit
>> is boken on TeXShop site.
>>
>> Thanks in advance,
>>
>> Cyril Borrelly
>>
>>
>
> Howdy,
>
> I've had no problem with either of them in OS X 10.4.1 and TeXShop =20
> 2.03. I did have to change the keyboard shortcut for `Find Previous =20=

> Tab' so that it wouldn't interfere with calling up a dictionary =20
> lookup through the OS. Try to download a recent copy of =20
> CommandCompletion.zip (I've changed to .zip compression) at my =20
> download site, , and see if that =20
> makes a difference.
>
> Good Luck,
>
> Herb Schulz

I think it's a stupid error from mine, but when I test your 'Find =20
Next Tab' script, it gives an applescript error :
'The of parameter is specified more than once.'
reading the line :
...
   set searchOffset to (offset of selection of front document)
...
Is there a workaround ?

Anyway, thanks for your help,

Cyril Borrelly=

----------------------------------------------------------------------

Subject: Re: [OS X TeX] TeXShop applescripts macros
From: "Herbert Schulz" 
Date: Mon, 6 Jun 2005 07:33:57 -0500


On Jun 6, 2005, at 5:49 AM, Cyril Borrelly wrote:

>
> I think it's a stupid error from mine, but when I test your 'Find  
> Next Tab' script, it gives an applescript error :
> 'The of parameter is specified more than once.'
> reading the line :
> ...
>   set searchOffset to (offset of selection of front document)
> ...
> Is there a workaround ?
>
> Anyway, thanks for your help,
>
>

Howdy,

Would you please go into the Macro Editor, copy the complete macro  
and send a copy of it to me directly (see below for address). That is  
right near the beginning of the macro.

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------

Subject: Texshop & chapterbib
From: "Ingo Reich" 
Date: Mon, 06 Jun 2005 06:02:46 -0700

Hi,
I work on a larger project with several files included in a root file, =
each of which starts with the line "%!TEX root =3D ../root.tex" so that =
only the root file gets latexed. To put a short bibliography at the end of =
each included file, I furthermore make use of chapterbib.sty. Now my =
problem: To build the bibliography at the end of an included file, I need =
to bibtex the aux-file of the included file, but running bibtex on this =
file results in bibtexing the aux-file of the root-file. So it's a kind of =
 paradoxical situation: as for latex, I want texshop to go to the root =
file; as for bibtex, I don't want it to. Is there some elegant workaround =
(maybe via an applescript and/or a %!TEX-insensitive bibtex command)?
Thanks, Ingo

BTW: real scrolling doesn't seem to work anymore with texshop 2.03. Is =
this due to Tiger?

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Texshop & chapterbib
From: "Herbert Schulz" 
Date: Mon, 6 Jun 2005 08:08:31 -0500


On Jun 6, 2005, at 8:02 AM, Ingo Reich wrote:

> ...
> BTW: real scrolling doesn't seem to work anymore with texshop 2.03.  
> Is this due to Tiger?
> ...

Howdy,

I'm sorry for not having a solution to your principal problem but I'm  
curious about what you mean by the scrolling problem; could you  
describe it?

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------

Subject: Strange behavior of tabular / \hline
From: "Bernhard Barkow" 
Date: Mon, 6 Jun 2005 15:10:16 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I spent the last 2 hours trying to figure out how to properly include  
lines from an external file in a tabular environment:

This is a sample .tex file:
- ----
%!TEX TS-program =3D pdflatex
\documentclass{article}

\newcommand{\anentry}[1]{\hline #1 \tabularnewline}

\begin{document}

\begin{tabular}{|c|}
\hline
test \\
\hline
test \\
\input{testinp.tex}
\hline
\end{tabular}

\end{document}
- ----
and this is the input file (testinp.tex):
- ----
\anentry{test1}
\anentry{test2}
- ----

The problem is related to the \hline defined in \anentry; I end up  
with the error:

You can't use `\hrule' here except with leaders.
\hline ->\noalign {\ifnum 0=3D`}\fi \hrule
                                          \@height \arrayrulewidth  
\futurelet...

and in the table I get the word "height" instead of a line.
If I replace the \input{...} by the file's contents, it works, of  
course.
I also tried \tabularnewline from the array package instead of \\, no  
success.

(Just for completeness: the main goal is to generate a kind of .toc  
file with automatically generated entries to be displayed inside a  
tabular environment)

Does anyone have an idea how to do this right?

     Bernhard Barkow


____________________________________________________
_________________________________ Bernhard Barkow __
__                                                __
__ mail bb@creativeeyes.at __ www.creativeeyes.at __
__ Phone  +43 699 12660415 __ Fax   +43 1 8775334 __
___________________ gpg key ID _ A89F09C45921020D __

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCpEs8qJ8JxFkhAg0RAiH/AJ9bJNgOrHtCkwpmJNmr41PMni+YsgCg6Swt
qFEXSES6utjEI/JbdveWba8=3D
=3DbnXG
-----END PGP SIGNATURE-----

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Strange behavior of tabular / \hline
From: "Johan Almqvist" 
Date: Mon, 6 Jun 2005 15:37:50 +0200

A very simple workaround that may or may not work for you:



%!TEX TS-program =3D pdflatex
\documentclass{article}

\newcommand{\anentry}[1]{#1 \\
\hline
}

\begin{document}

\begin{tabular}{|c|}
\hline
test \\
\hline
test \\
\hline

\input{testinp.tex}


\end{tabular}

\end{document}
- ----
and this is the input file (testinp.tex):
- ----
\anentry{test1}
\anentry{test2}





On Jun 6, 2005, at 15:10, Bernhard Barkow wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I spent the last 2 hours trying to figure out how to properly  
> include lines from an external file in a tabular environment:
[...]
> The problem is related to the \hline defined in \anentry; I end up  
> with the error:
>
> You can't use `\hrule' here except with leaders.
> \hline ->\noalign {\ifnum 0=3D`}\fi \hrule
>                                          \@height \arrayrulewidth  
> \futurelet...
>
> and in the table I get the word "height" instead of a line.
> If I replace the \input{...} by the file's contents, it works, of  
> course.
> I also tried \tabularnewline from the array package instead of \\,  
> no success.
>
> (Just for completeness: the main goal is to generate a kind of .toc  
> file with automatically generated entries to be displayed inside a  
> tabular environment)
>
> Does anyone have an idea how to do this right?
>
>     Bernhard Barkow
>
>
> ____________________________________________________
> _________________________________ Bernhard Barkow __
> __                                                __
> __ mail bb@creativeeyes.at __ www.creativeeyes.at __
> __ Phone  +43 699 12660415 __ Fax   +43 1 8775334 __
> ___________________ gpg key ID _ A89F09C45921020D __
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
>
> iD8DBQFCpEs8qJ8JxFkhAg0RAiH/AJ9bJNgOrHtCkwpmJNmr41PMni+YsgCg6Swt
> qFEXSES6utjEI/JbdveWba8=3D
> =3DbnXG
> -----END PGP SIGNATURE-----
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: 
>
>
>

-- 
Johan Almqvist
johan@almqvist.net



----------------------------------------------------------------------

Subject: Re: [OS X TeX] Strange behavior of tabular / \hline
From: "Bernhard Barkow" 
Date: Mon, 6 Jun 2005 15:45:10 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 6. Jun 2005, at 15:37, Johan Almqvist wrote:
> A very simple workaround that may or may not work for you:
>
> %!TEX TS-program =3D pdflatex
> \documentclass{article}
>
> \newcommand{\anentry}[1]{#1 \\
> \hline
> }
>
> \begin{document}
>
> \begin{tabular}{|c|}
> \hline
> test \\
> \hline
> test \\
> \hline
>
> \input{testinp.tex}
>
>
> \end{tabular}
>
> \end{document}
> - ----
> and this is the input file (testinp.tex):
> - ----
> \anentry{test1}
> \anentry{test2}
>
>
>
>
>
> On Jun 6, 2005, at 15:10, Bernhard Barkow wrote:
>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> I spent the last 2 hours trying to figure out how to properly  
>> include lines from an external file in a tabular environment:
>>
> [...]
>
>> The problem is related to the \hline defined in \anentry; I end up  
>> with the error:
>>
>> You can't use `\hrule' here except with leaders.
>> \hline ->\noalign {\ifnum 0=3D`}\fi \hrule
>>                                          \@height \arrayrulewidth  
>> \futurelet...
>>
>> and in the table I get the word "height" instead of a line.
>> If I replace the \input{...} by the file's contents, it works, of  
>> course.
>> I also tried \tabularnewline from the array package instead of \\,  
>> no success.
>>
>> (Just for completeness: the main goal is to generate a kind  
>> of .toc file with automatically generated entries to be displayed  
>> inside a tabular environment)
>>
>> Does anyone have an idea how to do this right?
>>
>>

Thank you, but this doesn't work either. It produces the same  
results, just the other way round...

Bernhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCpFNqqJ8JxFkhAg0RArokAKDbgBXngcldAhWwr8bpTRchNeqhywCfXMko
vqvnTop6h1P2oJtSwFxOIkg=3D
=3DZmVh
-----END PGP SIGNATURE-----

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Texshop & chapterbib
From: "Ingo Reich" 
Date: Mon, 06 Jun 2005 07:18:47 -0700

...
BTW: real scrolling doesn't seem to work anymore with texshop 2.03. Is =
this due to Tiger?
...

% Howdy,
% 
% I'm sorry for not having a solution to your principal problem but I'm =
curious about what you mean by % the scrolling problem; could you describe =
it?

What I mean is, that I can jump to the next/previous page with the button =
"next/previous" or jump to the bottom/top of the page with "", but I =
can't scroll through a manypages document in one fell swoop by clicking =
(hold and move) on the blue scrolling bar which is located at the right =
side of each window (or using the scroll upwards/scroll downwards =
triangles located by default at the right lower corner of each window), =
though "not scrolling" is turned off in the preferences. 
Ingo

----------------------------------------------------------------------

Subject: scrolling
From: "Ingo Reich" 
Date: Mon, 06 Jun 2005 07:35:24 -0700

sorry, my fault ? I just had to select "multi pages" in the preferences. 

----------------------------------------------------------------------

Subject: iTeXMac
From: "Riboni Enrico" 
Date: Mon, 6 Jun 2005 17:01:40 +0200

For information:

I just saw on Macupdate that there is a new iTeXMac beta releaste,  
Tiger compatible, for those interested.

Enrico Riboni
www.ozone.ch/enrico/

----------------------------------------------------------------------

Subject: Re: [OS X TeX] iTeXMac
From: "Simon Spiegel" 
Date: Mon, 6 Jun 2005 17:12:19 +0200


On 06.06.2005, at 17:01, Riboni Enrico wrote:

> For information:
>
> I just saw on Macupdate that there is a new iTeXMac beta releaste, =20
> Tiger compatible, for those interested.
>

It's actually not Tiger compatible but requires Tiger. Just a =20
warning: The release not clearly state that this a beta and only =20
recommended for the brave ones. I did a little test and imported my =20
PhD project, I wasn't even able to typeset it. Don't know if the =20
problem was on my side or if my project is just too complex to have =20
it easily imported.

Anyway, good to see that ITM is also progressing, I'm very curious =20
about further developments.

simon

--
Simon Spiegel
Mutschellenstr. 97
8038 Z=FCrich

Telephon: ++41 43 535 81 71
Mobophon: ++41 76 459 60 39

http://www.simifilm.ch

"I have never been certain that the moral of the Icarus myth is, as =20
is generally accepted, 'don't fly too high', or whether it might also =20=

be thought of as: 'forget about the wax and feathers, and do a better =20=

job on the wings." Stanley Kubrick


----------------------------------------------------------------------

Subject: Re: [OS X TeX] iTeXMac
From: "Peter S. Burrage" 
Date: Mon, 6 Jun 2005 12:55:09 -0400

On Jun 6, 2005, at 11:12 AM, Simon Spiegel wrote:

> The release not clearly state that this a beta and only recommended  
> for the brave ones. I did a little test and imported my PhD  
> project, I wasn't even able to typeset it. Don't know if the  
> problem was on my side or if my project is just too complex to have  
> it easily imported.

I had a similar experience.  When I tried to open my (currently in  
progress) thesis files, iTexmac hung requiring a force quit.  I tried  
to make a new project and again it hung.  It could be a system- 
specific problem but this beta appears to have a few showstoppers in  
it.  I will definitely be keeping an eye on it's development however...

Pete

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Texshop & chapterbib
From: "Jonas Wellendorf" 
Date: Mon, 6 Jun 2005 20:21:22 +0200


P=E5 6. jun. 2005 kl. 15.02 skrev Ingo Reich:

> Hi,
> I work on a larger project with several files included in a root file,=20=

> each of which starts with the line "%!TEX root =3D ../root.tex" so =
that=20
> only the root file gets latexed. To put a short bibliography at the=20
> end of each included file, I furthermore make use of chapterbib.sty.=20=

> Now my problem: To build the bibliography at the end of an included=20
> file, I need to bibtex the aux-file of the included file, but running=20=

> bibtex on this file results in bibtexing the aux-file of the=20
> root-file. So it's a kind of  paradoxical situation: as for latex, I=20=

> want texshop to go to the root file; as for bibtex, I don't want it=20
> to. Is there some elegant workaround (maybe via an applescript and/or=20=

> a %!TEX-insensitive bibtex command)?
Hi,
I have encountered the same problem. My solution (which may not be=20
elegant) is to run bibtex directly on the included files from the=20
terminal.

Jonas


--=20
Jonas Wellendorf
Doctoral fellow
Centre for Medieval Studies
University of Bergen, Norway

E-mail: Jonas.Wellendorf@cms.uib.no
Phone: (+47) 55 58 80 93


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Texshop & chapterbib
From: "Claus Gerhardt" 
Date: Mon, 6 Jun 2005 21:31:15 +0200

 From chapterbib.sty

Claus

%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D BEGIN =
INSTRUCTIONS =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D


chapterbib.sty   Version 1.11 (29-FEB-2004) DA (allow \nocite check)
~~~~~~~~~~~~~~           1.10 (23-JUN-2003) DA (\bibsection  
\CBMainSectioning)
                           1.9  (19-SEP-2001) DA (sectionbib change;  
babel)
                           1.8  (29-APR-1999) DA (gather, duplicate,  
toc)
                           1.7  (21-JUL-1997) DA (sectionbib, \nocite)
                           1.6  (08-FEB-1997) Donald Arseneau (more  
sectionbib)
                           1.5  (09-OCT-1995) Donald Arseneau (rootbib)
                           1.4  (11-MAR-1995) Donald Arseneau  
(sectionbib)
                           1.3  (04-JUL-1994) Donald Arseneau (2e,  
cbunit)
                           1.2  (21-MAY-1993) Donald Arseneau (bug fix)
                           1.1  (24-MAR-1993) Donald Arseneau
                           1.0  (23-NOV-1988) Niel Kempson

Allow multiple bibliographies in a LaTeX document, including items
\cite'd in more than one bibliography.  Despite the name "chapterbib",
the BIBLIOGRAPHIES ARE FOR EACH INCLUDED FILE, not necessarily for each
chapter.  The main point is to allow you to use BibTeX: Each included
file should have its own \bibliographystyle and \bibliography commands,
and you should run BibTeX on each included file separately rather than
on the root file.

There are also the commands \begin{cbunit}, \end{cbunit}, and \cbinput
to allow multiple bibliographies without using \include (see item 4).
There are two added hooks, \citeform and \citepunct, to customise the
formatting of each entry in a citation list.

Usage, Restrictions, and Options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Normal use: Put \bibliographystyle and \bibliography commands in
     each \include'd file. Run LaTeX; run BibTeX on each included file;
     run LaTeX; run LaTeX.

2. If you get errors like "! LaTeX Error: Command \xxx already defined."
     then bibtex is foolishly putting "\newcommand" in each bbl  
file.  The
     fix is to put the \bibliography command in braces: {\bibliography 
{x}}.

3. The \bibliography and \bibliographystyle commands are not normally  
used
     in the root file, only in files that have been \include'd. To  
have a
     whole-document bibliography, see items 7-10, depending on which  
style of
     whole-document bib.

4. If you can't use \include because a new section must start below the
     preceding bibliography on the same page [odd format!], then you can
     use \begin{cbunit}...\end{cbunit} or \cbinput, with a  
{thebibliography}
     environment in each unit or input file.  To use BibTeX: input  
separate
     files using \cbinput; at first use the package or global option  
[draft],
     run LaTeX on the document, then BibTeX on each file that was  
\cbinput;
     finally, remove the [draft] option and run LaTeX again (maybe  
twice to
     get page references right).  The [draft] option only affects the  
treatment
     of \cbinput, not \include or \begin{cbunit}.
         With old LaTeX, do the preliminary run using \include  
commands, and
     change these to \cbinput for the final run(s).

5. Your preferred citation style (xxx.sty) may not work with  
chapterbib at
     first, but it is easy to make it compatible:  In `xxx.sty'  
change every
     "@\@citeb" to "@\@citeb\@extra@b@citeb", and insert the line
         \@ifundefined{@extra@b@citeb}{\def\@extra@b@citeb{}}{}
     somewhere (but not as a comment or as part of another definition!).
     If the package also redefines \bibcite then you should change that
     definition, replacing "@#1" with "@#1\@extra@binfo", and insert
         \gdef\@extra@binfo{}
     somewhere in the file.
     Some citation packages deviate quite far from LaTeX's own method of
     organizing cite tags using "b@\@citeb".  The instructions above  
catch
     such extensions as "Y@\@citeb", but not more radical differences.
     In such cases, try contacting the author of the citation package.
     If a citation style does not define "\nocite", then that command
     would not be converted when you make the patches to "@\@citeb".
     Chapterbib will try to detect the hook in "\nocite", but if this  
fails
     you may need to redefine "\nocite" (with any "@\@citeb" changed to
     "@\@citeb\@extra@b@citeb") in that sty file.

6. The report and book document classes usually treat the  
bibliography as
     an unnumbered chapter (\chapter*), which is not so good for  
bibliographies
     IN a chapter.  You can specify
         \usepackage[sectionbib]{chapterbib}
     to convert your bibliographies from \chapter* to \section*, with an
     entry in the table of contents and the page-header.  A  
bibliography in
     the root file remains as a \chapter*.  The [sectionbib] option  
modifies
     the existing thebibliography environment (or the \bibsection  
command, if
     present already), so the other formatting in the  bibliography  
should
     remain unchanged.  On the other hand, if you already have a non- 
standard
     bibliography defined, or if you want them numbered, it may be  
easier to
     redefine \thebibliography directly, without any trickery.
         Alternatively, you can use the \sectionbib command directly  
in the
     document preamble.  It takes two parameters: the sectioning  
command, and
     the name of the sectioning level.  For instance, the  
[sectionbib] option
     does \sectionbib{\section*}{section}. Again, for the most  
control, it is
     better to redefine \thebibliography entirely.

7. If you want a completely unrelated bibliography in the root file,  
perhaps
     for a general reading list, you can provide your own  
bibliography there
     using the thebibliography environment.  I don't suppose this  
will appeal
     to BibTeX users!

8. To have a cohesive bibliography for the whole document, plus  
individual
     bibs in the chapters, put \bibliography commands in the included  
chapters
     plus in the root file; use \usepackage[rootbib]{chapterbib}; run  
LaTeX;
     run BibTeX on the root file; change to \usepackage{chapterbib}; run
     LaTeX; run BibTeX on each included file; run LaTeX; run LaTeX.
     This produces an independent `overall' bibliography which only  
makes
     sense for various `named' bibliography styles; a style with  
numbering
     will give unrelated numbers in each bibliography.
         Actually, you probably don't *need* to ever run with [rootbib]
     because, although bibTeX should complain about multiple \bibdata
     commands, it should produce all the right bbl files -- but the root
     \bibliographystyle must come first in the document.

9. To have a bibliography-by-chapter at the end instead of separate bibs
     in the chapters, use \usepackage[gather]{chapterbib}, put  
\bibliography
     commands in each file, and at the end of the main file. Run  
LaTeX as
     in item 1. You can control the titling of the final bibliography by
     defining \StartFinalBibs.  The default definition is (like)

       \newcommand{\StartFinalBibs}{%
         \renewcommand{\bibname}{Bibliography for Chapter \thechapter}}

     normally, but when using the [sectionbib] option it becomes

       \newcommand{\StartFinalBibs}{%
         \chapter*{\bibname}\chaptermark{\bibname}%
         \renewcommand{\bibname}{Chapter \thechapter}}

     You should really provide your own definition.  If you are using  
the
     article document class and \section, then you MUST do so.

     If your document class has neither section nor chapter, then you  
must
     define \StartFinalBibs (of course) and also indicate the  
sectioning:
        \newcommand\CBMainSectioning{motif}
     if the main sectioning command is \motif, for example.

10. To have bibliographies in each chapter PLUS a bibliography-by- 
chapter at
     the end, follow item 9, but declare \usepackage[duplicate] 
{chapterbib}
     (or \usepackage[duplicate,sectionbib]{chapterbib}).

11. If you use Babel, load chapterbib before babel.

\citeform and \citepunct:
~~~~~~~~~~~~~~~~~~~~~~~~~
Normally, the citations are formatted as given, but you can define  
\citeform
(with one parameter) to reformat every citation.  Some possibilities:
   \renewcommand\citeform[1]{\romannumeral 0#1}% roman numerals:  [iv,x]
   \renewcommand\citeform[1]{(#1)}             % parentheses:  [(3), 
(4),(7)]
   \renewcommand\citeform[1]{\thechapter.#1}   % number by chapter:   
[3.9,3.10]
If you change \citeform, you should define \@biblabel to match.
\citepunct gives the punctuation (comma-penalty-space) between items.

%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D END =
INSTRUCTIONS =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On Jun 6, 2005, at 15:02, Ingo Reich wrote:

> Hi,
> I work on a larger project with several files included in a root  
> file, each of which starts with the line "%!TEX root =3D ../root.tex"  
> so that only the root file gets latexed. To put a short  
> bibliography at the end of each included file, I furthermore make  
> use of chapterbib.sty. Now my problem: To build the bibliography at  
> the end of an included file, I need to bibtex the aux-file of the  
> included file, but running bibtex on this file results in bibtexing  
> the aux-file of the root-file. So it's a kind of  paradoxical  
> situation: as for latex, I want texshop to go to the root file; as  
> for bibtex, I don't want it to. Is there some elegant workaround  
> (maybe via an applescript and/or a %!TEX-insensitive bibtex command)?
> Thanks, Ingo
>
> BTW: real scrolling doesn't seem to work anymore with texshop 2.03.  
> Is this due to Tiger?
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>            & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: 
>
>
>


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Bounding Boxes for jpg Files
From: "Maarten Sneep" 
Date: Mon, 6 Jun 2005 21:36:04 +0200

On 6 Jun 2005, at 3:24, Sam.Bradley wrote:

> I am using TeXShop 1.34 on Moc OS X 10.3.9.  Over the past 10 =20
> months, I have
> been slowly migrating a autobiography from the PC world to the Mac =20
> OS X
> world.  I have been able to migrate my document (including 100=92s of =20=

> graphics
> in .jpg format) without problem until today.  Today, as I entered my
> =91standard=92 command for including a new graphic,

just a little nitpicking here: the center environment will add =20
vertical space, which you may want when centring a portion of text =20
within normal justified text, but probably not for a figure. Use the =20
\centering declaration instead.

> \begin{figure
>     \begin{center}
>         \includegraphics[width=3D\columnwidth]
>         {../jpeg/Sam-Eileen-15Dec2001.JPG}\\
>         \color{blue}\caption[15 December 2001 - Sam Jr. and Eileen]{15
> December 2001 - Sam Jr. and Eileen immediately prior to graduation
> ceremonies for Sam's Masters Degree}
>         \index{Bradley!Samuel Edward, Jr.}
>         \index{Anderson!Eileen}
>     \end{center}
> \end{figure}
>
> I was told that TeXShop could not determine the size of the graphic =20=

> due to a
> lack of a bounding box.  In the PC world, I would have included a =20
> =91bb=3D0 0 x
> y=92 command immediately following the width command and the system =20=

> would have
> been happy.  TeXShop does not seem to like the bb command.

It is in the graphics bundle, so there's nothing for TeXShop to like...
>
> Any ideas on how to feed the bounding box information directly to =20
> TeXShop or
> how to embed the bounding box information in the .jpg file so that =20
> TeXShop
> can find it?  Thanks.  Sam.....

I think the jpg is missing resolution or size information, which may =20
upset latex (some division by zero or something). It shouldn't need =20
it, since the pixel count is there, but alas. I would use Graphic =20
Converter to set a resolution and see if that helps.

Maarten=

----------------------------------------------------------------------
End of MacOSX-TeX Digest

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: