Re: Deriving a new LyX environment
Steve Litt napsal(a): What I want to know is this: where does \enddescription come from? Does every environment named \foo also have an \endfoo that refers to the stuff that gets done after the last piece of text covered from the environment? If so, how does that happen? If not, how does Matej's code above work (I tried it 2 years ago and indeed it did work). [snip] Does LaTeX's \newenvironment{myenvironment} automatically create not only \myenvironment, but also \endmyenvironment? Let's take a look. Go to $TEXMF/tex/latex/base (it is /usr/share/texmf/tex/latex/base on my RHEL) and open latex.ltx in vim. Then make search for this regexp \\def.*newenvironment {I guess, you can understand why to do that.} My vim stopped on line 659 on something like this [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED]@newenva#1}0} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@newenv{#1}{[#2]}}} [EMAIL PROTECTED]@newenv{#1}{[#2][{#3}]}} [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@error{Environment #1 [EMAIL PROTECTED] }\relax \expandafter\let\csname#1\endcsname\relax \expandafter\let\csname end#1\endcsname\relax [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\expandafter\let\csname#1\expandafter\endcsname \csname end#1\endcsname}% \relax [EMAIL PROTECTED] \csname #1\endcsname#2{#3}% [EMAIL PROTECTED]@x\expandafter\def\csname end#1\endcsname{#4}} OK, this looks REALLY ugly. Of course, I except you to know that what is done in LaTeX with \[re]newcommand could be done (roughly, this is terrible oversimplification, but it should suffice for our purposes) with TeX primitive \def, i.e., that \def\macro#1{replacement using value of #1} replaces every occurrence of \macro with parameter by the replacement. If you look at this mess for a moment (and ignore things like [EMAIL PROTECTED]@[EMAIL PROTECTED] -- I have no idea what does it mean, and hopefully it won't be important for us) you can see that it boils all down to the macro [EMAIL PROTECTED], which ... Hold on, this is insane. Why to do all this when we have fully documented sources for whole LaTeX? Every writer of LaTeX packages knows (or certainly should know), that LaTeX supports a version of original Knuth's idea of literate programming (i.e., source code is mixed with the documentation; http://en.wikipedia.org/wiki/Literate_programming). Whole LaTeX source code documentation is produced by LaTeXing source2e.tex. Unfortunately, it is quite often not included in most distributions (some of them, like Debian, have special package for it), so it is usually easier to download source2e.pdf somewhere from the web (use Google). Just brief search in it lead me to page numbered 30 (which is 40th page of my document), which says: \newenvironment equivalent to: \newcommand{\FOO}[i]{DEF1} \def{\endFOO}{DEF2} (or the appropriate star forms). Appropriate definitions in well-commented source code start on page 34 (44th page of the document). Best, Matěj -- http://www.ceplovi.cz/matej/blog/, Jabber: ceplmaatjabber.cz GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC signature.asc Description: OpenPGP digital signature
Re: Re: LyXTextClassList::Read: no textclasses found!
I have exactly the same problem. My home directory is not on a remote server and I tried the manual reconfigure. But that didn't work. It tells me that tex\latex\IEEEtran\IEEEtran.cls is missing and that I should install it. I do so. I get the same error. Any more ideas? Thank you in advance. Thomas -- Dr. Thomas Sauter Systems Biology Institute for System Dynamics University of Stuttgart, Germany http://www.isys.uni-stuttgart.de/~sauter/
Footnotes in Greek
Hi all, I've been trying to get a way to insert some greek text into a document. Having installed the relevant bits from texlive, I tried putting \usepackage[greek,british]{babel} into the preamble. This changes the whole document into greek. If I place the ERT \selectlanguage{british} before the document title, it goes back to british for the main text, but all of the references brought in from bibtex (using jurabib) are set in greek. This is not what I need. How do I tell bibtex to use british as the default language? Or is there a better way to set up the document to allow for occasional greek? Declan
problems with urls not breaking at end of line
Hi I have some urls in my document (simple article style, no special options) which contains some URLs. These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Anmy ideas how I can get these to break at the end of a line as they should be? Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED]
Section numbers in left margin?
Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Another eps problem
Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what recently in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki
Re: Section numbers in left margin?
On Thursday 25 January 2007 10:19, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? That would be really cool. Anyway, the following is just a guess, completely untested, but maybe it will start off your investigation... \let\oldsection = \section \let\endoldsection = \endsection \renewenvironment{section}{ \leftskip -0.6in \begin{oldsection} }{ \end{oldsection} } HTH (one can always hope) SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Section numbers in left margin?
This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Richard John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? _ MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
On Jan 25, 2007, at 9:19 AM, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: On Jan 25, 2007, at 9:19 AM, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. The labels are set using \labelenumi, \labelenumii, \labelenumiii, and \labelenumiv, depending on the depth. These can be \renewcommand'ed as you wish. See also the varioref package's \labelformat command. I don't know whether enumerate can be modified the way arbitrary lists can be, i.e., whether \labelsep and the like exist for this environment. (See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could try it and find out. Richard Heck -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen
Re: Section numbers in left margin?
Richard Heck wrote: This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Also memoir: \chapterstyle{hangnum} Jürgen
Re: OpenOffice vs. LyX
--- killermike [EMAIL PROTECTED] wrote: Steve Litt wrote: Hi all, I was considering switching to OpenOffice because of the excessive effort in creating/modifying styles in LyX. So as an experiment, I began making a derivative, in OpenOffice, of a book I originally wrote using MS Word. WHAT A MESS! Styles I created in OpenOffice wouldn't stay created. If they stayed created, they'd magically change properties from time to time. Numbers kept changing to bullets and vice versa. I'm scared I'll be fine tuning this document every time it's edited in any way, or even printed. I will NEVER AGAIN write a book in OpenOffice. I must admit that although I'm not a fan of the 'OO/Word is for morons' style of promoting Lyx use, I did have similar problems when I started my book project in OO 1.9. IIRC OOo 1.9.x was not a production version and was buggey especially with headings. OOo is up to 2.1 and overall seems pretty stable. Styles and bullets just wouldn't stay set. I don't know to what extent things have improved since then. I'm left wondering how these people who claimed that they used that version of OO for serious work actually got anything done. Beats me but there are quite a few books out there done with OOo including the collaboratively written OOo documentation based on a well constructed template and well defined styles. It proved to be quite a problem because, after OO, I tried Koffice Word which had some font kerning problems that made it unusable for me. I should add that other people claimed that they could still use it. The versions of Abiword that I tried were also had bugs surrounding the styles. In the end, it was probably all for the best as it led me to discover Lyx and now that I've learnt Lyx I prefer this way of working. Bit of a problem for Linux as a platform that I was unable to install a fully working standard word processor though. Time to give OOo another try. I note that you are a Linex user. A serious problem seems to be that various distros tend to tweak OOo to their preferences. Recently there seems to have been a wave of problems with the Ubuntu issue of OOo. It is always (almost anyway) safer to download OOo from the official OOo site. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
error producing output files from g-letter
Hei all, I just installed lyx 1.4.3-5 on WinXP using the LYXWin143Complete-2-9.exe. In general, it seems to run fine but trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. When clicking on view pdf, in the bottom line of the Window is written that the program ist waiting for latex run 1. And then LyX gets stuck. The error information only shows lyx: Disabling LyX socket. And that's it. I am sorry that I can not provide more information. Do you have any suggestions? thanks a lot, Axel
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen Thanks, Jürgen.
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen This does set the numerals 1, 2, 3, ... in the left margin, with the text lined up with the margin, but increasing the depth no longer indents the list, so when an exam problem has two parts (a) and (b) I get 1 (a) (b) 2 rather than 1 (a) (b) 2 Is there a way to get the normal indenting behavior with increased depth, using the preamble? Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation.
Re: Another eps problem
Miki Dovrat wrote: Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what recently in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki For starters, if you export to PDF and then print the PDF file (from Acrobat Reader), does it print correctly? /Paul
Re: Section numbers in left margin?
On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation. Works like a charm. Thanks, Jürgen. And I promise to read the documentation for enumitem. Bruce
Re: Another eps problem
Am Donnerstag, 25. Januar 2007 17:43 schrieb Miki Dovrat: Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. They are probably not relevant. What happens if you try to print these files directly from ghostscript, without including them in LyX? Does it work then? If yes I would suspect a problem in a converter that LyX uses, if not then it has nothing to do with LyX. Georg
Re: OpenOffice vs. LyX
I like LyX for complex documents because I can set a document up and not have to worry about the fact that so many people who claim to understand how to use styles don't bother to use them with any consistency in practice with any word processing software. On Thursday 25 January 2007 09:37 am, John Kane wrote: Beats me but there are quite a few books out there done with OOo including the collaboratively written OOo documentation based on a well constructed template and well defined styles. I think a well constructed template and well defined styles explains it. I've been using word processing software for literally a couple of decades, and frankly, the worst piece of engineering garbage that I've ever had the misfortune to use was MS Word. Even OOo Writer 1.0 ran circles around it (all released versions of MS Word) for features and stability. Most of the features people claim are in MS Word that aren't in OOo Writer are really 3rd-party applications (and pricey ones at that). Only the grammar checker and visual basic that were in MS Word were not in OOo Writer 1.0. OOo Writer 2.0 is light-years ahead of MS Word (even with the new features 2007 is supposed to come with). As someone else mentioned, you are likely to bring over MS Word's problems when you import the file into OOo Writer and what you're seeing are the problems that were in your MS Word document. Complex MS Word files almost never look the same on two different computers -- even when both computers have the exact same release of MS Word installed. This has been a constant complaint for both the people trying to provide finalized documents for production on MS Word systems other than their own and the people receiving those documents. This is why savvy MS Word users always provide a copy of the file in PDF so that the recipient can see what the file was actually supposed to look like. Check out the Authors' Guides for OOo -- there are versions for 1.0 and 2.0. Getting lists and such to be stable in OOo Writer is not a problem, assuming you set them up correctly for what you want and assuming you adequately cleaned up the MS Word file and templates you're working from. http://documentation.openoffice.org/manuals/index.html deedee -- Registered Linux User #327485 The Writer's Place, http://www.thewritersplace.com WordStar Users Group, http://www.wordstar2.com
Re: error producing output files from g-letter
[EMAIL PROTECTED] schrieb: trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. When clicking on view pdf, in the bottom line of the Window is written that the program is waiting for latex run 1. And then LyX gets stuck. The error information only shows lyx: Disabling LyX socket. And that's it. I get here 4 errors. One is that \Telelfon is already defined: \newcommand\Telefon{\mvchr{84}} Your command was ignored. The reason is that MiKTeX loads marvosym automatically and I currently don't know why. Could you please report this on http://bugzilla.lyx.org I'll have a look at this this weekend. regards Uwe
RE: Re: error producing output files from g-letter
Well, Problems are solved... program is waiting for latex run 1. And then LyX gets stuck. There was obviousely a problem during installation of MikTeX caused by the firewall - after switching the firewall off and a new installation LyX didn't die anymore. But then I also had the following problem: I get here 4 errors. One is that \Telelfon is already defined: \newcommand\Telefon{\mvchr{84}} Your command was ignored. So I opened marvosym.sty (\MiKTeX 2.5\tex\latex\marvosym)and changed the spelling of telefon (I guess I could also just have deleted it) and everything was just fine. Anyway, thanks for the quick response, Axel
LyX sends PDFs to Yojimbo?
Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. Also, is there any way to get the same behavior with DVI files as under linux? I used to love the ability to update the DVI file (which was extremely quick) and bring the DVI viewer to the foreground, and it would automatically detect the change and update the display. It was, quite simply, brilliant. Thanks! Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Bennett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to open -a Preview.app, but that misses the point. Incidentally, open Desktop/example.pdf (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:13 PM, Brett Dikeman wrote: On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to open -a Preview.app, but that misses the point. Incidentally, open Desktop/example.pdf (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Sorry -- too speedy a reply! From the Finder, select any .pdf file, and select File Get Info. Set the Open with option to anything *other* than Preview, and click the Change all button. Then select Preview and click Change all again. That should set Preview as the default in a way that LyX will recognize. Bennett
Re: Section numbers in left margin?
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote: Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation. Jürgen, How do you *know* about all these packages? This is true for many on the list -- someone comes up with a need and you know exactly what package to use to accomplish it. Do you have all this memorized, or do you have a quick way of looking it up? Either way, how do you do it -- I want to do it too. Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Deriving a new LyX environment
Steve Litt napsal(a): What I want to know is this: where does \enddescription come from? Does every environment named \foo also have an \endfoo that refers to the stuff that gets done after the last piece of text covered from the environment? If so, how does that happen? If not, how does Matej's code above work (I tried it 2 years ago and indeed it did work). [snip] Does LaTeX's \newenvironment{myenvironment} automatically create not only \myenvironment, but also \endmyenvironment? Let's take a look. Go to $TEXMF/tex/latex/base (it is /usr/share/texmf/tex/latex/base on my RHEL) and open latex.ltx in vim. Then make search for this regexp \\def.*newenvironment {I guess, you can understand why to do that.} My vim stopped on line 659 on something like this [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED]@newenva#1}0} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@newenv{#1}{[#2]}}} [EMAIL PROTECTED]@newenv{#1}{[#2][{#3}]}} [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@error{Environment #1 [EMAIL PROTECTED] }\relax \expandafter\let\csname#1\endcsname\relax \expandafter\let\csname end#1\endcsname\relax [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\expandafter\let\csname#1\expandafter\endcsname \csname end#1\endcsname}% \relax [EMAIL PROTECTED] \csname #1\endcsname#2{#3}% [EMAIL PROTECTED]@x\expandafter\def\csname end#1\endcsname{#4}} OK, this looks REALLY ugly. Of course, I except you to know that what is done in LaTeX with \[re]newcommand could be done (roughly, this is terrible oversimplification, but it should suffice for our purposes) with TeX primitive \def, i.e., that \def\macro#1{replacement using value of #1} replaces every occurrence of \macro with parameter by the replacement. If you look at this mess for a moment (and ignore things like [EMAIL PROTECTED]@[EMAIL PROTECTED] -- I have no idea what does it mean, and hopefully it won't be important for us) you can see that it boils all down to the macro [EMAIL PROTECTED], which ... Hold on, this is insane. Why to do all this when we have fully documented sources for whole LaTeX? Every writer of LaTeX packages knows (or certainly should know), that LaTeX supports a version of original Knuth's idea of literate programming (i.e., source code is mixed with the documentation; http://en.wikipedia.org/wiki/Literate_programming). Whole LaTeX source code documentation is produced by LaTeXing source2e.tex. Unfortunately, it is quite often not included in most distributions (some of them, like Debian, have special package for it), so it is usually easier to download source2e.pdf somewhere from the web (use Google). Just brief search in it lead me to page numbered 30 (which is 40th page of my document), which says: \newenvironment equivalent to: \newcommand{\FOO}[i]{DEF1} \def{\endFOO}{DEF2} (or the appropriate star forms). Appropriate definitions in well-commented source code start on page 34 (44th page of the document). Best, Matěj -- http://www.ceplovi.cz/matej/blog/, Jabber: ceplmaatjabber.cz GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC signature.asc Description: OpenPGP digital signature
Re: Re: LyXTextClassList::Read: no textclasses found!
I have exactly the same problem. My home directory is not on a remote server and I tried the manual reconfigure. But that didn't work. It tells me that tex\latex\IEEEtran\IEEEtran.cls is missing and that I should install it. I do so. I get the same error. Any more ideas? Thank you in advance. Thomas -- Dr. Thomas Sauter Systems Biology Institute for System Dynamics University of Stuttgart, Germany http://www.isys.uni-stuttgart.de/~sauter/
Footnotes in Greek
Hi all, I've been trying to get a way to insert some greek text into a document. Having installed the relevant bits from texlive, I tried putting \usepackage[greek,british]{babel} into the preamble. This changes the whole document into greek. If I place the ERT \selectlanguage{british} before the document title, it goes back to british for the main text, but all of the references brought in from bibtex (using jurabib) are set in greek. This is not what I need. How do I tell bibtex to use british as the default language? Or is there a better way to set up the document to allow for occasional greek? Declan
problems with urls not breaking at end of line
Hi I have some urls in my document (simple article style, no special options) which contains some URLs. These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Anmy ideas how I can get these to break at the end of a line as they should be? Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED]
Section numbers in left margin?
Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Another eps problem
Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what recently in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki
Re: Section numbers in left margin?
On Thursday 25 January 2007 10:19, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? That would be really cool. Anyway, the following is just a guess, completely untested, but maybe it will start off your investigation... \let\oldsection = \section \let\endoldsection = \endsection \renewenvironment{section}{ \leftskip -0.6in \begin{oldsection} }{ \end{oldsection} } HTH (one can always hope) SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Section numbers in left margin?
This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Richard John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? _ MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
On Jan 25, 2007, at 9:19 AM, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: On Jan 25, 2007, at 9:19 AM, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. The labels are set using \labelenumi, \labelenumii, \labelenumiii, and \labelenumiv, depending on the depth. These can be \renewcommand'ed as you wish. See also the varioref package's \labelformat command. I don't know whether enumerate can be modified the way arbitrary lists can be, i.e., whether \labelsep and the like exist for this environment. (See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could try it and find out. Richard Heck -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen
Re: Section numbers in left margin?
Richard Heck wrote: This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Also memoir: \chapterstyle{hangnum} Jürgen
Re: OpenOffice vs. LyX
--- killermike [EMAIL PROTECTED] wrote: Steve Litt wrote: Hi all, I was considering switching to OpenOffice because of the excessive effort in creating/modifying styles in LyX. So as an experiment, I began making a derivative, in OpenOffice, of a book I originally wrote using MS Word. WHAT A MESS! Styles I created in OpenOffice wouldn't stay created. If they stayed created, they'd magically change properties from time to time. Numbers kept changing to bullets and vice versa. I'm scared I'll be fine tuning this document every time it's edited in any way, or even printed. I will NEVER AGAIN write a book in OpenOffice. I must admit that although I'm not a fan of the 'OO/Word is for morons' style of promoting Lyx use, I did have similar problems when I started my book project in OO 1.9. IIRC OOo 1.9.x was not a production version and was buggey especially with headings. OOo is up to 2.1 and overall seems pretty stable. Styles and bullets just wouldn't stay set. I don't know to what extent things have improved since then. I'm left wondering how these people who claimed that they used that version of OO for serious work actually got anything done. Beats me but there are quite a few books out there done with OOo including the collaboratively written OOo documentation based on a well constructed template and well defined styles. It proved to be quite a problem because, after OO, I tried Koffice Word which had some font kerning problems that made it unusable for me. I should add that other people claimed that they could still use it. The versions of Abiword that I tried were also had bugs surrounding the styles. In the end, it was probably all for the best as it led me to discover Lyx and now that I've learnt Lyx I prefer this way of working. Bit of a problem for Linux as a platform that I was unable to install a fully working standard word processor though. Time to give OOo another try. I note that you are a Linex user. A serious problem seems to be that various distros tend to tweak OOo to their preferences. Recently there seems to have been a wave of problems with the Ubuntu issue of OOo. It is always (almost anyway) safer to download OOo from the official OOo site. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
error producing output files from g-letter
Hei all, I just installed lyx 1.4.3-5 on WinXP using the LYXWin143Complete-2-9.exe. In general, it seems to run fine but trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. When clicking on view pdf, in the bottom line of the Window is written that the program ist waiting for latex run 1. And then LyX gets stuck. The error information only shows lyx: Disabling LyX socket. And that's it. I am sorry that I can not provide more information. Do you have any suggestions? thanks a lot, Axel
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen Thanks, Jürgen.
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen This does set the numerals 1, 2, 3, ... in the left margin, with the text lined up with the margin, but increasing the depth no longer indents the list, so when an exam problem has two parts (a) and (b) I get 1 (a) (b) 2 rather than 1 (a) (b) 2 Is there a way to get the normal indenting behavior with increased depth, using the preamble? Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation.
Re: Another eps problem
Miki Dovrat wrote: Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what recently in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki For starters, if you export to PDF and then print the PDF file (from Acrobat Reader), does it print correctly? /Paul
Re: Section numbers in left margin?
On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation. Works like a charm. Thanks, Jürgen. And I promise to read the documentation for enumitem. Bruce
Re: Another eps problem
Am Donnerstag, 25. Januar 2007 17:43 schrieb Miki Dovrat: Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about half of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. They are probably not relevant. What happens if you try to print these files directly from ghostscript, without including them in LyX? Does it work then? If yes I would suspect a problem in a converter that LyX uses, if not then it has nothing to do with LyX. Georg
Re: OpenOffice vs. LyX
I like LyX for complex documents because I can set a document up and not have to worry about the fact that so many people who claim to understand how to use styles don't bother to use them with any consistency in practice with any word processing software. On Thursday 25 January 2007 09:37 am, John Kane wrote: Beats me but there are quite a few books out there done with OOo including the collaboratively written OOo documentation based on a well constructed template and well defined styles. I think a well constructed template and well defined styles explains it. I've been using word processing software for literally a couple of decades, and frankly, the worst piece of engineering garbage that I've ever had the misfortune to use was MS Word. Even OOo Writer 1.0 ran circles around it (all released versions of MS Word) for features and stability. Most of the features people claim are in MS Word that aren't in OOo Writer are really 3rd-party applications (and pricey ones at that). Only the grammar checker and visual basic that were in MS Word were not in OOo Writer 1.0. OOo Writer 2.0 is light-years ahead of MS Word (even with the new features 2007 is supposed to come with). As someone else mentioned, you are likely to bring over MS Word's problems when you import the file into OOo Writer and what you're seeing are the problems that were in your MS Word document. Complex MS Word files almost never look the same on two different computers -- even when both computers have the exact same release of MS Word installed. This has been a constant complaint for both the people trying to provide finalized documents for production on MS Word systems other than their own and the people receiving those documents. This is why savvy MS Word users always provide a copy of the file in PDF so that the recipient can see what the file was actually supposed to look like. Check out the Authors' Guides for OOo -- there are versions for 1.0 and 2.0. Getting lists and such to be stable in OOo Writer is not a problem, assuming you set them up correctly for what you want and assuming you adequately cleaned up the MS Word file and templates you're working from. http://documentation.openoffice.org/manuals/index.html deedee -- Registered Linux User #327485 The Writer's Place, http://www.thewritersplace.com WordStar Users Group, http://www.wordstar2.com
Re: error producing output files from g-letter
[EMAIL PROTECTED] schrieb: trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. When clicking on view pdf, in the bottom line of the Window is written that the program is waiting for latex run 1. And then LyX gets stuck. The error information only shows lyx: Disabling LyX socket. And that's it. I get here 4 errors. One is that \Telelfon is already defined: \newcommand\Telefon{\mvchr{84}} Your command was ignored. The reason is that MiKTeX loads marvosym automatically and I currently don't know why. Could you please report this on http://bugzilla.lyx.org I'll have a look at this this weekend. regards Uwe
RE: Re: error producing output files from g-letter
Well, Problems are solved... program is waiting for latex run 1. And then LyX gets stuck. There was obviousely a problem during installation of MikTeX caused by the firewall - after switching the firewall off and a new installation LyX didn't die anymore. But then I also had the following problem: I get here 4 errors. One is that \Telelfon is already defined: \newcommand\Telefon{\mvchr{84}} Your command was ignored. So I opened marvosym.sty (\MiKTeX 2.5\tex\latex\marvosym)and changed the spelling of telefon (I guess I could also just have deleted it) and everything was just fine. Anyway, thanks for the quick response, Axel
LyX sends PDFs to Yojimbo?
Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. Also, is there any way to get the same behavior with DVI files as under linux? I used to love the ability to update the DVI file (which was extremely quick) and bring the DVI viewer to the foreground, and it would automatically detect the change and update the display. It was, quite simply, brilliant. Thanks! Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Bennett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to open -a Preview.app, but that misses the point. Incidentally, open Desktop/example.pdf (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:13 PM, Brett Dikeman wrote: On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as auto. I don't know Yojimbo, but it should work to set the viewer for .pdf files to open -a Yojimbo.app. Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to open -a Preview.app, but that misses the point. Incidentally, open Desktop/example.pdf (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Sorry -- too speedy a reply! From the Finder, select any .pdf file, and select File Get Info. Set the Open with option to anything *other* than Preview, and click the Change all button. Then select Preview and click Change all again. That should set Preview as the default in a way that LyX will recognize. Bennett
Re: Section numbers in left margin?
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote: Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation. Jürgen, How do you *know* about all these packages? This is true for many on the list -- someone comes up with a need and you know exactly what package to use to accomplish it. Do you have all this memorized, or do you have a quick way of looking it up? Either way, how do you do it -- I want to do it too. Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Deriving a new LyX environment
Steve Litt napsal(a): > What I want to know is this: where does \enddescription come from? Does every > environment named \foo also have an \endfoo that refers to the stuff that > gets done after the last piece of text covered from the environment? If so, > how does that happen? If not, how does Matej's code above work (I tried it 2 > years ago and indeed it did work). > > [snip] > > Does LaTeX's \newenvironment{myenvironment} automatically create not only > \myenvironment, but also \endmyenvironment? Let's take a look. Go to $TEXMF/tex/latex/base (it is /usr/share/texmf/tex/latex/base on my RHEL) and open latex.ltx in vim. Then make search for this regexp \\def.*newenvironment {I guess, you can understand why to do that.} My vim stopped on line 659 on something like this [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED]@newenva#1}0} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@newenv{#1}{[#2]}}} [EMAIL PROTECTED]@newenv{#1}{[#2][{#3}]}} [EMAIL PROTECTED]@[EMAIL PROTECTED]@environment} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@error{Environment #1 [EMAIL PROTECTED] }\relax \expandafter\let\csname#1\endcsname\relax \expandafter\let\csname end#1\endcsname\relax [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\expandafter\let\csname#1\expandafter\endcsname \csname end#1\endcsname}% \relax [EMAIL PROTECTED] \csname #1\endcsname#2{#3}% [EMAIL PROTECTED]@x\expandafter\def\csname end#1\endcsname{#4}} OK, this looks REALLY ugly. Of course, I except you to know that what is done in LaTeX with \[re]newcommand could be done (roughly, this is terrible oversimplification, but it should suffice for our purposes) with TeX primitive \def, i.e., that \def\macro#1{replacement using value of #1} replaces every occurrence of \macro with parameter by the replacement. If you look at this mess for a moment (and ignore things like [EMAIL PROTECTED]@[EMAIL PROTECTED] -- I have no idea what does it mean, and hopefully it won't be important for us) you can see that it boils all down to the macro [EMAIL PROTECTED], which ... Hold on, this is insane. Why to do all this when we have fully documented sources for whole LaTeX? Every writer of LaTeX packages knows (or certainly should know), that LaTeX supports a version of original Knuth's idea of "literate programming" (i.e., source code is mixed with the documentation; http://en.wikipedia.org/wiki/Literate_programming). Whole LaTeX source code documentation is produced by LaTeXing source2e.tex. Unfortunately, it is quite often not included in most distributions (some of them, like Debian, have special package for it), so it is usually easier to download source2e.pdf somewhere from the web (use Google). Just brief search in it lead me to page numbered 30 (which is 40th page of my document), which says: \newenvironment equivalent to: \newcommand{\FOO}[i]{DEF1} \def{\endFOO}{DEF2} (or the appropriate star forms). Appropriate definitions in well-commented source code start on page 34 (44th page of the document). Best, Matěj -- http://www.ceplovi.cz/matej/blog/, Jabber: ceplmajabber.cz GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC signature.asc Description: OpenPGP digital signature
Re: Re: LyXTextClassList::Read: no textclasses found!
I have exactly the same problem. My home directory is not on a remote server and I tried the manual reconfigure. But that didn't work. It tells me that tex\latex\IEEEtran\IEEEtran.cls is missing and that I should install it. I do so. I get the same error. Any more ideas? Thank you in advance. Thomas -- Dr. Thomas Sauter Systems Biology Institute for System Dynamics University of Stuttgart, Germany http://www.isys.uni-stuttgart.de/~sauter/
Footnotes in Greek
Hi all, I've been trying to get a way to insert some greek text into a document. Having installed the relevant bits from texlive, I tried putting \usepackage[greek,british]{babel} into the preamble. This changes the whole document into greek. If I place the ERT \selectlanguage{british} before the document title, it goes back to british for the main text, but all of the references brought in from bibtex (using jurabib) are set in greek. This is not what I need. How do I tell bibtex to use british as the default language? Or is there a better way to set up the document to allow for occasional greek? Declan
problems with urls not breaking at end of line
Hi I have some urls in my document (simple article style, no special options) which contains some URLs. These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Anmy ideas how I can get these to break at the end of a line as they should be? Thanks, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED]
Section numbers in left margin?
Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Another eps problem
Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about "half" of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what "recently" in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki
Re: Section numbers in left margin?
On Thursday 25 January 2007 10:19, John Hughes wrote: > Is there a way of making the section (and subsection etc.) numbers appear > in the left margin, so that the text of the section headings themselves are > lined up with the left margin? That would be really cool. Anyway, the following is just a guess, completely untested, but maybe it will start off your investigation... \let\oldsection = \section \let\endoldsection = \endsection \renewenvironment{section}{ \leftskip -0.6in \begin{oldsection} }{ \end{oldsection} } HTH (one can always hope) SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Section numbers in left margin?
This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Richard John Hughes wrote: > Is there a way of making the section (and subsection etc.) numbers > appear in the left margin, so that the text of the section headings > themselves are lined up with the left margin? > > _ > MSN Hotmail is evolving – check out the new Windows Live Mail > http://ideas.live.com > -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
On Jan 25, 2007, at 9:19 AM, John Hughes wrote: Is there a way of making the section (and subsection etc.) numbers appear in the left margin, so that the text of the section headings themselves are lined up with the left margin? I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: > On Jan 25, 2007, at 9:19 AM, John Hughes wrote: >> Is there a way of making the section (and subsection etc.) numbers >> appear in the left margin, so that the text of the section headings >> themselves are lined up with the left margin? > I have the same question, but concerning the numbers 1, 2, 3, ... in > an enumerate environment. The labels are set using \labelenumi, \labelenumii, \labelenumiii, and \labelenumiv, depending on the depth. These can be \renewcommand'ed as you wish. See also the varioref package's \labelformat command. I don't know whether enumerate can be modified the way arbitrary lists can be, i.e., whether \labelsep and the like exist for this environment. (See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could try it and find out. Richard Heck -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Section numbers in left margin?
Bruce Pourciau wrote: > I have the same question, but concerning the numbers 1, 2, 3, ... in > an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen
Re: Section numbers in left margin?
Richard Heck wrote: > This can certainly be done with the koma-script classes. See also the > titlesec package. These will allow you to add arbitrary formatting > commands to set the section titles. Also memoir: \chapterstyle{hangnum} Jürgen
Re: OpenOffice vs. LyX
--- killermike <[EMAIL PROTECTED]> wrote: > Steve Litt wrote: > > Hi all, > > > > I was considering switching to OpenOffice because > of the excessive effort in > > creating/modifying styles in LyX. > > > > So as an experiment, I began making a derivative, > in OpenOffice, of a book I > > originally wrote using MS Word. > > > > WHAT A MESS! Styles I created in OpenOffice > wouldn't stay created. If they > > stayed created, they'd magically change properties > from time to time. Numbers > > kept changing to bullets and vice versa. I'm > scared I'll be fine tuning this > > document every time it's edited in any way, or > even printed. I will NEVER > > AGAIN write a book in OpenOffice. > > > I must admit that although I'm not a fan of the > 'OO/Word is for morons' > style of promoting Lyx use, > I did have similar problems when I started my book > project in OO 1.9. IIRC OOo 1.9.x was not a production version and was buggey especially with headings. OOo is up to 2.1 and overall seems pretty stable. > Styles and bullets just wouldn't stay set. I don't > know to what extent > things have improved since then. I'm left wondering > how these people who > claimed that they used that version of OO for > serious work actually got > anything done. Beats me but there are quite a few books out there done with OOo including the collaboratively written OOo documentation based on a well constructed template and well defined styles. > > It proved to be quite a problem because, after OO, I > tried Koffice Word > which had some font kerning problems that made it > unusable for me. I > should add that other people claimed that they could > still use it. The > versions of Abiword that I tried were also had bugs > surrounding the styles. > > In the end, it was probably all for the best as it > led me to discover > Lyx and now that I've learnt Lyx I prefer this way > of working. > > Bit of a problem for Linux as a platform that I was > unable to install a > fully working standard word processor though. Time to give OOo another try. I note that you are a Linex user. A serious problem seems to be that various distros tend to tweak OOo to their preferences. Recently there seems to have been a wave of problems with the Ubuntu issue of OOo. It is always (almost anyway) safer to download OOo from the official OOo site. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
error producing output files from "g-letter"
Hei all, I just installed lyx 1.4.3-5 on WinXP using the LYXWin143Complete-2-9.exe. In general, it seems to run fine but trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. When clicking on "view pdf", in the bottom line of the Window is written that the program ist waiting for latex run 1. And then LyX gets stuck. The error information only shows "lyx: Disabling LyX socket." And that's it. I am sorry that I can not provide more information. Do you have any suggestions? thanks a lot, Axel
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen Thanks, Jürgen.
Re: Section numbers in left margin?
On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: I have the same question, but concerning the numbers 1, 2, 3, ... in an enumerate environment. \usepackage{enumitem} \setenumerate{leftmargin=0pt, labelsep=.6em} Jürgen This does set the numerals 1, 2, 3, ... in the left margin, with the text lined up with the margin, but increasing the depth no longer indents the list, so when an exam problem has two parts (a) and (b) I get 1 (a) (b) 2 rather than 1 (a) (b) 2 Is there a way to get the normal indenting behavior with increased depth, using the preamble? Bruce
Re: Section numbers in left margin?
Bruce Pourciau wrote: > Is there a way to get the normal indenting behavior with increased > depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation.
Re: Another eps problem
Miki Dovrat wrote: Hi, I have EPS generated from Microcal Origin, without a preview, which always (up to now) have been behaving fine. Recently I have come across a strange problem, where my eps figures show up correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or postscript, but they do not PRINT on a printer correctly. I have two printers (one HP laser printer, and one deskjet), the output is wrong on both. Details of the figure are missing - lines are missing, some marks are missing, but some are printed. I get about "half" of the figure printed. Ghostview complains about DSC warnings when I open the postscript file of the entire document, but displays everything on screen nicely. I don't know what these DSC warnings are and if they are relevant. I don't know what "recently" in my second paragraph means - is it a lyx version change (I am on 1.4.3-5), MikTex version (I am on Windows and the MikTex is fully updated) or what. I think my lyx (and tex and imagemagick and ghostview) installation is fine. Could someone with more experience tell me where to look? Thanks Miki For starters, if you export to PDF and then print the PDF file (from Acrobat Reader), does it print correctly? /Paul
Re: Section numbers in left margin?
On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote: Bruce Pourciau wrote: Is there a way to get the normal indenting behavior with increased depth, using the preamble? You can limit the changes to the first level by using the optional argument of setenumerate: \setenumerate[1]{leftmargin=0pt, labelsep=.6em} Jürgen P.S.: enumitem ships with an excellent documentation. Works like a charm. Thanks, Jürgen. And I promise to read the documentation for enumitem. Bruce
Re: Another eps problem
Am Donnerstag, 25. Januar 2007 17:43 schrieb Miki Dovrat: > Hi, > > I have EPS generated from Microcal Origin, without a preview, which always > (up to now) have been behaving fine. > > Recently I have come across a strange problem, where my eps figures show up > correctly on either pdf (via all methods - dvipdfm, pdftex, ps2pdf), dvi, or > postscript, but they do not PRINT on a printer correctly. I have two > printers (one HP laser printer, and one deskjet), the output is wrong on > both. > > Details of the figure are missing - lines are missing, some marks are > missing, but some are printed. I get about "half" of the figure printed. > > Ghostview complains about DSC warnings when I open the postscript file of > the entire document, but displays everything on screen nicely. I don't know > what these DSC warnings are and if they are relevant. They are probably not relevant. What happens if you try to print these files directly from ghostscript, without including them in LyX? Does it work then? If yes I would suspect a problem in a converter that LyX uses, if not then it has nothing to do with LyX. Georg
Re: OpenOffice vs. LyX
I like LyX for complex documents because I can set a document up and not have to worry about the fact that so many people who claim to understand how to use styles don't bother to use them with any consistency in practice with any word processing software. On Thursday 25 January 2007 09:37 am, John Kane wrote: > Beats me but there are quite a few books out there > done with OOo including the collaboratively written > OOo documentation based on a well constructed template > and well defined styles. I think "a well constructed template and well defined styles" explains it. I've been using word processing software for literally a couple of decades, and frankly, the worst piece of engineering garbage that I've ever had the misfortune to use was MS Word. Even OOo Writer 1.0 ran circles around it (all released versions of MS Word) for features and stability. Most of the "features" people claim are in MS Word that aren't in OOo Writer are really 3rd-party applications (and pricey ones at that). Only the grammar checker and visual basic that were in MS Word were not in OOo Writer 1.0. OOo Writer 2.0 is light-years ahead of MS Word (even with the new "features" 2007 is supposed to come with). As someone else mentioned, you are likely to bring over MS Word's problems when you import the file into OOo Writer and what you're seeing are the problems that were in your MS Word document. Complex MS Word files almost never look the same on two different computers -- even when both computers have the exact same release of MS Word installed. This has been a constant complaint for both the people trying to provide finalized documents for production on MS Word systems other than their own and the people receiving those documents. This is why savvy MS Word users always provide a copy of the file in PDF so that the recipient can see what the file was actually supposed to look like. Check out the Authors' Guides for OOo -- there are versions for 1.0 and 2.0. Getting lists and such to be stable in OOo Writer is not a problem, assuming you set them up correctly for what you want and assuming you adequately cleaned up the MS Word file and templates you're working from. http://documentation.openoffice.org/manuals/index.html deedee -- Registered Linux User #327485 The Writer's Place, http://www.thewritersplace.com WordStar Users Group, http://www.wordstar2.com
Re: error producing output files from "g-letter"
[EMAIL PROTECTED] schrieb: trying to export/view a g-letter[de] or g-letter[en] into pdf always results in errors. > When clicking on "view pdf", in the bottom line of the Window is written that the program > is waiting for latex run 1. And then LyX gets stuck. The error information only shows "lyx: Disabling LyX socket." And that's it. I get here 4 errors. One is that \Telelfon is already defined: \newcommand\Telefon{\mvchr{84}} Your command was ignored. The reason is that MiKTeX loads marvosym automatically and I currently don't know why. Could you please report this on http://bugzilla.lyx.org I'll have a look at this this weekend. regards Uwe
RE: Re: error producing output files from "g-letter"
Well, Problems are solved... > program > > is waiting for latex run 1. And then LyX gets stuck. There was obviousely a problem during installation of MikTeX caused by the firewall - after switching the firewall off and a new installation LyX didn't die anymore. But then I also had the following problem: >I get here 4 errors. One is that \Telelfon is already defined: > > \newcommand\Telefon{\mvchr{84}} >Your command was ignored. So I opened marvosym.sty (\MiKTeX 2.5\tex\latex\marvosym)and changed the spelling of "telefon" (I guess I could also just have deleted it) and everything was just fine. Anyway, thanks for the quick response, Axel
LyX sends PDFs to Yojimbo?
Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as "auto." Also, is there any way to get the same behavior with DVI files as under linux? I used to love the ability to update the DVI file (which was extremely quick) and bring the DVI viewer to the foreground, and it would automatically detect the change and update the display. It was, quite simply, brilliant. Thanks! Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as "auto." I don't know Yojimbo, but it should work to set the viewer for .pdf files to "open -a Yojimbo.app". Bennett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as "auto." I don't know Yojimbo, but it should work to set the viewer for .pdf files to "open -a Yojimbo.app". Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to "open -a Preview.app", but that misses the point. Incidentally, "open Desktop/example.pdf" (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Brett
Re: LyX sends PDFs to Yojimbo?
On Jan 25, 2007, at 11:13 PM, Brett Dikeman wrote: On Jan 25, 2007, at 11:08 PM, Bennett Helm wrote: On Jan 25, 2007, at 10:55 PM, Brett Dikeman wrote: Hey all, I love LyX, but some behavior is driving me nuts- specifically, it's sending PDFs to Yojimbo, instead of creating a temp file and opening it with Preview. This isn't the system-wide default (pdfs are assigned to Preview!) How do I fix this? Under the preferences pane for document types, the handler is listed as "auto." I don't know Yojimbo, but it should work to set the viewer for .pdf files to "open -a Yojimbo.app". Hi Bennett- thank you for the speedy reply, but I'm trying to get LyX to respect the system-wide preferences and NOT open the PDF with Yojimbo :-) I suppose I could modify the above command to "open -a Preview.app", but that misses the point. Incidentally, "open Desktop/example.pdf" (pdf created by latex2pdf) opens the file in Preview, so LaunchServices is doing the right thing. Sorry -- too speedy a reply! From the Finder, select any .pdf file, and select File > Get Info. Set the "Open with" option to anything *other* than Preview, and click the "Change all" button. Then select Preview and click "Change all" again. That should set Preview as the default in a way that LyX will recognize. Bennett
Re: Section numbers in left margin?
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote: > Bruce Pourciau wrote: > > Is there a way to get the normal indenting behavior with increased > > depth, using the preamble? > > You can limit the changes to the first level by using the optional argument > of setenumerate: > > \setenumerate[1]{leftmargin=0pt, labelsep=.6em} > > Jürgen > > P.S.: enumitem ships with an excellent documentation. Jürgen, How do you *know* about all these packages? This is true for many on the list -- someone comes up with a need and you know exactly what package to use to accomplish it. Do you have all this memorized, or do you have a quick way of looking it up? Either way, how do you do it -- I want to do it too. Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/