From tomfool at as220.org Fri May 1 04:11:09 2009 From: tomfool at as220.org (tom sgouros) Date: Thu, 30 Apr 2009 22:11:09 -0400 Subject: [texhax] penalties In-Reply-To: <233057093.1234041241128220326.JavaMail.root@sz0069a.emeryville.ca.mail.comcast.net> References: <233057093.1234041241128220326.JavaMail.root@sz0069a.emeryville.ca.mail.comcast.net> Message-ID: <6377.1241143869@as220.org> Thank you, those are helpful hints. But still, I have a couple of paragraphs I can't reword, and some text sticking stubbornly out into the right margin. Not only don't I know what to do, I can't get *any* of the parameters I read about (\tolerance, \hyphenpenalty, etc) to affect the offending paragraph. Can they not be applied this way? Thanks, -tom pierre.mackay at comcast.net wrote: >> ----- Original Message ----- >> From: "Tom Sgouros" >> To: texhax at tug.org >> Sent: Thursday, April 30, 2009 2:49:56 PM GMT -05:00 US/Canada Eastern >> Subject: [texhax] penalties >> >> Hi All: >> >> I've never really had to mess with penalties in all the time I've used >> TeX, but now I have to, and I don't really get how to go about it. I >> have a long document (~150 pages), and there are only about four places >> where the line-breaking isn't working right. But in those places, I >> don't really know what to do. The FAQ suggests changing some penalties, >> but the other 500 paragraphs look fine, and I don't want to make global >> changes. I thought I could do this: >> >> {\hyphenpenalty5000 Text of offending paragraph.} >> > Too sophisticated. I usually \hbox{the last two or three words,} > of the paragraph. I do that throughout the article, to avoid clubs. > >> But that seems to have no effect, whatever I set the value to. The FAQ >> also suggests appending "\looseness=-1" to the last word of the >> paragraph > > \looseness is a great tool for page balancing, but it goes at the start of > the paragraph > you are loosening. I always put it after anything else, but before > \noindent. > If it doesn't work, that means that the linebreaking has not found any > workable > values. I hunt for last lines that almost fill the page as indications > that \looseness=1 will work > and use \looseness=1 on almost all paragraphs with short clubs. > > I don't see how I could do page balancing without it. > > Pierre MacKay -- ------------------------ tomfool at as220 dot org http://sgouros.com http://whatcheer.net From olegkat at gmail.com Fri May 1 05:26:33 2009 From: olegkat at gmail.com (Oleg Katsitadze) Date: Fri, 1 May 2009 06:26:33 +0300 Subject: [texhax] penalties In-Reply-To: <12601.1241117396@as220.org> References: <12601.1241117396@as220.org> Message-ID: <20090501032633.GA21522@thor> On Thu, Apr 30, 2009 at 02:49:56PM -0400, Tom Sgouros wrote: > {\hyphenpenalty5000 Text of offending paragraph.} > > But that seems to have no effect, whatever I set the value to. Those settings are applied to a paragraph. In your case, the new settings are reverted to their original values at the end of the group, before the paragraph ends. So you should end the paragraph while the new settings are still in effect: {\hyphenpenalty5000 Text of offending paragraph.\par} or just {\hyphenpenalty5000 Text of offending paragraph. } Best, Oleg From stefan.bjork at gmail.com Fri May 1 05:42:03 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Fri, 1 May 2009 05:42:03 +0200 Subject: [texhax] Repeating an environment In-Reply-To: <49F7FE83.5000503@FU-Berlin.DE> References: <200904281901.n3SJ1T1a020167@bilbo.localnet> <49F7FE83.5000503@FU-Berlin.DE> Message-ID: 2009/4/29 Herbert Voss : > \documentclass{article} > \usepackage{multido} > \newsavebox\TBox > \newcommand*\RepeatN{} > \newenvironment{Repeat}[1][1] > ?{\renewcommand*\RepeatN{#1}% > ? \begin{lrbox}{\TBox} > ? \begin{minipage}{\linewidth}} > ?{\end{minipage}\end{lrbox}% > ? \multido{\iA=0+1}{\RepeatN}{\usebox\TBox\endgraf}} > \begin{document} Thanks -- but this is still not really what I'm looking for, since -- as far as I know -- minipages can not span pages? What I am looking for is a functionality similar to the standard letter class. The purpose is to create an exam (which spans some 15--20 pages) in several copies with a unique code (counter) on each copy. However, I have solved this with a little perl program that creates multiple copies of the source TeX file, compiles them and sends them to the printer. I found that this approach is a major advantage over a huge PDF, since separate print jobs makes it possible to use the automatic stapling functions of the printer. Saves a lot of work! Anyway, thank you for all suggestions! /S From tomfool at as220.org Fri May 1 05:50:59 2009 From: tomfool at as220.org (tom sgouros) Date: Thu, 30 Apr 2009 23:50:59 -0400 Subject: [texhax] penalties In-Reply-To: <20090501032633.GA21522@thor> References: <12601.1241117396@as220.org> <20090501032633.GA21522@thor> Message-ID: <10292.1241149859@as220.org> Aha! Thank you very much. -tom Oleg Katsitadze wrote: > On Thu, Apr 30, 2009 at 02:49:56PM -0400, Tom Sgouros wrote: > > {\hyphenpenalty5000 Text of offending paragraph.} > > > > But that seems to have no effect, whatever I set the value to. > > Those settings are applied to a paragraph. In your case, the new > settings are reverted to their original values at the end of the > group, before the paragraph ends. So you should end the paragraph > while the new settings are still in effect: > > {\hyphenpenalty5000 Text of offending paragraph.\par} > > or just > > {\hyphenpenalty5000 Text of offending paragraph. > > } > > Best, > Oleg > -- ------------------------ tomfool at as220 dot org http://sgouros.com http://whatcheer.net From news3 at nililand.de Fri May 1 10:55:44 2009 From: news3 at nililand.de (Ulrike Fischer) Date: Fri, 1 May 2009 10:55:44 +0200 Subject: [texhax] Repeating an environment References: <200904281901.n3SJ1T1a020167@bilbo.localnet> <49F7FE83.5000503@FU-Berlin.DE> Message-ID: <1gxkyk7gmf57.dlg@nililand.de> Am Fri, 1 May 2009 05:42:03 +0200 schrieb Stefan Bj?rk: > Thanks -- but this is still not really what I'm looking for, since -- > as far as I know -- minipages can not span pages? What I am looking > for is a functionality similar to the standard letter class. The > purpose is to create an exam (which spans some 15--20 pages) in > several copies with a unique code (counter) on each copy. Put the text for the exam in a file and use a loop (e.g. \whiledo from the ifthen package) to \input the file many times. -- Ulrike Fischer From uwe.lueck at web.de Fri May 1 13:01:17 2009 From: uwe.lueck at web.de (Uwe =?iso-8859-1?Q?L=FCck?=) Date: Fri, 01 May 2009 13:01:17 +0200 Subject: [texhax] European quotation marks In-Reply-To: <49DF6EBD.6060108@Rhul.Ac.Uk> References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <87ab6omqqc.fsf@gmail.com> Message-ID: <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de> At 18:07 10.04.09, Philip TAYLOR (Ret'd) wrote: >Just a suggestion (and not necessary), but why not give the glyphs their >correct name ? They are guillemets (glyphs), not guillemots (birds) ! ** Phil. According to en.wikipedia.org/wiki/Guillemets, Adobe Systems Inc. confesses to have initiated this mistake in the world of computer typesetting. An edit of April 11 has removed the speculation that it is too late to undo the mistake concerning compatibility, as it is so widely spreaded now. I suspected german.sty had brought it into TeX, it has `guillemot' as part of control sequences. The documentation, however, says `guillemets'. Inspector Taylor, would you please arrest Bernd Raichle and hear him? On the other hand, the German Wikipeda names "M?wchen" ("little seagulls") as a synonym in typography. I guess this is because they rather look like $\prec$ than like $<$, and rotating $\prec$ leftwards looks like the way of representing one of countless birds in the sky on simple drawings (as in comics). So my impression is that the "seabirds" thing is not so wrong. Note as well that they are also called "G?nsef??chen" (little goose feet) in German. Rather, the epistemology of "guillemets" according to Wikipedia has much of an "origin myth" in my view. It is attributed to a printer and punchcutter *Guillaume le B?*, 1525--1598, while the first known guillemets date from 1527. The German Wikipedia says that according to a handbook on French indeed some "Guilleaume" used guillemets in 1527 (mastery giftedness often becomes apparent in childhood already). According to the French Wikipedia, that "Guillaume" florished in the 17th century. The German Wikipedia continues speculating that the term "guillemet" developped from something like "Guillaume ma?tre" or "Guillaume mett..." ... (The German article on Guillaume le B? instead says that "Guillaume" means "Little William".) Cheers! ("Pr?sterchen") Uwe. From uwe.lueck at web.de Fri May 1 14:26:49 2009 From: uwe.lueck at web.de (Uwe =?iso-8859-1?Q?L=FCck?=) Date: Fri, 01 May 2009 14:26:49 +0200 Subject: [texhax] European quotation marks (quiz time) Message-ID: <5.1.0.14.0.20090501141755.02a91500@pop3.web.de> >Date: Fri, 01 May 2009 13:01:17 +0200 >From: Uwe L?ck >At 18:07 10.04.09, Philip TAYLOR (Ret'd) wrote: >>Just a suggestion (and not necessary), but why not give the glyphs their >>correct name ? They are guillemets (glyphs), not guillemots (birds) ! ** Phil. > >According to en.wikipedia.org/wiki/Guillemets, Adobe Systems Inc. >confesses to have initiated this mistake in the world of computer >typesetting. An edit of April 11 has removed the speculation that it is >too late to undo the mistake concerning compatibility, as it is so widely >spreaded now. "spreaded" hurts, sorry. In the upshot of the evidence I collected, the correct term is "guillemotets" for "little birds of a species belonging to Uria or Cepphus (en.wikipedia.org/wiki/Guillemot) ... Cheers;-) Uwe. >On the other hand, the German Wikipeda names "M?wchen" ("little seagulls") >as a synonym in typography. I guess this is because they rather look like >$\prec$ than like $<$, and rotating $\prec$ leftwards looks like the way >of representing one of countless birds in the sky on simple drawings (as >in comics). > >So my impression is that the "seabirds" thing is not so wrong. Note as >well that they are also called "G?nsef??chen" (little goose feet) in German. > >Rather, the epistemology of "guillemets" according to Wikipedia has much >of an "origin myth" in my view. It is attributed to a printer and >punchcutter *Guillaume le B?*, 1525--1598, while the first known >guillemets date from 1527. The German Wikipedia says that according to a >handbook on French indeed some "Guilleaume" used guillemets in 1527 >(mastery giftedness often becomes apparent in childhood already). >According to the French Wikipedia, that "Guillaume" florished in the 17th >century. The German Wikipedia continues speculating that the term >"guillemet" developped from something like "Guillaume ma?tre" or >"Guillaume mett..." ... (The German article on Guillaume le B? instead >says that "Guillaume" means "Little William".) From reddvinylene at gmail.com Fri May 1 10:46:49 2009 From: reddvinylene at gmail.com (Redd Vinylene) Date: Fri, 1 May 2009 10:46:49 +0200 Subject: [texhax] Writing business plans Message-ID: Hi, I'm all new to LaTeX. But I'm sick of wasting my time in WYSIWYG editors trying to get the layout "just right". Can someone help me do something like thisin LaTeX? I'd have to import an EPS for the front page. Perhaps do a couple of tables as well. Many thanks! -- http://www.home.no/reddvinylene -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090501/507c8c3e/attachment.html From axel.retif at mac.com Sat May 2 07:12:31 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Sat, 02 May 2009 00:12:31 -0500 Subject: [texhax] Writing business plans In-Reply-To: References: Message-ID: <43FB4859-E082-4AE9-B409-EF36EFB0A23B@mac.com> On 1 May, 2009, at 03:46, Redd Vinylene wrote: > Hi, > > I'm all new to LaTeX. But I'm sick of wasting my time in WYSIWYG > editors trying to get the layout "just right". > > Can someone help me do something like this in LaTeX? I'd have to > import an EPS for the front page. Perhaps do a couple of tables as > well. See the lshort PDF in http://ctan.tug.org/tex-archive/info/lshort/english/ Maybe you already have it. Try texdoc lshort in your terminal or Command Prompt. Also see the tutorial by TUG India: http://www.tug.org.in/tutorial/ Best, Axel From brock at llamakc.org Sat May 2 06:21:50 2009 From: brock at llamakc.org (bcr) Date: Fri, 1 May 2009 23:21:50 -0500 (CDT) Subject: [texhax] Writing business plans In-Reply-To: References: Message-ID: What LaTeX will make will be much nicer than this. These look like they might have been made with an openoffice business template, which can easily be installed with an add-on. For writing business letters, I use LaTeX's "letter" class. On Fri, 1 May 2009, Redd Vinylene wrote: > Hi, > > I'm all new to LaTeX. But I'm sick of wasting my time in WYSIWYG editors > trying to get the layout "just right". > > Can someone help me do?something like this in LaTeX? I'd have to import an > EPS for the front page. Perhaps do a couple of tables as well. > > Many thanks! > > -- > http://www.home.no/reddvinylene > > -------------- next part -------------- _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From sharon_baker at asu.edu Sun May 3 01:01:37 2009 From: sharon_baker at asu.edu (Sharon Baker) Date: Sat, 2 May 2009 16:01:37 -0700 Subject: [texhax] ASU Thesis/Dissertation Style File In-Reply-To: <39BF1F21-9A26-4C50-884E-A2A1311D5F13@asu.edu> References: <39BF1F21-9A26-4C50-884E-A2A1311D5F13@asu.edu> Message-ID: Hello everyone! I just wanted to inform everyone that with the help of Peter Wilson, and his creation of the pwasu.sty file, I have passed my final format approval for my thesis!! I would also like to thank Yuri Robbers and Tom Sgouros for their help with the last few formatting changes I needed. If anyone is interested in using the style file for their ASU Thesis/ Dissertation, please contact me. I will likely be unsubscribing to this list for now. Thank you all again for your attention and your help! Sharon On Apr 3, 2009, at 7:38 PM, Sharon Baker wrote: > Hi guys, > > I'm completing my thesis for a Masters at ASU (Arizona State > University) and I'm using LaTeX. I am using an old style file > asthesis.sty that John Jones wrote in 1998. The version I have is > April 2001 (version 1.11). > > Unfortunately, some ignoramus at ASU posted the following (below) > in May of 2005 so I haven't heard of anyone updating that style > file since. ASU's complete ignorance about LaTeX baffles me, > though. Anyway, I'm obviously ignoring them hoping I can get the > format correct and not have to use crappy WORD!! So if anyone has > a recent version of this style file (that will follow the latest > Format Manual from ASU), I'd love it if you shared it :D But if no > one replies, I will have to send requests to texhax for help to fix > format errors the graduate college will whine about. > > -------------------- > Due to continued formatting errors associated with the style-file > LaTeX, the Format Advising Service does not recommend that students > continue to use it as a style guide. > > LaTeX, developed by a former ASU student, is available only on his > personal website and is based on an outdated version of the Format > Manual. The format of theses and dissertations has changed since > its development, and LaTeX no longer meets the basic requirements > of a recommended style guide. The check-box option for LaTeX has > been removed from the Format Approval Sheet, and students are > encouraged to use other style guides such as APA, MLA, Chicago, > Turabian, or a field-specific journal article. > -------------------- > > Thanks so much! > > Sharon From tsc25 at cantab.net Sun May 3 10:04:33 2009 From: tsc25 at cantab.net (Toby Cubitt) Date: Sun, 03 May 2009 10:04:33 +0200 Subject: [texhax] ASU Thesis/Dissertation Style File In-Reply-To: References: <39BF1F21-9A26-4C50-884E-A2A1311D5F13@asu.edu> Message-ID: <49FD5011.5020500@dr-qubit.org> Sharon Baker wrote: > If anyone is interested in using the style file for their ASU Thesis/ > Dissertation, please contact me. I will likely be unsubscribing to > this list for now. Given how much stress and hard work this seems to have taken, why not upload the style file to CTAN so others can easily find and make use of it? Even if it's still got some rough edges, it'll be a lot easier for the next ASU student to start from a style file that's passed the format approval once before. Toby From mosgowi at gmail.com Sun May 3 14:11:44 2009 From: mosgowi at gmail.com (Jan de Ruijter) Date: Sun, 03 May 2009 14:11:44 +0200 Subject: [texhax] ASU Thesis/Dissertation Style File In-Reply-To: <49FD5011.5020500@dr-qubit.org> References: <39BF1F21-9A26-4C50-884E-A2A1311D5F13@asu.edu> <49FD5011.5020500@dr-qubit.org> Message-ID: <49FD8A00.3080807@gmail.com> I agree wth this. I hope you upload the file and tell us where we can find it. thanks in advance, Sharon! Best regards, Jan de Ruijter Toby Cubitt wrote: > Sharon Baker wrote: > >> If anyone is interested in using the style file for their ASU Thesis/ >> Dissertation, please contact me. I will likely be unsubscribing to >> this list for now. >> > > Given how much stress and hard work this seems to have taken, why not > upload the style file to CTAN so others can easily find and make use of it? > > Even if it's still got some rough edges, it'll be a lot easier for the > next ASU student to start from a style file that's passed the format > approval once before. > > Toby > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > > From samanarayan at gmail.com Sun May 3 14:53:31 2009 From: samanarayan at gmail.com (narayana sarma) Date: Sun, 3 May 2009 18:23:31 +0530 Subject: [texhax] fontspec.pdf at CTAN does not contain code!! Message-ID: <8d9534d30905030553i54bccc26t261d8f4ad164957b@mail.gmail.com> Dear sir, The file fontspec.pdf (manual by Robertson 2008/08/09 v1.18 does not show the required code- the actual instruction to input- to typeset the examples. Without this, as you see,the purpose of the manual is not served. Shall be extremely obliged if you can re-typeset the output, to display the instructions aswell? thanks, regards, Narayana Sarma From sharon_baker at asu.edu Mon May 4 00:09:09 2009 From: sharon_baker at asu.edu (Sharon Baker) Date: Sun, 3 May 2009 15:09:09 -0700 Subject: [texhax] ASU Thesis/Dissertation Style File In-Reply-To: <49FD8A00.3080807@gmail.com> References: <39BF1F21-9A26-4C50-884E-A2A1311D5F13@asu.edu> <49FD5011.5020500@dr-qubit.org> <49FD8A00.3080807@gmail.com> Message-ID: Hi All, Good suggestion. Robert Haener actually sent me an email requesting the file so he could post it to the CTAN site. Before he suggested that, I didn't know that was something I could do. So I gave him the file and he will be doing this. :) Sharon On May 3, 2009, at 5:11 AM, Jan de Ruijter wrote: > I agree wth this. > I hope you upload the file and tell us where we can find it. > thanks in advance, Sharon! > > Best regards, > > Jan de Ruijter > > Toby Cubitt wrote: >> Sharon Baker wrote: >> >>> If anyone is interested in using the style file for their ASU >>> Thesis/ Dissertation, please contact me. I will likely be >>> unsubscribing to this list for now. >>> >> >> Given how much stress and hard work this seems to have taken, why not >> upload the style file to CTAN so others can easily find and make >> use of it? >> >> Even if it's still got some rough edges, it'll be a lot easier for >> the >> next ASU student to start from a style file that's passed the format >> approval once before. >> >> Toby >> _______________________________________________ >> TeX FAQ: http://www.tex.ac.uk/faq >> Mailing list archives: http://tug.org/pipermail/texhax/ >> More links: http://tug.org/begin.html >> >> Automated subscription management: http://tug.org/mailman/listinfo/ >> texhax >> Human mailing list managers: postmaster at tug.org >> >> From axel.retif at mac.com Mon May 4 00:49:38 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Sun, 03 May 2009 17:49:38 -0500 Subject: [texhax] fontspec.pdf at CTAN does not contain code!! In-Reply-To: <8d9534d30905030553i54bccc26t261d8f4ad164957b@mail.gmail.com> References: <8d9534d30905030553i54bccc26t261d8f4ad164957b@mail.gmail.com> Message-ID: On 3 May, 2009, at 07:53, narayana sarma wrote: > Dear sir, > > The file fontspec.pdf (manual by Robertson 2008/08/09 v1.18 does not > show the required code- the actual instruction to input- to typeset > the examples. Sorry, but what do you mean by it ``does not show the required code''? Every example has its code side by side! Maybe it's something else you want? Best, Axel From axel.retif at mac.com Mon May 4 09:04:11 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Mon, 04 May 2009 02:04:11 -0500 Subject: [texhax] fontspec.pdf at CTAN does not contain code!! In-Reply-To: <8d9534d30905032141x6148b84dqe463bdbe13a20656@mail.gmail.com> References: <8d9534d30905030553i54bccc26t261d8f4ad164957b@mail.gmail.com> <8d9534d30905032141x6148b84dqe463bdbe13a20656@mail.gmail.com> Message-ID: <29D0DEE5-F948-4B31-B28F-1C98E75BAE70@mac.com> On 3 May, 2009, at 23:41, narayana sarma wrote: > On Mon, May 4, 2009 at 4:19 AM, Axel E. Retif > wrote: >> On 3 May, 2009, at 07:53, narayana sarma wrote: >> >>> Dear sir, >>> >>> The file fontspec.pdf (manual by Robertson 2008/08/09 v1.18 does not >>> show the required code- the actual instruction to input- to typeset >>> the examples. >> >> Sorry, but what do you mean by it ``does not show the required >> code''? Every >> example has its code side by side! >> >> Maybe it's something else you want? > > Hi, > > Sorry for not being clearer..Just see these few lines from > fontspec-pdf as an example: > > "....... Before fontspec, it was still necessary to write cumbersome > font definition files > for L TEX, since the NFSS had a lot more going on behind the scenes to > allow easy commands like or . ..." > > See the gaps? You have a corrupted PDF (see below the same paragraph from my PDF). What platform (OS) do you use? What application do you use to view the PDF? When was the last time you upgraded your TeX distribution? Best, Axel --------- From my fontspec.pdf: Before fontspec, it was still necessary to write cumbersome font de?nition ?les for LATEX, since the NFSS had a lot more going on behind the scenes to allow easy commands like \emph or \bfseries. From zbigniew.nitecki at tufts.edu Mon May 4 15:10:45 2009 From: zbigniew.nitecki at tufts.edu (Zbigniew Nitecki) Date: Mon, 4 May 2009 09:10:45 -0400 Subject: [texhax] vertical placement of symbols Message-ID: To create the symbol for composition of functions, I have the following code > \newcommand{\compose}{{\scriptstyle \circ}}% composition symbol > \newcommand{\comp}[2]{\ensuremath{#1\compose #2}}% composition by > function name This works fine, except that the circle is not vertically centered--- it is too low. How do I adjust it? Zbigniew Nitecki Department of Mathematics Tufts University Medford, MA 02155 telephones: Office (617)627-3843 Dept. (617)627-3234 Dept. fax (617)627-3966 http://www.tufts.edu/~znitecki/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090504/86262af2/attachment.html From raichle at Informatik.Uni-Stuttgart.DE Mon May 4 09:45:57 2009 From: raichle at Informatik.Uni-Stuttgart.DE (Bernd Raichle) Date: Mon, 4 May 2009 09:45:57 +0200 Subject: [texhax] European quotation marks In-Reply-To: <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de> References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de> Message-ID: <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de> Hi all, On Friday, 1 May 2009 13:01:17 +0200, Uwe Lueck writes: > At 18:07 10.04.09, Philip TAYLOR (Ret'd) wrote: > >Just a suggestion (and not necessary), but why not give the glyphs their > >correct name ? They are guillemets (glyphs), not guillemots (birds) ! ** Phil. [...] > I suspected german.sty had brought it into TeX, it has `guillemot' as part > of control sequences. The documentation, however, says `guillemets'. > Inspector Taylor, would you please arrest Bernd Raichle and hear him? The words "guillemotleft" etc. were introduced into "german.sty" with the first support for LaTeX2e and its "inputenc" mechanism. In 1994/5 I simply copied the names from the LaTeX2e files when introducing the appropriate definitions for "text symbols" used for the various double and single quote glyphs. Thus you have to arrest the responsible persons of the LaTeX2e team, Alan and Frank as authors of the first version of "inputenc" :-) Btw. is this prehistoric TeX archaeology? ;-} Best wishes, -bernd From uwe.lueck at web.de Mon May 4 16:29:02 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Mon, 04 May 2009 16:29:02 +0200 Subject: [texhax] vertical placement of symbols Message-ID: <1126618944@web.de> Zbigniew Nitecki schrieb am 04.05.2009 15:14:08: > To create the symbol for composition of functions, I have the > following code > > \newcommand{\compose}{{\scriptstyle \circ}}% composition symbol > \newcommand{\comp}[2]{\ensuremath{#1\compose #2}}% composition by > function name > > This works fine, except that the circle is not vertically centered--- > it is too low. How do I adjust it? Isn't it fine when you drop \compose and replace it by \circ? I even would not be willing to type `\comp{f}{g}' in place of `$f \circ g$' or, in equations, `f \circ g'. Or \let\comp\circ to see "what you mean" rather than "what you get". I guess not the vertical placement is bad, it is choosing \scriptstyle that chooses a font size too small between normal size symbols. -- Uwe. From fbe2 at comcast.net Mon May 4 17:38:40 2009 From: fbe2 at comcast.net (Beverley Eyre) Date: Mon, 04 May 2009 08:38:40 -0700 Subject: [texhax] European quotation marks In-Reply-To: <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de> References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de> <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de> Message-ID: <49FF0C00.6000401@comcast.net> `` ... as a first step, I would see to it that things are called by their right names." -- Confucius -Bev Bernd Raichle wrote: > Hi all, > > On Friday, 1 May 2009 13:01:17 +0200, > Uwe Lueck writes: > > At 18:07 10.04.09, Philip TAYLOR (Ret'd) wrote: > > >Just a suggestion (and not necessary), but why not give the glyphs their > > >correct name ? They are guillemets (glyphs), not guillemots (birds) ! ** Phil. > [...] > > I suspected german.sty had brought it into TeX, it has `guillemot' as part > > of control sequences. The documentation, however, says `guillemets'. > > Inspector Taylor, would you please arrest Bernd Raichle and hear him? > > The words "guillemotleft" etc. were introduced into "german.sty" with > the first support for LaTeX2e and its "inputenc" mechanism. In 1994/5 > I simply copied the names from the LaTeX2e files when introducing the > appropriate definitions for "text symbols" used for the various double > and single quote glyphs. Thus you have to arrest the responsible > persons of the LaTeX2e team, Alan and Frank as authors of the first > version of "inputenc" :-) > > Btw. is this prehistoric TeX archaeology? ;-} > > Best wishes, > -bernd > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > > From uwe.lueck at web.de Mon May 4 21:28:24 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Mon, 04 May 2009 21:28:24 +0200 Subject: [texhax] vertical placement of symbols Message-ID: <1126798198@web.de> [left the list] Zbigniew Nitecki schrieb am 04.05.2009 16:35:15: > Yes, but \circ alone gives a circle that is really too big. If so, $f \comp g$ with \newcommand{\comp}{\vcenter{$\scriptstyle\circ$}}. -- Uwe. > On May 4, 2009, at 10:29, Uwe Lueck wrote: > > Zbigniew Nitecki schrieb am 04.05.2009 > 15:14:08: > To create the symbol for composition of functions, I have the > following code > > \newcommand{\compose}{{\scriptstyle \circ}}% composition symbol > \newcommand{\comp}[2]{\ensuremath{#1\compose #2}}% composition by > function name > > This works fine, except that the circle is not vertically centered--- > it is too low. How do I adjust it? > > Isn't it fine when you drop \compose and replace it by \circ? > > I even would not be willing to type `\comp{f}{g}' in place of `$f \ > circ g$' or, in equations, `f \circ g'. Or \let\comp\circ to see " > what you mean" rather than "what you get". > > I guess not the vertical placement is bad, it is choosing \scriptstyle > that chooses a font size too small between normal size symbols. From rutski89 at gmail.com Mon May 4 23:20:26 2009 From: rutski89 at gmail.com (Patrick M. Rutkowski) Date: Mon, 4 May 2009 17:20:26 -0400 Subject: [texhax] Math mode \tenrm? Message-ID: How might this newbie go about fixing the font size error on line 4 of equation 1.iii? http://www.rutski89.com/static/math_font_size.pdf http://www.rutski89.com/static/math_font_size.tex It's rather glaring, you can't miss it. -Patrick P.S. Putting \tenrm within the $$ was attempted, without success. From ekmath at asianetindia.com Tue May 5 01:27:39 2009 From: ekmath at asianetindia.com (E. Krishnan) Date: Tue, 5 May 2009 04:57:39 +0530 (IST) Subject: [texhax] vertical placement of symbols In-Reply-To: References: Message-ID: On Mon, 4 May 2009, Zbigniew Nitecki wrote: > To create the symbol for composition of functions, I have the following code > >> \newcommand{\compose}{{\scriptstyle \circ}}% composition symbol >> \newcommand{\comp}[2]{\ensuremath{#1\compose #2}}% composition by function >> name > > This works fine, except that the circle is not vertically centered---it is > too low. How do I adjust it? There seems to be nothing wrong with the \emph{vertical} positioning of the \compose, but the \emph{horizontal} spacing between the operation and the operands not very correct, since \compose is not defined to be a binary operator. The modification \newcommand{\compose}{% \mathbin{\scriptstyle \circ}} should do the trick. -- Krishnan From axel.retif at mac.com Tue May 5 02:06:38 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Mon, 04 May 2009 19:06:38 -0500 Subject: [texhax] Math mode \tenrm? In-Reply-To: References: Message-ID: <370011B2-F637-4650-8E9B-79F2630CAB96@mac.com> On 4 May, 2009, at 16:20, Patrick M. Rutkowski wrote: > How might this newbie go about fixing the font size error on line 4 of > equation 1.iii? > http://www.rutski89.com/static/math_font_size.pdf > http://www.rutski89.com/static/math_font_size.tex Do you mean something like this \mbox{\fiverm see $\scriptscriptstyle{|a| = \sqrt{a^2}}$, top of page 12} ? See "TeX for the Impatient". If you have a recent TeX distribution, texdoc impatient in your terminal; otherwise, download book.pdf from http://www.tug.org/texlive/Contents/live/texmf-doc/doc/english/impatient/ Best, Axel From rutski89 at gmail.com Tue May 5 02:51:06 2009 From: rutski89 at gmail.com (Patrick M. Rutkowski) Date: Mon, 4 May 2009 20:51:06 -0400 Subject: [texhax] Math mode \tenrm? In-Reply-To: <370011B2-F637-4650-8E9B-79F2630CAB96@mac.com> References: <370011B2-F637-4650-8E9B-79F2630CAB96@mac.com> Message-ID: That works, thanks :-) I looked up the relevant section in the TeXbook, I didn't realize that choices for math mode font sizes were so limited; it's basically just \script and \scriptscript, if I understand correctly. -Patrick On Mon, May 4, 2009 at 8:06 PM, Axel E. Retif wrote: > On ?4 May, 2009, at 16:20, Patrick M. Rutkowski wrote: > >> How might this newbie go about fixing the font size error on line 4 of >> equation 1.iii? >> http://www.rutski89.com/static/math_font_size.pdf >> http://www.rutski89.com/static/math_font_size.tex > > Do you mean something like this > > \mbox{\fiverm see $\scriptscriptstyle{|a| = \sqrt{a^2}}$, top of page 12} > > ? > > See "TeX for the Impatient". If you have a recent TeX distribution, > > texdoc impatient > > in your terminal; otherwise, download book.pdf from > > http://www.tug.org/texlive/Contents/live/texmf-doc/doc/english/impatient/ > > > Best, > > Axel > > > From axel.retif at mac.com Tue May 5 03:57:09 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Mon, 04 May 2009 20:57:09 -0500 Subject: [texhax] Math mode \tenrm? In-Reply-To: References: <370011B2-F637-4650-8E9B-79F2630CAB96@mac.com> Message-ID: <65155BA0-3A2C-4BEB-A266-E35F8446BF91@mac.com> On 4 May, 2009, at 19:51, Patrick M. Rutkowski wrote: > That works, thanks :-) > > I looked up the relevant section in the TeXbook, I didn't realize that > choices for math mode font sizes were so limited; it's basically just > \script and \scriptscript, if I understand correctly. You have four choices: displaystyle, textstyle, scriptstyle and scriptscriptstyle (D, T, S and SS), as you can see in the TeXbook, p. 140, and TeX for the Impatient, p. 198. But, yes, for formulas you get dispalystyle and textstyle automatically when you use $$...$$ and $...$; on the other hand, S and SS for formulas you have to specify them. Best, Axel From peter.king at utoronto.ca Tue May 5 04:41:43 2009 From: peter.king at utoronto.ca (Peter King) Date: Mon, 4 May 2009 22:41:43 -0400 Subject: [texhax] GFS Porson polytonic keymap? Message-ID: <20090505024143.GC5040@amtoo.utoronto.ca> I just installed GFS Porson, which is a lovely Greek typeface, but the docs don't seem to say how to type in the accents/diacriticals/etc. Does anyone know where I can find out? No information about this on the GFS website either, as far as I can tell. I use plain TeX, so LaTeX package recommendations won't help. Thanks for any help! -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090504/d2b42e35/attachment.bin From philip.ratcliffe at email.it Tue May 5 09:59:21 2009 From: philip.ratcliffe at email.it (Philip G. Ratcliffe) Date: Tue, 5 May 2009 09:59:21 +0200 Subject: [texhax] Math mode tenrm? Message-ID: > > I looked up the relevant section in the TeXbook, I didn't > realize that > > choices for math mode font sizes were so limited; it's > basically just > > script and scriptscript, if I understand correctly. Yes, that is beyond the basic textstyle size. > You have four choices: displaystyle, textstyle, scriptstyle and > scriptscriptstyle (D, T, S and SS), as you can see in the > TeXbook, p. > 140, and TeX for the Impatient, p. 198. Careful though, displaystyle and textstyle do not necessarily imply different sizes, but different spacing. The size difference only occurs in subformulae, e.g. inside frac{}{}. You probably don't want to hear this, but it would all be much easier in LaTeX: instead of fiverm you might use footnotesize or tiny and get exactly what you want. Cheers, Phil -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f Sponsor: 250 Biglietti da Visita gratuiti + 1 elegante Porta biglietti metallico! Spese di spedizione escluse. Offerta limitata, fai in fretta! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8957&d=20090505 From c.a.rowley at open.ac.uk Tue May 5 10:05:54 2009 From: c.a.rowley at open.ac.uk (c.a.rowley at open.ac.uk) Date: Tue, 5 May 2009 09:05:54 +0100 Subject: [texhax] European quotation marks In-Reply-To: <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de> References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de>, <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de> Message-ID: Bernd, Phil, Yannis, Uncle Tom Cobbley ... Please get your history right! The ornithological heresy came from Adobe's 'official PostScript names' for these glyphs. So go tell that to the birds. Team LaTeX is, as in all matters, totally guilt-free and irresponsible. chris > I suspected german.sty had brought it into TeX, it has `guillemot' as part > of control sequences. The documentation, however, says `guillemets'. > Inspector Taylor, would you please arrest Bernd Raichle and hear him? The words "guillemotleft" etc. were introduced into "german.sty" with the first support for LaTeX2e and its "inputenc" mechanism. ?In 1994/5 I simply copied the names from the LaTeX2e files when introducing the appropriate definitions for "text symbols" used for the various double and single quote glyphs. ?Thus you have to arrest the responsible persons of the LaTeX2e team, Alan and Frank as authors of the first version of "inputenc" :-) Btw. is this prehistoric TeX archaeology? ;-} Best wishes, -bernd --------------------------------------------------------------------------- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302) From signups2 at norvelle.org Tue May 5 13:37:26 2009 From: signups2 at norvelle.org (Erik Norvelle) Date: Tue, 5 May 2009 13:37:26 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090505024143.GC5040@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> Message-ID: <213DE41F-075F-4F63-AE00-CE1C17A1E7BC@norvelle.org> Greetings Peter, I type in polytonic Greek by using the GreekKeys Unicode keymapping for OS X. GreekKeys is available here: http://apagreekkeys.org/AboutGKU.html ... I believe that the 2008 version also is available for Windows. My .tex files, therefore, are in Unicode (UTF-8) encoding. I use the XeLaTeX engine for typesetting, in order to take advantage of the LaTeX extensions, but the plain-vanilla XeTeX (available at http://www.tug.org/xetex/ , for OS X and with a port to Windows) should provide you with a way to directly process UTF-8 encoded TeX files. As a result, my .tex files include Unicode polytonic Greek characters directly, which I type in using the GreekKeys keyboard configuration; Porson gets used as the output font, which I select using the Fontspec package (available only under XeTeX, alas). I've attached a sample .tex file and the corresponding PDF output, so you can see how I set things up. Cheers, Erik Norvelle -------------- next part -------------- A non-text attachment was scrubbed... Name: motion.pdf Type: application/pdf Size: 141958 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090505/c44af4bf/attachment-0001.pdf -------------- next part -------------- A non-text attachment was scrubbed... Name: motion.tex Type: application/octet-stream Size: 84064 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090505/c44af4bf/attachment-0001.obj -------------- next part -------------- On May 5, 2009, at 4:41 AM, Peter King wrote: > I just installed GFS Porson, which is a lovely Greek typeface, but > the docs > don't seem to say how to type in the accents/diacriticals/etc. Does > anyone > know where I can find out? No information about this on the GFS > website either, > as far as I can tell. > > I use plain TeX, so LaTeX package recommendations won't help. > > Thanks for any help! > > -- > Peter King peter.king at utoronto.ca > Department of Philosophy > 170 St. George Street #521 > The University of Toronto (416)-978-4951 ofc > Toronto, ON M5R 2M8 > CANADA > > http://individual.utoronto.ca/pking/ > > = > = > = > ====================================================================== > GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 > EC42) > gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org From vafak9 at gmail.com Tue May 5 09:03:55 2009 From: vafak9 at gmail.com (Vafa Khalighi) Date: Tue, 5 May 2009 17:03:55 +1000 Subject: [texhax] Reversing rows in array package Message-ID: <7ac5ed450905050003n39dd6f0dsaa1eb293a03d03d5@mail.gmail.com> In array package the rows in tabular environment is always typeset from left to right even if you enable some bidi macros. Does any one know how can I reverse rows in the tabular environments in array package so that rows are actually typeset from right to left instead being typeset from left to right. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090505/582bcbc6/attachment.html From stefan.bjork at gmail.com Tue May 5 16:16:27 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Tue, 5 May 2009 16:16:27 +0200 Subject: [texhax] \usebox in environment to save text for future use Message-ID: I expect the following code to define the \mybox within the environment info for later use, but it does not work. The use of lrbox environment seem restricted to the info environment only. How to get around this? \documentclass{article} \newsavebox{\mybox} \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} \begin{document} \begin{info} This is some text. \end{info} \usebox{\mybox} \end{document} /S From uwe.lueck at web.de Tue May 5 16:17:45 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Tue, 05 May 2009 16:17:45 +0200 Subject: [texhax] vertical placement of symbols Message-ID: <1127373515@web.de> Zbigniew Nitecki schrieb am 05.05.2009 15:15:41: > What you suggested seems exactly what I was looking for, but it is a > disaster. ok, sorry, it must be \vcenter{\hbox{$\scriptstyle\circ$}} (now tested), or \mathbin{\vcenter{\hbox{$\scriptstyle\circ$}}} after Krishnan, or a compromise suggestion of mine: \mathinner{\vcenter{\hbox{$\scriptstyle\circ$}}. The inside-\v... error is a matter where I need help myself. Whenever I try to understand this, I think to learn that the width of a \v... is the maximum width of what is inside, but actually the width so often is the outer \hsize. It seems that the latter happens at entering hmode. The \hbox avoids entering hmode. If you replace \hbox by \mbox, you have the same problem as before. I wonder about \mathbin. I would agree when the subject is a group of transformations, but it would be misleading with f o g(x) = ... The latter could be improved to (f o g)(x), but you may have an audience that knows mathematics as a tool for its own science only and won't understand the notation easily. Once I knew this matter (of style in this case), I have forgotten it. But I think sometimes it is against conventions to set binary operations as \mathbin. Somewhat obvious: 1/2, 1/3 etc. About the same with a backslaśh: I think when I saw \setminus the first time, I thought it was wrong, I thought there usually is no space around the set difference backslash. Or it is more usual to typeset it as \mathinner, i.e., with \, space instead of \,\, (= \:). ? -- Do you avoid "reply to all" deliberately? -- Uwe. > Someone else suggested using \mathbin, which doesn't affect vertical > spacing, but does adjust horizontal spacing, although as the attached > shows, it seems to make relatively little difference. > I enclose source and output. > > On May 4, 2009, at 11:00, Uwe Lueck wrote: > > Zbigniew Nitecki schrieb am 04.05.2009 > 16:35:15: > Yes, but \circ alone gives a circle that is really too big. > > If so, $f \comp g$ with \newcommand{\comp}{\vcenter{$\scriptstyle\ > circ$}}. > -- Uwe. > > On May 4, 2009, at 10:29, Uwe Lueck wrote: > > Zbigniew Nitecki schrieb am 04.05.2009 > 15:14:08: > To create the symbol for composition of functions, I have the > following code > > \newcommand{\compose}{{\scriptstyle \circ}}% composition symbol > \newcommand{\comp}[2]{\ensuremath{#1\compose #2}}% composition by > function name > > This works fine, except that the circle is not vertically centered--- > it is too low. How do I adjust it? > > Isn't it fine when you drop \compose and replace it by \circ? > > I even would not be willing to type `\comp{f}{g}' in place of `$f \ > circ g$' or, in equations, `f \circ g'. Or \let\comp\circ to see " > what you mean" rather than "what you get". > > I guess not the vertical placement is bad, it is choosing \scriptstyle > > that chooses a font size too small between normal size symbols. > > > From signups2 at norvelle.org Tue May 5 16:28:10 2009 From: signups2 at norvelle.org (Erik Norvelle) Date: Tue, 5 May 2009 16:28:10 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <213DE41F-075F-4F63-AE00-CE1C17A1E7BC@norvelle.org> References: <20090505024143.GC5040@amtoo.utoronto.ca> <213DE41F-075F-4F63-AE00-CE1C17A1E7BC@norvelle.org> Message-ID: <1036560E-CB4B-4F40-9918-7DFAF8025DB6@norvelle.org> BTW, I'm not using GFS Porson, but rather the TrueType version of Porson, which includes the Greek characters in their appropriate ranges (0370?03FF for monotonic Greek and Coptic, 0300?036F for polytonic). -Erik On May 5, 2009, at 1:37 PM, Erik Norvelle wrote: > Greetings Peter, > > I type in polytonic Greek by using the GreekKeys Unicode keymapping > for OS X. GreekKeys is available here: http://apagreekkeys.org/AboutGKU.html > ... I believe that the 2008 version also is available for Windows. > > My .tex files, therefore, are in Unicode (UTF-8) encoding. I use > the XeLaTeX engine for typesetting, in order to take advantage of > the LaTeX extensions, but the plain-vanilla XeTeX (available at http://www.tug.org/xetex/ > , for OS X and with a port to Windows) should provide you with a > way to directly process UTF-8 encoded TeX files. > > As a result, my .tex files include Unicode polytonic Greek > characters directly, which I type in using the GreekKeys keyboard > configuration; Porson gets used as the output font, which I select > using the Fontspec package (available only under XeTeX, alas). > > I've attached a sample .tex file and the corresponding PDF output, > so you can see how I set things up. > > Cheers, > Erik Norvelle > > > On May 5, 2009, at 4:41 AM, Peter King wrote: > >> I just installed GFS Porson, which is a lovely Greek typeface, but >> the docs >> don't seem to say how to type in the accents/diacriticals/etc. >> Does anyone >> know where I can find out? No information about this on the GFS >> website either, >> as far as I can tell. >> >> I use plain TeX, so LaTeX package recommendations won't help. >> >> Thanks for any help! >> >> -- >> Peter King peter.king at utoronto.ca >> Department of Philosophy >> 170 St. George Street #521 >> The University of Toronto (416)-978-4951 ofc >> Toronto, ON M5R 2M8 >> CANADA >> >> http://individual.utoronto.ca/pking/ >> >> = >> = >> = >> = >> ===================================================================== >> GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 >> EC42) >> gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 >> _______________________________________________ >> TeX FAQ: http://www.tex.ac.uk/faq >> Mailing list archives: http://tug.org/pipermail/texhax/ >> More links: http://tug.org/begin.html >> >> Automated subscription management: http://tug.org/mailman/listinfo/texhax >> Human mailing list managers: postmaster at tug.org > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org From news3 at nililand.de Tue May 5 16:42:55 2009 From: news3 at nililand.de (Ulrike Fischer) Date: Tue, 5 May 2009 16:42:55 +0200 Subject: [texhax] \usebox in environment to save text for future use References: Message-ID: Am Tue, 5 May 2009 16:16:27 +0200 schrieb Stefan Bj?rk: > I expect the following code to define the \mybox within the > environment info for later use, but it does not work. The use of lrbox > environment seem restricted to the info environment only. How to get > around this? > > \documentclass{article} > > \newsavebox{\mybox} > \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} > > \begin{document} > > \begin{info} > This is some text. > \end{info} > > \usebox{\mybox} > > \end{document} \newenvironment{info}{\global\lrbox{\mybox}}{\endlrbox} -- Ulrike Fischer From daleif at imf.au.dk Tue May 5 16:57:46 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Tue, 05 May 2009 16:57:46 +0200 Subject: [texhax] \usebox in environment to save text for future use In-Reply-To: References: Message-ID: <4A0053EA.3010705@imf.au.dk> Stefan Bj?rk wrote: > I expect the following code to define the \mybox within the > environment info for later use, but it does not work. The use of lrbox > environment seem restricted to the info environment only. How to get > around this? > > \documentclass{article} > > \newsavebox{\mybox} > \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} > > \begin{document} > > \begin{info} > This is some text. > \end{info} > > \usebox{\mybox} > > \end{document} > > /S presumably because info adds grouping bepahs you might want to have a look at the environ package, I use that to store the contentes of environments and use it later. -- /daleif From awishnia at notes.cc.sunysb.edu Tue May 5 18:11:30 2009 From: awishnia at notes.cc.sunysb.edu (awishnia at notes.cc.sunysb.edu) Date: Tue, 5 May 2009 12:11:30 -0400 Subject: [texhax] European quotation marks In-Reply-To: References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de>, <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de>, Message-ID: An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090505/5cac4ea7/attachment.html From pierre.mackay at comcast.net Tue May 5 20:21:14 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Tue, 05 May 2009 11:21:14 -0700 Subject: [texhax] European quotation marks In-Reply-To: References: <87ab6omqqc.fsf@gmail.com> <87fxggr5sg.fsf@gmail.com> <49DF4A80.2070705@kalinowski.com.br> <87eiw0pmvi.fsf@gmail.com> <7A1C4DB5-19FB-48D0-AD30-63E6C7F11573@gmail.com> <5.1.0.14.0.20090430224036.02a93ec0@pop3.web.de>, <18942.40245.811940.266694@isostar.informatik.uni-stuttgart.de>, Message-ID: <4A00839A.2040702@comcast.net> awishnia at notes.cc.sunysb.edu wrote: > I hate to prolong this discussion, but while Team LaTeX may be totally > guilt free in all matters, and not responsible for the > guillemets-guillemots mixup, they are never irresponsible. > > Arnold Wishnia > P.S. I have this nagging desire to see quotations surrounded by > guillemites, the friars who used to hang around Notre Dame des > Blancs-Manteaux. I am sorry to give up Rowley's sly suggestion that LaTeX is irresponsible, but I suppose I must. METAFONT challenge: Produce a design of paired Guillemites for very occasional display use. There are some good starting designs in reliefs of monks and friars engaged in activities such as wood-splitting. Pierre MacKay From doc.evans at gmail.com Wed May 6 00:59:16 2009 From: doc.evans at gmail.com (D. R. Evans) Date: Tue, 05 May 2009 16:59:16 -0600 Subject: [texhax] using larger units to determine breaks? Message-ID: <4A00C4C4.5000104@gmail.com> I know that the original TeX basically works in paragraphs and outputs in pages. But the more (fiction) works that I typeset, the more it seems to me that a considerable improvement -- or at least less manual intervention -- would likely be effected if the algorithms optimized page breaks over an entire section or chapter. Are there any versions of *TeX that have or will at some point have the capability to optimize breaks over larger units than does the original TeX? Doc PS Maybe I'm wrong and in practice this doesn't help, but it sure seems like it should. A lot of the tweaking I end up doing seems like it would go away if some attempt had been made to optimize over larger units. -- Web: http://www.sff.net/people/N7DR -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature Url : http://tug.org/pipermail/texhax/attachments/20090505/a6477f41/attachment.bin From hongyi.zhao at gmail.com Wed May 6 06:04:18 2009 From: hongyi.zhao at gmail.com (hongyi.zhao at gmail.com) Date: Wed, 6 May 2009 12:04:18 +0800 Subject: [texhax] Obtain the page Layout parameters for a specific page. Message-ID: <1123736424.20090506120418@gmail.com> Dear All, When I write my phd thesis, I want to obtain the page layout parameters, i.e., foot margin, top margin, and so on, for a specific page, such as the titlepage, the fifth Page, and so on. What command(s) should I use to achieve this goal? Thanks in advance. -- Hongyi Zhao Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493 2009-5-6 From pierre.mackay at comcast.net Wed May 6 08:21:29 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Tue, 05 May 2009 23:21:29 -0700 Subject: [texhax] Obtain the page Layout parameters for a specific page. In-Reply-To: <1123736424.20090506120418@gmail.com> References: <1123736424.20090506120418@gmail.com> Message-ID: <4A012C69.4000806@comcast.net> hongyi.zhao at gmail.com wrote: >Dear All, > >When I write my phd thesis, I want to obtain the page layout >parameters, i.e., foot margin, top margin, and so on, for a specific >page, such as the titlepage, the fifth Page, and so on. What >command(s) should I use to achieve this goal? > >Thanks in advance. > > I hope this doesn't seem too obvious, but what I would do is deposit all of these values in variables, and \message the variables to the log file so that I could read them later on out of the log file. In fact, that is just I do with most such variables, except for "absolutes" such as crop dimensions and page dimensions, which go into comments at the head of the file. I am often surprised by how often my somewhat leaky memory needs to pop to the top of the source file to retrieve such values. Pierre MacKay From hongyi.zhao at gmail.com Wed May 6 09:23:33 2009 From: hongyi.zhao at gmail.com (hongyi.zhao at gmail.com) Date: Wed, 6 May 2009 15:23:33 +0800 Subject: [texhax] Obtain the page Layout parameters for a specific page. In-Reply-To: <4A012C69.4000806@comcast.net> References: <1123736424.20090506120418@gmail.com> <4A012C69.4000806@comcast.net> Message-ID: <152660240.20090506152333@gmail.com> On Wednesday, May 6, 2009 at 14:21, pierre.mackay at comcast.net wrote: > hongyi.zhao at gmail.com wrote: >>Dear All, >> >>When I write my phd thesis, I want to obtain the page layout >>parameters, i.e., foot margin, top margin, and so on, for a specific >>page, such as the titlepage, the fifth Page, and so on. What >>command(s) should I use to achieve this goal? >> >>Thanks in advance. >> >> > I hope this doesn't seem too obvious, but what I would do is deposit all of > these values in variables, and \message the variables to the log file so > that > I could read them later on out of the log file. What command(s) should be used for this purpose? Where should I put these command in my LaTeX source files? > In fact, that is just I do with most such variables, except for "absolutes" > such as crop dimensions and page dimensions, which go into comments at > the head of > the file. I am often surprised by how often my somewhat leaky memory > needs > to pop to the top of the source file to retrieve such values. > Pierre MacKay -- Hongyi Zhao Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493 2009-5-6 From will.adams at frycomm.com Wed May 6 13:34:59 2009 From: will.adams at frycomm.com (William Adams) Date: Wed, 6 May 2009 07:34:59 -0400 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <4A00C4C4.5000104@gmail.com> References: <4A00C4C4.5000104@gmail.com> Message-ID: <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> On May 5, 2009, at 6:59 PM, D. R. Evans wrote: > I know that the original TeX basically works in paragraphs and > outputs in > pages. > > But the more (fiction) works that I typeset, the more it seems to me > that a > considerable improvement -- or at least less manual intervention -- > would > likely be effected if the algorithms optimized page breaks over an > entire > section or chapter. > > Are there any versions of *TeX that have or will at some point have > the > capability to optimize breaks over larger units than does the > original TeX? > > Doc > > PS Maybe I'm wrong and in practice this doesn't help, but it sure > seems > like it should. A lot of the tweaking I end up doing seems like it > would go > away if some attempt had been made to optimize over larger units. Dr. Jonathan Fine has done some work along those lines, and of course LaTeX does have a very sophisticated algorithm for determining figure placement (not familiar w/ ConTeXt), but tweaking the page breaks pretty much falls into the last n% of effort which requires human intervention. The problem is solutions tend to be intricate and inter-connected and I've occasionally found myself going back to the beginning of a chapter to make the last page work out properly. Lessee, one has a 100,000 word novel w/ 20 chapters, so average 5,000 words per chapter, each paragraph has on average of five sentences of five words each, so 200 paragraphs in a chapter, figure 50 characters (a bit long, but I'm trying to make the math easy) per line, and 10 characters per word (ditto) so 1,000 lines, figure 25 lines per page, so 40 pages, so one has to work out how 200 paragraphs of more-or-less 1,000 lines inter-act w/ 40 page breaks --- I'll leave it to someone who does combinatorial mathematics to work out how many possibilities there are if one-fourth the paragraphs can gain a line, one-fourth can lose a line, one-fourth gain _or_ lose a line and the balance are inflexible and unyielding and won't change their line lengths w/ reasonable type settings. It's probably w/in reach of modern equipment, but it won't be a fast typesetting run. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. From barr at math.mcgill.ca Wed May 6 13:48:11 2009 From: barr at math.mcgill.ca (Michael Barr) Date: Wed, 6 May 2009 07:48:11 -0400 (EDT) Subject: [texhax] Help installing pzc fonts Message-ID: I use pzc fonts, largely because it is convenient to have lower case as well as caps (otherwise \cal would be acceptable). My paper is being published in an online journal and the editor does not have pzc installed and is uncertain how to do it. When I asked him what his installation was I got this reply: I have the standard tex implementation on cygwin. It's a unix emulator. so it's the unix tex distribution compiled to run on a PC. Here, in part, is my fd file: \DeclareFontFamily{OT1}{pzc}{} \DeclareFontShape{OT1}{pzc}{m}{it}% {<-> s * [1.100] pzcmi7t}{} I assume that this is basically a 7pt font, but to enlarge by 1.4 would be too much. After some experiment, I decided that magnification by 1.1 looked good. I have files \MiKTeX 2.7\fonts\vf\adobe\zapfchan\pzcmi7t.vf \MiKTeX 2.7\fonts\tfm\adobe\zapfchan\pzcmi7t.tfm in my miktex distribution. Can anyone tell me where these files should go for his cygwin distribution? Michael Barr From morten.hoegholm at gmail.com Wed May 6 14:06:08 2009 From: morten.hoegholm at gmail.com (=?ISO-8859-1?Q?Morten_H=F8gholm?=) Date: Wed, 6 May 2009 14:06:08 +0200 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> Message-ID: <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> On Wed, May 6, 2009 at 1:34 PM, William Adams wrote: > The problem is solutions tend to be intricate and inter-connected and > I've occasionally found myself going back to the beginning of a > chapter to make the last page work out properly. Oh yes. This is the really fun part of the production... sometimes you are lucky and you change one little thing which makes 50 pages fall nicely into place, other times it just doesn't work no matter what you do. > Lessee, one has a 100,000 word novel w/ 20 chapters, so average 5,000 > words per chapter, each paragraph has on average of five sentences of > five words each, so 200 paragraphs in a chapter, figure 50 characters > (a bit long, but I'm trying to make the math easy) per line, and 10 > characters per word (ditto) so 1,000 lines, figure 25 lines per page, > so 40 pages, so one has to work out how 200 paragraphs of more-or-less > 1,000 lines inter-act w/ 40 page breaks --- I'll leave it to someone > who does combinatorial mathematics to work out how many possibilities > there are if one-fourth the paragraphs can gain a line, one-fourth can > lose a line, one-fourth gain _or_ lose a line and the balance are > inflexible and unyielding and won't change their line lengths w/ > reasonable type settings. > > It's probably w/in reach of modern equipment, but it won't be a fast > typesetting run. There is of course Michael Plass' thesis on the matter "Optimal pagination techniques for automatic typesetting systems" and also Stefan Wohlfeil's "On the pagination of complex documents". The latter came with a program - XFORMATTER I believe - to make the pagination choices. -- Morten From will.adams at frycomm.com Wed May 6 14:06:41 2009 From: will.adams at frycomm.com (William Adams) Date: Wed, 6 May 2009 08:06:41 -0400 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> Message-ID: <15F56D27-CD3D-4A00-8D80-AB3DEB9F0538@frycomm.com> On May 6, 2009, at 7:34 AM, William Adams wrote: > Lessee, one has a 100,000 word novel w/ 20 chapters, so average 5,000 > words per chapter, each paragraph has on average of five sentences of > five words each, so 200 paragraphs in a chapter, figure 50 characters > (a bit long, but I'm trying to make the math easy) per line, and 10 > characters per word (ditto) so 1,000 lines, figure 25 lines per page, > so 40 pages, so one has to work out how 200 paragraphs of more-or-less > 1,000 lines inter-act w/ 40 page breaks --- I'll leave it to someone > who does combinatorial mathematics to work out how many possibilities > there are if one-fourth the paragraphs can gain a line, one-fourth can > lose a line, one-fourth gain _or_ lose a line and the balance are > inflexible and unyielding and won't change their line lengths w/ > reasonable type settings. A further complication, one must keep track of which lines end in hyphens and whether or no the paragraph can be re-set so as to avoid a hyphen at the end of a given line. Ages ago I posted my working technique for page composition --- if someone can suggest an improvement on it, I'd be very interested. > It's probably w/in reach of modern equipment, but it won't be a fast > typesetting run. I'm beginning to suspect that the above statement was premature, but would love to be proven wrong, esp. by a working algorithm. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. From vafak9 at gmail.com Wed May 6 14:21:47 2009 From: vafak9 at gmail.com (Vafa Khalighi) Date: Wed, 6 May 2009 22:21:47 +1000 Subject: [texhax] reversing the order of columns in array package Message-ID: <7ac5ed450905060521w1f71b7ceia263336d05af3c53@mail.gmail.com> I wrote some macros to enable RTL in tabular evnvironments in LATeX: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newif\if at tabsw \global\@tabswfalse \def\@tabular{\if at RTL\global\@tabswtrue\fi \leavevmode \hbox \bgroup \if at tabsw\beginR \fi $\let\@acol\@tabacol \let\@classz\@tabclassz \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray} \def\endtabular{\crcr\egroup\if at tabsw\egroup\endR\egroup\fi \egroup $\if at tabsw\endR\fi \egroup \global\@tabswfalse} \expandafter \let \csname endtabular*\endcsname = \endtabular \def\@array[#1]#2{\setbox\@arstrutbox=\hbox{\vrule height\arraystretch \ht\strutbox depth\arraystretch \dp\strutbox width\z@}\@mkpream{#2}\edef\@preamble{% \halign \noexpand\@halignto \bgroup \tabskip\z@ \@arstrut \@preamble \tabskip\z@ \cr}% \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi \bgroup \let\par\relax \let\@sharp##\let\protect\relax \lineskip\z@\baselineskip\z@ \if at tabsw\hbox\bgroup\beginR\vbox\bgroup\fi \@preamble} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% That code just works fine but if I load array package, In array package the columns in tabular environment is always typeset from left to right even if you enable some bidi macros. Does any one know how can I reverse columns in the tabular environments in array package so that columns are actually typeset from right to left instead being typeset from left to right. I have tried very hard for a week but came with no success. Can you please if you can help me? Can you also if you can look at the bidi code (the above code) I wrote for LaTeX tabular environments and give me some feedbacks? Also making each entry in a cell being RTL sounds easy like I could have \let\origin at insert@column=\insert at column \def\insert at column{\if at RTL\beginR\fi\origin at insert@column\if at RTL\endR\fi} Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090506/a7be1109/attachment.html From peter.king at utoronto.ca Wed May 6 14:49:57 2009 From: peter.king at utoronto.ca (Peter King) Date: Wed, 6 May 2009 08:49:57 -0400 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090505024143.GC5040@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> Message-ID: <20090506124957.GC9177@amtoo.utoronto.ca> On Mon, May 04, 2009 at 10:41:43PM -0400, Peter King wrote: > I just installed GFS Porson, which is a lovely Greek typeface, but the docs > don't seem to say how to type in the accents/diacriticals/etc. Does anyone > know where I can find out? No information about this on the GFS website either, > as far as I can tell. Thanks to all for the replies. My fault for not being clearer. What I was asking was this: in an environment with gfsporson selected, what do I need to type to get TeX to produce appropriate output? For instance, I've discovered that you get rough breathing in such an environment by preceding a vowel with "<" (so " smooth breathing over following letter | iota-subscript under following letter Combine the above for multiple diacriticals: <`|v = grave rough omega with iota-subscript Any ideas about the circumflex? -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/859642c4/attachment.bin From will.adams at frycomm.com Wed May 6 14:53:40 2009 From: will.adams at frycomm.com (William Adams) Date: Wed, 6 May 2009 08:53:40 -0400 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> Message-ID: <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> On May 6, 2009, at 8:06 AM, Morten H?gholm wrote: > There is of course Michael Plass' thesis on the matter "Optimal > pagination techniques for automatic typesetting systems" Gotta love the beginning of the last sentence of the abstract, ``For certain simple badness functions, the pagination problem is NP- complete...'' And for complex badness functions? What's more complex than Nondetermininstic polynomial time? > and also > Stefan Wohlfeil's "On the pagination of complex documents". Available as a .pdf! http://www.pi6.fernuni-hagen.de/publ/tr234.pdf Ironic though that there's what I'd consider a bad page break on pg. 7 (the numbered list at the top of pg. 8 has lost its introductory paragraph which is at the bottom of the preceding page). > The latter > came with a program - XFORMATTER I believe - to make the pagination > choices. I didn't see a place to get this program from. For those who're curious, this is a post on this subject I made to comp.text.tex and later re-posted to TYPO-L: Subject: page breaking techniques (was Re: License of TeX?) Date: 23 Aug 2003 03:15:12 GMT My take on this is that page breaks have to take into account an entire chapter---if one is doing a book which opens on any page, well, I've on occasion gone back and re-run a previous chapter to change the opener of a chapter to tweak a figure placement early on, so ideally for such books, one wants to consider the entire text. Here's a description of the technique I'm using at work on my current project: - style the entire chapter, setting the macros appropriately for anything which doesn't match w/ what the author did. Fix overly wide, or poorly hyphenated paragraphs at need. - flip backwards to the beginning, noting if anything is awkward - if not, you're done (I think this has happened once for a previous project) - make notes on awkward pages and good pages / spreads, esp. noting bad figure placement - from the beginning, adjust to get nice spreads w/ good figure placement by strategically running spreads long / short (but only adjusting one increment at a time, so a short spread doesn't back a long or vice-versa), adjusting paragraph length w/ \looseness, figure / table placement, creating figure pages at need, space above heads and around tables and figures &c. - if one runs into an intractable problem, back up and try a different set of long / short and other tweaks---possibly try running the entire chapter long / short. - flip through making sure that no hyphenated words appear at the end of a recto. - as a last resort, adjust leading on pages which can't be made to come out any other way. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. From morten.hoegholm at gmail.com Wed May 6 15:22:24 2009 From: morten.hoegholm at gmail.com (=?ISO-8859-1?Q?Morten_H=F8gholm?=) Date: Wed, 6 May 2009 15:22:24 +0200 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> Message-ID: <859ec5630905060622g72a08a77qac065ff0ae094635@mail.gmail.com> On Wed, May 6, 2009 at 2:53 PM, William Adams wrote: > On May 6, 2009, at 8:06 AM, Morten H?gholm wrote: > >> There is of course Michael Plass' thesis on the matter "Optimal >> pagination techniques for automatic typesetting systems" > > Gotta love the beginning of the last sentence of the abstract, ``For > certain simple badness functions, the pagination problem is NP- > complete...'' > > And for complex badness functions? What's more complex than > Nondetermininstic polynomial time? If you have a more complex badness function you may wind up with fewer possibilities, non? But I must admit I have not read that thesis. >> and also >> Stefan Wohlfeil's "On the pagination of complex documents". > > Available as a .pdf! > > http://www.pi6.fernuni-hagen.de/publ/tr234.pdf Sorry about that - that is just a cut-down article. The thesis itself is considerably longer and bears the title "On the Pagination of Complex, Book-Like Documents" > > Ironic though that there's what I'd consider a bad page break on pg. 7 > (the numbered list at the top of pg. 8 has lost its introductory > paragraph which is at the bottom of the preceding page). Yes, I never liked those ones either. Happens frequently though due to the penalty settings (in article.cls, this \@beginparpenalty is -51, so a break is encouraged). >> The latter >> came with a program - XFORMATTER I believe - to make the pagination >> choices. > > > I didn't see a place to get this program from. Unfortunately, I don't know if it is available anywhere. -- Morten From tsc25 at cantab.net Wed May 6 14:34:26 2009 From: tsc25 at cantab.net (Toby Cubitt) Date: Wed, 06 May 2009 14:34:26 +0200 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> Message-ID: <4A0183D2.9080804@dr-qubit.org> William Adams wrote: > On May 6, 2009, at 8:06 AM, Morten H?gholm wrote: > >> There is of course Michael Plass' thesis on the matter "Optimal >> pagination techniques for automatic typesetting systems" > > Gotta love the beginning of the last sentence of the abstract, ``For > certain simple badness functions, the pagination problem is NP- > complete...'' > > And for complex badness functions? What's more complex than > Nondetermininstic polynomial time? PSPACE, EXP, and countless others. (OK, strictly speaking we don't know if NP=PSPACE=EXP, so I'd be better off citing e.g. NEXP, since NEXP!=NP by the time-hierarchy theorem). Or maybe optimal pagination is undecidable :-) Toby From yannis.haralambous at telecom-bretagne.eu Wed May 6 16:29:31 2009 From: yannis.haralambous at telecom-bretagne.eu (Yannis Haralambous) Date: Wed, 6 May 2009 16:29:31 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506124957.GC9177@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> Message-ID: What you describe is a 7-bit input method for Greek, introduced in 1989 (?) by dear Silvio Levy. Those romantic pre-Unicode days are far far away... (together with our youth ;-) I would suggest you use XeTeX and input your text directly in UTF-8 using one of the many keyboards available. To use GFS Porson with XeTeX just ask for \font\x="GFSPorson-Regular" (as the font is called on my Mac system). I'm including a TeX file and the resulting PDF: it is a small Greek text written in GFS Porson. -------------- next part -------------- A non-text attachment was scrubbed... Name: test-porson.pdf Type: application/pdf Size: 31503 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/ebe32b6f/attachment-0001.pdf -------------- next part -------------- A non-text attachment was scrubbed... Name: test-porson.tex Type: application/octet-stream Size: 3417 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/ebe32b6f/attachment-0001.obj -------------- next part -------------- Le 6 mai 09 ? 14:49, Peter King a ?crit : > On Mon, May 04, 2009 at 10:41:43PM -0400, Peter King wrote: > >> I just installed GFS Porson, which is a lovely Greek typeface, but >> the docs >> don't seem to say how to type in the accents/diacriticals/etc. >> Does anyone >> know where I can find out? No information about this on the GFS >> website either, >> as far as I can tell. > > Thanks to all for the replies. > > My fault for not being clearer. What I was asking was this: in an > environment with > gfsporson selected, what do I need to type to get TeX to produce > appropriate output? > > For instance, I've discovered that you get rough breathing in such > an environment by > preceding a vowel with "<" (so " has got me 90% > of what I need to know. At the moment, I'm still stumped about what > I need to type to > get a circumflex... "\^" doesn't work. > > In case anyone wants to know, here is what I've discovered so far: > > LETTERS > > final sigma c > theta j > chi q > omega v > phi y > > DIACRITICALS > > ' acute over following letter > ` grave over following letter > < rough breathing over following letter >> smooth breathing over following letter > | iota-subscript under following letter > > Combine the above for multiple diacriticals: <`|v = grave rough > omega with iota-subscript > > > Any ideas about the circumflex? > > -- > Peter King peter.king at utoronto.ca > Department of Philosophy > 170 St. George Street #521 > The University of Toronto (416)-978-4951 ofc > Toronto, ON M5R 2M8 > CANADA > > http://individual.utoronto.ca/pking/ > > = > = > = > ====================================================================== > GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 > EC42) > gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org -- + -----------------------------------------------------------------------+ | Yannis Haralambous, Ph.D. yannis.haralambous at telecom- bretagne.eu | | Directeur d'?tudes http://omega.enstb.org/ yannis | | Tel. +33 (0)2.29.00.14.27 | | Fax +33 (0)2.29.00.12.82 | | D?partement Informatique | | T?l?com Bretagne | | Technop?le de Brest Iroise, CS 83818, 29238 Brest Cedex 3, France | | Coordonn?es Google-Earth : 48?21'31.57"N 4?34'16.76"W | + -----------------------------------------------------------------------+ ...pour distinguer l'ext?rieur d'un aquarium, mieux vaut n'?tre pas poisson ...the ball I threw while playing in the park has not yet reached the ground Es gab eine Zeit, wo ich nur ungern ?ber Schubert sprechen, nur N?chtens den B?umen und Sternen von ihm vorerz?hlen m?gen. -------------- next part -------------- A non-text attachment was scrubbed... Name: Yannis Haralambous.vcf Type: text/directory Size: 508 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/ebe32b6f/attachment-0001.bin -------------- next part -------------- From doc.evans at gmail.com Wed May 6 16:37:00 2009 From: doc.evans at gmail.com (D. R. Evans) Date: Wed, 06 May 2009 08:37:00 -0600 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <15F56D27-CD3D-4A00-8D80-AB3DEB9F0538@frycomm.com> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> <15F56D27-CD3D-4A00-8D80-AB3DEB9F0538@frycomm.com> Message-ID: <4A01A08C.8010305@gmail.com> William Adams said the following at 05/06/2009 06:06 AM : > >> It's probably w/in reach of modern equipment, but it won't be a fast >> typesetting run. > Yes, I'd realised that when I asked the question :-) However, I remember the days when it took several seconds to typeset a single page, and I wouldn't expect to need a technique like this until very late in the process if it was very slow, so I wouldn't really mind if it took a few minutes to typeset a book (on my main computer here, typesetting a 600-page novel, even with pdfTeX's font expansion in use, takes a little more than a second, so even if an improved breaking algorithm took 100 times as long, it still would be faster than Ye Olde Dayes; I used to quite enjoy watching the slow progress as the [n] count0 markers slowly appeared --- a visceral pleasure that modern equipment denies me :-) ). > > I'm beginning to suspect that the above statement was premature, but > would love to be proven wrong, esp. by a working algorithm. I wouldn't be surprised if the perfect algorithm doesn't exist, or theoretically takes infinite time, but still if a nearly-perfect algorithm solves 90% of the current bad breaks and runs 100 times as slowly as current TeX, I would regard that as a worthwhile improvement. Doc -- Web: http://www.sff.net/people/N7DR -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature Url : http://tug.org/pipermail/texhax/attachments/20090506/641ef22f/attachment.bin From will.adams at frycomm.com Wed May 6 16:48:49 2009 From: will.adams at frycomm.com (William Adams) Date: Wed, 6 May 2009 10:48:49 -0400 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <4A0183D2.9080804@dr-qubit.org> References: <4A00C4C4.5000104@gmail.com> <1CFCE32F-2FCB-4100-8565-508A4177537D@frycomm.com> <859ec5630905060506t31056f85t89eb09d5dfd3f984@mail.gmail.com> <3857CE05-C732-4032-A301-36D5DB8453CD@frycomm.com> <4A0183D2.9080804@dr-qubit.org> Message-ID: On May 6, 2009, at 8:34 AM, Toby Cubitt wrote: > Or maybe optimal pagination is undecidable :-) Aye, there lays the rub! A lot of this is subjective and any algorithm would need the ability to control things like: - place only one image on the first page (or no images) - do not trap white space when placing multiple figures on a page - create / do _not_ create asymmetrical pages / arrangements (toggle for this) - &c. All of which I'm struggling w/ for almost a dozen new titles we're doing. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. From reed at reedmedia.net Wed May 6 18:26:03 2009 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 6 May 2009 11:26:03 -0500 (CDT) Subject: [texhax] adding different amounts of dots for formatting Message-ID: I want output like this (using random text): Vim modus tractatos suscipiantur at . . . . . . . . ius cu homero nominati mediocrem feugait nusquam per et . . . . sanctus consulatu concludaturque . . . . . . . . . . . . . mei Dicat legendos concludaturque ne ius tale . . . . . . . dicit So three columns. First column is right justified. The second column is left justified. The third column is left justified. I want dots (. . .) between the middle and last column. Here is what I have for now: \begin{tabular}{ r l l } Vim modus & tractatos suscipiantur at & ius \\ cu homero nominati & mediocrem feugait nusquam per et & sanctus \\ consulatu & concludaturque & mei \\ Dicat legendos & concludaturque ne ius tale & dicit \\ \end{tabular} (My latex example here has not dots.) Any ideas on how to get these dots done automatically? From P.Taylor at Rhul.Ac.Uk Wed May 6 18:55:57 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Wed, 06 May 2009 17:55:57 +0100 Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: References: Message-ID: <4A01C11D.8070609@Rhul.Ac.Uk> Jeremy C. Reed wrote: > I want output like this (using random text): > > Vim modus tractatos suscipiantur at . . . . . . . . ius > cu homero nominati mediocrem feugait nusquam per et . . . . sanctus > consulatu concludaturque . . . . . . . . . . . . . mei > Dicat legendos concludaturque ne ius tale . . . . . . . dicit Maybe something like this (sorry, I do not know how to force \begin {tabular} to create the equivalent of an \halign to \hsize {}) -- \documentclass {minimal} \begin {document} \begin {tabular}{ r l l } & \hbox to 0,6 \hsize {} & \\ Vim modus & tractatos suscipiantur at \dotfill & ius \\ cu homero nominati & mediocrem feugait nusquam per et \dotfill & sanctus \\ consulatu & concludaturque \dotfill & mei \\ Dicat legendos & concludaturque ne ius tale \dotfill & dicit \\ \end {tabular} \end {document} I'm sure a wizard could get the \dotfill into the preamble, but LaTeX remains more-or-less impenetrable to me :-( Philip TAYLOR From Susan.Dittmar at gmx.de Wed May 6 19:12:06 2009 From: Susan.Dittmar at gmx.de (Susan Dittmar) Date: Wed, 6 May 2009 19:12:06 +0200 Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: <4A01C11D.8070609@Rhul.Ac.Uk> References: <4A01C11D.8070609@Rhul.Ac.Uk> Message-ID: <20090506171206.GA12272@eureca.de> Quoting Philip TAYLOR (Ret'd) (P.Taylor at rhul.ac.uk): > I'm sure a wizard could get the \dotfill into the preamble, I'm far from being a wizard, but this works for me: \documentclass{minimal} \usepackage{array} \begin{document} \begin{tabular}{ r l<{\dotfill} l } % & \hbox to 0,6 \hsize {} & \\ Vim modus & tractatos suscipiantur at & ius \\ cu homero nominati & mediocrem feugait nusquam per et & sanctus \\ consulatu & concludaturque & mei \\ Dicat legendos & concludaturque ne ius tale & dicit \\ \end{tabular} \end{document} Hope that helps, Susan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/ba14c786/attachment.bin From peter.king at utoronto.ca Wed May 6 22:03:44 2009 From: peter.king at utoronto.ca (Peter King) Date: Wed, 6 May 2009 16:03:44 -0400 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> Message-ID: <20090506200344.GA24264@amtoo.utoronto.ca> On Wed, May 06, 2009 at 04:29:31PM +0200, Yannis Haralambous wrote: > What you describe is a 7-bit input method for Greek, introduced in 1989 (?) > by dear Silvio Levy. Those romantic pre-Unicode days are far far away... > (together with our youth ;-) > > I would suggest you use XeTeX and input your text directly in UTF-8 using > one of the many keyboards available. No doubt my youth is long gone. But one reason I've used TeX all these years is that it is open, free, and stable. I can *still* run TeX on files I wrote in the early 1980s and they are formatted just fine. Granted, the fonthandling in plain TeX is clunky. But I wrote a set of clunky fonthandling macros that have worked well all these years, and I'm reluctant to go to something that is not the clear successor to TeX, something I can count on for the next decade or two. Things are still pretty unsettled in the font world for me to want to jump to XeTeX, or Omega, or... I can see the appeal. But plain TeX has served me well over the years, with nothing but a simple command-line in front of me, and since I can get 95% of what I need out of Porson in this setup, it seems as though it might just be possible to get the last 5% too. BTW: You get a circumflex in GFSPorson by preceding the vowel with "\~". The only thing left to resolve in my obsolete 7-bit method is how to get the breathing characters combined with the circumflex now. (They don't stack, not a great decision.) So close... -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/c9013cb2/attachment.bin From pgt at arcor.de Wed May 6 20:42:32 2009 From: pgt at arcor.de (Plamen Tanovski) Date: Wed, 6 May 2009 20:42:32 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506124957.GC9177@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> Message-ID: <20090506184232.GA2874@mail.tanovski.de> On Wed, May 06, 2009 at 08:49:57AM -0400, Peter King wrote: > gfsporson selected, what do I need to type to get TeX to produce > appropriate output? For instance, I've discovered that you get rough > breathing in such an environment by preceding a vowel with "<" (so > " to know. At the moment, I'm still stumped about what I need to type > to get a circumflex... "\^" doesn't work. The font is in the LGR encoding. The input of greek text is described here: ftp://ftp.dante.de/pub/tex/language/greek/doc/usage.pdf Since LGR uses ligatures for the accented characters, there might be problems with the hyphenation if using plain ascii. I use mostly emacs with greek babel input translation and LaTeX with the utf8x inputenc. At least \documentclass{article} \usepackage[greek]{babel} \usepackage{gfsporson} \begin{document} \^o \end{document} gives me a omega with a circumflex. best regards, -- Plamen Tanovski Prager Str. 125, 04317 Leipzig Tel. (03 41) 3 08 57 60 From r.turner at auckland.ac.nz Wed May 6 23:10:09 2009 From: r.turner at auckland.ac.nz (Rolf Turner) Date: Thu, 7 May 2009 09:10:09 +1200 Subject: [texhax] Italicizing ``et al.'' with natbib. Message-ID: <7B822BA1-90BA-46BC-B1FB-26E5D1A55EF5@auckland.ac.nz> The bibliography style that I have been using up to now prints ``et al.'' as in ``Jones, et al. (1942)'' in italics. I'm trying to use natbib, which prints the ``et al.'' in the ``regular'' font. I'd like to keep the italic font. (Please don't argue about which is ``correct''. I want to use italic font for ``et al.''. Humour me.) Is there any way to instruct natbib to use italics for ``et al.''? Thanks. cheers, Rolf Turner ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. This e-mail has been scanned and cleared by MailMarshal www.marshalsoftware.com ###################################################################### From peter.king at utoronto.ca Thu May 7 00:29:40 2009 From: peter.king at utoronto.ca (Peter King) Date: Wed, 6 May 2009 18:29:40 -0400 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> Message-ID: <20090506222940.GA24720@amtoo.utoronto.ca> On Wed, May 06, 2009 at 03:09:09PM +0200, Erik Norvelle wrote: > It may be that the codes for GFS Porson are like those for the Teubner > package, which is what I used prior to switching to Unicode Porson. > > The manual for Teubner is here: > http://www.ctan.org/get/macros/latex/contrib/teubner/teubner-doc.pdf The manual suggests a LaTeX macro for entering rough/smooth breathing on the circumflex. It doesn't seem to work in GFS Porson -- there isn't any macro defined in porson.fd or porson.sty to do the work that's done in Teubner. -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/d27301ac/attachment-0001.bin From peter.king at utoronto.ca Thu May 7 00:38:41 2009 From: peter.king at utoronto.ca (Peter King) Date: Wed, 6 May 2009 18:38:41 -0400 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506184232.GA2874@mail.tanovski.de> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <20090506184232.GA2874@mail.tanovski.de> Message-ID: <20090506223841.GC24720@amtoo.utoronto.ca> On Wed, May 06, 2009 at 08:42:32PM +0200, Plamen Tanovski wrote: > The font is in the LGR encoding. The input of greek text is described > here: > > ftp://ftp.dante.de/pub/tex/language/greek/doc/usage.pdf > > Since LGR uses ligatures for the accented characters, there might be > problems with the hyphenation if using plain ascii. I use mostly emacs > with greek babel input translation and LaTeX with the utf8x inputenc. > At least > > \documentclass{article} > \usepackage[greek]{babel} > \usepackage{gfsporson} > \begin{document} > \^o > \end{document} > > gives me a omega with a circumflex. The document usage.pdf claims that a prefixed tilde produces a circumflex. But it doesn't, even in the document -- everywhere there is supposed to be a circumflex in the output, there is only a blank space in the pdf file! Preceding the tilde with a backslash in GFS Porson results in a simple circumflex: \~v produces an omega with a circumflex. What I can't find is how to combine the circumflex with smooth/rough breathing. -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090506/e8a745d1/attachment.bin From signups2 at norvelle.org Thu May 7 00:42:42 2009 From: signups2 at norvelle.org (Erik Norvelle) Date: Thu, 7 May 2009 00:42:42 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506222940.GA24720@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> Message-ID: Greetings Peter, I agree with Yannis, in that XeTeX is far more likely to allow you to work with polytonic Greek in a straightforward fashion. My experience using 7-bit workarounds is that a) it's a pain to type, b) it's easy to make mistakes and c) it can be quite difficult to read the resulting text when you come back to it later. Given that XeTeX allows you to directly enter UTF-8 text, it would be a way to solve all three of these problems. You mentioned that you've got a legacy issue that prevents you from moving to XeTeX, in that you have built a large collection of macros that you depend on extensively. My impression has been that XeTeX (as opposed to XeLaTeX) strives to be a drop-in replacement for (plain) TeX. If that were so, you *ought* to be able to use the majority of your macros directly, or with a certain minimum amount of porting. However, I am a newcomer to the TeX universe, and could easily be off base. Cheers, Erik On May 7, 2009, at 12:29 AM, Peter King wrote: > On Wed, May 06, 2009 at 03:09:09PM +0200, Erik Norvelle wrote: > >> It may be that the codes for GFS Porson are like those for the >> Teubner >> package, which is what I used prior to switching to Unicode Porson. >> >> The manual for Teubner is here: >> http://www.ctan.org/get/macros/latex/contrib/teubner/teubner-doc.pdf > > The manual suggests a LaTeX macro for entering rough/smooth > breathing on > the circumflex. It doesn't seem to work in GFS Porson -- there isn't > any > macro defined in porson.fd or porson.sty to do the work that's done in > Teubner. > > -- > Peter King peter.king at utoronto.ca > Department of Philosophy > 170 St. George Street #521 > The University of Toronto (416)-978-4951 ofc > Toronto, ON M5R 2M8 > CANADA > > http://individual.utoronto.ca/pking/ > > = > = > = > ====================================================================== > GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 > EC42) > gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 From tjm1983 at gmail.com Thu May 7 00:57:21 2009 From: tjm1983 at gmail.com (Tim McKenzie) Date: Thu, 7 May 2009 10:57:21 +1200 Subject: [texhax] using larger units to determine breaks? In-Reply-To: References: <4A00C4C4.5000104@gmail.com> <4A0183D2.9080804@dr-qubit.org> Message-ID: <200905071057.25708.tjm1983@gmail.com> On Thursday 07 May 2009 02:48:49 William Adams wrote: > On May 6, 2009, at 8:34 AM, Toby Cubitt wrote: > > Or maybe optimal pagination is undecidable :-) > > Aye, there lays the rub! A lot of this is subjective and any algorithm > would need the ability to control things like: As you suggest, the subjectivity may make the job difficult, but if you can choose an objective measure of acceptability of page-breaks (hopefully roughly coinciding with your subjective judgments), then optimal pagination of any particular document won't be *logically* undecidable: just try every possibility, and choose the one with the best measure of acceptability. For those interested, the TeX Development Fund's wishlist at https://www.tug.org/tc/devfund/criteria.html includes: "Page-breaking: apply something like the same optimization to breaking pages in the document as is done for breaking lines in a paragraph. Perhaps something can be done by having TeX output the boxes in the log file with \showlists, and then writing a separate program, as described in Jonathan Fine's article TeX Forever in the EuroTeX 2005 proceedings. (Research level.)" Tim <>< -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://tug.org/pipermail/texhax/attachments/20090507/3a822460/attachment.bin From reed at reedmedia.net Thu May 7 01:46:22 2009 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 6 May 2009 18:46:22 -0500 (CDT) Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: <20090506171206.GA12272@eureca.de> References: <4A01C11D.8070609@Rhul.Ac.Uk> <20090506171206.GA12272@eureca.de> Message-ID: Thank you Susan and Philip. \dotfill worked for me. I didn't try all your ideas but just used like: \begin{longtable}[b]{ p{2.2in} p{2.2in} p{1.3in} } \raggedleft{foo}& bar \dotfill & baz \\ \end{longtable} Now a new question ... why doesn't the [b] for bottom work for me? I have long lines that wrap within their table cells so I want the next lines to match up -- so if they all were forced to the bottom vertical alignment bottom of the row then it would line up. (By the way the format above is for a permuted KWIC (keyword in context) index. If you want to see it email me off-list and I will point you a URL.) From doc.evans at gmail.com Thu May 7 01:50:21 2009 From: doc.evans at gmail.com (D. R. Evans) Date: Wed, 06 May 2009 17:50:21 -0600 Subject: [texhax] using larger units to determine breaks? In-Reply-To: <200905071057.25708.tjm1983@gmail.com> References: <4A00C4C4.5000104@gmail.com> <4A0183D2.9080804@dr-qubit.org> <200905071057.25708.tjm1983@gmail.com> Message-ID: <4A02223D.9010102@gmail.com> Tim McKenzie said the following at 05/06/2009 04:57 PM : > https://www.tug.org/tc/devfund/criteria.html includes: > "Page-breaking: apply something like the same optimization to breaking pages > in the document as is done for breaking lines in a paragraph. Perhaps Yes; that's exactly what I was thinking. I bet DEK would have done this in the original TeX if only CPU cycles weren't so expensive back then. It does seem like a very logical extension of what we currently have. You'd think this would make an interesting thesis topic for someone. Well, I think that, anyway :-) Doc -- Web: http://www.sff.net/people/N7DR -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature Url : http://tug.org/pipermail/texhax/attachments/20090506/2ec99c77/attachment.bin From karl at freefriends.org Thu May 7 02:32:11 2009 From: karl at freefriends.org (Karl Berry) Date: Wed, 6 May 2009 19:32:11 -0500 Subject: [texhax] tex live 2008 update freeze for 2009 work Message-ID: <200905070032.n470WBg06655@f7.net> For any package maintainers: if you have pending updates to get out to TeX Live 2008 users, please submit the changes to CTAN within another week or so. Soon we will stop TL 2008 updates, in preparation for TL 2009. For various reasons it is not practical to do keep doing 08 updates all the way until 09 is ready. Take my word for it, please :). Unfortunately this means there will be a hiatus in package updates flowing from CTAN to TL to users, possibly a couple months in duration (if we're lucky), going from past experience. So I thought I'd send out this note in case there were authors close to making notable updates, to avoid unwelcome surprises. Karl From pierre.mackay at comcast.net Thu May 7 03:21:10 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Wed, 06 May 2009 18:21:10 -0700 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506222940.GA24720@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> Message-ID: <4A023786.7010404@comcast.net> Peter King wrote: >On Wed, May 06, 2009 at 03:09:09PM +0200, Erik Norvelle wrote: > > > >>It may be that the codes for GFS Porson are like those for the Teubner >>package, which is what I used prior to switching to Unicode Porson. >> >>The manual for Teubner is here: >>http://www.ctan.org/get/macros/latex/contrib/teubner/teubner-doc.pdf >> >> > >The manual suggests a LaTeX macro for entering rough/smooth breathing on >the circumflex. It doesn't seem to work in GFS Porson -- there isn't any >macro defined in porson.fd or porson.sty to do the work that's done in >Teubner. > > > A true Porson oughtn't to produce a tilde in any case. The tilde is a Didot form of perispomene, and one of the distinguishing marks of Porson is the simple rounded cap for perispomene (based on Porson's own handwriting.) Post-positive sequences for polytonic Greek are far from dead. Look at Kryukov's Thessalonica for Open Office. (disclosure --- the Ibycus sequencing is my contribution.) I continue to use sequences (which just happen to fit into 7-bit ASCII) because my aging memory can't keep up with the all the ALT CTL FUNC key chordal fingering you need for getting eight bits out of a normal keyboard. Pierre MacKay From joseph.wright at morningstar2.co.uk Thu May 7 07:53:29 2009 From: joseph.wright at morningstar2.co.uk (Joseph Wright) Date: Thu, 07 May 2009 06:53:29 +0100 Subject: [texhax] Italicizing ``et al.'' with natbib. In-Reply-To: <7B822BA1-90BA-46BC-B1FB-26E5D1A55EF5@auckland.ac.nz> References: <7B822BA1-90BA-46BC-B1FB-26E5D1A55EF5@auckland.ac.nz> Message-ID: <4A027759.5040305@morningstar2.co.uk> Rolf Turner wrote: > > The bibliography style that I have been using up to now prints ``et > al.'' > as in ``Jones, et al. (1942)'' in italics. I'm trying to use natbib, > which > prints the ``et al.'' in the ``regular'' font. I'd like to keep the > italic > font. (Please don't argue about which is ``correct''. I want to use > italic > font for ``et al.''. Humour me.) > > Is there any way to instruct natbib to use italics for ``et al.''? It's hard-coded into the .bst files. You'll need to make a copy of the appropriate one, give it a new name and edit the part which prints "et al." -- Joseph Wright From uwe.lueck at web.de Thu May 7 08:45:57 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Thu, 07 May 2009 08:45:57 +0200 Subject: [texhax] figures point by point Message-ID: <1128518116@web.de> I wondered whether it isn't much more basic. I guessed "figures point by point" means "bit map images", and they can be dedected by file extensions ".bmp". Moreover, you can sort files by size in the basic file list window of your OS, to see the largest ones on top of the list. -- HTH, Uwe. Tom Schneider schrieb am 16.04.2009 11:46:36: > Mohamed: > > > >>I am a LaTeX user then when I compile my file and displaying the dvi some > > >>figures take many resources and much memory for display and I would like to > > >>know if there is a technical and automatical way to detect theme before ? > > > What I would like exactely is a technical way to detect theme before the > > use in LaTeX and to correct theme by Photoshop. > > Seems to me that perhaps what you want is a script. On the Mac or > Linux one could write a csh (or tcsh or bash or sh or probably better > yet perl) script to detect the size of your files. (On windows one > can do things like this under cygwin.) Rather than calling photoshop, > the script would call a program that would automatically manipulate > the images (always keeping a backup and working with a copy > probably!). Imagemagick (just google that) is a set of programs that > is great for that and within imagemagick is the powerful 'convert' > program that could be used to adjust the image. > > At this point I write scripts to do almost everything and only rarely > use a program like photoshop. The reason is that it allows me to > repeat the manipulations and to have a precise record of what I did. > > Tom > > Dr. Thomas D. Schneider > National Institutes of Health > National Cancer Institute > Center for Cancer Research Nanobiology Program > Molecular Information Theory Group > Frederick, Maryland 21702-1201 > schneidt at mail.nih.gov > permanent email: toms at alum.mit.edu > http://www.ccrnp.ncifcrf.gov/~toms/ > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > From P.Taylor at Rhul.Ac.Uk Thu May 7 09:51:32 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR) Date: Thu, 07 May 2009 08:51:32 +0100 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <4A023786.7010404@comcast.net> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> <4A023786.7010404@comcast.net> Message-ID: <4A029304.1020300@Rhul.Ac.Uk> Pierre MacKay wrote: > Post-positive sequences for polytonic Greek are far from dead. Look at > Kryukov's > Thessalonica for Open Office. (disclosure --- the Ibycus sequencing is > my contribution.) > I continue to use sequences (which just happen to fit into 7-bit ASCII) > because my aging > memory can't keep up with the all the ALT CTL FUNC key chordal fingering > you need for > getting eight bits out of a normal keyboard. I strongly agree. The Porphyrogenitus project uses Levy/Beccari encoding, which is (IMHO) simple and straightforward to deal with. I have been liaising with Peter King offline regarding the placement of breathing and accents. Philip TAYLOR From philip.ratcliffe at uninsubria.it Thu May 7 10:17:15 2009 From: philip.ratcliffe at uninsubria.it (Philip G. Ratcliffe) Date: Thu, 7 May 2009 10:17:15 +0200 Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: <4A01C11D.8070609@Rhul.Ac.Uk> Message-ID: <9B74B05E4B34495DAF0481D84D449B0D@PGR1> > Jeremy C. Reed wrote: > > I want output like this (using random text): > > > > Vim modus tractatos suscipiantur at . . . . . . . . ius > > cu homero nominati mediocrem feugait nusquam per et . . . > . sanctus > > consulatu concludaturque . . . . . . . . . . . . . mei > > Dicat legendos concludaturque ne ius tale . . . . . . . dicit > > Maybe something like this (sorry, I do not know how > to force \begin {tabular} to create the equivalent > of an \halign to \hsize {}) -- > > \documentclass {minimal} > \begin {document} > \begin {tabular}{ r l l } > & \hbox to 0,6 \hsize {} & \\ > Vim modus & tractatos suscipiantur at \dotfill & ius \\ > cu homero nominati & mediocrem feugait nusquam per et > \dotfill & sanctus \\ > consulatu & concludaturque \dotfill & mei \\ > Dicat legendos & concludaturque ne ius tale \dotfill > & dicit \\ > \end {tabular} > \end {document} > > I'm sure a wizard could get the \dotfill into the preamble, > but LaTeX remains more-or-less impenetrable to me :-( And here's how to do it: \documentclass{article} \usepackage{array} \begin{document} \setlength{\tabcolsep}{0.5em} \begin{tabular}{rp{0.6\hsize}<{\space\dotfill}@{\space}l} Vim modus & tractatos suscipiantur at & ius \\ cu homero nominati & mediocrem feugait nusquam per et & sanctus \\ consulatu & concludaturque & mei \\ Dicat legendos & concludaturque ne ius tale & dicit \\ \end{tabular} \end{document} The \setlength{\tabcolsep}{0.5em} command is just a reminder of how to change intercolumn space and the @{\space} in the table preamble is a reminder pf how to do it "per column". As a final comment, let me once again advertise Robin Fairbairns' "The UK TeX FAQ", usually linked at the bottom of every single posting to this list. Cheers, Phil From Susan.Dittmar at gmx.de Thu May 7 10:51:04 2009 From: Susan.Dittmar at gmx.de (Susan Dittmar) Date: Thu, 7 May 2009 10:51:04 +0200 Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: References: <4A01C11D.8070609@Rhul.Ac.Uk> <20090506171206.GA12272@eureca.de> Message-ID: <20090507085104.GB12272@eureca.de> Quoting Jeremy C. Reed (reed at reedmedia.net): > \begin{longtable}[b]{ p{2.2in} p{2.2in} p{1.3in} } > \raggedleft{foo}& bar \dotfill & baz \\ > \end{longtable} > > Now a new question ... why doesn't the [b] for bottom work for me? I have > long lines that wrap within their table cells so I want the next lines to > match up -- so if they all were forced to the bottom vertical alignment > bottom of the row then it would line up. The [b] you introduced does not align the cells of the table, but the table in whole. What you probably want is to replace the last p{1.3in} by b{1.3in} (this needs the array package). It creates a cell like the p{} cells, but vertically fixed to the bottom of its cell. (Untested this time, but even if it is not correct, the hint to check the array package for such column definitions should lead you to the correct one in case I fumbled.) Hope that helps, Susan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090507/f990c39b/attachment.bin From philip.ratcliffe at uninsubria.it Thu May 7 11:13:18 2009 From: philip.ratcliffe at uninsubria.it (Philip G. Ratcliffe) Date: Thu, 7 May 2009 11:13:18 +0200 Subject: [texhax] adding different amounts of dots for formatting In-Reply-To: Message-ID: > Thank you Susan and Philip. \dotfill worked for me. > > I didn't try all your ideas but just used like: > > \begin{longtable}[b]{ p{2.2in} p{2.2in} p{1.3in} } > \raggedleft{foo}& bar \dotfill & baz \\ \end{longtable} > > Now a new question ... why doesn't the [b] for bottom work > for me? I have > long lines that wrap within their table cells so I want the > next lines to > match up -- so if they all were forced to the bottom vertical > alignment > bottom of the row then it would line up. That's because, as the longtable manual states: "The [t] [b] [c] argument of tabular can not be used." In any case, it's for vertical alignment of the entire table and not individual cells. Try this: \documentclass{article} \usepackage{array,longtable} \begin{document} \begin{longtable}{>{\raggedleft}b{2.2in}b{2.2in}b{1.3in}} foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo & bar \dotfill & baz \\ \end{longtable} \end{document} Cheers, Phil From pgt at arcor.de Thu May 7 11:50:50 2009 From: pgt at arcor.de (Plamen Tanovski) Date: Thu, 7 May 2009 11:50:50 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506223841.GC24720@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <20090506184232.GA2874@mail.tanovski.de> <20090506223841.GC24720@amtoo.utoronto.ca> Message-ID: <20090507095050.GA10315@mail.tanovski.de> > The document usage.pdf claims that a prefixed tilde produces a circumflex. > But it doesn't, even in the document -- everywhere there is supposed to be > a circumflex in the output, there is only a blank space in the pdf file! Yes, this is definitely wrong. The tilde produces the tilde-accent with the politonikogreek. > Preceding the tilde with a backslash in GFS Porson results in a simple > circumflex: \~v produces an omega with a circumflex. What I can't find > is how to combine the circumflex with smooth/rough breathing. Sorry, I'm not much familiar with greek, but as I see, there is no character in the font with a circumflex in it. There is even no circumflex in the LGR encoding. And v is not in the translantion table. Do you actually want the unicode character 1F67: "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI"? This is \char'301 in the LGR encoding and it's ascii input is <~w: \documentclass{article} \usepackage[LGR]{fontenc} \usepackage[polutonikogreek]{babel} \usepackage{gfsporson} \renewcommand{\rmdefault}{porson} \begin{document} <~w \char'301 \end{document} best regards, -- Plamen Tanovski Prager Str. 125, 04317 Leipzig Tel. (03 41) 3 08 57 60 From yannis.haralambous at telecom-bretagne.eu Thu May 7 09:40:31 2009 From: yannis.haralambous at telecom-bretagne.eu (Yannis Haralambous) Date: Thu, 7 May 2009 09:40:31 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <4A023786.7010404@comcast.net> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> <4A023786.7010404@comcast.net> Message-ID: <6D878F94-E880-4565-8BF1-D935823A1FEC@telecom-bretagne.eu> Le 7 mai 09 ? 03:21, Pierre MacKay a ?crit : > A true Porson oughtn't to produce a tilde in any case. The tilde is a > Didot form of > perispomene, and one of the distinguishing marks of Porson is the > simple > rounded > cap for perispomene (based on Porson's own handwriting.) True, *but* nevertheless there is a tilde in the original Monotype design of Porson (for me the only authentic Porson). As you can see on the atatched screenshot, in the sixth box of the first row there is a lovely eta with tilde (whose PostScript name is etatildealt). Of course all combinations with breathings are missing, so we can consider as "an exception confirming the rule". Probably some important Monotype client asked for it, and so they added it to the glyph set. Just as they added also the hideous "accented capitals" for monotonic Greek which would make poor old Porson turn around in his grave... -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot_01.png Type: image/png Size: 120148 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090507/7c336476/attachment-0001.png -------------- next part -------------- From pgt at tanovski.de Thu May 7 10:39:38 2009 From: pgt at tanovski.de (Plamen Tanovski) Date: Thu, 7 May 2009 10:39:38 +0200 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <20090506223841.GC24720@amtoo.utoronto.ca> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <20090506184232.GA2874@mail.tanovski.de> <20090506223841.GC24720@amtoo.utoronto.ca> Message-ID: <20090507083937.GA10162@mail.tanovski.de> > The document usage.pdf claims that a prefixed tilde produces a circumflex. > But it doesn't, even in the document -- everywhere there is supposed to be > a circumflex in the output, there is only a blank space in the pdf file! Yes, this is definitely wrong. The tilde produces the tilde-accent with the politonikogreek. > Preceding the tilde with a backslash in GFS Porson results in a simple > circumflex: \~v produces an omega with a circumflex. What I can't find > is how to combine the circumflex with smooth/rough breathing. Sorry, I'm not much familiar with greek, but as I see, there is no character in the font with a circumflex in it. There is even no circumflex in the LGR encoding. And v is not in the translantion table. Do you actually want the unicode character 1F67: "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI"? This is \char'301 in the LGR encoding and it's ascii input is <~w: \documentclass{article} \usepackage[LGR]{fontenc} \usepackage[polutonikogreek]{babel} \usepackage{gfsporson} \renewcommand{\rmdefault}{porson} \begin{document} <~w \char'301 \end{document} best regards, -- Plamen Tanovski Prager Str. 125, 04317 Leipzig Tel. (03 41) 3 08 57 60 From pierre.mackay at comcast.net Thu May 7 18:27:53 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Thu, 07 May 2009 09:27:53 -0700 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <6D878F94-E880-4565-8BF1-D935823A1FEC@telecom-bretagne.eu> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> <4A023786.7010404@comcast.net> <6D878F94-E880-4565-8BF1-D935823A1FEC@telecom-bretagne.eu> Message-ID: <4A030C09.7040808@comcast.net> Yannis Haralambous wrote: > Le 7 mai 09 ? 03:21, Pierre MacKay a ?crit : > >> A true Porson oughtn't to produce a tilde in any case. The tilde is a >> Didot form of >> perispomene, and one of the distinguishing marks of Porson is the >> simple >> rounded >> cap for perispomene (based on Porson's own handwriting.) > > > True, *but* nevertheless there is a tilde in the original Monotype > design of Porson (for me the only authentic Porson). As you can see > on the atatched screenshot, in the sixth box of the first row there > is a lovely eta with tilde (whose PostScript name is etatildealt). > Of course all combinations with breathings are missing, so we can > consider as "an exception confirming the rule". Probably some > important Monotype client asked for it, and so they added it to the > glyph set. > The only excuse for that might be the use of the tilde for the suspension of nu or mu, but I rather doubt that. Monotype may be the only "authentic" Porson right now, but it does make the break with Porson's odd combination of upright uppercase with oblique lowercase. (Probably a good idea, on the whole.) Why on earth anyone would want to do Monotonic ALPHATONOS in a Porson font, I cannot imagine. Isn't Greek Souvenir enough for everybody? Pierre MacKay From stefan.bjork at gmail.com Thu May 7 21:07:32 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Thu, 7 May 2009 21:07:32 +0200 Subject: [texhax] \usebox in environment to save text for future use In-Reply-To: References: Message-ID: 2009/5/5 Ulrike Fischer : >> I expect the following code to define the \mybox within the >> environment info for later use, but it does not work. The use of lrbox >> environment seem restricted to the info environment only. How to get >> around this? >> >> \documentclass{article} >> >> \newsavebox{\mybox} >> \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} >> >> \begin{document} >> >> \begin{info} >> This is some text. >> \end{info} >> >> \usebox{\mybox} >> >> \end{document} > > \newenvironment{info}{\global\lrbox{\mybox}}{\endlrbox} Can't make this work. Just adding \global does not seem to solve the issue. /S From dripley at email.unc.edu Thu May 7 23:31:21 2009 From: dripley at email.unc.edu (David Ripley) Date: Thu, 7 May 2009 17:31:21 -0400 Subject: [texhax] including graphics/graphicx Message-ID: Good morning! I'm having some trouble getting graphics.sty to work. When I try to include it (or graphicx, which calls it), I get the following error: ! Missing number, treated as zero. $ l.29 \catcode`\^^A =\catcode`\% I tried getting a fresh version of the package, but I get the same error. It seems to happen whether I call graphics or graphicx (the line getting errored is in graphics.sty), and whether I call them with or without the [pdftex] option (I'm using pdftex). For what it's worth, I have no trouble with the beamer class, which is calling these packages on its own. I get this problem with article, report, and book classes (all I've tried). I'm running teTeX through TeXShop on a mac with os 10.3.9. Any advice would be greatly appreciated. Thanks much! -Dave From joseph.wright at morningstar2.co.uk Fri May 8 07:25:24 2009 From: joseph.wright at morningstar2.co.uk (Joseph Wright) Date: Fri, 08 May 2009 06:25:24 +0100 Subject: [texhax] including graphics/graphicx In-Reply-To: References: Message-ID: <4A03C244.2080707@morningstar2.co.uk> David Ripley wrote: > Good morning! > > I'm having some trouble getting graphics.sty to work. When I try to > include it (or graphicx, which calls it), I get the following error: > > ! Missing number, treated as zero. > > $ > l.29 \catcode`\^^A > =\catcode`\% > > I tried getting a fresh version of the package, but I get the same > error. It seems to happen whether I call graphics or graphicx (the line > getting errored is in graphics.sty), and whether I call them with or > without the [pdftex] option (I'm using pdftex). For what it's worth, I > have no trouble with the beamer class, which is calling these packages > on its own. I get this problem with article, report, and book classes > (all I've tried). I'm running teTeX through TeXShop on a mac with os > 10.3.9. Any advice would be greatly appreciated. Thanks much! Please post a minimal example. This is a standard package ans works fine for most people. -- Joseph Wright From news3 at nililand.de Fri May 8 09:59:16 2009 From: news3 at nililand.de (Ulrike Fischer) Date: Fri, 8 May 2009 09:59:16 +0200 Subject: [texhax] \usebox in environment to save text for future use References: Message-ID: Am Thu, 7 May 2009 21:07:32 +0200 schrieb Stefan Bj?rk: > 2009/5/5 Ulrike Fischer : >>> I expect the following code to define the \mybox within the >>> environment info for later use, but it does not work. The use of lrbox >>> environment seem restricted to the info environment only. How to get >>> around this? >>> \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} ... >> \newenvironment{info}{\global\lrbox{\mybox}}{\endlrbox} > Can't make this work. Just adding \global does not seem to solve the issue. My code doesn't not "just add" \global. I have made some more changes. -- Ulrike Fischer From uwe.lueck at web.de Fri May 8 13:27:54 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Fri, 08 May 2009 13:27:54 +0200 Subject: [texhax] \usebox in environment to save text for future use Message-ID: <1129520947@web.de> Ulrike Fischer schrieb am 08.05.2009 10:02:08: > Am Thu, 7 May 2009 21:07:32 +0200 schrieb Stefan Bj?rk: > > > 2009/5/5 Ulrike Fischer : > >>> I expect the following code to define the \mybox within the > >>> environment info for later use, but it does not work. The use of lrbox > >>> environment seem restricted to the info environment only. How to get > >>> around this? > > >>> \newenvironment{info}{\begin{lrbox}{\mybox}}{\end{lrbox}} > ... > >> \newenvironment{info}{\global\lrbox{\mybox}}{\endlrbox} > > > Can't make this work. Just adding \global does not seem to solve the issue. > > My code doesn't not "just add" \global. I have made some more > changes. Just do not define a new environment for this purpose. Use \begin{lrbox}{\mybox}...\end{lrbox} which serves this purpose already. -- HTH, Uwe. From hongyi.zhao at gmail.com Sat May 9 13:53:26 2009 From: hongyi.zhao at gmail.com (hongyi.zhao at gmail.com) Date: Sat, 9 May 2009 19:53:26 +0800 Subject: [texhax] Use fancyhdr to obtain different page layouts for different chapter of my thesis. Message-ID: <721244167.20090509195326@gmail.com> Dear Texers, How to use fancyhdr to obtain different page layouts for different chapter of my thesis. Thanks in advance. -- Hongyi Zhao Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493 2009-5-9 From peter.king at utoronto.ca Sat May 9 14:02:04 2009 From: peter.king at utoronto.ca (Peter King) Date: Sat, 9 May 2009 08:02:04 -0400 Subject: [texhax] GFS Porson polytonic keymap? In-Reply-To: <4A029304.1020300@Rhul.Ac.Uk> References: <20090505024143.GC5040@amtoo.utoronto.ca> <20090506124957.GC9177@amtoo.utoronto.ca> <86140150-87C8-4DEC-9821-4B34C15BAD4E@norvelle.org> <20090506222940.GA24720@amtoo.utoronto.ca> <4A023786.7010404@comcast.net> <4A029304.1020300@Rhul.Ac.Uk> Message-ID: <20090509120204.GC31421@amtoo.utoronto.ca> Thanks to all for the suggestions and help. Now it's down to a precise question: how to combine circumflex with rough/smooth breathing, using 7-bit encoding. GFS Porson seems *not* to use Levy-Beccari encoding for this, nor any readily discoverable scheme. I guess I'll just have to print out all the glyphs and access the necessary ones via \char or some such clunky system -- unless anyone has a better thought. -- Peter King peter.king at utoronto.ca Department of Philosophy 170 St. George Street #521 The University of Toronto (416)-978-4951 ofc Toronto, ON M5R 2M8 CANADA http://individual.utoronto.ca/pking/ ========================================================================= GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC 36F5 1FE6 D32A 7587 EC42) gpg --keyserver pgp.mit.edu --recv-keys 7587EC42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090509/909d5c89/attachment.bin From vafak9 at gmail.com Sun May 10 07:02:04 2009 From: vafak9 at gmail.com (Vafa Khalighi) Date: Sun, 10 May 2009 15:02:04 +1000 Subject: [texhax] Hacking array.sty Message-ID: <7ac5ed450905092202y6d6cbc06nbbe6df4c2b392a19@mail.gmail.com> Hello I eventually came up with a hack for array.sty that make it work in RTL, this is what I have done: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass{article} \usepackage{array} \makeatletter \TeXXeTstate=1 \def\@tabular{% \leavevmode \hbox \bgroup \beginR $\col at sep\tabcolsep \let\d at llarbegin\begingroup \let\d at llarend\endgroup \@tabarray} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\endarray{\crcr\egroup\egroup\endR\egroup \egroup \gdef\@preamble{}} \def\endtabular{\endarray $\endR\egroup} \expandafter\let\csname endtabular*\endcsname=\endtabular %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\@array[#1]#2{\setbox\@arstrutbox=\hbox{\vrule height\arraystretch \ht\strutbox depth\arraystretch \dp\strutbox width\z@}\@mkpream{#2}\xdef\@preamble{\noexpand \halign \@halignto \bgroup \tabskip\z@ \@arstrut \@preamble \tabskip\z@ \cr} \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi \bgroup \let\par\relax \let\@sharp##\let\protect\relax \lineskip\z@\baselineskip\z@\m at th \hbox\bgroup\beginR\vbox\bgroup \@preamble} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \makeatother \begin{document} \begin{tabular}{|l|l|}\hline vafa&khalighi\\ \hline \end{tabular} \end{document} But unfortunately when compiling the document, I get the following error: %%%%%%%%%%%%%%%%%%%%%% This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %&-line parsing enabled. entering extended mode (./test.tex LaTeX2e <2005/12/01> Babel and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, r omanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turki sh, ukenglish, ukrainian, uppersorbian, welsh, loaded. (/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2008/texmf-dist/tex/latex/tools/array.sty) (./test.aux) ! Missing $ inserted. $ l.35 \end{tabular} ? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I have got no clue where this error come from? can someone please help? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090510/203b89a3/attachment.html From Susan.Dittmar at gmx.de Mon May 11 12:04:43 2009 From: Susan.Dittmar at gmx.de (Susan Dittmar) Date: Mon, 11 May 2009 12:04:43 +0200 Subject: [texhax] Use fancyhdr to obtain different page layouts for different chapter of my thesis. In-Reply-To: <721244167.20090509195326@gmail.com> References: <721244167.20090509195326@gmail.com> Message-ID: <20090511100443.GD18866@eureca.de> > How to use fancyhdr to obtain different page layouts for different > chapter of my thesis. That depends on what kind of page layouts you wish to obtain. If you describe more in detail what you want to achieve, I am sure someone will find a solution. The commands for fancyhdr can be easily repeated each chapter, if that's necessary. Susan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090511/f71da721/attachment.bin From hongyi.zhao at gmail.com Mon May 11 13:01:13 2009 From: hongyi.zhao at gmail.com (hongyi.zhao at gmail.com) Date: Mon, 11 May 2009 19:01:13 +0800 Subject: [texhax] Use fancyhdr to obtain different page layouts for different chapter of my thesis. In-Reply-To: <20090511100443.GD18866@eureca.de> References: <721244167.20090509195326@gmail.com> <20090511100443.GD18866@eureca.de> Message-ID: <199141264.20090511190113@gmail.com> On Monday, May 11, 2009 at 18:04, Susan.Dittmar at gmx.de wrote: >> How to use fancyhdr to obtain different page layouts for different >> chapter of my thesis. > That depends on what kind of page layouts you wish to obtain. If you > describe more in detail what you want to achieve, I am sure someone will > find a solution. > The commands for fancyhdr can be easily repeated each chapter, if that's > necessary. > Susan Thanks a lot, I've got it with the help of Dr. Piet, the author of fancyhdr: --------------------------------------- On Sunday, May 10, 2009 at 6:13, piet at cs.uu.nl wrote: >>>>>> Hongsheng Zhao (HZ) wrote: >>HZ> Dear Dr. Piet, >>HZ> How to use your fancyhdr package to obtain different page layouts for different chapter of my thesis? In my case, the template of the thesis is a enhanced version based on the standard LaTeX book class. > Hello Hongsheng Zhao, > Can you tell me what exactly you mean with different page layouts? Is > this just different kinds of headers and footers or also other > aspects, like page size? > If you just want to have different headers and/or footers in a > different chapter, you can do something like this: Currently, I just want to have different headers and/or footers in a different chapter. Thanks a lot for your help. I've got it. > \chapter{xxxx} > \lhead{xxx} etc change the fancyhdr layout > You can also give names to page styles like this: > \newpagestyle{chappagestyle}{ > \lhead{xxx} > \rhead{yyy} > etc > } > \chapter{xxxx} > \pagestyle{chappagestyle} > Hope this helps. > With kind regards, Warmly regards, -- Hongsheng Zhao Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493 2009-5-10 --------------------------------------- -- Hongyi Zhao Xinjiang Technical Institute of Physics and Chemistry Chinese Academy of Sciences GnuPG DSA: 0xD108493 2009-5-11 From vafak9 at gmail.com Mon May 11 15:39:50 2009 From: vafak9 at gmail.com (Vafa Khalighi) Date: Mon, 11 May 2009 23:39:50 +1000 Subject: [texhax] Hacking longtable.sty Message-ID: <7ac5ed450905110639s8d839a9u5201dae76e2e8509@mail.gmail.com> Hello Today I wrote a hack for longtable.sty that it actually makes longtable typeset RTL tables which means it can typeset columns from right to left and each entry in the cell will be written from right to left. This is done by assuming only \beginR, and \endR primitives. This is my code %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newif\if at RTLtab \global\@RTLtabfalse \def\LT at makecaption#1#2#3{% \LT at mcol\LT at cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{% \sbox\@tempboxa{\if at RTL\beginR\fi#1{#2: }#3\if at RTL\endR\fi}% \ifdim\wd\@tempboxa>\hsize #1{#2: }#3% \else \hbox to\hsize{\hfil\box\@tempboxa\hfil}% \fi \endgraf\vskip\baselineskip}% \hss}}} \def\longtable{\if at RTL\global\@RTLtabtrue\fi% \par \ifx\multicols\@undefined \else \ifnum\col at number>\@ne \@twocolumntrue \fi \fi \if at twocolumn \LT at err{longtable not in 1-column mode}\@ehc \fi \begingroup \if at RTLtab\beginR \fi \@ifnextchar[\LT at array{\LT at array[x]}} \def\LT at array[#1]#2{% \refstepcounter{table}\stepcounter{LT at tables}% \if l#1% \LTleft\z@ \LTright\fill \else\if r#1% \LTleft\fill \LTright\z@ \else\if c#1% \LTleft\fill \LTright\fill \fi\fi\fi \let\LT at mcol\multicolumn \let\LT@@tabarray\@tabarray \let\LT@@hl\hline \def\@tabarray{% \let\hline\LT@@hl \LT@@tabarray}% \let\\\LT at tabularcr\let\tabularnewline\\% \def\newpage{\noalign{\break}}% \def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT at no@pgbk-}4}% \def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT at no@pgbk4}% \let\hline\LT at hline \let\kill\LT at kill\let\caption\LT at caption \@tempdima\ht\strutbox \let\@endpbox\LT at endpbox \ifx\extrarowheight\@undefined \let\@acol\@tabacol \let\@classz\@tabclassz \let\@classiv\@tabclassiv \def\@startpbox{\vtop\LT at startpbox}% \let\@@startpbox\@startpbox \let\@@endpbox\@endpbox \let\LT at LL@FM at cr\@tabularcr \else \advance\@tempdima\extrarowheight \col at sep\tabcolsep \let\@startpbox\LT at startpbox\let\LT at LL@FM at cr\@arraycr \fi \setbox\@arstrutbox\hbox{\vrule \@height \arraystretch \@tempdima \@depth \arraystretch \dp \strutbox \@width \z@}% \let\@sharp##\let\protect\relax \begingroup \@mkpream{#2}% \xdef\LT at bchunk{% \global\advance\c at LT@chunks\@ne \global\LT at rows\z@\setbox\z@\vbox\bgroup \LT at setprevdepth \tabskip\LTleft \noexpand\halign to\hsize\bgroup \tabskip\z@ \@arstrut \@preamble \tabskip\LTright \cr}% \endgroup \expandafter\LT at nofcols\LT at bchunk&\LT at nofcols \LT at make@row \m at th\let\par\@empty \everycr{}\lineskip\z@\baselineskip\z@ \if at RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi \LT at bchunk} \def\endlongtable{% \crcr \noalign{% \let\LT at entry\LT at entry@chop \xdef\LT at save@row{\LT at save@row}}% \LT at echunk \LT at start \unvbox\z@ \LT at get@widths \if at filesw {\let\LT at entry\LT at entry@write\immediate\write\@auxout{% \gdef\expandafter\noexpand \csname LT@\romannumeral\c at LT@tables\endcsname {\LT at save@row}}}% \fi \ifx\LT at save@row\LT@@save at row \else \LT at warn{Column \@width s have changed\MessageBreak in table \thetable}% \LT at final@warn \fi \endgraf\penalty -\LT at end@pen \egroup\if at RTLtab\endR\egroup\fi \if at RTLtab\endR\fi \endgroup \global\@mparbottom\z@ \pagegoal\vsize \endgraf\penalty\z@\addvspace\LTpost \ifvoid\footins\else\insert\footins{}\fi \global\@RTLtabfalse} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Now this code makes longtable.sty typeset tables from right to left. But it unfortunately does not make longtable to break table when a page is finished. For eaxmple I have attached a tex file and its pdf output. Can you please tell me how can I solve the issue? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090511/c2d5e271/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tex Type: application/x-tex Size: 3009 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090511/c2d5e271/attachment-0001.tex -------------- next part -------------- A non-text attachment was scrubbed... Name: test.pdf Type: application/pdf Size: 51023 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090511/c2d5e271/attachment-0001.pdf From david.lentini at gmail.com Mon May 11 18:20:16 2009 From: david.lentini at gmail.com (David Lentini) Date: Mon, 11 May 2009 12:20:16 -0400 Subject: [texhax] Help Needed with Texlive 2008 on Linux Kubuntu x86_64 Message-ID: <54c6693c0905110920i48e14f78i7a390e7f3824616c@mail.gmail.com> Hi! I installed Texlive 2008 using the installer-tl script I downloaded from TUG a few weeks ago. Everything seemed to go well, but when I ran tlmgr today, I got the following error: "Fundamental package bin-texlive not present, that is sooo bad." I can't figure out a way to fix this. What can I do? Thanks, David Lentini From stefan.bjork at gmail.com Mon May 11 21:52:59 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Mon, 11 May 2009 21:52:59 +0200 Subject: [texhax] \usebox in environment to save text for future use In-Reply-To: <1129520947@web.de> References: <1129520947@web.de> Message-ID: > Just do not define a new environment for this purpose. Use \begin{lrbox}{\mybox}...\end{lrbox} which serves this purpose already. But then I need a minibox to handle more than a single paragraph? The idea of creating a new environment is to make a comprehensive and elegant interface for a package. The same thing can be achieved with a command, but an environment should have been a more elegant solution, in my opinion. /S From stefan.bjork at gmail.com Mon May 11 22:03:59 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Mon, 11 May 2009 22:03:59 +0200 Subject: [texhax] Using TrueType fonts in LaTeX Message-ID: This is a frequent question and I have read numerous articles and hotwos on the internet, but still fail. What I want to do is to create versions of Georgia (jgi) and Verdana (jvn) fonts for use with LaTeX. It works fairly well with pdfTeX (which have native support for TrueType fonts), but I can't get this to work with DVI files. In MikTeX, it does not work at all, and in texlive the font encoding seem corrupted (for example, the character 'h' is displayed as something completely different). How can I install TrueType fonts in LaTeX with working DVI support? Converting them to PostScript? Using fontinst (which is a competent but complex beast)? Or has someone already gone through the work of adapting the Microsoft core fonts for LaTeX and can send me the relevant files? /S 2009/2/20 Stefan Bj?rk : > I have managed to install some of the Microsoft core fonts in TeX > (texlive and MikTeX), namely Georgia (jgi) and Verdana (jvn). This > works well with pdfTeX, but when ordinary TeX and DVI files are used, > the wrong glyphs are used for non ASCII characets. > > I guess this is a matter of using the ttf2tfm tools correctly, but > this is a quite complicated tool that requires knowledge about > typesetting and truetype fonts that I do not have. > > Has someone succeeded in creating working TFM files for Microsoft TTF > files, with working ligatures and european latin characters? > > /S > From uwe.lueck at web.de Mon May 11 22:25:09 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Mon, 11 May 2009 22:25:09 +0200 Subject: [texhax] \usebox in environment to save text for future use Message-ID: <1131315769@web.de> Stefan Bj?rk schrieb am 11.05.2009 21:55:25: > > Just do not define a new environment for this purpose. Use \begin{lrbox}{\mybox}...\end{lrbox} which serves this purpose already. > > But then I need a minibox to handle more than a single paragraph? > > The idea of creating a new environment is to make a comprehensive and > elegant interface for a package. The same thing can be achieved with a > command, but an environment should have been a more elegant solution, > in my opinion. It was indeed not a perfect idea to use a box environment for storing something. The lrbox environment stores a horizontal list, while you may rather want to store just code, i.e. (?), a list of tokens. -- I can tell you something simple for this, but not tonight, and perhaps http://www.ctan.org/pkg/collect already helps. -- I found this on http://mirror.ctan.org/help/Catalogue/bytopic.html maybe there is more. HTH -- Uwe. From karl at freefriends.org Mon May 11 23:02:53 2009 From: karl at freefriends.org (Karl Berry) Date: Mon, 11 May 2009 16:02:53 -0500 Subject: [texhax] Using TrueType fonts in LaTeX In-Reply-To: Message-ID: <200905112102.n4BL2rJ22202@f7.net> How can I install TrueType fonts in LaTeX with working DVI support? Since dvips does not support truetype (volunteer programmers welcome :), you have to convert them to Type 1. adapting the Microsoft core fonts for LaTeX and can send me the relevant files? I was under the impression that the license of the MS core fonts prohibited their translation to other formats. From yannis.haralambous at telecom-bretagne.eu Mon May 11 23:28:31 2009 From: yannis.haralambous at telecom-bretagne.eu (Yannis Haralambous) Date: Mon, 11 May 2009 23:28:31 +0200 Subject: [texhax] Using TrueType fonts in LaTeX In-Reply-To: <200905112102.n4BL2rJ22202@f7.net> References: <200905112102.n4BL2rJ22202@f7.net> Message-ID: > I was under the impression that the license of the MS core fonts > prohibited their translation to other formats. Technically speaking, going from TrueType to Type 42 is not really a conversion but rather an encapsulation... But maybe M$ lawyers do not agree with that assertion. yh From john at wexfordpress.com Mon May 11 23:34:38 2009 From: john at wexfordpress.com (john) Date: Mon, 11 May 2009 17:34:38 -0400 Subject: [texhax] Using TrueType fonts in LaTeX In-Reply-To: References: Message-ID: <200905111734.38585.john@wexfordpress.com> On Monday 11 May 2009 16:03:59 Stefan Bj?rk wrote: > This is a frequent question and I have read numerous articles and > hotwos on the internet, but still fail. > > What I want to do is to create versions of Georgia (jgi) and > Verdana (jvn) fonts for use with LaTeX. It works fairly well with > pdfTeX (which have native support for TrueType fonts), but I can't > get this to work with DVI files. In MikTeX, it does not work at > all, and in texlive the font encoding seem corrupted (for example, > the character 'h' is displayed as something completely different). > > How can I install TrueType fonts in LaTeX with working DVI support? > Converting them to PostScript? Using fontinst (which is a competent > but complex beast)? Or has someone already gone through the work of > adapting the Microsoft core fonts for LaTeX and can send me the > relevant files? > > /S > > 2009/2/20 Stefan Bj?rk : > > I have managed to install some of the Microsoft core fonts in TeX > > (texlive and MikTeX), namely Georgia (jgi) and Verdana (jvn). > > This works well with pdfTeX, but when ordinary TeX and DVI files > > are used, the wrong glyphs are used for non ASCII characets. > > > > I guess this is a matter of using the ttf2tfm tools correctly, > > but this is a quite complicated tool that requires knowledge > > about typesetting and truetype fonts that I do not have. > > > > Has someone succeeded in creating working TFM files for Microsoft > > TTF files, with working ligatures and european latin characters? > > > > /S Is dvi essential to your workflow? John Culleton From reinhard.kotucha at web.de Tue May 12 00:32:49 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Tue, 12 May 2009 00:32:49 +0200 Subject: [texhax] Using TrueType fonts in LaTeX In-Reply-To: References: <200905112102.n4BL2rJ22202@f7.net> Message-ID: <18952.42897.370290.916392@zaphod.ms25.net> On 11 May 2009 Yannis Haralambous wrote: > > I was under the impression that the license of the MS core fonts > > prohibited their translation to other formats. > > > Technically speaking, going from TrueType to Type 42 is not really a > conversion but rather an encapsulation... > > But maybe M$ lawyers do not agree with that assertion. Most font vendors disallow you to change their fonts. But they all are happy if you put a subset rather than the whole font into the documents you distribute. No idea what they really want. :) Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From karl at freefriends.org Mon May 11 23:33:16 2009 From: karl at freefriends.org (Karl Berry) Date: Mon, 11 May 2009 16:33:16 -0500 Subject: [texhax] Help Needed with Texlive 2008 on Linux Kubuntu x86_64 In-Reply-To: <54c6693c0905110920i48e14f78i7a390e7f3824616c@mail.gmail.com> Message-ID: <200905112133.n4BLXG401545@f7.net> Hi David, (Thanks for renewing your TUG membership!) "Fundamental package bin-texlive not present, that is sooo bad." My best guess is that there was some temporary connectivity problem and the new tlpdb did not fully download. You may want to choose a mirror explicitly from the list (http://ctan.org/mirrors). Hope this helps, Karl From stefan.bjork at gmail.com Tue May 12 08:54:34 2009 From: stefan.bjork at gmail.com (=?ISO-8859-1?Q?Stefan_Bj=F6rk?=) Date: Tue, 12 May 2009 08:54:34 +0200 Subject: [texhax] Using TrueType fonts in LaTeX In-Reply-To: <200905111734.38585.john@wexfordpress.com> References: <200905111734.38585.john@wexfordpress.com> Message-ID: > Is dvi essential to your workflow? No -- but desired. My best bet so far is to use the ttf2tex script, but that one is rather old, outdated and not completely compatible with texlive. With some manual tweaking, however, it works with pdfTeX -- but ordinary TeX and DVI files fail. I also had a look at the winfonts package, but that one does not follow the Karl Berry font naming scheme. I kind of like those cryptic font names. :-) /S From mahi2308 at rediffmail.com Wed May 13 14:04:57 2009 From: mahi2308 at rediffmail.com (mahi) Date: 13 May 2009 12:04:57 -0000 Subject: [texhax] pdflatex and figure Message-ID: <20090513120457.50879.qmail@f4mail-235-234.rediffmail.com> Hi I am using the pdflatex and the figures are in .pdf format, In figures the .otf fonts have been used when i process this figures through pdflatex some characters are coming empty, because it is not with in 256 characters. Is there any way to skip the figure portion like .eps by using pdflatex. Thanks Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090513/5c9c9a2a/attachment.html From rodolfo.medina at gmail.com Wed May 13 23:43:07 2009 From: rodolfo.medina at gmail.com (Rodolfo Medina) Date: Wed, 13 May 2009 22:43:07 +0100 Subject: [texhax] Text vertical shifting in output Message-ID: <87fxf8el1w.fsf@gmail.com> Hallo to all (La)TeX users. Suppose that I put here: , but I want that in the output it is shifted a few lines vertically down, i.e. in the output it should not appear where I put it in the source tex file but a few lines below. Is it possible, and how? Thanks for any help Rodolfo From P.Taylor at Rhul.Ac.Uk Wed May 13 23:11:15 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Wed, 13 May 2009 22:11:15 +0100 Subject: [texhax] Text vertical shifting in output In-Reply-To: <87fxf8el1w.fsf@gmail.com> References: <87fxf8el1w.fsf@gmail.com> Message-ID: <4A0B3773.5040708@Rhul.Ac.Uk> Precede it by \vskip n\baselineskip, where n = "a few". Rodolfo Medina wrote: > Hallo to all (La)TeX users. > > Suppose that I put here: > > > > , but I want that in the output it is shifted a few lines vertically down, > i.e. in the output it should not appear where I put it in the source tex file > but a few lines below. > > Is it possible, and how? > > Thanks for any help > Rodolfo > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org From rodolfo.medina at gmail.com Thu May 14 12:14:26 2009 From: rodolfo.medina at gmail.com (Rodolfo Medina) Date: Thu, 14 May 2009 11:14:26 +0100 Subject: [texhax] Text vertical shifting in output References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> Message-ID: <877i0kgfel.fsf@gmail.com> Rodolfo Medina wrote: >> Suppose that I put here: >> >> >> >> , but I want that in the output it is shifted a few lines vertically down, >> i.e. in the output it should not appear where I put it in the source tex >> file but a few lines below. >> >> Is it possible, and how? "Philip TAYLOR (Ret'd)" writes: > Precede it by \vskip n\baselineskip, > where n = "a few". I'll try to better explain what I want: only should be shifted down, but not the text following it. In other words, should be output by TeX n lines forward respect to where it is in the source, but not the rest of the text. Rodolfo From news3 at nililand.de Thu May 14 11:45:57 2009 From: news3 at nililand.de (Ulrike Fischer) Date: Thu, 14 May 2009 11:45:57 +0200 Subject: [texhax] Text vertical shifting in output References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> <877i0kgfel.fsf@gmail.com> Message-ID: <1uuqhznudz4vh.dlg@nililand.de> Am Thu, 14 May 2009 11:14:26 +0100 schrieb Rodolfo Medina: > I'll try to better explain what I want: only should be shifted > down, but not the text following it. In other words, should be > output by TeX n lines forward respect to where it is in the source, but not the > rest of the text. \documentclass{article} \usepackage{color,lipsum} \begin{document} abc \raisebox{-5\baselineskip}[0pt][0pt]{% \color{red}some text shifted around} \lipsum[1] \end{document} -- Ulrike Fischer From P.Taylor at Rhul.Ac.Uk Thu May 14 11:53:11 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Thu, 14 May 2009 10:53:11 +0100 Subject: [texhax] Text vertical shifting in output In-Reply-To: <877i0kgfel.fsf@gmail.com> References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> <877i0kgfel.fsf@gmail.com> Message-ID: <4A0BEA07.7010801@Rhul.Ac.Uk> Rodolfo Medina wrote: > I'll try to better explain what I want: only should be shifted > down, but not the text following it. In other words, should be > output by TeX n lines forward respect to where it is in the source, but not the > rest of the text. OK, try this : \vtop to 0 pt \bgroup \strut \vskip n-1\baselineskip \vss \egroup Philip TAYLOR From rechtsteiner at bgki.net Wed May 13 18:32:39 2009 From: rechtsteiner at bgki.net (rechtsteiner at bgki.net) Date: Wed, 13 May 2009 18:32:39 +0200 (CEST) Subject: [texhax] TrueType Font for Latex without success Message-ID: <55773.212.147.43.113.1242232359.squirrel@mail.xnos.de> Dear listmembers, I have spent my day on trying to figure out how to make latex use a commercial TTF (Strada). Of course I read the guideline available at http://www.radamir.com/tex/ttf-tex.htm. But it did not work for me. When generating the dvi or pdf, I get the warning "LaTeX Font Warning: Font shape T1/str/m/n undefined". str is the name I have chosen for the font. My .fd look like that: \ProvidesFile{t1str.fd}[Strada Family] \DeclareFontFamily{T1}{str}{} \DeclareFontShape{T1}{str}{b}{n}{<->ecstfbd}{} \DeclareFontShape{T1}{str}{b}{it}{<-> ecstfbdit}{} \DeclareFontShape{T1}{str}{m}{n}{<-> ecstfrg}{} \DeclareFontShape{T1}{str}{m}{it}{<-> ecstfrgit}{} \DeclareFontShape{T1}{str}{bx}{n}{<->ssub * str/b/n}{} \DeclareFontShape{T1}{str}{bx}{it}{<->ssub * str/b/it}{} \endinput The .tfm and .vf files are named as follows: (r)ecstfbd for StradaTF Bold (r)ecstflt for StradaTF Light (r)ecstfrg for StradaTF Regular (r)ecstfsbd for StradaTF Semi-Bold and 4 files (r)ec...it for italic (.vf and .tfm), so there are 8 .vf and 16 .tfm files. I have used T1-WGL4.enc and added the lines recstflt STfLt___.ttf Encoding=T1-WGL4.enc recstfrg STfRg___.ttf Encoding=T1-WGL4.enc recstfsbd STfSBd__.ttf Encoding=T1-WGL4.enc recstfbd STfBd___.ttf Encoding=T1-WGL4.enc recstfltit STfLtIt_.ttf Encoding=T1-WGL4.enc recstfsbdit STfSBdIt.ttf Encoding=T1-WGL4.enc recstfbdit STfBdIt_.ttf Encoding=T1-WGL4.enc recstfrgit STfRgIt_.ttf Encoding=T1-WGL4.enc to the ttfonts.map. tex testfont ends up with a .dvi that I have converted to pdf to prove the result. It works fine. But when performing a test in LaTeX, things look different. I tried this with a simple document: \documentclass{article} \begin{document} \usefont{T1}{str}{m}{n} Hello, I hope being typeset in StradaTF Regular \end{document} LaTeX then warns about the undefined font shape and replaces it with T1/cmr/m/n. Can anyone out there please tell me what is wrong here or give me some hint? Thanks in advance. Ah, sorry: ProTeXt-2.2 (MikTeX 2.7 + TeXnicCenter) on XP SP3 cheers, josuah From news3 at nililand.de Thu May 14 17:01:59 2009 From: news3 at nililand.de (Ulrike Fischer) Date: Thu, 14 May 2009 17:01:59 +0200 Subject: [texhax] TrueType Font for Latex without success References: <55773.212.147.43.113.1242232359.squirrel@mail.xnos.de> Message-ID: Am Wed, 13 May 2009 18:32:39 +0200 (CEST) schrieb rechtsteiner at bgki.net: > Dear listmembers, > > I have spent my day on trying to figure out how to make latex use a > commercial TTF (Strada). Of course I read the guideline available at > http://www.radamir.com/tex/ttf-tex.htm. But it did not work for me. > When generating the dvi or pdf, I get the warning > > "LaTeX Font Warning: Font shape T1/str/m/n undefined". > > str is the name I have chosen for the font. > My .fd look like that: [...] I would say LaTeX doesn't find the fd. Is the name t1str.fd? Where did you put it? Did you update the FNDB? -- Ulrike Fischer From rodolfo.medina at gmail.com Fri May 15 14:17:07 2009 From: rodolfo.medina at gmail.com (Rodolfo Medina) Date: Fri, 15 May 2009 13:17:07 +0100 Subject: [texhax] Text vertical shifting in output References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> <877i0kgfel.fsf@gmail.com> <1uuqhznudz4vh.dlg@nililand.de> Message-ID: <87tz3m1ry4.fsf@gmail.com> Rodolfo Medina wrote: >> Suppose that I put here: >> >> >> >> , but I want that in the output it is shifted a few lines vertically down, >> i.e. in the output it should not appear where I put it in the source tex >> file but a few lines below. >> >> Is it possible, and how? >> >> [...] >> >> only should be shifted down, but not the text following it. In >> other words, should be output by TeX n lines forward respect to >> where it is in the source, but not the rest of the text. Ulrike Fischer writes: > \documentclass{article} > \usepackage{color,lipsum} > \begin{document} > > abc > \raisebox{-5\baselineskip}[0pt][0pt]{% > \color{red}some text shifted around} > > \lipsum[1] > > \end{document} Thanks for your help. But I should have mentioned that I'm a plain TeX user. Bye Rodolfo From rodolfo.medina at gmail.com Fri May 15 14:14:19 2009 From: rodolfo.medina at gmail.com (Rodolfo Medina) Date: Fri, 15 May 2009 13:14:19 +0100 Subject: [texhax] [solved] Re: Text vertical shifting in output References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> <877i0kgfel.fsf@gmail.com> <4A0BEA07.7010801@Rhul.Ac.Uk> Message-ID: <87ws8i36n8.fsf_-_@gmail.com> Rodolfo Medina wrote: >> Suppose that I put here: >> >> >> >> , but I want that in the output it is shifted a few lines vertically down, >> i.e. in the output it should not appear where I put it in the source tex >> file but a few lines below. >> >> Is it possible, and how? >> >> [...] >> >> only should be shifted down, but not the text following it. In >> other words, should be output by TeX n lines forward respect to >> where it is in the source, but not the rest of the text. "Philip TAYLOR (Ret'd)" writes: > > OK, try this : > > > > \vtop to 0 pt > \bgroup > \strut > \vskip n-1\baselineskip > > \vss > \egroup > > Thanks, this seems to work! Rodolfo From P.Taylor at Rhul.Ac.Uk Fri May 15 13:45:53 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Fri, 15 May 2009 12:45:53 +0100 Subject: [texhax] [solved] Re: Text vertical shifting in output In-Reply-To: <87ws8i36n8.fsf_-_@gmail.com> References: <87fxf8el1w.fsf@gmail.com> <4A0B3773.5040708@Rhul.Ac.Uk> <877i0kgfel.fsf@gmail.com> <4A0BEA07.7010801@Rhul.Ac.Uk> <87ws8i36n8.fsf_-_@gmail.com> Message-ID: <4A0D55F1.1090606@Rhul.Ac.Uk> Excellent news ! Rodolfo Medina wrote: > "Philip TAYLOR (Ret'd)" writes: > >> OK, try this : >> >> >> >> \vtop to 0 pt >> \bgroup >> \strut >> \vskip n-1\baselineskip >> >> \vss >> \egroup >> >> > Thanks, this seems to work! > Rodolfo From c.p.a.schneider at tudelft.nl Fri May 15 14:59:42 2009 From: c.p.a.schneider at tudelft.nl (Carl Schneider) Date: Fri, 15 May 2009 14:59:42 +0200 Subject: [texhax] ghostview vs gsview Message-ID: <4A0D673E.70005@tudelft.nl> Beste mensen, Ik zou u het volgende willen vragen: Ik ben lid van de TeX gebruikersgroep. Aangezien er voor de windows tex gebruikers een postscript viewer nodig is, gebruiken er veel mensen GSView, maar daar zitten kosten aan verbonden. Als je GSView gratis wil blijven gebruiken, krijg je iedere keer een pop-up window waaraan je herinnerd wordt dat je hier eigenlijk voor moet betalen. Linux tex gebruikers kunnen het gratis Ghostview programma gebruiken, maar dit kan ik nergens vinden om het te downloaden voor windows. Zou iemand mij daarbij kunnen helpen? Alvast bedankt. Met vriendelijke groet, Carl Schneider -- --------------------------------------- Carl Schneider Ondersteuning Onderzoek / Systeembeheer TUDelft/EWI/DIAM (ICT /3xO) c.p.a.schneider at tudelft.nl Mekelweg 4 2628 CD Delft Tel. +31 (0) 15 - 2784591 Fax +31 (0) 15 - 2787255 From uwe.lueck at web.de Fri May 15 17:53:22 2009 From: uwe.lueck at web.de (Uwe =?iso-8859-1?Q?L=FCck?=) Date: Fri, 15 May 2009 17:53:22 +0200 Subject: [texhax] ghostview vs gsview In-Reply-To: <4A0D673E.70005@tudelft.nl> Message-ID: <5.1.0.14.0.20090515174448.026510f0@pop3.web.de> Sorry, I am unable to write Dutch, pages.cs.wisc.edu/~ghost/ indicates that there is no Ghostview for Windows, and I don't know about the GSview behavior (which I have experienced myself), but according to my experience, you needn't worry about this if you use the MiKTeX installation. You can download MiKTeX 2.7 for free from www.miktex.org. Cheers, Uwe. At 14:59 15.05.09, Carl Schneider wrote: >Beste mensen, > >Ik zou u het volgende willen vragen: >Ik ben lid van de TeX gebruikersgroep. >Aangezien er voor de windows tex gebruikers een postscript viewer nodig >is, gebruiken er veel mensen GSView, maar daar zitten kosten aan verbonden. >Als je GSView gratis wil blijven gebruiken, krijg je iedere keer een >pop-up window waaraan je herinnerd wordt dat je hier eigenlijk voor moet >betalen. >Linux tex gebruikers kunnen het gratis Ghostview programma gebruiken, >maar dit kan ik nergens vinden om het te downloaden voor windows. >Zou iemand mij daarbij kunnen helpen? >Alvast bedankt. > >Met vriendelijke groet, >Carl Schneider From asnd at triumf.ca Sat May 16 13:39:40 2009 From: asnd at triumf.ca (Donald Arseneau) Date: 16 May 2009 04:39:40 -0700 Subject: [texhax] ghostview vs gsview In-Reply-To: <5.1.0.14.0.20090515174448.026510f0@pop3.web.de> References: <5.1.0.14.0.20090515174448.026510f0@pop3.web.de> Message-ID: Uwe L?ck writes: > Sorry, I am unable to write Dutch, Sadly, the only Dutch words I know are along the lines klaar, nee, zit, blijven, wachten/wacht, af, liggen, kommen hier, terug, hoog -- Donald Arseneau asnd at triumf.ca From reinhard.kotucha at web.de Sun May 17 04:43:48 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Sun, 17 May 2009 04:43:48 +0200 Subject: [texhax] ghostview vs gsview In-Reply-To: <4A0D673E.70005@tudelft.nl> References: <4A0D673E.70005@tudelft.nl> Message-ID: <18959.31204.498001.74532@zaphod.ms25.net> On 15 May 2009 Carl Schneider wrote: > Beste mensen, > > Ik zou u het volgende willen vragen: > Ik ben lid van de TeX gebruikersgroep. > Aangezien er voor de windows tex gebruikers een postscript viewer nodig > is, gebruiken er veel mensen GSView, maar daar zitten kosten aan verbonden. > Als je GSView gratis wil blijven gebruiken, krijg je iedere keer een > pop-up window waaraan je herinnerd wordt dat je hier eigenlijk voor moet > betalen. > Linux tex gebruikers kunnen het gratis Ghostview programma gebruiken, > maar dit kan ik nergens vinden om het te downloaden voor windows. > Zou iemand mij daarbij kunnen helpen? > Alvast bedankt. Hi Carl, as far as I understand, you are looking for a free PostScript previewer for Windows. TeX Live provides a very powerful free PostScript/PDF previewer for Windows, called PSView. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From uwe.lueck at web.de Sat May 16 22:03:38 2009 From: uwe.lueck at web.de (Uwe =?iso-8859-1?Q?L=FCck?=) Date: Sat, 16 May 2009 22:03:38 +0200 Subject: [texhax] ghostview vs gsview Message-ID: <5.1.0.14.0.20090516220052.02639ea0@pop3.web.de> ... moreover, I guess GSview begs for *registration*, not for *payment* -- Uwe L. >Date: Fri, 15 May 2009 17:53:22 +0200 >From: Uwe L?ck > >Sorry, I am unable to write Dutch, pages.cs.wisc.edu/~ghost/ indicates >that there is no Ghostview for Windows, and I don't know about the GSview >behavior (which I have experienced myself), but according to my >experience, you needn't worry about this if you use the MiKTeX >installation. You can download MiKTeX 2.7 for free from www.miktex.org. > >At 14:59 15.05.09, Carl Schneider wrote: >>Beste mensen, >> >>Ik zou u het volgende willen vragen: >>Ik ben lid van de TeX gebruikersgroep. >>Aangezien er voor de windows tex gebruikers een postscript viewer nodig >>is, gebruiken er veel mensen GSView, maar daar zitten kosten aan verbonden. >>Als je GSView gratis wil blijven gebruiken, krijg je iedere keer een >>pop-up window waaraan je herinnerd wordt dat je hier eigenlijk voor moet >>betalen. >>Linux tex gebruikers kunnen het gratis Ghostview programma gebruiken, >>maar dit kan ik nergens vinden om het te downloaden voor windows. >>Zou iemand mij daarbij kunnen helpen? >>Alvast bedankt. >> >>Met vriendelijke groet, >>Carl Schneider From uwe.lueck at web.de Sun May 17 22:01:07 2009 From: uwe.lueck at web.de (Uwe =?iso-8859-1?Q?L=FCck?=) Date: Sun, 17 May 2009 22:01:07 +0200 Subject: [texhax] penalties In-Reply-To: <20090501032633.GA21522@thor> References: <12601.1241117396@as220.org> <12601.1241117396@as220.org> Message-ID: <5.1.0.14.0.20090517213659.0263ac70@pop3.web.de> At 05:26 01.05.09, Oleg Katsitadze wrote: >So you should end the paragraph while the new settings are still in effect: > > {\hyphenpenalty5000 Text of offending paragraph.\par} > >or just > > {\hyphenpenalty5000 Text of offending paragraph. > > } or just Text of offending paragraph.{\hyphenpenalty5000\par} >Best, >Oleg Better, Uwe. P.S.: This is easier for pasting from the clipboard or autocomplete than wrapping. I have spent weeks (I'm afraid) wrapping paragraphs with \begin{sloppypar} ... \end{sloppypar} -- damned! -- instead of {\sloppy\par}. Likewise {\centering\par} ... Cf. TeXbook exercise 14.15. From bev at eyremail.net Mon May 18 11:38:22 2009 From: bev at eyremail.net (Beverley Eyre) Date: Mon, 18 May 2009 02:38:22 -0700 Subject: [texhax] Memoir: running chapter titles Message-ID: <4A112C8E.9090902@eyremail.net> I'm trying to create a book style that has the Chapter-name, chapter-number and chapter-title on the left header and the corresponding section stuff on the right. I've got the section stuff working, but I can't figure out what variable holds the running chapter title. In other words, I want the left page header to be: Chapter 3: Background where Chapter = \@chapapp 3 = \thechapter Background = the running chapter title (Background in this example) I can get the header I want when I use \f at rhdr, but it doesn't compile cleanly, and complains it doesn't know what \f at rhdr is, even tho it works correctly when I examine the dvi file. So, is there a variable that will compile cleanly that holds the chaptertitle variable? Here's the relevant code: \renewcommand{\leftmark}{\rheadrfont \@chapapp\hspace{3pt}\thechapter:\smlspc \f at rhdr} %% (works but doesn't compile cleanly) \makeevenhead{newps}{\thepage\headspc\leftmark}{}{} %% newps is my pagestyle TIA Beverley Eyre UCLA MEMS Laboratory Los Angeles, CA fbe2 at ucla.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090518/2c25cda0/attachment.html From daleif at imf.au.dk Mon May 18 16:12:55 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Mon, 18 May 2009 16:12:55 +0200 Subject: [texhax] Memoir: running chapter titles In-Reply-To: <4A112C8E.9090902@eyremail.net> References: <4A112C8E.9090902@eyremail.net> Message-ID: <4A116CE7.8050806@imf.au.dk> Beverley Eyre wrote: > I'm trying to create a book style that has the Chapter-name, > chapter-number and chapter-title on the left header and the > corresponding section stuff on the right. I've got the section stuff > working, but I can't figure out what variable holds the running chapter > title. > > In other words, I want the left page header to be: > Chapter 3: Background > where > Chapter = \@chapapp > 3 = \thechapter > Background = the running chapter title (Background in this example) > > I can get the header I want when I use \f at rhdr, but it doesn't compile > cleanly, and complains it doesn't know what \f at rhdr is, even tho it > works correctly when I examine the dvi file. > > So, is there a variable that will compile cleanly that holds the > chaptertitle variable? Here's the relevant code: > > \renewcommand{\leftmark}{\rheadrfont > \@chapapp\hspace{3pt}\thechapter:\smlspc \f at rhdr} %% (works but doesn't > compile cleanly) > \makeevenhead{newps}{\thepage\headspc\leftmark}{}{} %% newps is my > pagestyle > > TIA > > Beverley Eyre > UCLA MEMS Laboratory > Los Angeles, CA > fbe2 at ucla.edu > have a look at my article about memoir pagestyles, in http://tug.org/pracjourn/2008-2/madsen/ note that it is important that you have the latest version of memoir. -- /daleif From mahi2308 at rediffmail.com Tue May 19 05:35:06 2009 From: mahi2308 at rediffmail.com (mahi) Date: 19 May 2009 03:35:06 -0000 Subject: [texhax] pdflatex and figure Message-ID: <20090519033506.30912.qmail@f4mail-234-119.rediffmail.com> Hi I am miktex user and using the pdflatex, the figures are in .pdf format. In figures the .otf fonts have been used when i process this figures through pdflatex some characters are missing, because it is not with in 256 characters. Is there any way to skip the figure portion like .eps by using pdflatex or any suggestion to solve this problem. Thanks Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090519/d96c1695/attachment.html From axel.retif at mac.com Tue May 19 09:15:03 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Tue, 19 May 2009 02:15:03 -0500 Subject: [texhax] pdflatex and figure In-Reply-To: <20090519033506.30912.qmail@f4mail-234-119.rediffmail.com> References: <20090519033506.30912.qmail@f4mail-234-119.rediffmail.com> Message-ID: On 18 May, 2009, at 22:35, mahi wrote: > Hi > > I am miktex user and using the pdflatex, the figures are in .pdf > format. In figures the .otf fonts have been used when i process this > figures through pdflatex some characters are missing, because it is > not with in 256 characters. Which application are you using to make your PDF illustrations? If Adobe Illustrator, for example ---it has an option to embed fonts; and if that fails, it has another option to convert text to outlines. Best, Axel From mahi2308 at rediffmail.com Tue May 19 10:41:11 2009 From: mahi2308 at rediffmail.com (mahi) Date: 19 May 2009 08:41:11 -0000 Subject: [texhax] pdflatex and figure Message-ID: <1242720832.S.3647.50319.f4mail-234-221.rediffmail.com.1242722471.22116@webmail.rediffmail.com> Hi The figures i am converting from .eps format to pdf format using acrobat distiller, and i have embedded all the fonts, still i have the below problem. Thanks On Tue, 19 May 2009 13:43:52 +0530 wrote >On ?18 May, 2009, at 22:35, mahi wrote: > >> Hi >> >> I am miktex user and using the pdflatex, the figures are in .pdf ? >> format. In figures the .otf fonts have been used when i process this ? >> figures through pdflatex some characters are missing, because it is ? >> not with in 256 characters. > >Which application are you using to make your PDF illustrations? If ? >Adobe Illustrator, for example ---it has an option to embed fonts; and ? >if that fails, it has another option to convert text to outlines. > >Best, > >Axel > > >_______________________________________________ >TeX FAQ: http://www.tex.ac.uk/faq >Mailing list archives: http://tug.org/pipermail/texhax/ >More links: http://tug.org/begin.html > >Automated subscription management: http://tug.org/mailman/listinfo/texhax >Human mailing list managers: postmaster at tug.org > Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090519/3c127a86/attachment.html From axel.retif at mac.com Tue May 19 11:43:15 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Tue, 19 May 2009 04:43:15 -0500 Subject: [texhax] pdflatex and figure In-Reply-To: <1242720832.S.3647.50319.f4mail-234-221.rediffmail.com.1242722471.22116@webmail.rediffmail.com> References: <1242720832.S.3647.50319.f4mail-234-221.rediffmail.com.1242722471.22116@webmail.rediffmail.com> Message-ID: <5460C7EE-7215-4EC3-AC9D-03A1F5D543C2@mac.com> On 19 May, 2009, at 03:41, mahi wrote: > Hi > > The figures i am converting from .eps format to pdf format using > acrobat distiller, and i have embedded all the fonts, still i have > the below problem. That's weird. Did you make the figures or did you receive them from someone else? If you made them, which application did you use? If you received them, do you have in your system the fonts that were used? Best, Axel From vi5u0-texhax at yahoo.co.uk Tue May 19 17:52:57 2009 From: vi5u0-texhax at yahoo.co.uk (Dan Hatton) Date: Tue, 19 May 2009 16:52:57 +0100 (BST) Subject: [texhax] Preserve space at end of expression enclosed in braces Message-ID: Dear All, I've defined commands as follows: \definecolor{LBRed}{rgb}{0.9,0.1,0.2} \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} \newcommand{\morerefadd}[1]{{\color{LBBlue}#1}} \newcommand{\morerefchange}[2]{{\color{LBRed}#1}{\color{LBBlue}#2}} \newcommand{\morerefdel}[1]{{\color{LBRed}#1}} to do revision tracking and highlighting on a document. Now, I want to put a space between two words (because words should have spaces between!) with something like \morerefadd{ } but the space doesn't appear in the output of LaTeX. In fact, even when I put \morerefadd{ some other text} the initial space doesn't appear. Any ideas please? -- Thanks, Dan From P.Taylor at Rhul.Ac.Uk Tue May 19 18:34:40 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR) Date: Tue, 19 May 2009 17:34:40 +0100 Subject: [texhax] Preserve space at end of expression enclosed in braces In-Reply-To: References: Message-ID: <4A12DFA0.6040807@Rhul.Ac.Uk> Try \relaxing a little more :-) \documentclass {article} \usepackage {color} \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} \newcommand{\morerefadd}[1]{{\color{LBBlue}\relax #1}} \begin {document} \morerefadd{some text}% \morerefadd{ some more text }% \morerefadd{and that's it}% \end {document} Philip TAYLOR -------- Dan Hatton wrote: > Dear All, > > I've defined commands as follows: > > \definecolor{LBRed}{rgb}{0.9,0.1,0.2} > \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} > > \newcommand{\morerefadd}[1]{{\color{LBBlue}#1}} > \newcommand{\morerefchange}[2]{{\color{LBRed}#1}{\color{LBBlue}#2}} > \newcommand{\morerefdel}[1]{{\color{LBRed}#1}} > > to do revision tracking and highlighting on a document. > > Now, I want to put a space between two words (because words should > have spaces between!) with something like > > \morerefadd{ } > > but the space doesn't appear in the output of LaTeX. In fact, even > when I put > > \morerefadd{ some other text} > > the initial space doesn't appear. Any ideas please? > From pierre.mackay at comcast.net Tue May 19 19:33:22 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Tue, 19 May 2009 10:33:22 -0700 Subject: [texhax] pdflatex and figure In-Reply-To: <5460C7EE-7215-4EC3-AC9D-03A1F5D543C2@mac.com> References: <1242720832.S.3647.50319.f4mail-234-221.rediffmail.com.1242722471.22116@webmail.rediffmail.com> <5460C7EE-7215-4EC3-AC9D-03A1F5D543C2@mac.com> Message-ID: <4A12ED62.7040008@comcast.net> Axel E. Retif wrote: >On 19 May, 2009, at 03:41, mahi wrote: > > > >>Hi >> >>The figures i am converting from .eps format to pdf format using >>acrobat distiller, and i have embedded all the fonts, still i have >>the below problem. >> >> > >That's weird. Did you make the figures or did you receive them from >someone else? > > Could this be related to the bug in Acrobat reader 8, which makes all the characters in the Adobe Expert Set invisible? (supposed toe corrected in reader 9.) From uwe.lueck at web.de Tue May 19 23:07:26 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Tue, 19 May 2009 23:07:26 +0200 Subject: [texhax] =?iso-8859-15?q?Preserve_space_at_end_of_expression_encl?= =?iso-8859-15?q?osed_in_braces?= Message-ID: <1136421668@web.de> And does the \relax produce the wanted leading space? -- As usual, please back your request with an actual application of your macros that seems not to work properly. I expect that it is essential to have some non-blue text within the document environment. -- BTW, I consider \textcolor{blue}{...} safer than {color{blue}#1}, since I observed that vertical alignment with \marginpar{\color{blue}...} is wrong, while \marginpar{\textcolor{blue}{...}} is fine. This may interrelate with the request, I don't know. -- Uwe. Philip TAYLOR schrieb am 19.05.2009 18:38:45: > Try \relaxing a little more :-) > > \documentclass {article} > \usepackage {color} > \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} > \newcommand{\morerefadd}[1]{{\color{LBBlue}\relax #1}} > \begin {document} > \morerefadd{some text}% > \morerefadd{ some more text }% > \morerefadd{and that's it}% > \end {document} > > Philip TAYLOR > -------- > Dan Hatton wrote: > > Dear All, > > > > I've defined commands as follows: > > > > \definecolor{LBRed}{rgb}{0.9,0.1,0.2} > > \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} > > > > \newcommand{\morerefadd}[1]{{\color{LBBlue}#1}} > > \newcommand{\morerefchange}[2]{{\color{LBRed}#1}{\color{LBBlue}#2}} > > \newcommand{\morerefdel}[1]{{\color{LBRed}#1}} > > > > to do revision tracking and highlighting on a document. > > > > Now, I want to put a space between two words (because words should > > have spaces between!) with something like > > > > \morerefadd{ } > > > > but the space doesn't appear in the output of LaTeX. In fact, even > > when I put > > > > \morerefadd{ some other text} > > > > the initial space doesn't appear. Any ideas please? > > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > From axel.retif at mac.com Wed May 20 09:16:44 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Wed, 20 May 2009 02:16:44 -0500 Subject: [texhax] pdflatex and figure In-Reply-To: <1242726274.S.3810.46361.f4mail-234-219.rediffmail.com.old.1242796849.51548@webmail.rediffmail.com> References: <1242726274.S.3810.46361.f4mail-234-219.rediffmail.com.old.1242796849.51548@webmail.rediffmail.com> Message-ID: <72BE7F85-425C-4BB9-8639-BF27A5F820FB@mac.com> On 20 May, 2009, at 00:20, mahi wrote: > I am using the miktex 2.4 > Acrobat illustrator 11 and Acrobat Distiller 7. > I am attaching the .eps and pdf files, in this figure varpi symbol > is missing when i process this figure through pdflatex and i am > attaching the processed pdf also. Not only the varphi, but pi as well. ------- (By the way, On 19 May, 2009, at 12:33, Pierre MacKay wrote: > Could this be related to the bug in Acrobat reader 8, which makes all > the characters in the Adobe Expert Set invisible? (supposed toe > corrected in reader 9.) I don't think so, as I see the same (missing symbols) with TeXShop, Reader 9 and Acrobat 6 on a Mac.) -------- Mahi, You're using pdfTeX 1.20, and I'm using pdfTeX 1.40.9, so the first solution might not work for you, but the second most certainly will. 1) Don't convert yourself the EPS figures to PDF ---let epstopdf do it; the following works for me: \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage{epstopdf} \epstopdfsetup{update,prepend} \begin{document} Just a test: \begin{figure}[h!] \includegraphics{nj275598fig5}% \caption{} \end{figure} \end{document} Just like that ---call the graphic by its name, without extension. 2) We are using different pdfTeX versions (and I'm sure different versions of epstopdf), but we have the *same* version of Illustrator, so this will work for you: First, backup your figures so you can make changes easily afterwards. Now, with the figures you will actually use in your TeX document, open the EPS file in Illustrator, select the text, go to menu Type and select Create Outlines. Characters will become just another graphic element. That's why you need a backup ---to edit text easily if you have to. Best, Axel From vi5u0-texhax at yahoo.co.uk Wed May 20 12:33:29 2009 From: vi5u0-texhax at yahoo.co.uk (Dan Hatton) Date: Wed, 20 May 2009 11:33:29 +0100 (BST) Subject: [texhax] Preserve space at end of expression enclosed in braces In-Reply-To: <1136421668@web.de> References: <1136421668@web.de> Message-ID: On Tue, 19 May 2009, Uwe Lueck wrote: > And does the \relax produce the wanted leading space? Yes > As usual, please back your request with an actual application of > your macros that seems not to work properly. \documentclass{minimal} \usepackage{pstricks} \definecolor{LBRed}{rgb}{0.9,0.1,0.2} \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} \newcommand{\morerefadd}[1]{{\color{LBBlue}#1}} \begin{document} Sometimes I miss out\morerefadd{ }spaces from my text. Sometimes I even forget\morerefadd{ whole clauses}. \end{document} As I said, Philip's \relax idea fixes the problem. -- Regards, Dan From uwe.lueck at web.de Wed May 20 23:27:04 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Wed, 20 May 2009 23:27:04 +0200 Subject: [texhax] =?iso-8859-15?q?Preserve_space_at_end_of_expression_encl?= =?iso-8859-15?q?osed_in_braces?= Message-ID: <1137188511@web.de> Indeed, \textcolor{blue}{...} needs the \relax just like {\color{blue}...} for the leading space, thus behaves unlike \textrm{...}. I consider this a color bug, but can't afford ... Tested with A\morerefadd{ B }C (where the *final* space *always* appeared). Sorry -- Uwe. Dan Hatton schrieb am 20.05.2009 12:39:25: > On Tue, 19 May 2009, Uwe Lueck wrote: > > And does the \relax produce the wanted leading space? > Yes > > > As usual, please back your request with an actual application of > > your macros that seems not to work properly. > > \documentclass{minimal} > \usepackage{pstricks} > \definecolor{LBRed}{rgb}{0.9,0.1,0.2} > \definecolor{LBBlue}{rgb}{0.4,0.3,1.0} > \newcommand{\morerefadd}[1]{{\color{LBBlue}#1}} > \begin{document} > Sometimes I miss out\morerefadd{ }spaces from my text. Sometimes I > even forget\morerefadd{ whole clauses}. > \end{document} > > As I said, Philip's \relax idea fixes the problem. From axel.retif at mac.com Wed May 20 10:39:59 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Wed, 20 May 2009 03:39:59 -0500 Subject: [texhax] pdflatex and figure In-Reply-To: <1242726274.S.3810.46361.f4mail-234-219.rediffmail.com.old.1242796849.51548@webmail.rediffmail.com> References: <1242726274.S.3810.46361.f4mail-234-219.rediffmail.com.old.1242796849.51548@webmail.rediffmail.com> Message-ID: On 20 May, 2009, at 00:20, mahi wrote: > I am using the miktex 2.4 > Acrobat illustrator 11 > > I am attaching the .eps and pdf files This isn't what you asked..., but I'm sure you agree with me that the typography in your figure is truly *awful*. Why don't you do it the LaTeX way? Strip the typography from your figure and use the wonderful overpic package. I'm attaching the pdfTeX file and the resulting PDF. Best, Axel -------------- next part -------------- A non-text attachment was scrubbed... Name: test-overpic.pdf Type: application/pdf Size: 90394 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090520/67ad8ef6/attachment-0001.pdf -------------- next part -------------- A non-text attachment was scrubbed... Name: test-overpic.tex Type: application/octet-stream Size: 1718 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090520/67ad8ef6/attachment-0001.obj -------------- next part -------------- From mahi2308 at rediffmail.com Wed May 20 07:20:49 2009 From: mahi2308 at rediffmail.com (mahi) Date: 20 May 2009 05:20:49 -0000 Subject: [texhax] pdflatex and figure Message-ID: <1242726274.S.3810.46361.f4mail-234-219.rediffmail.com.old.1242796849.51548@webmail.rediffmail.com> Hi I am using the miktex 2.4 Acrobat illustrator 11 I am attaching the .eps and pdf files, in this figure varpi symbol is missing when i process this figure through pdflatex and i am attaching the processed pdf also. Thanks On Tue, 19 May 2009 15:14:34 +0530 wrote >On ?19 May, 2009, at 03:41, mahi wrote: > >> Hi >> >> The figures i am converting from .eps format to pdf format using ? >> acrobat distiller, and i have embedded all the fonts, still i have ? >> the below problem. > >That's weird. Did you make the figures or did you receive them from ? >someone else? > >If you made them, which application did you use? > >If you received them, do you have in your system the fonts that were ? >used? > >Best, > >Axel > > > > > >_______________________________________________ >TeX FAQ: http://www.tex.ac.uk/faq >Mailing list archives: http://tug.org/pipermail/texhax/ >More links: http://tug.org/begin.html > >Automated subscription management: http://tug.org/mailman/listinfo/texhax >Human mailing list managers: postmaster at tug.org > Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090520/772adfc6/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: nj275598fig5.eps Type: application/postscript Size: 1710500 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090520/772adfc6/attachment-0001.eps -------------- next part -------------- A non-text attachment was scrubbed... Name: nj275598fig5.pdf Type: application/pdf Size: 49350 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090520/772adfc6/attachment-0002.pdf -------------- next part -------------- A non-text attachment was scrubbed... Name: njp277625.pdf Type: application/pdf Size: 512602 bytes Desc: not available Url : http://tug.org/pipermail/texhax/attachments/20090520/772adfc6/attachment-0003.pdf From mahi2308 at rediffmail.com Thu May 21 10:45:39 2009 From: mahi2308 at rediffmail.com (mahi) Date: 21 May 2009 08:45:39 -0000 Subject: [texhax] pdflatex and figure Message-ID: <1242803940.S.5175.42252.f4mail-235-205.rediffmail.com.old.1242895539.6138@webmail.rediffmail.com> Hi If i process pdflatex with below example \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage{epstopdf} \epstopdfsetup{update,prepend} \begin{document} Just a test: \begin{figure}[h!] \includegraphics{nj275598fig5}% \caption{} \end{figure} \end{document} I am getting an error as Error: pdflatex (file nj275598fig5.pdf): cannot find image file ==> Fatal error occurred, the output PDF file is not finished! And thank you for the suggestion but i don't want to process my figure through pstricks. If any other suggestion kindly advise. Is there any other way to process the figure through pdflatex without changing the fonts inside the figures. Thanks On Wed, 20 May 2009 12:49:00 +0530 wrote >On ?20 May, 2009, at 00:20, mahi wrote: > >> I am using the miktex 2.4 >> Acrobat illustrator 11 > >and Acrobat Distiller 7. > >> I am attaching the .eps and pdf files, in this figure varpi symbol ? >> is missing when i process this figure through pdflatex and i am ? >> attaching the processed pdf also. > >Not only the varphi, but pi as well. >------- >(By the way, On ?19 May, 2009, at 12:33, Pierre MacKay wrote: > >> Could this be related to the bug in Acrobat reader 8, which makes all >> the characters in the Adobe Expert Set invisible? ?(supposed toe >> corrected in reader 9.) > >I don't think so, as I see the same (missing symbols) with TeXShop, ? >Reader 9 and Acrobat 6 on a Mac.) >-------- > >Mahi, > >You're using pdfTeX 1.20, and I'm using pdfTeX 1.40.9, so the first ? >solution might not work for you, but the second most certainly will. > >1) Don't convert yourself the EPS figures to PDF ---let epstopdf do ? >it; the following works for me: > >\documentclass{article} >\usepackage[pdftex]{graphicx} >\usepackage{epstopdf} >\epstopdfsetup{update,prepend} >\begin{document} > >Just a test: > >\begin{figure}[h!] >\includegraphics{nj275598fig5}% >\caption{} >\end{figure} > >\end{document} > >Just like that ---call the graphic by its name, without extension. > >2) We are using different pdfTeX versions (and I'm sure different ? >versions of epstopdf), but we have the *same* version of Illustrator, ? >so this will work for you: > >First, backup your figures so you can make changes easily afterwards. ? >Now, with the figures you will actually use in your TeX document, open ? >the EPS file in Illustrator, select the text, go to menu Type and ? >select Create Outlines. Characters will become just another graphic ? >element. That's why you need a backup ---to edit text easily if you ? >have to. > >Best, > >Axel > > >_______________________________________________ >TeX FAQ: http://www.tex.ac.uk/faq >Mailing list archives: http://tug.org/pipermail/texhax/ >More links: http://tug.org/begin.html > >Automated subscription management: http://tug.org/mailman/listinfo/texhax >Human mailing list managers: postmaster at tug.org > Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090521/316b20a4/attachment.html From axel.retif at mac.com Thu May 21 11:56:25 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Thu, 21 May 2009 04:56:25 -0500 Subject: [texhax] pdflatex and figure In-Reply-To: <1242803940.S.5175.42252.f4mail-235-205.rediffmail.com.old.1242895539.6138@webmail.rediffmail.com> References: <1242803940.S.5175.42252.f4mail-235-205.rediffmail.com.old.1242895539.6138@webmail.rediffmail.com> Message-ID: On 21 May, 2009, at 03:45, mahi wrote: > If i process pdflatex with below example > > documentclass{article} > usepackage[pdftex]{graphicx} > usepackage{epstopdf} > epstopdfsetup{update,prepend} > begin{document} > > Just a test: > > begin{figure}[h!] > includegraphics{nj275598fig5}% > caption{} > end{figure} > > end{document} > > I am getting an error as > > Error: pdflatex (file nj275598fig5.pdf): cannot find image file Well ---as I said in a previous mail, you're using pdfTeX 1.20, and I have version 1.40.9 (and I'm sure a different version of epstopdf.sty) so I can't reproduce your problem. > And thank you for the suggestion but i don't want to process my > figure through pstricks. I never recommended pstricks, because, unfortunately and to my shame, I don't know pstricks. > If any other suggestion kindly advise. Only what I already told you ---to covert in Illustrator the characters to outlines. Best, Axel From alie at kuc01.kuniv.edu.kw Thu May 21 07:40:01 2009 From: alie at kuc01.kuniv.edu.kw (Abdulmuhsen H. Ali) Date: Thu, 21 May 2009 08:40:01 +0300 Subject: [texhax] about typing a book Message-ID: <000801c9d9d6$961495d0$3f9c8d8b@LENOVO3E1169AC> Dear Sir, Please help me type a book in LateX. I need a reliable preamble and a step by step instructions on how to write the correct format for typing a book in LateX. I do have MikteX 2.7. Thank you in advance. Sincerely, Dr.A. H. Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090521/b7ff56e2/attachment.html From axel.retif at mac.com Thu May 21 16:25:45 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Thu, 21 May 2009 09:25:45 -0500 Subject: [texhax] about typing a book In-Reply-To: <000801c9d9d6$961495d0$3f9c8d8b@LENOVO3E1169AC> References: <000801c9d9d6$961495d0$3f9c8d8b@LENOVO3E1169AC> Message-ID: On 21 May, 2009, at 00:40, Abdulmuhsen H. Ali wrote: > Dear Sir, Please help me type a book in LateX. I need a reliable > preamble and a step by step instructions on how to write the correct > format for typing a book in LateX. I do have MikteX 2.7. Thank you > in advance. I don't think you'll find someone with the time to guide you step by step (unless, of course, you hire a consultant). It seems to me that you should better accept the fact that you will have to read some documents and books. If you're new to LaTeX, I would start with http://ctan.tug.org/tex-archive/info/lshort/ I haven't used it, but maybe the memoir class will be good for you (certainly its manual will): http://ctan.tug.org/tex-archive/macros/latex/contrib/memoir/ You should already have the above documents in your MiKTeX distribution. As for books, I would recommend Helmut Kopka & Patrick W. Daly: Guide to LaTeX, 4th ed. and Frank Mittelbach et al.: The LaTeX Companion, 2nd ed. Best, Axel From zbigniew.nitecki at tufts.edu Thu May 21 17:41:23 2009 From: zbigniew.nitecki at tufts.edu (Zbigniew Nitecki) Date: Thu, 21 May 2009 11:41:23 -0400 Subject: [texhax] vertical setting of binary symbols Message-ID: I am having trouble creating a good version of the composition symbol (if one exists, I'd like to know). I find \circ alone a bit too big, so am using \mathsmaller{\circ}. In response to an earlier posting, I expanded this to \mathbin{\mathsmaller{\circ}}, which gives a reasonable horizontal spacing. But I am observing a different problem: the code *********** \newcommand{\compose}{\mathbin{\mathsmaller\circ}} ********** results in a vertical spacing which is constant, but doesn't look that way: when the surrounding functions are lower case, it looks fine, but with upper- case function names there is the illusion that the circle is nearly at floor level: apparently it is centered (vertically) on the height of a lower-case letter, and so does not appear centered when the surrounding letters are upper-case. (see attached output below) In response to my earlier posting about this problem, it was suggested I use \vcenter, but the code ************ \newcommand{\compose}{\mathbin{\vcenter{$\mathsmaller\circ}$}} ************ leads to crazy behavior: in some instances, the function following the \compose symbol is either tabbed very far to the right, or even appears on a new line. Is there a way to control this so that with upper-case function names the composition symbol appears higher? Zbigniew Nitecki Department of Mathematics Tufts University Medford, MA 02155 telephones: Office (617)627-3843 Dept. (617)627-3234 Dept. fax (617)627-3966 http://www.tufts.edu/~znitecki/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090521/9faa78f1/attachment.html From uwe.lueck at web.de Thu May 21 18:06:19 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Thu, 21 May 2009 18:06:19 +0200 Subject: [texhax] vertical setting of binary symbols Message-ID: <1137650694@web.de> Zbigniew Nitecki schrieb am 21.05.2009 17:43:57: > I am having trouble creating a good version of the composition symbol > (if one exists, I'd like to know). > > In response to my earlier posting about this problem, it was > suggested I use \vcenter, > but the code > ************ > \newcommand{\compose}{\mathbin{\vcenter{$\mathsmaller\circ}$}} > ************ > leads to crazy behavior: in some instances, the function following > the \compose symbol is either > tabbed very far to the right, or even appears on a new line. I had corrected (here!) this mistake of mine into \newcommand{\compose}{\mathbin{\vcenter{\hbox{$\mathsmaller\circ}$}}} so \vcenter does not take an entire line + tested. -- Uwe. From peter at gigamonkeys.com Thu May 21 21:20:11 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Thu, 21 May 2009 12:20:11 -0700 Subject: [texhax] TeXBook Appendix E online anywhere? Message-ID: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> Is the TeX code in Appendix E of Knuth's TeXBook available online anywhere. I want to play with the code he used to typeset the book and would rather not have to type it all in by hand. My attempts at Googling it up didn't find anything. -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From office at tug.org Thu May 21 22:39:36 2009 From: office at tug.org (TUG office) Date: Thu, 21 May 2009 13:39:36 -0700 Subject: [texhax] about typing a book In-Reply-To: <000801c9d9d6$961495d0$3f9c8d8b@LENOVO3E1169AC> References: <000801c9d9d6$961495d0$3f9c8d8b@LENOVO3E1169AC> Message-ID: <4a15bc09.1e068e0a.4b31.41ea@mx.google.com> Dear Sir, At 10:40 PM 5/20/2009, Abdulmuhsen H. Ali wrote: >Dear Sir, Please help me type a book in LateX. I need a reliable >preamble and a step by step instructions on how to write the correct >format for typing a book in LateX. I do have MikteX 2.7. Thank you in advance. Please take a look at TUG's "getting started" page: http://www.tug.org/begin.html. Hopefully this will help with the basics. Online LaTeX documentation, books, sample code and links to other resources are listed here. If you seek additional help, you might consider asking someone listed on the consultants page: http://www.tug.org/consultants.html. I hope this helps, somehow. Sincerely, Robin TUG office -------------------------------------- TeX Users Group PO Box 2311 Portland OR 97208-2311 USA Phone: +1 503 223 9994 Fax: +1 206 203 3960 Email: office at tug.org Internet: www.tug.org ------------------------------------- From schuster.wolfgang at googlemail.com Fri May 22 08:32:30 2009 From: schuster.wolfgang at googlemail.com (Wolfgang Schuster) Date: Fri, 22 May 2009 08:32:30 +0200 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> Message-ID: <95B5E117-14D4-4534-BFF5-F14D9FD85586@gmail.com> Am 21.05.2009 um 21:20 schrieb Peter Seibel: > Is the TeX code in Appendix E of Knuth's TeXBook available online > anywhere. I want to play with the code he used to typeset the book and > would rather not have to type it all in by hand. > > My attempts at Googling it up didn't find anything. http://www.ctan.org/get/macros/plain/base/manmac.tex Wolfgang From daleif at imf.au.dk Fri May 22 09:45:30 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Fri, 22 May 2009 09:45:30 +0200 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> Message-ID: <4A16581A.20703@imf.au.dk> Peter Seibel wrote: > Is the TeX code in Appendix E of Knuth's TeXBook available online > anywhere. I want to play with the code he used to typeset the book and > would rather not have to type it all in by hand. > > My attempts at Googling it up didn't find anything. > > -Peter > the source for the texbook is usually included in most LaTeX dists, it is for looking at the code, compiling it is not allowed. -- /daleif From pierre.mackay at comcast.net Fri May 22 15:14:06 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Fri, 22 May 2009 06:14:06 -0700 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <4A16581A.20703@imf.au.dk> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> <4A16581A.20703@imf.au.dk> Message-ID: <4A16A51E.2020404@comcast.net> Lars Madsen wrote: >Peter Seibel wrote: > > >>Is the TeX code in Appendix E of Knuth's TeXBook available online >>anywhere. I want to play with the code he used to typeset the book and >>would rather not have to type it all in by hand. >> >>My attempts at Googling it up didn't find anything. >> >>-Peter >> >> >> > >the source for the texbook is usually included in most LaTeX dists, it >is for looking at the code, compiling it is not allowed. > > > There is certainly a clear warning against printing out the TeXbook from the file that has been included in TeX distributions since the beginning. But that is setting and printing the entire book---not quite the same as extracting bits of the code from an appendix---and one would have to knowingly modify the head of the TeXbook file to do so. I am not sure that the intentions are to prevent a something like a drag-and-drop extraction of bits of DEK's TeX code. Reuse of published code is largely regarded as an honorable and sensible way to improve programs. On an X-based display (from Open Office to Emacs, as an example) extracts would not take very long, especially since much of it would be irrelevant and unwanted. Barbara? Pierre MacKay From vafa at users.berlios.de Fri May 22 09:21:29 2009 From: vafa at users.berlios.de (Vafa Khalighi) Date: Fri, 22 May 2009 17:21:29 +1000 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> Message-ID: <7ac5ed450905220021u3a23e231p282639dceae957b2@mail.gmail.com> The code of the whole TeXBook is on CTAN at http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=texbook But it is just there as an example of the business of writing a book in TeX and you should not TeX it. In fact at the beginning of the file Knuth says % This manual is copyright (C) 1984 by the American Mathematical Society. % All rights are reserved! % The file is distributed only for people to see its examples of TeX input, % not for use in the preparation of books like The TeXbook. % Permission for any other use of this file must be obtained in writing % from the copyright holder and also from the publisher (Addison-Wesley). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090522/3eb55e8f/attachment.html From vafa at users.berlios.de Fri May 22 09:23:15 2009 From: vafa at users.berlios.de (Vafa Khalighi) Date: Fri, 22 May 2009 17:23:15 +1000 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <7ac5ed450905220021u3a23e231p282639dceae957b2@mail.gmail.com> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> <7ac5ed450905220021u3a23e231p282639dceae957b2@mail.gmail.com> Message-ID: <7ac5ed450905220023u2a9c8727n7ab54fba44805417@mail.gmail.com> He used the manmac.tex macros to typeset the book so you need to look at manmac.tex. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090522/ba34098a/attachment.html From bnb at ams.org Fri May 22 16:41:38 2009 From: bnb at ams.org (Barbara Beeton) Date: Fri, 22 May 2009 10:41:38 -0400 (EDT) Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <4A16A51E.2020404@comcast.net> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> <4A16581A.20703@imf.au.dk> <4A16A51E.2020404@comcast.net> Message-ID: Lars Madsen wrote: > Peter Seibel wrote: > > > Is the TeX code in Appendix E of Knuth's TeXBook available online > > anywhere. I want to play with the code he used to typeset the book and > > would rather not have to type it all in by hand. > > > > My attempts at Googling it up didn't find anything. > > > > -Peter > > the source for the texbook is usually included in most LaTeX dists, it is > for looking at the code, compiling it is not allowed. > There is certainly a clear warning against printing out the TeXbook from the file that has been included in TeX distributions since the beginning. But that is setting and printing the entire book---not quite the same as extracting bits of the code from an appendix---and one would have to knowingly modify the head of the TeXbook file to do so. I am not sure that the intentions are to prevent a something like a drag-and-drop extraction of bits of DEK's TeX code. Reuse of published code is largely regarded as an honorable and sensible way to improve programs. On an X-based display (from Open Office to Emacs, as an example) extracts would not take very long, especially since much of it would be irrelevant and unwanted. Barbara? hi, pierre, since i've been called in, here's my take. the contents of appendix e are examples. examples are meant to be used as models, and this does often include the direct use of code fragments. i believe don wouldn't mind the extraction of *fragments* from the source of appendix e -- as peter seibel implies, that's a good way to avoid typing errors. however, peter also says ... I want to play with the code he used to typeset the book ... and as has been pointed out elsewhere, that's directly available in the core tex distribution as manmac.tex. that file carries absolutely no prohibitions, so it looks to me to be the best place to start. -- bb From peter at gigamonkeys.com Fri May 22 16:08:52 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Fri, 22 May 2009 07:08:52 -0700 Subject: [texhax] TeXBook Appendix E online anywhere? In-Reply-To: <95B5E117-14D4-4534-BFF5-F14D9FD85586@gmail.com> References: <40e4e7e50905211220o27be8b42i55e11adb5f935cd9@mail.gmail.com> <95B5E117-14D4-4534-BFF5-F14D9FD85586@gmail.com> Message-ID: <40e4e7e50905220708g3567f5e9rb9a255f6cc0a3538@mail.gmail.com> On Thu, May 21, 2009 at 11:32 PM, Wolfgang Schuster wrote: > > Am 21.05.2009 um 21:20 schrieb Peter Seibel: > >> Is the TeX code in Appendix E of Knuth's TeXBook available online >> anywhere. I want to play with the code he used to typeset the book and >> would rather not have to type it all in by hand. >> >> My attempts at Googling it up didn't find anything. > > http://www.ctan.org/get/macros/plain/base/manmac.tex That's the one, thanks. And apologies to everyone for my unclear wording. When I said "I want to play with the code he used to typeset the book" I should have said something like, "I want to play with the code he typeset the book with." I already have a store-bought copy of the TeXBook right here on my table; I'm just trying to avoid manually typing in a bunch of code before I play with it. I have my own book to typeset and I'm pretty sure Donald Knuth would approve of my looking at his macros as a way of figuring out how to write my own macros to typeset my own book. Why am I pretty sure of this? Because my book is a book of interviews with famous programmers including Knuth himself and when I spoke with him he said, among other things: "There?s this overemphasis on reusable software where you never get to open up the box and see what?s inside the box. It?s nice to have these black boxes but, almost always, if you can look inside the box you can improve it and make it work better once you know what?s inside the box." -Peter P.S. Yes I know about the existence of LaTeX and memoir but I think my book is simple enough, typographically, that I can get away with not having to learn those on top of TeX. Plus it's more in the spirit of Knuth's philosophy, as evidenced by the quote above, to do it this way. P.P.S. The other reason I'm pretty sure Knuth would approve of me going to almost any lengths to figure out enough TeX to use it for my book is because there's a danger that otherwise the publisher is actually going to "typeset" it using Microsoft Word! -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From mahi2308 at rediffmail.com Sat May 23 06:06:23 2009 From: mahi2308 at rediffmail.com (mahi) Date: 23 May 2009 04:06:23 -0000 Subject: [texhax] Vietnamese characters Message-ID: <20090523040623.22970.qmail@f4mail-235-147.rediffmail.com> Hi How to typeset a Vietnamese alphabets in Latex. Thanks Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090523/5ff100c6/attachment.html From peter at gigamonkeys.com Sat May 23 00:59:48 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Fri, 22 May 2009 15:59:48 -0700 Subject: [texhax] \output{...} vs \output={...} Message-ID: <40e4e7e50905221559x57411478gbe6f88fb0e667da3@mail.gmail.com> In some places in the TeXBook (e.g. top of page 364) I see things like \output={\plainoutput} where \plainoutput is a macro defined with \def. Then in Appendex E (p. 417) I see: \output{\onepageout{\unvbox255}} without an '='. What's the difference? -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From uwe.lueck at web.de Sat May 23 08:26:36 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Sat, 23 May 2009 08:26:36 +0200 Subject: [texhax] \output{...} vs \output={...} Message-ID: <1138500700@web.de> Peter Seibel schrieb am 23.05.2009 08:09:41: > In some places in the TeXBook (e.g. top of page 364) I see things like > > \output={\plainoutput} > > where \plainoutput is a macro defined with \def. Then in Appendex E > (p. 417) I see: > > \output{\onepageout{\unvbox255}} > > without an '='. What's the difference? None. Or better: the '='. Or see TeXbook p. 275 on '': "in all cases this sign is optional". Cheers, Uwe. From reinhard.kotucha at web.de Sat May 23 20:29:11 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Sat, 23 May 2009 20:29:11 +0200 Subject: [texhax] Vietnamese characters In-Reply-To: <20090523040623.22970.qmail@f4mail-235-147.rediffmail.com> References: <20090523040623.22970.qmail@f4mail-235-147.rediffmail.com> Message-ID: <18968.16503.457189.817419@zaphod.ms25.net> On 23 May 2009 mahi wrote: > How to typeset a Vietnamese alphabets in Latex. Hi Maheshwari, please look into the VnTeX documentation. It's usually in texmf*/doc/generic/vntex. vntex.txt contains a few examples. If you only have to typeset a few Vietnamese words, read vntex-min.pdf, which is in the same directory. Here is a minimal example: \documentclass{report} \usepackage[T5]{fontenc} \usepackage[utf8]{inputenc} \usepackage[vietnam]{babel} \begin{document} Ti?ng Vi?t \end{document} There is also a mailing list for questions about VnTeX: http://lists.sourceforge.net/lists/listinfo/vntex-users Feel free to ask there if you have any questions. A new version of VnTeX is on CTAN already, but is not in MikTeX yet (and I don't know if you can install it on MikTeX 2.4). But maybe you want to look into the improved documentation: http://ctan.org/tex-archive/language/vietnamese/vntex/doc/generic/vntex Please note that vntex.sty is new, but it's not mandatory. Using babel is preferred for multilingual documents anyway. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From peter at gigamonkeys.com Sat May 23 08:54:52 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Fri, 22 May 2009 23:54:52 -0700 Subject: [texhax] \output{...} vs \output={...} In-Reply-To: <1138500700@web.de> References: <1138500700@web.de> Message-ID: <40e4e7e50905222354v71cbeacar186736d740d65d24@mail.gmail.com> On Fri, May 22, 2009 at 11:26 PM, Uwe Lueck wrote: > Peter Seibel schrieb am 23.05.2009 08:09:41: >> In some places in the TeXBook (e.g. top of page 364) I see things like >> >> ? \output={\plainoutput} >> >> where \plainoutput is a macro defined with \def. Then in Appendex E >> (p. 417) I see: >> >> ? \output{\onepageout{\unvbox255}} >> >> without an '='. What's the difference? > > None. > > Or better: the '='. > > Or see TeXbook p. 275 on '': "in all cases this sign is optional". Cool. Thanks. -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From peter at gigamonkeys.com Sat May 23 08:59:36 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Fri, 22 May 2009 23:59:36 -0700 Subject: [texhax] White text on black background? Message-ID: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> Is there some simple way to set text in white on a black background? I'm thinking of a small section, not a whole page. Something similar to what you'd get with this bit of HTML: 123 As usual, my Googling and following various leads through the TeXBook hasn't turned up anything but I could easily be missing something obvious. -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From daleif at imf.au.dk Sun May 24 12:11:38 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Sun, 24 May 2009 12:11:38 +0200 Subject: [texhax] White text on black background? In-Reply-To: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> References: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> Message-ID: <4A191D5A.2040804@imf.au.dk> Peter Seibel wrote: > Is there some simple way to set text in white on a black background? > I'm thinking of a small section, not a whole page. Something similar > to what you'd get with this bit of HTML: > > 123 > > As usual, my Googling and following various leads through the TeXBook > hasn't turned up anything but I could easily be missing something > obvious. > > -Peter \colorbox{black}{\color{white} ... } untested /daleif From peter at gigamonkeys.com Sun May 24 16:25:22 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Sun, 24 May 2009 07:25:22 -0700 Subject: [texhax] White text on black background? In-Reply-To: <4A191D5A.2040804@imf.au.dk> References: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> <4A191D5A.2040804@imf.au.dk> Message-ID: <40e4e7e50905240725s3d5df3e3sac541d80bddf5613@mail.gmail.com> On Sun, May 24, 2009 at 3:11 AM, Lars Madsen wrote: > Peter Seibel wrote: >> >> Is there some simple way to set text in white on a black background? >> I'm thinking of a small section, not a whole page. Something similar >> to what you'd get with this bit of HTML: >> >> ?123 >> >> As usual, my Googling and following various leads through the TeXBook >> hasn't turned up anything but I could easily be missing something >> obvious. >> >> -Peter > > \colorbox{black}{\color{white} ... } Oh, I should have specified, I'm trying to do this in Plain TeX, not LaTeX, if possible. -Peter P.S. Is it still the case tthat LaTeX is just a set of macros on plain TeX? And if so, is my inference correct that anything you can do in LaTeX, can be done -- perhaps at the cost of reimplementing big chunks of LaTeX -- in plain TeX? -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From pierre.mackay at comcast.net Sun May 24 20:06:49 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Sun, 24 May 2009 11:06:49 -0700 Subject: [texhax] White text on black background? In-Reply-To: <40e4e7e50905240725s3d5df3e3sac541d80bddf5613@mail.gmail.com> References: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> <4A191D5A.2040804@imf.au.dk> <40e4e7e50905240725s3d5df3e3sac541d80bddf5613@mail.gmail.com> Message-ID: <4A198CB9.9060408@comcast.net> Peter Seibel wrote: >On Sun, May 24, 2009 at 3:11 AM, Lars Madsen wrote: > > >>Peter Seibel wrote: >> >> >>>Is there some simple way to set text in white on a black background? >>>I'm thinking of a small section, not a whole page. Something similar >>>to what you'd get with this bit of HTML: >>> >>> 123 >>> >>> >>> My well-thumbed 1994 copy of Tom Rokicki's DVIPS manual Dvips: A DVI-to-PostScript Translator (for version 5.58c) gives an example of highlighted text on page 9 that could easily be modified for white-on-black. Pierre MacKay From reinhard.kotucha at web.de Sun May 24 22:02:45 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Sun, 24 May 2009 22:02:45 +0200 Subject: [texhax] White text on black background? In-Reply-To: <4A198CB9.9060408@comcast.net> References: <40e4e7e50905222359j44b2ee58n96f80c2c0cc93547@mail.gmail.com> <4A191D5A.2040804@imf.au.dk> <40e4e7e50905240725s3d5df3e3sac541d80bddf5613@mail.gmail.com> <4A198CB9.9060408@comcast.net> Message-ID: <18969.42981.641112.882060@zaphod.ms25.net> On 24 May 2009 Pierre MacKay wrote: > >>>Is there some simple way to set text in white on a black background? > >>>I'm thinking of a small section, not a whole page. Something similar > >>>to what you'd get with this bit of HTML: > >>> 123 > My well-thumbed 1994 copy of Tom Rokicki's DVIPS manual Dvips: A > DVI-to-PostScript Translator (for version 5.58c) gives an example > of highlighted text on page 9 that could easily be modified for > white-on-black. Similarly, one could use the pdftex primitive \pdfliteral to insert PDF code when using pdftex. I personally think that PostScript is much easier to use than PDF, but the basic concept is the same. A probably much more convenient way is to use the miniltx package in order to use the LaTeX graphics package in plain TeX. I never tried myself. From the catalogue: | Part of the plain TeX graphics collection which allows the use of | LaTeX's graphics, colour, and picture mode commands in plain TeX | based formats. | | The author is David Carlisle. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From karl at freefriends.org Sun May 24 23:35:06 2009 From: karl at freefriends.org (Karl Berry) Date: Sun, 24 May 2009 16:35:06 -0500 Subject: [texhax] White text on black background? In-Reply-To: <40e4e7e50905240725s3d5df3e3sac541d80bddf5613@mail.gmail.com> Message-ID: <200905242135.n4OLZ6N04746@f7.net> P.S. Is it still the case tthat LaTeX is just a set of macros on plain TeX? Yes. And if so, is my inference correct that anything you can do in LaTeX, can be done -- perhaps at the cost of reimplementing big chunks of LaTeX -- in plain TeX? Yes. As mentioned, there is miniltx. Also, Eplain (built on plain) uses miniltx and can load the color (but not xcolor) LaTeX package. See http://tug.org/eplain/doc/eplain/Loading-LaTeX-packages.html and subsections. If digging into the exact specials to use doesn't appeal to you, I surmise this is the easiest way to go. Best, Karl From RChilling at comcast.net Mon May 25 00:31:29 2009 From: RChilling at comcast.net (Randy Schilling) Date: Sun, 24 May 2009 17:31:29 -0500 Subject: [texhax] Ubuntu Linux Message-ID: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> Hello - I am getting ready to install Ubuntu Linux on my PC but before I do I want to make sure there is a version of TeX that will work under Ubuntu. Would you please point me in the right direction, maybe a website from which I can download TeX to Ubuntu? Thanks for your help. Sincerely - Randy From tjm1983 at gmail.com Mon May 25 01:33:03 2009 From: tjm1983 at gmail.com (Tim McKenzie) Date: Mon, 25 May 2009 11:33:03 +1200 Subject: [texhax] Ubuntu Linux In-Reply-To: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> References: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> Message-ID: <200905251133.06901.tjm1983@gmail.com> On Monday 25 May 2009 10:31:29 Randy Schilling wrote: > Hello - > > I am getting ready to install Ubuntu Linux on my PC but before I > do I want to make sure there is a version of TeX that will work > under Ubuntu. > > Would you please point me in the right direction, maybe a website > from which I can download TeX to Ubuntu? Once you've installed Ubuntu, you can ask its own package manager to install texlive for you. You might also want to ask it to install texlive-latex-extra (which I needed for comment.sty, for example). In general, if you want to install something on Ubuntu, the package manager is a good place to look, because you can be reasonably sure that the version it provides has been tested with the rest of Ubuntu. I think Synaptic is still the default graphical user interface for Ubuntu's package manager. Tim <>< -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://tug.org/pipermail/texhax/attachments/20090525/39ef03c6/attachment.bin From christopherolah.co at gmail.com Mon May 25 01:36:54 2009 From: christopherolah.co at gmail.com (Christopher Olah) Date: Sun, 24 May 2009 19:36:54 -0400 Subject: [texhax] Ubuntu Linux In-Reply-To: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> References: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> Message-ID: Greetings! The Ubuntu distribution has TeXlive in it's apt archive. If you want a `minimalistic' latex installation you can install the texlive-latex-base package: Details (apt-cache show): Package: texlive-latex-base Priority: optional Section: tex Installed-Size: 45628 Maintainer: Ubuntu Core Developers Original-Maintainer: Debian TeX Maintainers Architecture: all Source: texlive-base Version: 2007-10 Replaces: texlive-base-bin (<< 2007), tetex-bin (<< 2007) Depends: texlive-base (>= 2007-7), texlive-common (>= 2007) Conflicts: ivritex (<= 1.1.1-5) Filename: pool/main/t/texlive-base/texlive-latex-base_2007-10_all.deb Size: 27072014 MD5sum: 19fbbf9047993553ac22f49d5c0dff9c SHA1: 6f7ad7278d5eeb7a8c3ca8bfcc3e972f2e73f478 SHA256: d9ab67e9b30c31096270309b4b02a28ae268e87701a58850fafc6549182bc53d Description: TeX Live: Basic LaTeX packages These packages are either mandated by the core LaTeX team, or otherwise highly recommended. . This package includes the following CTAN packages: ae -- Virtual fonts for PDF-files with T1 encoded CMR-fonts. amscls -- The amscls package. amsltx2 -- The amsltx2 package. amsmath -- The amsmath package. amsrefs -- The amsrefs package. babel -- Multilingual support for Plain TeX or LaTeX. babelbib -- Multilingual bibliographies. carlisle -- Miscellaneous small packages by David Carlisle. colortbl -- The colortbl package. fancyhdr -- Extensive control of page headers and footers in LaTeX2e. geometry -- Flexible and complete interface to document dimensions. graphics -- No caption. hyperref -- Extensive support for hypertext in LaTeX. latex -- Macro package for TeX (the most popular). latex-fonts -- The latex-fonts package. latexconfig -- The latexconfig package. ltxmisc -- Miscellaneous LaTeX styles. mfnfss -- Packages to typeset oldgerman and pandora fonts in LaTeX. natbib -- Flexible bibliography support. pdftex-def -- The pdftex-def package. pslatex -- Use PostScript fonts by default. psnfss -- Font support for common PostScript fonts. pspicture -- The pspicture package. tools -- The tools package. bin-latex -- Macro package for TeX (the most popular). Bugs: mailto:ubuntu-users at lists.ubuntu.com Origin: Ubuntu For a more complete latex installation you can install the texlive-full package. You can install them using apt-get or synaptic (a GUI tool) Sincerely, Christopher From tjm1983 at gmail.com Mon May 25 01:45:29 2009 From: tjm1983 at gmail.com (Tim McKenzie) Date: Mon, 25 May 2009 11:45:29 +1200 Subject: [texhax] Ubuntu Linux In-Reply-To: References: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> Message-ID: <200905251145.33877.tjm1983@gmail.com> On Monday 25 May 2009 11:36:54 Christopher Olah wrote: > Package: texlive-latex-base ... > Version: 2007-10 Yes, I neglected to mention that Ubuntu still seems to be using TeX Live 2007. Do you need a more up-to-date installation, or are you happy to wait until Ubuntu catches up? (I have no idea how long it will take them to do so.) Tim <>< -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://tug.org/pipermail/texhax/attachments/20090525/bcf2686b/attachment.bin From historical.linguist at gmail.com Mon May 25 02:02:05 2009 From: historical.linguist at gmail.com (Mark Hale) Date: Sun, 24 May 2009 20:02:05 -0400 Subject: [texhax] Fwd: Ubuntu Linux In-Reply-To: <200905251145.33877.tjm1983@gmail.com> References: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> <200905251145.33877.tjm1983@gmail.com> Message-ID: <5f8c6cc00905241702n6dfc8e1fm8de4ffc81d2db2ca@mail.gmail.com> I've used texlive's only installer on my Ubuntu systems for some time now, precisely because they (Ubuntu folk) don't seem interested in keeping up to date. Kind of strange for a distro so dedicated to internationalization. Just make symlinks (the installer gives you that option) to someplace in your path, and you're home free... Does anyone know *why* the Ubuntu distros are so far behind in this critical area? Mark ---------- Forwarded message ---------- From: Tim McKenzie Date: Sun, May 24, 2009 at 7:45 PM Subject: Re: [texhax] Ubuntu Linux To: texhax at tug.org Cc: Randy Schilling , Christopher Olah On Monday 25 May 2009 11:36:54 Christopher Olah wrote: > Package: texlive-latex-base ... > Version: 2007-10 Yes, I neglected to mention that Ubuntu still seems to be using TeX Live 2007. Do you need a more up-to-date installation, or are you happy to wait until Ubuntu catches up? (I have no idea how long it will take them to do so.) Tim <>< _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From historical.linguist at gmail.com Mon May 25 02:07:48 2009 From: historical.linguist at gmail.com (Mark Hale) Date: Sun, 24 May 2009 20:07:48 -0400 Subject: [texhax] Ubuntu Linux In-Reply-To: <5f8c6cc00905241702n6dfc8e1fm8de4ffc81d2db2ca@mail.gmail.com> References: <6F9058C801F34D979A33BBD3BD4320CC@randy9b4f288eb> <200905251145.33877.tjm1983@gmail.com> <5f8c6cc00905241702n6dfc8e1fm8de4ffc81d2db2ca@mail.gmail.com> Message-ID: <5f8c6cc00905241707m4b0d7265v58b0706cb23f5859@mail.gmail.com> Oops. "own" installer, not "only. Excuse me. M On Sun, May 24, 2009 at 8:02 PM, Mark Hale wrote: > I've used texlive's only installer on my Ubuntu systems for > some time now, precisely because they (Ubuntu folk) don't seem > interested in keeping up to date. Kind of strange for a distro so > dedicated to internationalization. > > Just make symlinks (the installer gives you that option) to > someplace in your path, and you're home free... > > Does anyone know *why* the Ubuntu distros are so far behind > in this critical area? > > Mark > > > ---------- Forwarded message ---------- > From: Tim McKenzie > Date: Sun, May 24, 2009 at 7:45 PM > Subject: Re: [texhax] Ubuntu Linux > To: texhax at tug.org > Cc: Randy Schilling , Christopher Olah > > > > On Monday 25 May 2009 11:36:54 Christopher Olah wrote: >> Package: texlive-latex-base > ... >> Version: 2007-10 > > Yes, I neglected to mention that Ubuntu still seems to be using TeX Live 2007. > Do you need a more up-to-date installation, or are you happy to wait until > Ubuntu catches up? (I have no idea how long it will take them to do so.) > > Tim > <>< > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > From karl at freefriends.org Mon May 25 02:10:33 2009 From: karl at freefriends.org (Karl Berry) Date: Sun, 24 May 2009 19:10:33 -0500 Subject: [texhax] Fwd: Ubuntu Linux In-Reply-To: <5f8c6cc00905241702n6dfc8e1fm8de4ffc81d2db2ca@mail.gmail.com> Message-ID: <200905250010.n4P0AXC03721@f7.net> Does anyone know *why* the Ubuntu distros are so far behind in this critical area? Ubuntu comes from Debian. Norbert Preining is the main person who packaged TL for Debian. In 2008, Norbert was too busy working on the general TL infrastructure to have time to update the Debian packages. Therefore Debian is still on TL 2007. Norbert is doing a lot again for TL 2009, of course, but I think he hopes to package it for Debian after it's released. I don't know when TL 2009 will be released. By the end of the summer? We'll see. From mahi2308 at rediffmail.com Mon May 25 05:26:41 2009 From: mahi2308 at rediffmail.com (mahi) Date: 25 May 2009 03:26:41 -0000 Subject: [texhax] Vietnamese characters Message-ID: <1243103278.S.3390.14219.f4mail-234-210.1243222001.61016@webmail.rediffmail.com> Thank you, On Sat, 23 May 2009 23:57:58 +0530 wrote >On 23 May 2009 mahi wrote: > > > How to typeset a Vietnamese alphabets in Latex. > >Hi Maheshwari, >please look into the VnTeX documentation. ?It's usually in >texmf*/doc/generic/vntex. ?vntex.txt contains a few examples. ?If you >only have to typeset a few Vietnamese words, read vntex-min.pdf, >which is in the same directory. > >Here is a minimal example: > > ?\documentclass{report} > ?\usepackage[T5]{fontenc} > ?\usepackage[utf8]{inputenc} > ?\usepackage[vietnam]{babel} > ?\begin{document} > ? ? Ting Vit > ?\end{document} > >There is also a mailing list for questions about VnTeX: > > ? http://lists.sourceforge.net/lists/listinfo/vntex-users > >Feel free to ask there if you have any questions. > >A new version of VnTeX is on CTAN already, but is not in MikTeX yet >(and I don't know if you can install it on MikTeX 2.4). ?But maybe you >want to look into the improved documentation: > >http://ctan.org/tex-archive/language/vietnamese/vntex/doc/generic/vntex > >Please note that vntex.sty is new, but it's not mandatory. ?Using >babel is preferred for multilingual documents anyway. > >Regards, > ?Reinhard > >-- >---------------------------------------------------------------------------- >Reinhard Kotucha????????? ? ? ? ? ? ? ?Phone: +49-511-3373112 >Marschnerstr. 25 >D-30167 Hannover??? ? ? ? ? ? ? ? ? ? ? ?mailto:reinhard.kotucha at web.de >---------------------------------------------------------------------------- >Microsoft isn't the answer. Microsoft is the question, and the answer is NO. >---------------------------------------------------------------------------- > Maheshwari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090525/3884141c/attachment.html From hnk at cs.stanford.edu Mon May 25 00:18:21 2009 From: hnk at cs.stanford.edu (Henry Kannapell) Date: Sun, 24 May 2009 18:18:21 -0400 Subject: [texhax] combing adjacent macros Message-ID: I am a novice Tex user, but would like to find a method of combining adjacent macros that I define in a style sheet. The macros are for a crossword typesetting, based on Gerd Nuegebauer's excellent cwpuzzle.dtx I have defined macros for tags at the end of the clues, so I can keep the formatting consistent. They are very simple, such as \newcommand\hyph{\emph{(hyph.)} %% hyphenated \newcommand\var{\emph{(var.)} %% variation \newcommand\slang{\emph{(slang)} %% slang term etc. In some cases, however, I have more than one tag. What I would like to do is then have a pair of adjacent macros expand like this: \hyph\var -> (hyph., var) I think I could create a recursive macro which checks the second command, and if it is in the same group of macros (there are perhaps 9 that I have defined), combine them. But that would be 9 different definitions, with 9 different checks in each one - surely there is a better solution than that. A general solution would be able to deal with an unlimited number of adjacent macros. And, it should be able to define a group composed of the 9 macros, and do the recursion based on the group, not each individual macro. I fear I don't understand enough about Tex to approach the problem. I would appreciate any help or directions. Henry Kannapell From peter at gigamonkeys.com Mon May 25 01:36:34 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Sun, 24 May 2009 16:36:34 -0700 Subject: [texhax] Centering within an arbitrary vbox Message-ID: <40e4e7e50905241636l15403b33re9982de2102cae9e@mail.gmail.com> I have this bit of TeX code: \line{\hfill\vbox{\hbox{Chapter}\hbox{8}}} Which renders something like this (pardon my ASCII art): | Chapter| | 8 | What I want is for the "8" to be centered under the "Chapter" but with the combined vbox flush right. I've tried putting hfill's in the hbox containing the "8" but that doesn't seem to do anything. I assume that that's because the width of the hbox is still just big enough to hold the text--i.e. the hfill doesn't cause the size of the enclosing box to expand. Is that about right? And if so, is there an easy way to get the effect I want. (Basically I want to force the bottom hbox to be the same width as the top one but I don't want to specify some specific value for the widths of the two hboxes. Am I missing something obvious? -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From asnd at triumf.ca Mon May 25 14:41:33 2009 From: asnd at triumf.ca (Donald Arseneau) Date: 25 May 2009 05:41:33 -0700 Subject: [texhax] combing adjacent macros In-Reply-To: References: Message-ID: Henry Kannapell writes: > I am a novice Tex user, but would like to find a method of combining > adjacent macros that I define in a style sheet. > > \newcommand\hyph{\emph{(hyph.)} %% hyphenated > \newcommand\var{\emph{(var.)} %% variation > \newcommand\slang{\emph{(slang)} %% slang term > > In some cases, however, I have more than one tag. What I would like to do is > then have a pair of adjacent macros expand like this: > > \hyph\var -> (hyph., var) > > I think I could create a recursive macro which checks the second command, > and if it is in the same group of macros (there are perhaps 9 that I have > defined), combine them. But that would be 9 different definitions, with 9 > different checks in each one - surely there is a better solution than that. > > A general solution would be able to deal with an unlimited number of > adjacent macros. And, it should be able to define a group composed of the 9 > macros, and do the recursion based on the group, not each individual macro. The important question is: are these used in a place where it is always safe to look at the next character or command? Things can get messy looking ahead to see an alignment separator (&). If they are safe in general, are they safe to take a macro argument? That means they are never used right before }, or certain other contexts. Here is my suggestion. Expand the next token and look for a consistent command name. (Yes, \@ifnextchar can test commands.) \makeatletter \newcommand\cwtag[1]{% \cwtag at start \let\cwtag at start\relax % start and locally disable restart \emph{#1}% \expandafter\cwtag at tail } \newcommand\cwtag at tail{% \@ifnextchar\cwtag{\cwtag at join}{\cwtag at stop}% } \newcommand\cwtag at start{\begingroup (} \newcommand\cwtag at join{,\ } \newcommand\cwtag at stop{)\endgroup} \makeatother \newcommand\hyph{\cwtag{hyph.} %% hyphenated \newcommand\var{\cwtag{var.} %% variation \newcommand\slang{\cwtag{slang} %% slang term ... -- Donald Arseneau asnd at triumf.ca From philip.ratcliffe at fastwebnet.it Mon May 25 16:40:41 2009 From: philip.ratcliffe at fastwebnet.it (Philip G. Ratcliffe) Date: Mon, 25 May 2009 16:40:41 +0200 Subject: [texhax] Centering within an arbitrary vbox In-Reply-To: <40e4e7e50905241636l15403b33re9982de2102cae9e@mail.gmail.com> Message-ID: <190480D443F74F8A9093194D1A5B7DC8@PGR1> > I have this bit of TeX code: > > \line{\hfill\vbox{\hbox{Chapter}\hbox{8}}} > > Which renders something like this (pardon my ASCII art): > > > | Chapter| > | 8 | > > What I want is for the "8" to be centered under the "Chapter" > but with the combined vbox flush right. > > [snip] The tabular environment is probably th simplest solution: \line{\hfill\vbox{% \tabcolsep=0pt % to keep things flush \begin{tabular}{c} Chapter\\8 \end{tabular} }} Cheers, Phil From vivrii at gmail.com Mon May 25 17:07:25 2009 From: vivrii at gmail.com (Victor Ivrii) Date: Mon, 25 May 2009 18:07:25 +0300 Subject: [texhax] toc2tex Message-ID: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> Is there any script which converts foo.toc to foo-toc.tex which could be edited and processed? The rationale: to have different fonts and some explanations for certain portions of table-of-contents (for mammoth project in progress, to distinguish between chapters in the almost final shape and those which are in the stage of very early draft) Thank you in advance Victor -- ======================== Victor Ivrii, Professor, Department of Mathematics, University of Toronto http://www.math.toronto.edu/ivrii From konstantin.ziegler at gmx.de Mon May 25 09:59:27 2009 From: konstantin.ziegler at gmx.de (Konstantin Ziegler) Date: Mon, 25 May 2009 09:59:27 +0200 Subject: [texhax] le vs leq and \ZZ vs \Z Message-ID: <4A1A4FDF.5000300@gmx.de> Dear list, 1. I'm using LaTeX for quite some time now and have always wondered why there are two possibilities to typeset the "less or equal than" symbol. Why are there two commands "le" and "leq" to typeset the same symbol? Is it just for historical reasons or is there a "proper" way to do it? 2. Along the lines of "doing things properly": There are certainly lots of people out there who use on of the two following macros \DeclareMathOperator{\ZZ}{\mathbb{Z}} \DeclareMathOperator{\Z}{\mathbb{Z}} to typeset integers. While the second one is shorter, a friend of mine warned by about one-letter-macros labelling them "bad style". Do you agree? Kind regards, Konstantin From yannis.haralambous at telecom-bretagne.eu Mon May 25 17:28:27 2009 From: yannis.haralambous at telecom-bretagne.eu (Yannis Haralambous) Date: Mon, 25 May 2009 17:28:27 +0200 Subject: [texhax] toc2tex In-Reply-To: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> References: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> Message-ID: <2E616791-739A-4511-BE3C-32EBEDE8D818@telecom-bretagne.eu> The *.toc file is generated on each compilation which means that your changes will disappear as soon as you compile your TeX document again. What am I doing in such cases is applying Perl scripts for post- processing of TOC files. You can put the Perl script in your make file so that it is ran whenever needed. The Perl script will then apply the same changes every time the TOC file is updated. Le 25 mai 09 ? 17:07, Victor Ivrii a ?crit : > Is there any script which converts foo.toc to foo-toc.tex which could > be edited and processed? > > The rationale: to have different fonts and some explanations for > certain portions of table-of-contents (for mammoth project in > progress, to distinguish between chapters in the almost final shape > and those which are in the stage of very early draft) > > Thank you in advance > > Victor From vivrii at gmail.com Mon May 25 17:38:53 2009 From: vivrii at gmail.com (Victor Ivrii) Date: Mon, 25 May 2009 18:38:53 +0300 Subject: [texhax] toc2tex In-Reply-To: <2E616791-739A-4511-BE3C-32EBEDE8D818@telecom-bretagne.eu> References: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> <2E616791-739A-4511-BE3C-32EBEDE8D818@telecom-bretagne.eu> Message-ID: <19af81400905250838u2c1bceefi9ab52fb3a716dbd7@mail.gmail.com> On Mon, May 25, 2009 at 6:28 PM, Yannis Haralambous wrote: > The *.toc file is generated on each compilation which means that your > changes will disappear as soon as you compile your TeX document again. Sure, you are right but what I want is a script, generating from foo.toc another file foo-toc.tex with the sole purpose to produce the table of contents (foo-toc.pdf but not foo.pdf) of foo.tex and which can be modified. Sure latexing foo,tex would affect foo.toc but it does not affect already produced foo-toc.tex or foo-toc.pdf which is needed only seldom (say to be presented to granting agency or whatever). Script does not seem to be a good option as the changes are rather unpredictable. > > What am I doing in such cases is applying Perl scripts for post-processing > of TOC files. You can put the Perl script in your make file so that it is > ran whenever needed. The Perl script will then apply the same changes every > time the TOC file is updated. > > Le 25 mai 09 ? 17:07, Victor Ivrii a ?crit : > >> Is there any script which converts foo.toc to foo-toc.tex which could >> be edited and processed? >> >> The rationale: to have different fonts and some explanations for >> certain portions of table-of-contents (for mammoth project in >> progress, to distinguish between chapters in the almost final shape >> and those which are in the stage of very early draft) >> >> Thank you in advance >> >> ? ? ? ? ? ? ? Victor > -- ======================== Victor Ivrii, Professor, Department of Mathematics, University of Toronto http://www.math.toronto.edu/ivrii From adityam at umich.edu Mon May 25 20:01:57 2009 From: adityam at umich.edu (Aditya Mahajan) Date: Mon, 25 May 2009 14:01:57 -0400 (EDT) Subject: [texhax] Centering within an arbitrary vbox In-Reply-To: <190480D443F74F8A9093194D1A5B7DC8@PGR1> References: <190480D443F74F8A9093194D1A5B7DC8@PGR1> Message-ID: On Mon, 25 May 2009, Philip G. Ratcliffe wrote: >> I have this bit of TeX code: >> >> \line{\hfill\vbox{\hbox{Chapter}\hbox{8}}} >> >> Which renders something like this (pardon my ASCII art): >> >> >> | Chapter| >> | 8 | >> >> What I want is for the "8" to be centered under the "Chapter" >> but with the combined vbox flush right. >> >> [snip] > > The tabular environment is probably th simplest solution: > > \line{\hfill\vbox{% > \tabcolsep=0pt % to keep things flush > \begin{tabular}{c} > Chapter\\8 > \end{tabular} > }} Or, if you are using plain TeX, use \halign \line{\hfill\vbox {\halign{\hfill#\hfill \cr Chapter \cr 8 \cr}}} Aditya From bnb at ams.org Mon May 25 20:36:44 2009 From: bnb at ams.org (Barbara Beeton) Date: Mon, 25 May 2009 14:36:44 -0400 (EDT) Subject: [texhax] le vs leq and \ZZ vs \Z In-Reply-To: <4A1A4FDF.5000300@gmx.de> References: <4A1A4FDF.5000300@gmx.de> Message-ID: dear konstantin, 1. I'm using LaTeX for quite some time now and have always wondered why there are two possibilities to typeset the "less or equal than" symbol. Why are there two commands "le" and "leq" to typeset the same symbol? Is it just for historical reasons or is there a "proper" way to do it? the choice of which to use is usually what is known as "house style"; in most situations, the single or double horizontal rule doesn't change the meaning, but some publishers prefer the single, and some the double rule. (some mathematicians also have strong preferences.) so you could say it's historical. there's also a form in which the "equal rule" is parallel to the lower arm of the less-than. again, mostly "house style" or author preference. but if the rule is parallel to the upper arm (equal or less than"), i've seen one, two, and even three parallel rules denoting different orders of a relation that (not being a mathematician) i don't really understand. but i've spent several years presenting published examples of such symbols to the unicode technical committee as documentation supporting their addition to unicode, so these statements are on firm ground. 2. Along the lines of "doing things properly": There are certainly lots of people out there who use on of the two following macros \DeclareMathOperator{\ZZ}{\mathbb{Z}} \DeclareMathOperator{\Z}{\mathbb{Z}} to typeset integers. While the second one is shorter, a friend of mine warned by about one-letter-macros labelling them "bad style". Do you agree? i agree that using one-letter-macros is "bad style". but there's a solid reason: plain.tex (knuth's "starter set") contains definitions for many single-letter commands, and these are taken over intact into latex. because many of them are commands for accents, which are treated differently with different encodings and fonts, some packages (notably hyperref) redefine them with the assumption that they will still retain the original meaning. since even reasonably experienced texers don't always remember all of the one-letter commands, it's easier and better to avoid problems by not defining your own versions. there are also quite a few "predefined" 2-letter commands, but most of them are better known (by a u.s. audience) than the 1-letter commands, and not as often redefined by packages. -- bb From daleif at imf.au.dk Mon May 25 20:43:04 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Mon, 25 May 2009 20:43:04 +0200 Subject: [texhax] toc2tex In-Reply-To: <19af81400905250838u2c1bceefi9ab52fb3a716dbd7@mail.gmail.com> References: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> <2E616791-739A-4511-BE3C-32EBEDE8D818@telecom-bretagne.eu> <19af81400905250838u2c1bceefi9ab52fb3a716dbd7@mail.gmail.com> Message-ID: <4A1AE6B8.4010302@imf.au.dk> Victor Ivrii wrote: > On Mon, May 25, 2009 at 6:28 PM, Yannis Haralambous > wrote: > >> The *.toc file is generated on each compilation which means that your >> changes will disappear as soon as you compile your TeX document again. >> > > Sure, you are right but what I want is a script, generating from > foo.toc another file foo-toc.tex with the sole purpose to produce the > table of contents (foo-toc.pdf but not foo.pdf) of foo.tex and which > can be modified. Sure latexing foo,tex would affect foo.toc but it > does not affect already produced foo-toc.tex or foo-toc.pdf which is > needed only seldom (say to be presented to granting agency or > whatever). Script does not seem to be a good option as the changes are > rather unpredictable. > > >> What am I doing in such cases is applying Perl scripts for post-processing >> of TOC files. You can put the Perl script in your make file so that it is >> ran whenever needed. The Perl script will then apply the same changes every >> time the TOC file is updated. >> > > > > > >> Le 25 mai 09 ? 17:07, Victor Ivrii a ?crit : >> >> >>> Is there any script which converts foo.toc to foo-toc.tex which could >>> be edited and processed? >>> >>> The rationale: to have different fonts and some explanations for >>> certain portions of table-of-contents (for mammoth project in >>> progress, to distinguish between chapters in the almost final shape >>> and those which are in the stage of very early draft) >>> >>> Thank you in advance >>> >>> Victor >>> > > > > have a look at how your document class loads the toc, then emulate that using your own macro, loading your file instead. Please be aware that \tableofcontents initialtes the creating of the toc files, so that needs to be handled as well. BTW I would think most of what you are asking for might be doable in the memoir class especially if your are using a master file and have the chapters in seperate files. /daleif -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090525/d525d989/attachment-0001.html From daleif at imf.au.dk Mon May 25 20:52:44 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Mon, 25 May 2009 20:52:44 +0200 Subject: [texhax] le vs leq and \ZZ vs \Z In-Reply-To: <4A1A4FDF.5000300@gmx.de> References: <4A1A4FDF.5000300@gmx.de> Message-ID: <4A1AE8FC.8030709@imf.au.dk> Konstantin Ziegler wrote: > Dear list, > > 1. I'm using LaTeX for quite some time now and have always wondered why > there are two possibilities to typeset the "less or equal than" symbol. > > Why are there two commands "le" and "leq" to typeset the same symbol? > Is it just for historical reasons or is there a "proper" way to do it? > > 2. Along the lines of "doing things properly": There are certainly lots > of people out there who use on of the two following macros > > \DeclareMathOperator{\ZZ}{\mathbb{Z}} > \DeclareMathOperator{\Z}{\mathbb{Z}} > > to typeset integers. While the second one is shorter, a friend of mine > warned by about one-letter-macros labelling them "bad style". Do you agree? > both may be out of code readability, if you do not know what \le looks like A \le B doesn't make much sence, but because a lot of symbols containing eq means 'something equals' most users will guess that \leq means less than. The same goes for the short names for sets etc., I agree it is bad style, because one cannot understand the code unless you have read the preamble. I recommend my users to use naming such that the code actually makes sense without looking at the output. For example in topology we often use the combination of = and ~ to indicate an isomorphism, but reading M \cong N does not make much sense, here I recommend to users that they define a new macro \isomorph equal to \cong and use this throughout. Some journal editors does not like this, but as long as it is consistent then it is easy to change. Some users may use \Z for one thing, but their colleague use it for something different, which make cooperation difficult. Another problem with the very short names (one letter) if that they are often used for accents, which again confuse users. /daleif From uwe.lueck at web.de Mon May 25 20:54:42 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Mon, 25 May 2009 20:54:42 +0200 Subject: [texhax] le vs leq and \ZZ vs \Z Message-ID: <1139786882@web.de> Barbara Beeton schrieb am 25.05.2009 20:39:00: > 1. I'm using LaTeX for quite some time now and have always wondered why > there are two possibilities to typeset the "less or equal than" symbol. > > Why are there two commands "le" and "leq" to typeset the same symbol? > Is it just for historical reasons or is there a "proper" way to do it? > > the choice of which to use is usually > what is known as "house style"; in > most situations, the single or double > horizontal rule doesn't change the > meaning, but some publishers prefer > the single, and some the double rule. > (some mathematicians also have strong > preferences.) so you could say it's > historical. No, Barbara, \le and \leq are synonyms for the same symbol, see TeXbook p. 436/438, there: "Some symbols have alternate names that are so commonly used that plain TeX provides two or more equivalent control sequences." \leqq from the amssymb package has a double horizontal rule. Cheers, Uwe. From yannis.haralambous at telecom-bretagne.eu Mon May 25 20:58:17 2009 From: yannis.haralambous at telecom-bretagne.eu (Yannis Haralambous) Date: Mon, 25 May 2009 20:58:17 +0200 Subject: [texhax] le vs leq and \ZZ vs \Z In-Reply-To: <4A1A4FDF.5000300@gmx.de> References: <4A1A4FDF.5000300@gmx.de> Message-ID: <9F2CEBDD-BFDE-47FA-9F55-A8724CEFFA2F@telecom-bretagne.eu> Le 25 mai 09 ? 09:59, Konstantin Ziegler a ?crit : > to typeset integers. While the second one is shorter, a friend of > mine > warned by about one-letter-macros labelling them "bad style". Do > you agree? I will give you a real example of what happened two weeks ago: In a journal of the Soci?t? Math?matique de France there is the following convention: at the end of every paper there is the sentence "Article re?u le ??, accept? le ??" (meaning: paper received on (date), accepted on (other date)). One author has innocently defined \c to be \mathbb{C} (or even \ensuremath{\mathbb{C}}, I don't remember). Result: the sentence was scrambled since the ? or "re?u" internally calls the cedilla macro \c and this was the name the author gave to his new macro... And this happened without even an error message... :-| yh From bnb at ams.org Mon May 25 21:08:30 2009 From: bnb at ams.org (Barbara Beeton) Date: Mon, 25 May 2009 15:08:30 -0400 (EDT) Subject: [texhax] le vs leq and \ZZ vs \Z In-Reply-To: <1139786882@web.de> References: <1139786882@web.de> Message-ID: On Mon, 25 May 2009, Uwe Lueck wrote: Barbara Beeton schrieb am 25.05.2009 20:39:00: > 1. I'm using LaTeX for quite some time now and have always wondered why > there are two possibilities to typeset the "less or equal than" symbol. > > Why are there two commands "le" and "leq" to typeset the same symbol? > Is it just for historical reasons or is there a "proper" way to do it? > > the choice of which to use is usually > what is known as "house style"; in > most situations, the single or double > horizontal rule doesn't change the > meaning, but some publishers prefer > the single, and some the double rule. > (some mathematicians also have strong > preferences.) so you could say it's > historical. No, Barbara, \le and \leq are synonyms for the same symbol, see TeXbook p. 436/438, there: "Some symbols have alternate names that are so commonly used that plain TeX provides two or more equivalent control sequences." \leqq from the amssymb package has a double horizontal rule. urk. correct. thanks, uwe. in the case of \le and \leq, both are defined in plain.tex; the basic one is \leq, and then \let\le=\leq . so this was don knuth's decision. -- bb From hartmut_henkel at gmx.de Mon May 25 23:38:45 2009 From: hartmut_henkel at gmx.de (Hartmut Henkel) Date: Mon, 25 May 2009 23:38:45 +0200 (CEST) Subject: [texhax] Centering within an arbitrary vbox In-Reply-To: References: <190480D443F74F8A9093194D1A5B7DC8@PGR1> Message-ID: On Mon, 25 May 2009, Aditya Mahajan wrote: > On Mon, 25 May 2009, Philip G. Ratcliffe wrote: > > >> I have this bit of TeX code: > >> > >> \line{\hfill\vbox{\hbox{Chapter}\hbox{8}}} > >> > >> Which renders something like this (pardon my ASCII art): > >> > >> > >> | Chapter| > >> | 8 | > >> > >> What I want is for the "8" to be centered under the "Chapter" > >> but with the combined vbox flush right. > >> > >> [snip] > > > > The tabular environment is probably th simplest solution: > > > > \line{\hfill\vbox{% > > \tabcolsep=0pt % to keep things flush > > \begin{tabular}{c} > > Chapter\\8 > > \end{tabular} > > }} > > Or, if you are using plain TeX, use \halign > > \line{\hfill\vbox > {\halign{\hfill#\hfill \cr > Chapter \cr > 8 \cr}}} but here the right adjustment is not exact, as there are spurious spaces, after the "Chapter" and after the "8". An easy cure is to write always, invariably "#\unskip" instead of "#". Or you need to type e. g. "Chapter\cr", but the "#\unskip" in the preamble seems to be more practical, more fail-safe, gives more freedom to align the source text. Regards, Hartmut From hnk at cs.stanford.edu Tue May 26 01:05:52 2009 From: hnk at cs.stanford.edu (Henry Kannapell) Date: Mon, 25 May 2009 19:05:52 -0400 Subject: [texhax] combining adjacent macros Message-ID: <3B50BEB6-58C3-4B1F-B0A9-0683EDCC6492@cs.stanford.edu> > > I am a novice Tex user, but would like to find a method of combining > > adjacent macros that I define in a style sheet. > > > > \newcommand\hyph{\emph{(hyph.)} %% hyphenated > > \newcommand\var{\emph{(var.)} %% variation > > \newcommand\slang{\emph{(slang)} %% slang term > > > > In some cases, however, I have more than one tag. What I would > like to do is > > then have a pair of adjacent macros expand like this: > > > > \hyph\var -> (hyph., var) > > > > I think I could create a recursive macro which checks the second > command, > > and if it is in the same group of macros (there are perhaps 9 > that I have > > defined), combine them. But that would be 9 different > definitions, with 9 > > different checks in each one - surely there is a better solution > than that. > > > > A general solution would be able to deal with an unlimited number of > > adjacent macros. And, it should be able to define a group > composed of the 9 > > macros, and do the recursion based on the group, not each > individual macro. > > The important question is: are these used in a place where it is > always safe to look at the next character or command? Things can > get messy looking ahead to see an alignment separator (&). If they > are safe in general, are they safe to take a macro argument? That > means they are never used right before }, or certain other contexts. > > Here is my suggestion. Expand the next token and look for a > consistent > command name. (Yes, \@ifnextchar can test commands.) > > \makeatletter > > \newcommand\cwtag[1]{% > \cwtag at start \let\cwtag at start\relax % start and locally > disable restart > \emph{#1}% > \expandafter\cwtag at tail > } > > \newcommand\cwtag at tail{% > \@ifnextchar\cwtag{\cwtag at join}{\cwtag at stop}% > } > \newcommand\cwtag at start{\begingroup (} > \newcommand\cwtag at join{,\ } > \newcommand\cwtag at stop{)\endgroup} > > \makeatother > > \newcommand\hyph{\cwtag{hyph.} %% hyphenated > \newcommand\var{\cwtag{var.} %% variation > \newcommand\slang{\cwtag{slang} %% slang term > ... > > -- > Donald Arseneau asnd at triumf.ca Thanks, that is it exactly! For other newbies like me: 1) the " at " in the command names is replaced by the "@" symbol 2) the last three newcommands have an extra "}" needed at the end From RChilling at comcast.net Tue May 26 02:09:45 2009 From: RChilling at comcast.net (Randy Schilling) Date: Mon, 25 May 2009 19:09:45 -0500 Subject: [texhax] Ubuntu editors for TeX Message-ID: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> Hello - What Ubuntu text editor best accomodates TeX? Is there one like WinEdt which allows you to TeX your .tex file, view your .dvi file, create a .pdf, directly from within the editor? Or is there a better way to work with TeX from under Ubuntu? Thanks - Randy From tjm1983 at gmail.com Tue May 26 02:17:16 2009 From: tjm1983 at gmail.com (Tim McKenzie) Date: Tue, 26 May 2009 12:17:16 +1200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> Message-ID: <9e0d35cb0905251717i2b8cf0eevb092ab48236b41d9@mail.gmail.com> I happily use Kile (also available through Ubuntu's package manager), which is designed specifically for (La)TeX editing. Kile is made for the KDE desktop; it should work with Gnome (which is the default desktop if you're using Ubuntu, rather than Kubuntu), but someone else might know of a TeX editor made with Gnome in mind. Tim <>< 2009/5/26 Randy Schilling : > Hello - > > What Ubuntu text editor best accomodates TeX? Is there one like WinEdt > which allows you to TeX your .tex file, view your .dvi file, create a .pdf, > directly from within the editor? Or is there a better way to work with TeX > from under Ubuntu? > > Thanks - Randy > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > From axel.retif at mac.com Tue May 26 02:23:08 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Mon, 25 May 2009 19:23:08 -0500 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> Message-ID: On 25 May, 2009, at 19:09, Randy Schilling wrote: > What Ubuntu text editor best accomodates TeX? Is there one like > WinEdt > which allows you to TeX your .tex file, view your .dvi file, create > a .pdf, > directly from within the editor? TeXmaker: http://www.xm1math.net/texmaker/ it doesn't have a built-in DVI viewer, but TeX Live comes with Xdvi, and it uses the system default PDF viewer (Evince is *not* a good choice). or Kile: http://kile.sourceforge.net/ > Or is there a better way to work with TeX from under Ubuntu? See if you like TeXworks: http://www.tug.org/texworks/ Best, Axel From reinhard.kotucha at web.de Tue May 26 02:24:02 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Tue, 26 May 2009 02:24:02 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> Message-ID: <18971.13986.200052.974907@zaphod.ms25.net> On 25 May 2009 Randy Schilling wrote: > Hello - > > What Ubuntu text editor best accomodates TeX? Is there one like WinEdt > which allows you to TeX your .tex file, view your .dvi file, create a .pdf, > directly from within the editor? Or is there a better way to work with TeX > from under Ubuntu? Emacs. Regards, Reinhard. -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From tonightsthenight at gmail.com Tue May 26 04:22:53 2009 From: tonightsthenight at gmail.com (Sam Albers) Date: Mon, 25 May 2009 19:22:53 -0700 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <18971.13986.200052.974907@zaphod.ms25.net> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <18971.13986.200052.974907@zaphod.ms25.net> Message-ID: On Mon, May 25, 2009 at 5:24 PM, Reinhard Kotucha wrote: > On 25 May 2009 Randy Schilling wrote: > > > Hello - > > > > What Ubuntu text editor best accomodates TeX? Is there one like WinEdt > > which allows you to TeX your .tex file, view your .dvi file, create a > .pdf, > > directly from within the editor? Or is there a better way to work with > TeX > > from under Ubuntu? > > Emacs. > > Just to echo Reinhard's suggestion: Emacs indeed. If you've never used it before it takes a little getting used to but it is time well spent and will save you oodles of time in the end. And then once you get used to using Emacs, you begin to realize how useful it is for just about anything! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://tug.org/pipermail/texhax/attachments/20090525/cfed664d/attachment.html From asnd at triumf.ca Tue May 26 04:52:18 2009 From: asnd at triumf.ca (Donald Arseneau) Date: 25 May 2009 19:52:18 -0700 Subject: [texhax] combining adjacent macros In-Reply-To: <3B50BEB6-58C3-4B1F-B0A9-0683EDCC6492@cs.stanford.edu> References: <3B50BEB6-58C3-4B1F-B0A9-0683EDCC6492@cs.stanford.edu> Message-ID: Henry Kannapell writes: > > \newcommand\cwtag at start{\begingroup (} > > \newcommand\cwtag at join{,\ } > > \newcommand\cwtag at stop{)\endgroup} > 1) the " at " in the command names is replaced by the "@" symbol Did my posting really appear that way to you? Let me check, no it was in its original form when it came back to me in the daily digest. Your email reader, or perhaps isp mail server, has some 'splainin to do. > 2) the last three newcommands have an extra "}" needed at the end I've got some 'splainin too.. Ooops. -- Donald Arseneau asnd at triumf.ca From torsten.wagner at fh-aachen.de Tue May 26 05:39:56 2009 From: torsten.wagner at fh-aachen.de (Torsten Wagner) Date: Tue, 26 May 2009 12:39:56 +0900 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <18971.13986.200052.974907@zaphod.ms25.net> Message-ID: <200905261239.56627.torsten.wagner@fh-aachen.de> Hi, > > > > Emacs. > > > > Just to echo Reinhard's suggestion: Emacs indeed. > > If you've never used it before it takes a little getting used to but it is > time well spent and will save you oodles of time in the end. And then once > you get used to using Emacs, you begin to realize how useful it is for just > about anything! > juhu an Emacs thread .... just to make it clear. If you need an editor (IDE) for a single time like write your thesis and after that you will never write again a TeX-file, you might like to go with kile, texmaker, etc. If you looking for a permanent solution and it is likely that you will use it again and again and again and maybe make it part of your professional workflow, it is worse to consider the use of Emacs. As with all professional tools, it take you more time to come into but later the things you can do with it and the time you save highly pay back for the hard learning curve at the beginning. Its like LaTeX vs. OpenOffice-Writer, or MS-Word like a DSLR vs. a compact digital camera like a Gimp or Photoshop vs. MS paint etc., etc. the nice part on emacs,,, if you ever come to a Programming language X or a computer task Y... it is likely that you can use emacs (which you know then already) for this task no need to learn another IDE. AND!!!! yes there is another great editor VIM which aims similar goals like emacs but use a different approach,,, try both, judge which you like... don't follow the flame-wars.... Greetings Totti From pierre.mackay at comcast.net Tue May 26 06:01:28 2009 From: pierre.mackay at comcast.net (Pierre MacKay) Date: Mon, 25 May 2009 21:01:28 -0700 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <18971.13986.200052.974907@zaphod.ms25.net> Message-ID: <4A1B6998.10607@comcast.net> If you've never used it before it takes a little getting used to but it is time well spent and will save you oodles of time in the end. And then once you get used to using Emacs, you begin to realize how useful it is for just about anything! Hear, hear!! And if you have the time to learn how to use Emacs macros, you will wonder how you ever managed without them. Pierre MacKay From peter at gigamonkeys.com Mon May 25 17:16:02 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Mon, 25 May 2009 08:16:02 -0700 Subject: [texhax] Centering within an arbitrary vbox In-Reply-To: <190480D443F74F8A9093194D1A5B7DC8@PGR1> References: <40e4e7e50905241636l15403b33re9982de2102cae9e@mail.gmail.com> <190480D443F74F8A9093194D1A5B7DC8@PGR1> Message-ID: <40e4e7e50905250816s37bed071tbce3274f44f950f6@mail.gmail.com> On Mon, May 25, 2009 at 7:40 AM, Philip G. Ratcliffe wrote: >> I have this bit of TeX code: >> >> ? ?\line{\hfill\vbox{\hbox{Chapter}\hbox{8}}} >> >> Which renders something like this (pardon my ASCII art): >> >> >> | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Chapter| >> | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8 ? ? ? ? ? | >> >> What I want is for the "8" to be centered under the "Chapter" >> but with the combined vbox flush right. >> >> [snip] > > The tabular environment is probably th simplest solution: > > \line{\hfill\vbox{% > ?\tabcolsep=0pt % to keep things flush > ?\begin{tabular}{c} > ? ?Chapter\\8 > ?\end{tabular} > }} Thanks. I had also just figured out this: \newlength{\foo} \settowidth{\foo}{CHAPTER} \hbox to \hsize{\hfill \vbox{ \hbox{CHAPTER} \hbox to\foo{\hfill 8\hfill}}} -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From avr at telenet.be Mon May 25 19:16:10 2009 From: avr at telenet.be (Andre Van Ryckeghem) Date: Mon, 25 May 2009 19:16:10 +0200 Subject: [texhax] toc2tex In-Reply-To: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> References: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> Message-ID: You may insert lines in your toc file by using \addtocontents... in your latex file, example: \addtocontents{toc}{\protect\otherfont} Andre ----- Original Message ----- From: "Victor Ivrii" To: Sent: Monday, May 25, 2009 5:07 PM Subject: [texhax] toc2tex > Is there any script which converts foo.toc to foo-toc.tex which could > be edited and processed? > > The rationale: to have different fonts and some explanations for > certain portions of table-of-contents (for mammoth project in > progress, to distinguish between chapters in the almost final shape > and those which are in the stage of very early draft) > > Thank you in advance > > Victor > > -- > ======================== > Victor Ivrii, Professor, Department of Mathematics, University of Toronto > http://www.math.toronto.edu/ivrii > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > From peter at gigamonkeys.com Tue May 26 02:03:16 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Mon, 25 May 2009 17:03:16 -0700 Subject: [texhax] An idea for finding good page breaks Message-ID: <40e4e7e50905251703v40c4d3f1w90ec055c3ac445e2@mail.gmail.com> I'm playing around with typesetting a book of interviews (see .sig to guess which one). It seems like I'll be using the memoir class. The basic formatting of the Q&A exchanges is each time the speaker changes we have a small vskip and an unindented paragraph starting with the speaker's name and any subsequent paragraphs while the same speaker is talking are indented normally. I.e. something like my ASCII art representation below. It occurred to me that given this format, that a maybe a good way to help TeX find good page breaks would be to let the vskips before each new speaker act sort of analogously to the interword spacing when computing line breaks. I.e. all the vskips on a page should be the same but they can differ from page to page as a way to help expand or contract the text a bit to get good breaks. So I have two questions: 1. Is that at all a reasonable idea? 2. Is there some easy way to implement it in TeX/LaTeX/memoir? -Peter ASCII art illustration: Interviewer: Stuff stuff stuff? Interviewee: More stuff blah blah blah. Another sentence. A new paragraph of text from the same speaker. Blah blah blah. Interviewer: Another question? -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From daleif at imf.au.dk Tue May 26 09:55:35 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Tue, 26 May 2009 09:55:35 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> Message-ID: <4A1BA077.7020509@imf.au.dk> Axel E. Retif wrote: > On 25 May, 2009, at 19:09, Randy Schilling wrote: > >> What Ubuntu text editor best accomodates TeX? Is there one like >> WinEdt >> which allows you to TeX your .tex file, view your .dvi file, create >> a .pdf, >> directly from within the editor? > > TeXmaker: > > http://www.xm1math.net/texmaker/ > > it doesn't have a built-in DVI viewer, but TeX Live comes with Xdvi, > and it uses the system default PDF viewer (Evince is *not* a good > choice). > what's wrong with evince? > or Kile: > > http://kile.sourceforge.net/ > >> Or is there a better way to work with TeX from under Ubuntu? > > See if you like TeXworks: > > http://www.tug.org/texworks/ > > > Best, > > Axel > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org -- /daleif From tsc25 at cantab.net Tue May 26 11:01:13 2009 From: tsc25 at cantab.net (Toby Cubitt) Date: Tue, 26 May 2009 11:01:13 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <18971.13986.200052.974907@zaphod.ms25.net> Message-ID: <4A1BAFD9.3030703@dr-qubit.org> Sam Albers wrote: > On Mon, May 25, 2009 at 5:24 PM, Reinhard Kotucha > wrote: > >> On 25 May 2009 Randy Schilling wrote: >> > What Ubuntu text editor best accomodates TeX? Is there one like WinEdt >> > which allows you to TeX your .tex file, view your .dvi file, create a >> > .pdf, directly from within the editor? Or is there a better way to work >> > with TeX from under Ubuntu? >> >> Emacs. >> >> Just to echo Reinhard's suggestion: Emacs indeed. > > If you've never used it before it takes a little getting used to but it is > time well spent and will save you oodles of time in the end. And then once > you get used to using Emacs, you begin to realize how useful it is for just > about anything! Emacs comes with decent LaTeX support "out of the box". But if you do decide to try Emacs, you will almost certainly want to try the AUCTeX package too, which provides much richer and far more powerful TeX/LaTeX/Context editing modes for Emacs. It's probably fair to say the majority of people who use Emacs for LaTeX editing use AUCTeX. Ubuntu's Emacs package might come with AUCTeX already installed. If not, it'll certainly be available as a separate package in Ubuntu. HTH, Toby From axel.retif at mac.com Tue May 26 12:56:06 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Tue, 26 May 2009 05:56:06 -0500 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <4A1BA077.7020509@imf.au.dk> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> Message-ID: On 26 May, 2009, at 02:55, Lars Madsen wrote: > Axel E. Retif wrote: >> On 25 May, 2009, at 19:09, Randy Schilling wrote: >> >>> What Ubuntu text editor best accomodates TeX? Is there one like >>> WinEdt which allows you to TeX your .tex file, view your .dvi >>> file, create a .pdf, directly from within the editor? >> >> TeXmaker: >> >> http://www.xm1math.net/texmaker/ >> >> it doesn't have a built-in DVI viewer, but TeX Live comes with >> Xdvi, and it uses the system default PDF viewer (Evince is *not* a >> good choice). >> > > what's wrong with evince? It loses some characters --try `` texdoc fontspec '' and, if your default PDF viewer is Evince (Document Viewer), you'll see it. Xpdf works fine. Best, Axel From konstantin.ziegler at gmx.de Tue May 26 14:32:05 2009 From: konstantin.ziegler at gmx.de (Konstantin Ziegler) Date: Tue, 26 May 2009 14:32:05 +0200 Subject: [texhax] le vs leq and \ZZ vs \Z In-Reply-To: References: <1139786882@web.de> Message-ID: <4A1BE145.5090906@gmx.de> Wow, thanks for all the great answers. I completely neglected the issue of making my macros easily accessible to somebody else. (I guess, that's a quite common blind spot.) I'll go with \ZZ and \leq. Thanks a lot, Konstantin From peter at gigamonkeys.com Tue May 26 08:05:15 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Mon, 25 May 2009 23:05:15 -0700 Subject: [texhax] memoir page head confusion Message-ID: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> I've got these two definitions in a document I'm typesetting with the memoir class: \makeevenhead{headings}{\headlinefont\llap{\thepage\hskip 6pt} \leftmark}{}{} \makeoddhead{headings}{}{}{\headlinefont\rightmark\rlap{\hskip 6pt\thepage}} For some reason the even head ends up with the page number lapped out correctly but then the rest of the heading gets moved down a bit so it's not in line with the page head. If I fill in the center and right parts of the even head they are in the same line as the \leftmark text (i.e. a bit below the line of the page number.) The odd head works fine with the rightmark in line with the right-lapped page number. Any ideas about what I'm doing wrong? -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From peter at gigamonkeys.com Tue May 26 08:49:47 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Mon, 25 May 2009 23:49:47 -0700 Subject: [texhax] memoir page head confusion In-Reply-To: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> Message-ID: <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> On Mon, May 25, 2009 at 11:05 PM, Peter Seibel wrote: > I've got these two definitions in a document I'm typesetting with the > memoir class: > > ?\makeevenhead{headings}{\headlinefont\llap{\thepage\hskip 6pt} \leftmark}{}{} > ?\makeoddhead{headings}{}{}{\headlinefont\rightmark\rlap{\hskip 6pt\thepage}} > > For some reason the even head ends up with the page number lapped out > correctly but then the rest of the heading gets moved down a bit so > it's not in line with the page head. If I fill in the center and right > parts of the even head they are in the same line as the \leftmark text > (i.e. a bit below the line of the page number.) So it seems that if I put an hbox around the whole left part of the even heading like so: \makeevenhead{headings}{\hbox{\headlinefont\llap{\thepage\hskip 6pt} \leftmark}}{}{} then everything works the way I hoped. Why, however, I have no idea. I would love to be edified if this is obvious to someone else. -Peter > > The odd head works fine with the rightmark in line with the > right-lapped page number. > > Any ideas about what I'm doing wrong? > > -Peter > > -- > Peter Seibel > http://www.codersatwork.com/ > http://www.gigamonkeys.com/blog/ > -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From toby-dated-1243764070.92489d at dr-qubit.org Tue May 26 11:01:13 2009 From: toby-dated-1243764070.92489d at dr-qubit.org (Toby Cubitt) Date: Tue, 26 May 2009 11:01:13 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <18971.13986.200052.974907@zaphod.ms25.net> Message-ID: <4A1BAFD9.3030703@dr-qubit.org> Sam Albers wrote: > On Mon, May 25, 2009 at 5:24 PM, Reinhard Kotucha > wrote: > >> On 25 May 2009 Randy Schilling wrote: >> > What Ubuntu text editor best accomodates TeX? Is there one like WinEdt >> > which allows you to TeX your .tex file, view your .dvi file, create a >> > .pdf, directly from within the editor? Or is there a better way to work >> > with TeX from under Ubuntu? >> >> Emacs. >> >> Just to echo Reinhard's suggestion: Emacs indeed. > > If you've never used it before it takes a little getting used to but it is > time well spent and will save you oodles of time in the end. And then once > you get used to using Emacs, you begin to realize how useful it is for just > about anything! Emacs comes with decent LaTeX support "out of the box". But if you do decide to try Emacs, you will almost certainly want to try the AUCTeX package too, which provides much richer and far more powerful TeX/LaTeX/Context editing modes for Emacs. It's probably fair to say the majority of people who use Emacs for LaTeX editing use AUCTeX. Ubuntu's Emacs package might come with AUCTeX already installed. If not, it'll certainly be available as a separate package in Ubuntu. HTH, Toby From vivrii at gmail.com Tue May 26 16:10:19 2009 From: vivrii at gmail.com (Victor Ivrii) Date: Tue, 26 May 2009 17:10:19 +0300 Subject: [texhax] toc2tex In-Reply-To: <4A1AE6B8.4010302@imf.au.dk> References: <19af81400905250807u7fed0d16la43cec7ac15d55d3@mail.gmail.com> <2E616791-739A-4511-BE3C-32EBEDE8D818@telecom-bretagne.eu> <19af81400905250838u2c1bceefi9ab52fb3a716dbd7@mail.gmail.com> <4A1AE6B8.4010302@imf.au.dk> Message-ID: <19af81400905260710j747455dbvfeeb960083fdb7da@mail.gmail.com> Thanks to everybody for suggestions. Probably some combinations of them will work for me - I will need this solution in a couple of months. Victor -- ======================== Victor Ivrii, Professor, Department of Mathematics, University of Toronto http://www.math.toronto.edu/ivrii From P.Taylor at Rhul.Ac.Uk Tue May 26 16:48:01 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR) Date: Tue, 26 May 2009 15:48:01 +0100 Subject: [texhax] memoir page head confusion In-Reply-To: <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> Message-ID: <4A1C0121.2000004@Rhul.Ac.Uk> You probably need a \leavevmode ... Peter Seibel wrote [...] > So it seems that if I put an hbox around the whole left part of the > even heading like so: > > \makeevenhead{headings}{\hbox{\headlinefont\llap{\thepage\hskip 6pt} > \leftmark}}{}{} > > then everything works the way I hoped. Why, however, I have no idea. I > would love to be edified if this is obvious to someone else. From dorothy.jammins at yahoo.com Tue May 26 18:44:52 2009 From: dorothy.jammins at yahoo.com (Dorothy Jammins) Date: Tue, 26 May 2009 09:44:52 -0700 (PDT) Subject: [texhax] combing adjacent macros In-Reply-To: References: Message-ID: <693010.92682.qm@web43414.mail.sp1.yahoo.com> Can this be used to combine subscripts in equations? I've tried but couldn't figure out how to ensure that the whole group would be in math mode and subscript. ----- Original Message ---- From: Donald Arseneau To: texhax at tug.org; hale1 at alcor.concordia.ca Sent: Monday, May 25, 2009 8:41:33 AM Subject: Re: [texhax] combing adjacent macros Henry Kannapell writes: > I am a novice Tex user, but would like to find a method of combining > adjacent macros that I define in a style sheet. > > \newcommand\hyph{\emph{(hyph.)} %% hyphenated > \newcommand\var{\emph{(var.)} %% variation > \newcommand\slang{\emph{(slang)} %% slang term > > In some cases, however, I have more than one tag. What I would like to do is > then have a pair of adjacent macros expand like this: > > \hyph\var -> (hyph., var) > > I think I could create a recursive macro which checks the second command, > and if it is in the same group of macros (there are perhaps 9 that I have > defined), combine them. But that would be 9 different definitions, with 9 > different checks in each one - surely there is a better solution than that. > > A general solution would be able to deal with an unlimited number of > adjacent macros. And, it should be able to define a group composed of the 9 > macros, and do the recursion based on the group, not each individual macro. The important question is: are these used in a place where it is always safe to look at the next character or command? Things can get messy looking ahead to see an alignment separator (&). If they are safe in general, are they safe to take a macro argument? That means they are never used right before }, or certain other contexts. Here is my suggestion. Expand the next token and look for a consistent command name. (Yes, \@ifnextchar can test commands.) \makeatletter \newcommand\cwtag[1]{% \cwtag at start \let\cwtag at start\relax % start and locally disable restart \emph{#1}% \expandafter\cwtag at tail } \newcommand\cwtag at tail{% \@ifnextchar\cwtag{\cwtag at join}{\cwtag at stop}% } \newcommand\cwtag at start{\begingroup (} \newcommand\cwtag at join{,\ } \newcommand\cwtag at stop{)\endgroup} \makeatother \newcommand\hyph{\cwtag{hyph.} %% hyphenated \newcommand\var{\cwtag{var.} %% variation \newcommand\slang{\cwtag{slang} %% slang term .... -- Donald Arseneau asnd at triumf.ca _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From P.Taylor at Rhul.Ac.Uk Tue May 26 18:55:51 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR) Date: Tue, 26 May 2009 17:55:51 +0100 Subject: [texhax] memoir page head confusion In-Reply-To: <40e4e7e50905260833r3f8d1e6eiad1b2300dbd35e1e@mail.gmail.com> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> <40e4e7e50905260833r3f8d1e6eiad1b2300dbd35e1e@mail.gmail.com> Message-ID: <4A1C1F17.4020301@Rhul.Ac.Uk> Peter Seibel wrote: > On Tue, May 26, 2009 at 7:48 AM, Philip TAYLOR wrote: >> You probably need a \leavevmode ... > > Yup. That fixes it too. Though I still wonder why it's necessary--why > would the left side of the header be in vertical mode while the right > side is in horizontal mode. Pass :-). By the way, regarding your earlier "idea for finding good page breaks", \vskip with the same glue does exactly what you want. Suppose that each \vskip is of the form \vskip 2\baselineskip plus 1\baselineskip minus 1\baselineskip then on each page, each will contribute at most [*] 3 \baselineskip and at least 1 \baselineskip, all will contribute exactly the same amount, but the amount contributed on page $n$ will be independent of the amount contributed on page $m$. Philip Taylor [*] Actually it can contribute more, /in extremis/. From daleif at imf.au.dk Tue May 26 22:44:39 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Tue, 26 May 2009 22:44:39 +0200 Subject: [texhax] memoir page head confusion In-Reply-To: <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> Message-ID: <4A1C54B7.2040109@imf.au.dk> Peter Seibel wrote: > On Mon, May 25, 2009 at 11:05 PM, Peter Seibel wrote: > >> I've got these two definitions in a document I'm typesetting with the >> memoir class: >> >> \makeevenhead{headings}{\headlinefont\llap{\thepage\hskip 6pt} \leftmark}{}{} >> \makeoddhead{headings}{}{}{\headlinefont\rightmark\rlap{\hskip 6pt\thepage}} >> >> For some reason the even head ends up with the page number lapped out >> correctly but then the rest of the heading gets moved down a bit so >> it's not in line with the page head. If I fill in the center and right >> parts of the even head they are in the same line as the \leftmark text >> (i.e. a bit below the line of the page number.) >> > > So it seems that if I put an hbox around the whole left part of the > even heading like so: > > \makeevenhead{headings}{\hbox{\headlinefont\llap{\thepage\hskip 6pt} > \leftmark}}{}{} > > then everything works the way I hoped. Why, however, I have no idea. I > would love to be edified if this is obvious to someone else. > > -Peter > > > > >> The odd head works fine with the rightmark in line with the >> right-lapped page number. >> >> Any ideas about what I'm doing wrong? >> >> -Peter >> >> -- >> Peter Seibel >> http://www.codersatwork.com/ >> http://www.gigamonkeys.com/blog/ >> >> why don't do what I always do when something puzzles me, look in the code, you might not understand it all, but you will often get an idea as to why things work the way they do. each og the three header components (left, center, right) sits in it own little \parbox /daleif -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at freefriends.org Wed May 27 00:35:58 2009 From: karl at freefriends.org (Karl Berry) Date: Tue, 26 May 2009 17:35:58 -0500 Subject: [texhax] An idea for finding good page breaks In-Reply-To: <40e4e7e50905251703v40c4d3f1w90ec055c3ac445e2@mail.gmail.com> Message-ID: <200905262235.n4QMZwH20588@f7.net> I'm playing around with typesetting a book of interviews Funny, me too :). (http://tug.org/interviews in my case.) all the vskips on a page should be the same but they can differ from page to page as a way to help expand or contract the text a bit to get good breaks. Certainly a good idea, and easy to do. This is exactly what stretchable/shrinkable glue does. Vertical glue works just the same way as horizontal (e.g., interword spaces), as Phil replied. For the sake of example, my \question and \answer macros start approximately like this: \long\def\question{\penalty-1000\vskip6pt plus3pt minus3pt ... \long\def\answer {\penalty-100 \vskip3pt plus2pt minus2pt ... (These are all primitives, not the Approved LaTeX Way, but it works fine with LaTeX.) The negative \penalty (bonus) tells TeX, hey, this is a pretty good place to break -- of course it's much better to break before the question than before the answer. But, if the page break is not taken, then insert some glue. The exact values will of course depend on your layout. Hope this helps, Karl From reinhard.kotucha at web.de Wed May 27 01:55:30 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Wed, 27 May 2009 01:55:30 +0200 Subject: [texhax] memoir page head confusion In-Reply-To: <4A1C0121.2000004@Rhul.Ac.Uk> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> Message-ID: <18972.33138.363408.56436@zaphod.ms25.net> On 26 May 2009 Philip TAYLOR wrote: > You probably need a \leavevmode ... It's better to use an \mbox here and a LaTeX equivalent for \llap{\thepage\hskip 6pt}. Though it's often more convenient for people who are more familiar with plain TeX than with LaTeX to use plain TeX macros or primitives directly, it's quite dangerous though. Especially boxes are critical. The LaTeX boxes contain some hooks used by the color package. If you use plain TeX code instead, you don't see any problems immediately, but it might bite you later. Another issue is hyperref. It re-defines plenty of LaTeX macros. If you use your own macros, you'll certainly lose some of hyperref's functionality. Thus, if you want to use plain TeX code in LaTeX, you have to know a lot about LaTeX's internals. But there are some things in LaTeX2e which are very sophisticated and it doesn't make much fun to reverse-engineer the source code. > \vskip 2\baselineskip plus 1\baselineskip minus 1\baselineskip Hmm, I'm not sure whether it's worthwhile to invest too much time into these things because too much stretching is not desirable. The result will be ugly. I doubt that you can get good page breaks without manual interaction. At least if you are interested in pleasing results. Of course, it's desirable to avoid page breaks in paragraphs and to keep a question and the associated answer on the same page. But I doubt that it's possible at all if you have good typography in mind. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From reinhard.kotucha at web.de Wed May 27 02:52:42 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Wed, 27 May 2009 02:52:42 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <4A1BA077.7020509@imf.au.dk> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> Message-ID: <18972.36570.948758.185316@zaphod.ms25.net> On 26 May 2009 Lars Madsen wrote: > what's wrong with evince? I don't know evince. Is it based on Derek's xpdf library? Though I usually prefer free software, my preferred PDF viewer is still Adobe Reader. Is there any program except Adobe Reader or Acrobat which can display microtype.pdf or movie15.pdf properly? Maybe you don't know what you are missing unless you tried a program which supports layers, 3D, JavaScript, and so on. Derek will certainly never support all this. But there is a new project called "GNU PDF". http://gnupdf.org It's quite promising and I hope that they find enough qualified volunteers. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From peter at gigamonkeys.com Tue May 26 17:33:56 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Tue, 26 May 2009 08:33:56 -0700 Subject: [texhax] memoir page head confusion In-Reply-To: <4A1C0121.2000004@Rhul.Ac.Uk> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> Message-ID: <40e4e7e50905260833r3f8d1e6eiad1b2300dbd35e1e@mail.gmail.com> On Tue, May 26, 2009 at 7:48 AM, Philip TAYLOR wrote: > You probably need a \leavevmode ... Yup. That fixes it too. Though I still wonder why it's necessary--why would the left side of the header be in vertical mode while the right side is in horizontal mode. -Peter > Peter Seibel wrote > [...] > >> So it seems that if I put an hbox around the whole left part of the >> even heading like so: >> >> ?\makeevenhead{headings}{\hbox{\headlinefont\llap{\thepage\hskip 6pt} >> \leftmark}}{}{} >> >> then everything works the way I hoped. Why, however, I have no idea. I >> would love to be edified if this is obvious to someone else. > -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From peter at gigamonkeys.com Wed May 27 01:59:13 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Tue, 26 May 2009 16:59:13 -0700 Subject: [texhax] memoir page head confusion In-Reply-To: <18972.33138.363408.56436@zaphod.ms25.net> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> <18972.33138.363408.56436@zaphod.ms25.net> Message-ID: <40e4e7e50905261659i456ecaf5v7a2f054b934b81d2@mail.gmail.com> On Tue, May 26, 2009 at 4:55 PM, Reinhard Kotucha wrote: > On 26 May 2009 Philip TAYLOR wrote: > > ?> You probably need a \leavevmode ... > > It's better to use an \mbox here and a LaTeX equivalent for > \llap{\thepage\hskip 6pt}. ?Though it's often more convenient for > people who are more familiar with plain TeX than with LaTeX to use > plain TeX macros or primitives directly, it's quite dangerous though. Do you (or anyone else here) happen to know the LaTeX equivalent then for the \llap{...} foo above? Or even some memoir specific way to do what I want (which is to have the page number out in the margin followed by a title left justified with the textblock.) -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From axel.retif at mac.com Wed May 27 19:30:18 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Wed, 27 May 2009 12:30:18 -0500 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <18972.36570.948758.185316@zaphod.ms25.net> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> Message-ID: <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> On 26 May, 2009, at 19:52, Reinhard Kotucha wrote: > On 26 May 2009 Lars Madsen wrote: > >> what's wrong with evince? > > I don't know evince. Is it based on Derek's xpdf library? I don't think so. It says Document Viewer 2.26.1 Document Viewer. Using poppler 0.10.5 (cairo) ? 1996-2007 The Evince authors http://www.gnome.org/projects/evince Now ---I just checked fontspec.pdf in /usr/local/texlive/2008/texmf-dist/doc/xelatex/fontspec/fontspec.pdf with Evince, TeXworks' (just compiled from source) built-in PDF viewer and Xpdf. The first two show missing characters (for example, in page 3). Xpdf shows the whole document OK. On the Mac, Acrobat identifies the font of those missing characters as Osaka-Mono, and says it's embedded. By the way, as far as I know TeXworks also uses Poppler. Best, Axel From reinhard.kotucha at web.de Wed May 27 20:55:05 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Wed, 27 May 2009 20:55:05 +0200 Subject: [texhax] memoir page head confusion In-Reply-To: <40e4e7e50905261659i456ecaf5v7a2f054b934b81d2@mail.gmail.com> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> <18972.33138.363408.56436@zaphod.ms25.net> <40e4e7e50905261659i456ecaf5v7a2f054b934b81d2@mail.gmail.com> Message-ID: <18973.35977.310620.310060@zaphod.ms25.net> On 26 May 2009 Peter Seibel wrote: > Do you (or anyone else here) happen to know the LaTeX equivalent then > for the \llap{...} foo above? Or even some memoir specific way to do > what I want (which is to have the page number out in the margin > followed by a title left justified with the textblock.) \makebox[0pt][l]{\thepage\hspace{6pt}} Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From uwe.lueck at web.de Wed May 27 21:25:01 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Wed, 27 May 2009 21:25:01 +0200 Subject: [texhax] memoir page head confusion Message-ID: <1141271500@web.de> Reinhard Kotucha schrieb am 27.05.2009 20:57:26: > On 26 May 2009 Peter Seibel wrote: > > > Do you (or anyone else here) happen to know the LaTeX equivalent then > > for the \llap{...} foo above? Or even some memoir specific way to do > > what I want (which is to have the page number out in the margin > > followed by a title left justified with the textblock.) > > \makebox[0pt][l]{\thepage\hspace{6pt}} \makebox[0pt][r]{\thepage\hspace{6pt}} Regards, Uwe. From reinhard.kotucha at web.de Thu May 28 01:22:41 2009 From: reinhard.kotucha at web.de (Reinhard Kotucha) Date: Thu, 28 May 2009 01:22:41 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> Message-ID: <18973.52033.717368.780053@zaphod.ms25.net> On 27 May 2009 Axel E. Retif wrote: > On 26 May, 2009, at 19:52, Reinhard Kotucha wrote: >> I don't know evince. Is it based on Derek's xpdf library? > > I don't think so. It says > > Document Viewer 2.26.1 > Document Viewer. > Using poppler 0.10.5 (cairo) > ? 1996-2007 The Evince authors > http://www.gnome.org/projects/evince Poppler is a derivative of Xpdf. But obviously less reliable. Regerds, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha at web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ---------------------------------------------------------------------------- From cbill.lam at gmail.com Thu May 28 04:01:37 2009 From: cbill.lam at gmail.com (bill lam) Date: Thu, 28 May 2009 10:01:37 +0800 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <4A1BA077.7020509@imf.au.dk> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> Message-ID: <20090528020137.GC3482@debian.b2j> On Tue, 26 May 2009, Lars Madsen wrote: > what's wrong with evince? I like xpdf because it allows viewing using reversevidea, (light on dark). None of other pdf viewers that I know can do this. -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ??148 ??? ??????? ????? ????? ????? ????? ????? ????? ????? ????? From peter at gigamonkeys.com Wed May 27 21:35:05 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Wed, 27 May 2009 12:35:05 -0700 Subject: [texhax] memoir page head confusion In-Reply-To: <18973.35977.310620.310060@zaphod.ms25.net> References: <40e4e7e50905252305q4bfd0363p654ae5c341774d9e@mail.gmail.com> <40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com> <4A1C0121.2000004@Rhul.Ac.Uk> <18972.33138.363408.56436@zaphod.ms25.net> <40e4e7e50905261659i456ecaf5v7a2f054b934b81d2@mail.gmail.com> <18973.35977.310620.310060@zaphod.ms25.net> Message-ID: <40e4e7e50905271235u5b349e67yc5484d3a6eea405d@mail.gmail.com> On Wed, May 27, 2009 at 11:55 AM, Reinhard Kotucha wrote: > On 26 May 2009 Peter Seibel wrote: > > ?> Do you (or anyone else here) happen to know the LaTeX equivalent then > ?> for the \llap{...} foo above? Or even some memoir specific way to do > ?> what I want (which is to have the page number out in the margin > ?> followed by a title left justified with the textblock.) > > \makebox[0pt][l]{\thepage\hspace{6pt}} Hmmm. I must be screwing up something up. This is what I had which works the way I want: \makeevenhead{headings}{\leavevmode\headlinefont\llap{\pagenumberfont\thepage\hskip 6pt} \leftmark\hfill}{}{} In this one I replace the \llap bit with your suggestion: \makeevenhead{headings}{\leavevmode\headlinefont\makebox[0pt][l]{\pagenumberfont\thepage\hspace{6pt}} \leftmark\hfill}{}{} but the number doesn't stick out in the margin--it overlaps the \leftmark text. -Peter > > Regards, > ?Reinhard > > -- > ---------------------------------------------------------------------------- > Reinhard Kotucha ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Phone: +49-511-3373112 > Marschnerstr. 25 > D-30167 Hannover ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?mailto:reinhard.kotucha at web.de > ---------------------------------------------------------------------------- > Microsoft isn't the answer. Microsoft is the question, and the answer is NO. > ---------------------------------------------------------------------------- > -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From peter at gigamonkeys.com Wed May 27 21:37:23 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Wed, 27 May 2009 12:37:23 -0700 Subject: [texhax] memoir page head confusion In-Reply-To: <1141271500@web.de> References: <1141271500@web.de> Message-ID: <40e4e7e50905271237i1d144185o15b607d680d01da@mail.gmail.com> On Wed, May 27, 2009 at 12:25 PM, Uwe Lueck wrote: > Reinhard Kotucha schrieb am 27.05.2009 20:57:26: >> On 26 May 2009 Peter Seibel wrote: >> >> ?> Do you (or anyone else here) happen to know the LaTeX equivalent then >> ?> for the \llap{...} foo above? Or even some memoir specific way to do >> ?> what I want (which is to have the page number out in the margin >> ?> followed by a title left justified with the textblock.) >> >> \makebox[0pt][l]{\thepage\hspace{6pt}} > > \makebox[0pt][r]{\thepage\hspace{6pt}} Ah, that does the trick. Thanks. -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From peter at gigamonkeys.com Thu May 28 01:13:16 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Wed, 27 May 2009 16:13:16 -0700 Subject: [texhax] Taking apart text of macro argument Message-ID: <40e4e7e50905271613o3f841881m2a75ff158e861c6b@mail.gmail.com> Suppose I have a macro that takes one argument: \def\foo#1{...} but within the expansion I want to pull off the first character (so I can uppercase it) and the rest of the text (so I can lowercase it). I.e. I want to be able to say: \foo{Some thing With Mixed Case} and have it turn into: Some thing with mixed case Is there any way to do that in either Plain TeX or LaTeX? (I actually need this case manipulation so if there's an easy way to do that, cool. I'd also be interested in the more general question of how to take apart the text of the argument.) -Peter I realize I could do something like: \def\foo#1#2\par but then I can't say \foo{...} -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From rhessel at comcast.net Thu May 28 03:11:36 2009 From: rhessel at comcast.net (rhessel at comcast.net) Date: Thu, 28 May 2009 01:11:36 +0000 (UTC) Subject: [texhax] number format [001] Message-ID: <1607312963.9582551243473096732.JavaMail.root@sz0169a.emeryville.ca.mail.comcast.net> Hi, I'm fixing a patent that was originally formatted in LaTeX. I'm using numberpar.sty to number the paragraphs. My problem is that the patent office wants the numbers to be 001 002 etc instead of 1 2 ... How can I convince LaTex to use leading zeros in the numbers? Thanks! Dick ----- Dick Hessel rhessel at comcast dot net -------------- next part -------------- An HTML attachment was scrubbed... URL: From P.Taylor at Rhul.Ac.Uk Thu May 28 06:37:40 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Thu, 28 May 2009 05:37:40 +0100 Subject: [texhax] Taking apart text of macro argument In-Reply-To: <40e4e7e50905271613o3f841881m2a75ff158e861c6b@mail.gmail.com> References: <40e4e7e50905271613o3f841881m2a75ff158e861c6b@mail.gmail.com> Message-ID: <4A1E1514.2020600@Rhul.Ac.Uk> Peter Seibel wrote: > I realize I could do something like: > > \def\foo#1#2\par > > but then I can't say \foo{...} but \foo could then call an adjunct macro (say, \foohelper), using a delimited parameter structure : \def \foohelper #1#2\relax {...} \def \foo #1{\foohelper #1\relax} Philip Taylor From daleif at imf.au.dk Thu May 28 10:12:52 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Thu, 28 May 2009 10:12:52 +0200 Subject: [texhax] number format [001] In-Reply-To: <1607312963.9582551243473096732.JavaMail.root@sz0169a.emeryville.ca.mail.comcast.net> References: <1607312963.9582551243473096732.JavaMail.root@sz0169a.emeryville.ca.mail.comcast.net> Message-ID: <4A1E4784.3020303@imf.au.dk> rhessel at comcast.net wrote: > Hi, > I'm fixing a patent that was originally formatted in LaTeX. I'm using numberpar.sty to > number the paragraphs. My problem is that the patent office wants the numbers to > be 001 002 etc instead of 1 2 ... How can I convince LaTex to use leading zeros in > the numbers? > > Thanks! > Dick > ----- > Dick Hessel > rhessel at comcast dot net > > > > ------------------------------------------------------------------------ > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org the kernal has a macro called \two at digits which provides 01 02 etc, just make your own inspired from this. It is defined as \def\two at digits#1{\ifnum#1<10 0\fi\number#1} -- /daleif From martin at oneiros.de Thu May 28 10:14:23 2009 From: martin at oneiros.de (=?ISO-8859-1?Q?Martin_Schr=F6der?=) Date: Thu, 28 May 2009 10:14:23 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <18973.52033.717368.780053@zaphod.ms25.net> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> <18973.52033.717368.780053@zaphod.ms25.net> Message-ID: <68c491a60905280114p6130d00k8eed3dc52fc396d0@mail.gmail.com> 2009/5/28, Reinhard Kotucha : > Poppler is a derivative of Xpdf. But obviously less reliable. Why is that obvious? Curious Martin From daleif at imf.au.dk Thu May 28 15:00:05 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Thu, 28 May 2009 15:00:05 +0200 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <68c491a60905280114p6130d00k8eed3dc52fc396d0@mail.gmail.com> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> <18973.52033.717368.780053@zaphod.ms25.net> <68c491a60905280114p6130d00k8eed3dc52fc396d0@mail.gmail.com> Message-ID: <4A1E8AD5.3040001@imf.au.dk> Martin Schr?der wrote: > 2009/5/28, Reinhard Kotucha : >> Poppler is a derivative of Xpdf. But obviously less reliable. > > Why is that obvious? > because it was mentioned ealier that the test file displays correctly in xpdf, but then again, as far as I know the current xpdf relies on libpoppler > Curious > Martin > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org -- /daleif From peter at gigamonkeys.com Thu May 28 07:04:23 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Wed, 27 May 2009 22:04:23 -0700 Subject: [texhax] Taking apart text of macro argument In-Reply-To: <4A1E1514.2020600@Rhul.Ac.Uk> References: <40e4e7e50905271613o3f841881m2a75ff158e861c6b@mail.gmail.com> <4A1E1514.2020600@Rhul.Ac.Uk> Message-ID: <40e4e7e50905272204t4cc1cc82kf68e5d123b6b015b@mail.gmail.com> On Wed, May 27, 2009 at 9:37 PM, Philip TAYLOR (Ret'd) wrote: > > > Peter Seibel wrote: > >> I realize I could do something like: >> >> ? ? \def\foo#1#2\par >> >> but then I can't say \foo{...} > > but \foo could then call an adjunct macro (say, \foohelper), > using a delimited parameter structure : > > \def \foohelper #1#2\relax {...} > \def \foo #1{\foohelper #1\relax} Awesome! I knew there had to be some such trick but I couldn't quite derive it myself. Thanks. -Peter -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From karl at huftis.org Thu May 28 09:20:57 2009 From: karl at huftis.org (Karl Ove Hufthammer) Date: Thu, 28 May 2009 09:20:57 +0200 Subject: [texhax] Ubuntu editors for TeX References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <20090528020137.GC3482@debian.b2j> Message-ID: bill lam: > On Tue, 26 May 2009, Lars Madsen wrote: >> what's wrong with evince? > > I like xpdf because it allows viewing using reversevidea, (light on > dark). None of other pdf viewers that I know can do this. Okular, the KDE PDF reader, can. It supports several additional colour changing options too (e.g., convert all light colours to colour 1 and all dark colours to colour 2). -- Karl Ove Hufthammer From vi5u0-texhax at yahoo.co.uk Thu May 28 17:30:36 2009 From: vi5u0-texhax at yahoo.co.uk (Dan Hatton) Date: Thu, 28 May 2009 16:30:36 +0100 (BST) Subject: [texhax] Invisible appendix Message-ID: Dear All, Imagine that I have a LaTeX file something like the one appended below. Also imagine that (at least on some runs) I don't want the appendix to appear in the DVI (or postscript, or PDF, or whatever) output. Or, even better, for the appendix to appear in a separate PDF or postscript file from the main body of the document. But I do still want the two \ref{}s to work. Is there some way to do this, please? (So far, I've been chopping up the finished output with pstops - but now the publisher needs the LaTeX source, and I'm not sure I can rely on them having access to pstops.) Thanks, Dan \documentclass{article} \begin{document} \title{A summary of some horrendously detailed work} \author{Dan} \date{today} \maketitle{} \section{Keep it snappy} Here, I summarize some work. Anyone brave enough to read the details can look at supplementary online material \ref{heretheyare}, which contains figure \ref{pictureofit}. \appendix{} \section{Don't keep it snappy [intended as supplementary online material]} \label{heretheyare} Now I'll go on in lots and lots and lots of detail. \begin{figure} Not really a picture \caption{Here's a picture.} \label{pictureofit} \end{figure} \end{document} From uwe.lueck at web.de Thu May 28 17:57:23 2009 From: uwe.lueck at web.de (Uwe Lueck) Date: Thu, 28 May 2009 17:57:23 +0200 Subject: [texhax] Invisible appendix Message-ID: <1141913407@web.de> Dan Hatton schrieb am 28.05.2009 17:33:30: > > Imagine that I have a LaTeX file something like the one appended > below. Also imagine that (at least on some runs) I don't want the > appendix to appear in the DVI (or postscript, or PDF, or whatever) > output. Or, even better, for the appendix to appear in a separate PDF > or postscript file from the main body of the document. But I do still > want the two \ref{}s to work. Is there some way to do this, please? Packages xr (tools bundle, required LaTeX distribution) + pagecont (new, www.ctan.org/pkg/pagecont). HTH -- Uwe. From doc.evans at gmail.com Thu May 28 18:18:36 2009 From: doc.evans at gmail.com (D. R. Evans) Date: Thu, 28 May 2009 10:18:36 -0600 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <20090528020137.GC3482@debian.b2j> Message-ID: <4A1EB95C.20104@gmail.com> Karl Ove Hufthammer said the following at 05/28/2009 01:20 AM : > bill lam: >> On Tue, 26 May 2009, Lars Madsen wrote: >>> what's wrong with evince? >> I like xpdf because it allows viewing using reversevidea, (light on >> dark). None of other pdf viewers that I know can do this. > > Okular, the KDE PDF reader, can. It supports several additional colour > changing options too (e.g., convert all light colours to colour 1 and > all dark colours to colour 2). FYI okular also relies on poppler, and also fails on that test file. I was going to file a bug report to that effect, but I see that bugs.kde.org have an expired certificate. When they fix that, I'll file the report against okular (and they'll move it upstream to poppler, and I would expect the poppler folk to fix it pretty quickly; they seem pretty good at fixing reported bugs). In danger of getting OT here though (if it isn't already). Doc -- Web: http://www.sff.net/people/N7DR -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: From axel.retif at mac.com Thu May 28 19:32:48 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Thu, 28 May 2009 12:32:48 -0500 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: <4A1E8AD5.3040001@imf.au.dk> References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> <18973.52033.717368.780053@zaphod.ms25.net> <68c491a60905280114p6130d00k8eed3dc52fc396d0@mail.gmail.com> <4A1E8AD5.3040001@imf.au.dk> Message-ID: <7C4EFD22-FDC5-4057-B5BB-D58786F5EA71@mac.com> On 28 May, 2009, at 08:00, Lars Madsen wrote: > Martin Schr?der wrote: >> 2009/5/28, Reinhard Kotucha : >>> Poppler is a derivative of Xpdf. But obviously less reliable. >> Why is that obvious? > > because it was mentioned ealier that the test file displays > correctly in xpdf, but then again, as far as I know the current xpdf > relies on libpoppler After my yesterday message, I sent another that didn't reach the list: -------- On 27 May, 2009, at 12:30, Axel E. Retif wrote: > [...] I just checked fontspec.pdf in > > /usr/local/texlive/2008/texmf-dist/doc/xelatex/fontspec/fontspec.pdf > > with Evince [Document Viewer 2.26.1, using poppler 0.10.5], > TeXworks' (just compiled from source) built-in PDF viewer and Xpdf. > The first two show missing characters (for example, in page 3). Xpdf > shows the whole document OK. I should say that was under Ubuntu 9.04 and TeXLive 08. Now ---this is weird--- I just checked under Fedora 10 with TeXLive 07, and /usr/share/texmf/doc/xelatex/fontspec/fontspec.pdf doesn't show missing characters with Evince: Document Viewer 2.24.2 Document Viewer. Using poppler 0.8.7 (cairo) Best, Axel From asnd at triumf.ca Thu May 28 20:58:38 2009 From: asnd at triumf.ca (Donald Arseneau) Date: 28 May 2009 11:58:38 -0700 Subject: [texhax] combing adjacent macros In-Reply-To: <693010.92682.qm@web43414.mail.sp1.yahoo.com> References: <693010.92682.qm@web43414.mail.sp1.yahoo.com> Message-ID: Dorothy Jammins writes: > Can this be used to combine subscripts in equations? I've tried but > couldn't figure out how to ensure that the whole group would be in > math mode and subscript. The subscript designator (_) is not usually a macro, so it isn't redefined. If you make it an active character with a macro definition, then sure, you would look ahead for another _ character (but no need for \expandafter). What are you trying to achieve? I don't understand that second sentence at all. I would think you would need to look beyond intervening superscripts. By the way, ' (apostrophe) has a definition in math that does ^{\prime} but it looks ahead for another ' and combines them to give ^{\prime\prime}. Maybe you just want to copy that definition. -- Donald Arseneau asnd at triumf.ca From vi5u0-texhax at yahoo.co.uk Fri May 29 14:55:06 2009 From: vi5u0-texhax at yahoo.co.uk (Dan Hatton) Date: Fri, 29 May 2009 13:55:06 +0100 (BST) Subject: [texhax] Invisible appendix In-Reply-To: <1141913407@web.de> References: <1141913407@web.de> Message-ID: On Thu, 28 May 2009, Uwe Lueck wrote: >> Imagine that I have a LaTeX file something like the one appended >> below. Also imagine that (at least on some runs) I don't want the >> appendix to appear in the DVI (or postscript, or PDF, or whatever) >> output. Or, even better, for the appendix to appear in a separate PDF >> or postscript file from the main body of the document. But I do still >> want the two \ref{}s to work. Is there some way to do this, please? > Packages xr (tools bundle, required LaTeX distribution) + pagecont > (new, www.ctan.org/pkg/pagecont). Thanks Uwe. xr did the trick - I didn't need the continuous page numbering. -- Regards, Dan From vafa at users.berlios.de Fri May 29 04:38:39 2009 From: vafa at users.berlios.de (Vafa Khalighi) Date: Fri, 29 May 2009 12:38:39 +1000 Subject: [texhax] Please help with dicstrip Message-ID: <7ac5ed450905281938q7f220945i7a0b67ad4e7fc4db@mail.gmail.com> This is my first time using docstrip. I have written the file bidi.dtx which is attached here but I have got no idea why it generates files with empty contents. Can someone please help? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bidi.dtx Type: text/x-tex Size: 120797 bytes Desc: not available URL: From anders at texnat.se Fri May 29 09:33:13 2009 From: anders at texnat.se (=?ISO-8859-1?Q?Anders_K=E4llstr=F6m?=) Date: Fri, 29 May 2009 09:33:13 +0200 Subject: [texhax] Extra text in index Message-ID: <4A1F8FB9.9060608@texnat.se> Hi, Is there a simple way to put some additional text in an index, after the heading but before the index entries? I use xindy (Swedish) and one way of doing it is to put an extra \lettergroup{} in the .ind file but this means that it has to be done after the index entries are sorted and hence every time a new index in generated. -- /Anders K ==================================================================== TeXNaT Web: www.texnat.se Anders K?llstr?m Email: anders at texnat.se Arkitektv?gen 6 Tel: +46-(0)18-36 40 29 740 20 V?nge Mobil: 070-225 2286 From karl at huftis.org Fri May 29 14:04:43 2009 From: karl at huftis.org (Karl Ove Hufthammer) Date: Fri, 29 May 2009 14:04:43 +0200 Subject: [texhax] Ubuntu editors for TeX References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> Message-ID: Axel E. Retif: > Now ---I just checked fontspec.pdf in > > /usr/local/texlive/2008/texmf-dist/doc/xelatex/fontspec/fontspec.pdf > > with Evince, TeXworks' (just compiled from source) built-in PDF viewer > and Xpdf. The first two show missing characters (for example, in page > 3). Which ones? I couldn?t spot any obviously missing characters using Evince. -- Karl Ove Hufthammer From cinquett at fclar.unesp.br Fri May 29 19:16:32 2009 From: cinquett at fclar.unesp.br (cinquett at fclar.unesp.br) Date: Fri, 29 May 2009 14:16:32 -0300 (BRT) Subject: [texhax] Converting to DVI Message-ID: <5db21567d14faa6e73241b1c4b8c313a.squirrel@webmail2.fclar.unesp.br> Dear Colleagues, I am facing a problem that might be so trivial, but not for a beginner like me. When asking my Miketx/Winedt to convert to generate a dvi file it does, but soon comes the message, in the Yap program: The page could not be rendered. It get stuck. The Error message in the Yap is. Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1893 1 3 %oparray_pop 1892 1 3 %oparray_pop 1876 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:106/300(L)-- --dict:42/200(L)-- Current allocation mode is local Last OS error: No such file or directory MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1 ---- Can somebody help me please? Sincerely, Carlos A. Cinquetti Department of Economics Sao Paulo State University at Araraquara, Brazil From P.Taylor at Rhul.Ac.Uk Fri May 29 19:48:13 2009 From: P.Taylor at Rhul.Ac.Uk (Philip TAYLOR (Ret'd)) Date: Fri, 29 May 2009 18:48:13 +0100 Subject: [texhax] Converting to DVI In-Reply-To: <5db21567d14faa6e73241b1c4b8c313a.squirrel@webmail2.fclar.unesp.br> References: <5db21567d14faa6e73241b1c4b8c313a.squirrel@webmail2.fclar.unesp.br> Message-ID: <4A201FDD.2030900@Rhul.Ac.Uk> I would look at (and temporarily comment out) all parts of the TeX source that attempt to include PostScript files ... Philip TAYLOR -------- cinquett at fclar.unesp.br wrote: > Dear Colleagues, > > I am facing a problem that might be so trivial, but not for a beginner > like me. > > When asking my Miketx/Winedt to convert to generate a dvi file it does, > but soon comes the message, in the Yap program: The page could not be > rendered. It get stuck. The Error message in the Yap is. > > Operand stack: > > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- > --nostringval-- false 1 %stopped_push 1893 1 3 > %oparray_pop 1892 1 3 %oparray_pop 1876 1 3 > %oparray_pop 1755 1 3 %oparray_pop --nostringval-- > %errorexec_pop .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- > Dictionary stack: > --dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- > --dict:106/300(L)-- --dict:42/200(L)-- > Current allocation mode is local > Last OS error: No such file or directory > MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1 > > ---- > Can somebody help me please? > > Sincerely, > > Carlos A. Cinquetti > Department of Economics > Sao Paulo State University at Araraquara, Brazil > > > > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org From axel.retif at mac.com Fri May 29 20:42:13 2009 From: axel.retif at mac.com (Axel E. Retif) Date: Fri, 29 May 2009 13:42:13 -0500 Subject: [texhax] Ubuntu editors for TeX In-Reply-To: References: <8A04700DBD834FB3944B3E70A3604EBD@randy9b4f288eb> <4A1BA077.7020509@imf.au.dk> <18972.36570.948758.185316@zaphod.ms25.net> <6DCC4DE1-D281-4A55-B716-B01D3DFD4CCA@mac.com> Message-ID: On 29 May, 2009, at 07:04, Karl Ove Hufthammer wrote: > Axel E. Retif: > >> Now ---I just checked fontspec.pdf in >> >> /usr/local/texlive/2008/texmf-dist/doc/xelatex/fontspec/fontspec.pdf >> >> with Evince, TeXworks' (just compiled from source) built-in PDF >> viewer and Xpdf. The first two show missing characters (for >> example, in page 3). > > Which ones? I couldn?t spot any obviously missing characters using > Evince. For example, p. 3: [...] for installing fonts ( , , , ...) and provides which are, .tfm .vf .map But, as I said, in a later message, that is with Ubuntu 9.04 and Document Viewer 2.26.1, using poppler 0.10.5; on the other hand, there is no problem with Fedora 10 and Document Viewer 2.24.2, using poppler 0.8.7. Best, Axel From alien at essex.ac.uk Fri May 29 20:48:16 2009 From: alien at essex.ac.uk (Adrian F. Clark) Date: Fri, 29 May 2009 19:48:16 +0100 Subject: [texhax] Thesis layout regulations Message-ID: <4A202DF0.3040207@essex.ac.uk> A little off-topic but I hope people don't mind. I've just taken a close look at my university's regs and it appears that we still require students to submit their MSc or PhD theses double-spaced and single-sided. I was wondering if more enlightened institutions have progressed to the stage where students can submit single-spaced and double-sided. If you have regs that are less wasteful (especially if you're at a UK institution), could you drop me an email saying so? I'll use it as evidence to help drag us towards the 21st century -- and maybe save some trees -- and update the LaTeX style that many of our students use. Many thanks in advance. ..Adrian -- Dr Adrian F Clark WEB: http://privatewww.essex.ac.uk/~alien/ EMAIL: alien/at/essex.ac.uk TEL: +44 1206 872432 FAX: +44 1206 872900 PAPER: Comp Sci & Elec Eng, University of Essex, Colchester, CO4 3SQ, UK "The great tragedy of science: the slaying of a beautiful hypothesis by an ugly fact" -- Huxley From dorothy.jammins at yahoo.com Sat May 30 00:29:17 2009 From: dorothy.jammins at yahoo.com (Dorothy Jammins) Date: Fri, 29 May 2009 15:29:17 -0700 (PDT) Subject: [texhax] combing adjacent macros In-Reply-To: References: <693010.92682.qm@web43414.mail.sp1.yahoo.com> Message-ID: <907387.64884.qm@web43416.mail.sp1.yahoo.com> Sorry I should have read it again before clicking send. Going back to the OP he wanted to achieve: \hyph\var -> (hyph., var)Using the same definition for \hyph and \var, I was wondering if it was possible to achieve this: \hyph\var -> $_{hyph., var}$ i.e. to combine the two and make them subscript at the same time whether they are already in a math environment or not. Thanks for the tip with the apostrophe though. It gave me an idea for something else I needed to do. d ----- Original Message ---- From: Donald Arseneau To: texhax at tug.org; Toby Cubitt Sent: Thursday, May 28, 2009 2:58:38 PM Subject: Re: [texhax] combing adjacent macros Dorothy Jammins writes: > Can this be used to combine subscripts in equations? I've tried but > couldn't figure out how to ensure that the whole group would be in > math mode and subscript. The subscript designator (_) is not usually a macro, so it isn't redefined. If you make it an active character with a macro definition, then sure, you would look ahead for another _ character (but no need for \expandafter). What are you trying to achieve? I don't understand that second sentence at all. I would think you would need to look beyond intervening superscripts. By the way, ' (apostrophe) has a definition in math that does ^{\prime} but it looks ahead for another ' and combines them to give ^{\prime\prime}. Maybe you just want to copy that definition. -- Donald Arseneau asnd at triumf.ca _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From dorothy.jammins at yahoo.com Sat May 30 01:08:20 2009 From: dorothy.jammins at yahoo.com (Dorothy Jammins) Date: Fri, 29 May 2009 16:08:20 -0700 (PDT) Subject: [texhax] Thesis layout regulations In-Reply-To: <4A202DF0.3040207@essex.ac.uk> References: <4A202DF0.3040207@essex.ac.uk> Message-ID: <137890.62491.qm@web43412.mail.sp1.yahoo.com> Well I am not in the UK, but here in the US most institutions still want doublespacing. The reason is that (IIRC) proquest wants them that way and because they no longer print them but store them only electronically. As a result there is no pressure to save paper (not that there ever was). I've included some of the exceptions I know of below. Princeton allows singlespace but not doublesided: http://www.princeton.edu/~mudd/thesis/DissertationRequirements.pdf UTexas allows onehalf and doublespacing but no singlespacing: http://www.utexas.edu/ogs/pdn/pdf/dissformat.pdf USF allows single, onehalf and doublespace: http://www.grad.usf.edu/inc/linked-files/etd-booklet/handbook_step1_May2005.pdf Georgia Tech allows onehalf for certain fonts: http://www.gradadmiss.gatech.edu/thesis/ThesisManual-March2007.pdf Btw I have yet to hear of a university that accepted a doublesided dissertation. Regards d. ----- Original Message ---- From: Adrian F. Clark To: texhax at tug.org Sent: Friday, May 29, 2009 2:48:16 PM Subject: [texhax] Thesis layout regulations A little off-topic but I hope people don't mind. I've just taken a close look at my university's regs and it appears that we still require students to submit their MSc or PhD theses double-spaced and single-sided. I was wondering if more enlightened institutions have progressed to the stage where students can submit single-spaced and double-sided. If you have regs that are less wasteful (especially if you're at a UK institution), could you drop me an email saying so? I'll use it as evidence to help drag us towards the 21st century -- and maybe save some trees -- and update the LaTeX style that many of our students use. Many thanks in advance. ...Adrian -- Dr Adrian F Clark WEB: http://privatewww.essex.ac.uk/~alien/ EMAIL: alien/at/essex.ac.uk TEL: +44 1206 872432 FAX: +44 1206 872900 PAPER: Comp Sci & Elec Eng, University of Essex, Colchester, CO4 3SQ, UK "The great tragedy of science: the slaying of a beautiful hypothesis by an ugly fact" -- Huxley _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From dorothy.jammins at yahoo.com Sat May 30 01:28:57 2009 From: dorothy.jammins at yahoo.com (Dorothy Jammins) Date: Fri, 29 May 2009 16:28:57 -0700 (PDT) Subject: [texhax] Extra text in index In-Reply-To: <4A1F8FB9.9060608@texnat.se> References: <4A1F8FB9.9060608@texnat.se> Message-ID: <16062.12546.qm@web43405.mail.sp1.yahoo.com> Not sure if this will work for you but you can define your own makeindex style. One of the things you can define, is the output file preamble where you can add the text you want. You can also define the sort order for characters not in the english alphabet. Check the man page of makeindex for more details. Also there should be some example style files (e.g. for german) with your distribution. If you have texlive look under: texmf-dist/makeindex/ Sorry but I've never used xindy. d. ----- Original Message ---- From: Anders K?llstr?m To: texhax at tug.org Sent: Friday, May 29, 2009 3:33:13 AM Subject: [texhax] Extra text in index Hi, Is there a simple way to put some additional text in an index, after the heading but before the index entries? I use xindy (Swedish) and one way of doing it is to put an extra \lettergroup{} in the .ind file but this means that it has to be done after the index entries are sorted and hence every time a new index in generated.. -- /Anders K ==================================================================== TeXNaT Web: www.texnat.se Anders K?llstr?m Email: anders at texnat.se Arkitektv?gen 6 Tel: +46-(0)18-36 40 29 740 20 V?nge Mobil: 070-225 2286 _______________________________________________ TeX FAQ: http://www.tex.ac.uk/faq Mailing list archives: http://tug.org/pipermail/texhax/ More links: http://tug.org/begin.html Automated subscription management: http://tug.org/mailman/listinfo/texhax Human mailing list managers: postmaster at tug.org From peter at gigamonkeys.com Fri May 29 16:50:55 2009 From: peter at gigamonkeys.com (Peter Seibel) Date: Fri, 29 May 2009 07:50:55 -0700 Subject: [texhax] Extra text in index In-Reply-To: <4A1F8FB9.9060608@texnat.se> References: <4A1F8FB9.9060608@texnat.se> Message-ID: <40e4e7e50905290750m2d6b6c48t71d3e4d86ee52537@mail.gmail.com> In the memoir class (at least) there is a \preindexhook that you can set with \renewcommand. I'm not sure whether that's specific to memoir or not. -Peter 2009/5/29 Anders K?llstr?m : > Hi, > > Is there a simple way to put some additional text in an index, after the > heading but before the index entries? > I use xindy (Swedish) and one way of doing it is to put an extra > \lettergroup{} in the .ind file but this means that it has to be done after > the index entries are sorted and hence every time a new index in generated. > > -- > /Anders K > ==================================================================== > TeXNaT ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Web: www.texnat.se > Anders K?llstr?m ? ? ? ? ? ? ? ? ? ? ? ? ? ? Email: anders at texnat.se > Arkitektv?gen 6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Tel: +46-(0)18-36 40 29 > 740 20 V?nge ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Mobil: 070-225 2286 > > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: postmaster at tug.org > -- Peter Seibel http://www.codersatwork.com/ http://www.gigamonkeys.com/blog/ From asnd at triumf.ca Sat May 30 07:25:05 2009 From: asnd at triumf.ca (Donald Arseneau) Date: 29 May 2009 22:25:05 -0700 Subject: [texhax] combing adjacent macros In-Reply-To: <907387.64884.qm@web43416.mail.sp1.yahoo.com> References: <693010.92682.qm@web43414.mail.sp1.yahoo.com> <907387.64884.qm@web43416.mail.sp1.yahoo.com> Message-ID: Dorothy Jammins writes: > \hyph\var -> (hyph., var) Using the same definition for \hyph and \var, I was wondering if it was possible to achieve this: > > \hyph\var -> $_{hyph., var}$ i.e. to combine the two and make them subscript at the same time whether they are already in a math environment or not. Sure. LaTeX has \ensuremath. I suspect it will not be simple to use \ensuremath directly in the solution because it reads its parameter text up front, but you can look at its definition. For example, you could use ... \ifmmode _\bgroup \else $_\bgroup \aftergroup$\fi -- Donald Arseneau asnd at triumf.ca From phil at math.wichita.edu Sat May 30 07:51:13 2009 From: phil at math.wichita.edu (Phil Parker) Date: Sat, 30 May 2009 01:51:13 -0400 Subject: [texhax] Extra text in index In-Reply-To: <4A1F8FB9.9060608@texnat.se> Message-ID: <200905300651.n4U6pVjA018133@mfe01.daimi.au.dk> On 05/29/2009 at 09:33 AM, Anders K?llstr?m wrote: > >Is there a simple way to put some additional text in an index, after the >heading but before the index entries? I don't know if this counts a simple or not, but this is what I figured out for LaTeX 2.09 about 1992 or so. The book was published, but we never converted it to 2e so YMMV. %This block redefines \theindex to get some text at the beginning of the %Index as in sample books, and put Index in the toc. \def\theindex{\@restonecoltrue\if at twocolumn\@restonecolfalse\fi \columnseprule \z@ \columnsep 35\p@\twocolumn[\@makeschapterhead{\indexname} \small Boldface page numbers indicate that the item occurs on that page in {\bf boldface}, Italic page numbers indicate occurrence in {\em Italics}. Terms being defined are usually in boldface in the text. \bigskip\bigskip]% \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}% \thispagestyle{plain}\parindent\z@ \parskip\z@ plus .3\p@\relax\let\item\@idxitem \addcontentsline{toc}{chapter}{Index}} All I did was copy the definition from latex.tex and determine by trial and error where and how to insert my text. For me, a relative newcomer at the time, the harder part was figuring out how to write the macros to accomplish the desired indexing. -- Phil Parker -------------------------------------------- URL http://www.math.wichita.edu/~pparker/ Random quote: A well adjusted person is one who makes the same mistake twice without getting nervous. From daleif at imf.au.dk Sat May 30 10:21:28 2009 From: daleif at imf.au.dk (Lars Madsen) Date: Sat, 30 May 2009 10:21:28 +0200 Subject: [texhax] Thesis layout regulations In-Reply-To: <4A202DF0.3040207@essex.ac.uk> References: <4A202DF0.3040207@essex.ac.uk> Message-ID: <4A20EC88.6050204@imf.au.dk> Adrian F. Clark wrote: > A little off-topic but I hope people don't mind. > > I've just taken a close look at my university's regs and it appears that > we still require students to submit their MSc or PhD theses > double-spaced and single-sided. I was wondering if more enlightened > institutions have progressed to the stage where students can submit > single-spaced and double-sided. > > If you have regs that are less wasteful (especially if you're at a UK > institution), could you drop me an email saying so? I'll use it as > evidence to help drag us towards the 21st century -- and maybe save some > trees -- and update the LaTeX style that many of our students use. > > Many thanks in advance. > > ..Adrian In the math department at Aarhus University, DK, we don't have any rules regarding the layout. Most PhDs handin their dissertations in A4 or B5, single spaced, doublepaged. I usually encourage them to treat it like a book, and make it nice to look at. BTW: the dissertaions are all online. /daleif From vi5u0-texhax at yahoo.co.uk Sat May 30 10:43:25 2009 From: vi5u0-texhax at yahoo.co.uk (Dan Hatton) Date: Sat, 30 May 2009 09:43:25 +0100 (BST) Subject: [texhax] Thesis layout regulations In-Reply-To: <4A202DF0.3040207@essex.ac.uk> References: <4A202DF0.3040207@essex.ac.uk> Message-ID: On Fri, 29 May 2009, Adrian F. Clark wrote: > I've just taken a close look at my university's regs and it appears that we > still require students to submit their MSc or PhD theses double-spaced and > single-sided. I was wondering if more enlightened institutions have > progressed to the stage where students can submit single-spaced and > double-sided. > > If you have regs that are less wasteful (especially if you're at a UK > institution), could you drop me an email saying so? I'll use it as evidence > to help drag us towards the 21st century -- and maybe save some trees -- and > update the LaTeX style that many of our students use. When I submitted mine (Cambridge University Physics and Chemistry Degree Committee, 2003), I used the standard LaTeX book document class - which I guess you'd call somewhere between single-spaced and double-spaced - and no-one complained about that. I had printed it single-sided. I'm not sure about "less wasteful" - in those days, I didn't know about \usepackage{fullpage}. -- HTH, Dan From testpop1 at uit.co.uk Sat May 30 13:26:51 2009 From: testpop1 at uit.co.uk (Poppo Tisting) Date: Sat, 30 May 2009 12:26:51 +0100 Subject: [texhax] Extra text in index -- package to address this Message-ID: <4A2117FB.4020905@uit.co.uk> 2009/5/29 Anders K?llstr?m : > Is there a simple way to put some additional text in an index, after the > heading but before the index entries? > I use xindy (Swedish) and one way of doing it is to put an extra > \lettergroup{} in the .ind file but this means that it has to be done after > the index entries are sorted and hence every time a new index in generated. We wrote a small (unreleased) package, uitindex, to do exactly this. See below for the code, and an example of how to use it. This is the index to the book described at: http://uit.co.uk/altdns You can view the index by clicking on the link in the "Resources" box on the top right. Regards, Niall \NeedsTeXFormat{LaTeX2e} \def\fileversion{1.0} \def\filedate{2008/06/17} \ProvidesPackage{uitindex}[\filedate] \message{Style option: `uitindex' v\fileversion \space <\filedate> nmm (at) uit.co.uk} \long\def\uitindexblurb#1{\gdef\@uitindexblurb{#1}} \gdef\@uitindexblurb{} \long\def\uitindexformattingdef#1{\gdef\uitindexformatting{#1}} \gdef\uitindexformatting{\usefont{OT1}{phv}{mc}{n}\selectfont\relsize{-1}} \renewenvironment{theindex} { \if at twocolumn \@restonecolfalse \else \@restonecoltrue \fi \columnseprule \z@ \columnsep 35\p@ \twocolumn[\vspace*{1.2em}\@makeschapterhead{\indexname}\@uitindexblurb]% \uitindexformatting \@mkboth{\MakeUppercase\indexname}% {\MakeUppercase\indexname}% \thispagestyle{plain}\parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem} {\if at restonecol\onecolumn\else\clearpage\fi} \endinput Notes: 1. This package changes index operation in two ways: a. You can customize the index font and appearance. b. You can add a ``blurb'' before the index proper, e.g. to explain your indexing font conventions, etc. If you don't want either of these features, don't use the package. 2. This package uses \@makeschapterhead, so it works only with classes that define that (including book.cls, report.cls, ...). Example usage: ... \usepackage{uitindex} ... % This is optional. This package uses a default setting for index % font, appearance etc., which applies to the index entries only, and % not the Chapter heading, blurb, etc. You can define your own setting % using \uitindexformattingdef. The current value of the settings, % whatever they are, is available as \uitindexformatting, so you can % use this in your index blurb to give the blurb the same appearance % as the body of the index. \uitindexformattingdef{\bf} % This is optional -- defines ``blurb'' that goes between the % ``Index'' Chapter heading and the start of the 2-column index. \usepackage{uitindex} \uitindexblurb{ %{\footnotesize First line} {\uitindexformatting In the index, many terms are marked with a small superscript (as in \sf{access-control}\textsuperscript{Unbound}, for example), to indicate the program or brand of server the item relates to, or in which chapter the term appears. Page numbers in italics indicate where terms are defined. Variable names (\eg \envnx{UID}) are sorted under their initial letter, not under ``\$''. \vspace{1.5cm}} } \makeindex From jjq at galcit.caltech.edu Sat May 30 17:05:56 2009 From: jjq at galcit.caltech.edu (James Quirk) Date: Sat, 30 May 2009 08:05:56 -0700 (PDT) Subject: [texhax] Thesis layout regulations In-Reply-To: References: <4A202DF0.3040207@essex.ac.uk> Message-ID: On Sat, 30 May 2009, Dan Hatton wrote: > On Fri, 29 May 2009, Adrian F. Clark wrote: > > > I've just taken a close look at my university's regs and it appears that we > > still require students to submit their MSc or PhD theses double-spaced and > > single-sided. I was wondering if more enlightened institutions have > > progressed to the stage where students can submit single-spaced and > > double-sided. > > > > If you have regs that are less wasteful (especially if you're at a UK > > institution), could you drop me an email saying so? I'll use it as evidence > > to help drag us towards the 21st century -- and maybe save some trees -- and > > update the LaTeX style that many of our students use. > > When I submitted mine (Cambridge University Physics and Chemistry > Degree Committee, 2003), I used the standard LaTeX book document class > - which I guess you'd call somewhere between single-spaced and > double-spaced - and no-one complained about that. I had printed it > single-sided. I'm not sure about "less wasteful" - in those days, I > didn't know about \usepackage{fullpage}. > > March 1991, I was allowed to submit a double sided PhD thesis at a UK institution (Cranfield Institute of Technology, subsequently rebadged as Cranfield University). I'm not sure that it saved any trees though, for if you can believe it, I did not have a screen previewer and so wasted no end of paper as I tweaked the text. In my defence, back then I had no e-mail, no internet connection, and so my options for self-improvement were limited. If you do manage to go the two-sided route, beware of your book binder. I went to great lengths to ensure the visual quality of my thesis, even going so far as to write my own PostScript graphics library. I used my own home-brew LaTeX style-file that started all chapters on an odd page and where necessary inserted a blank page at the end of the previous chapter. Therefore you can imagine my shock when the thesis came back from the binders. Wherever there was a legitimate blank page, the binder inserted his own page with the message "pagination error" in one inch type. To say I was unhappy is an understatment: picture Munch's The Scream and you'll get an idea at how disconsolate I was. Anyhow enough of my ramblings, and BOB with your write-up. James From sdfd322 at hotmail.com Sun May 31 19:04:56 2009 From: sdfd322 at hotmail.com (mohammad al-malki) Date: Sun, 31 May 2009 20:04:56 +0300 Subject: [texhax] LaTeX Message-ID: Welcome Please help me to install LaTex. I'am visit this page http://www.usna.edu/Users/ee/cameronc/Miscellaneous/LaTeX/LaTeX.html#MiKTeX but I'am not understand how I install this software Please I'am want guide by figure step by step how I instull from Miktex to Texnic center pleas...please....please _________________________________________________________________ ???? ?? ???? ?????-???? ??? ??????? ?????? ?? Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: