Adding fonts
Hi all It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? Thanks advanced Miguel smime.p7s Description: S/MIME Cryptographic Signature
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
christian == christian ridderstrom [EMAIL PROTECTED] writes: christian I honestly don't know... in a sense I monitor some of the christian stuff what goes on the LyX wiki, primarily in order to christian watch out for spam abuse etc. And this is very good. christian However, since no one else has given an opinion on this christian I'll just let it rest. It's not like I can't create a christian separate wiki later on :-) I think we can let it rest for now (although I do not like much advertisement on the wiki). We can do something later if things become worse. JMarc
Re: Wiki upload area
On Thu, 23 Mar 2006, Paul A. Rubin wrote: [EMAIL PROTECTED] wrote: For a more permanent solution, I'd need a snippet of PHP code that lists the contents of a directory (recursively). If someone would like to help with that, I could give a more precise specification of the function. With this function I could then very easily integrate it with the wiki and have the list of files be generated automatically whenever you look at the page. If you'd care to post the spec here, I'll take a whack at it when time permits. Sure. Let me start by explaining how I think it should work. A wiki author would use a special markup to invoke the function. I'll create the markup bit and how it parses its arguments etc. What I'd like from you is a backend function that I can invoke to produce the listing. The markup I'm suggesting below will have a few options/parameters, which results in a set of requirements on the function. Please don't feel you have to implement all of those requirements, I'll be happy with the basics - additional requirements can be added as they are needed. The reason I list a relatively complete specification is primarily to get a good syntax for the markup - otherwise it's quite easy to design a markup which can't be expanded later on. Also note that the markup I'm suggesting below is just that, a suggestion. If you have comments or would like it differently, let me know! Anyway, I've put the description of the markup syntax and function specification on this wiki page: http://wiki.lyx.org/Playground/UploadListFcn sincere regards /Christian PS. Below is my original text version of it before I realized I should just place it on a wiki page... -- Anyway, here's a possible syntax of the markup: (:uploadslist dir fmt=fmt recurse=yes|no filter=regexp:) where dir optionally specifies what directory to list, relative to the uploads directory. Eg. 'Windows/LyX14x' would result in a listing of http://wiki.lyx.org/uploads/Windows/LyX14x' fmt optionally specifies a simple listing or a detailed listing, e.g. fmt=simple (default, just the file name) fmt=detailed(file name, size, date etc) what we'd like from detailed list is unclear, I'm just guessing that size and modification is enough. recurse optionally specifies if the listing should be recursive, e.g recurse=no (default, just one directory) recurse=yes (descend into subdirectories) filter optionally allows a filter which only lists matching files, e.g filter='mpg$' (only files ending with 'mpg') This then leads to the requirements of the function... Here's how I imagine it: $str = UploadListFcn($baseDir, $baseURI, $opts); where the function should return a file listing either as a snippet of HTML which I'll just insert into the output, or as wiki markup. You choose which you feel is easiest for you. I suspect it's actually easier to do it by returning wiki markup, see further down for a suggestion. As for the arguments, here's how I imagine them: * '$baseDir' is a string containing the *absolut* path to the top directory that should be listed. If there's no recursion, this will be the only directory that is listed of course. For example: $baseDir = '/home/lyx/pmwiki/uploads/Windows' Let me know if you'd prefer this string to always end in a '/' or not, or if you make the function so that it doesn't matter. * '$baseURI' is a string containing a part of a URI, which should be prepended to a file link. This matches '$baseURI', e.g. $baseURI = 'http://wiki.lyx.org/pmwiki/uploads/Windows' Same thing goes here if you'd like a '/' at the end or not. * '$opts' is an array with the remaining options. The array will always have all the elements that are specified, i.e. the following: $opts = array( 'fmt' = $fmt, 'recurse' = $recurse, 'filter' = $filter); where '$fmt' is one of the strings 'simple' or 'detailed', '$recurse' is one of the strings 'yes' or 'no', '$filter' is a string with a regular expression (or empty) As for the output, I don't really have much of an opinion about what it should look like. To me it doesn't make sense to make it too complicated. Here is one suggestion as to what the output could be when returned as wiki markup when invoked from different markups: The markup '(:uploadslist Windows:)' results in this invocation: UploadsListFcn('/home/lyx/pmwiki/uploads/Windows', 'uploads:/Windows', array('fmt'='simple', 'recurse'='no','filter'='')); which then returns the following: * [[file0.txt - uploads:/Windows/file.txt]] * [[file1.txt - uploads:/Windows/file0.txt]] ... Here's another example when the function should recurse, based on the
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: christian However, since no one else has given an opinion on this christian I'll just let it rest. It's not like I can't create a christian separate wiki later on :-) I think we can let it rest for now (although I do not like much advertisement on the wiki). We can do something later if things become worse. No, I don't like it much either. OTOH, since this is a public wiki, everyone are allowed to remove material they feel is inapproriate. Or move it if they feel it should be somewhere else. It is really only a matter of manners and courtesy to first ask on the user's list if there's a reason for not deleting/moving it. Here's a suggestion for a general guideline regarding inappropriate material on the LyX wiki: If you see something on the wiki you feel is inapproriate, feel free to (re)move it yourself! If you're uncertain, ask on the user's list about it. In fact, it's quite safe to delete first and ask later, as all changes to wiki pages are tracked and can be restored. If this guideline is acceptable I'll place it somewhere on the wiki for future reference. best regards /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Background images
___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ I am interested to know if it is possible to create a document (PDF) in which there is a background image. That is, the text appears over a background image which may -or may not- cover the entrire page. I am thinking about the type of ebook created by such windows programmes such as exebook and ybookmaker. If this is possible, how would I go about doing it? Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{PICTURE_PATH}{0}} Put your image in PICTURE_PATH (replace it with rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 11:00am up 16 days 3:37, 8 users, load average: 1.26, 1.33, 1.13 http://iuron.com - help build a non-profit search engine
Re: orphans, keep-with-next thing
Nagy Gabor wrote: And how can I cure it? I use (in the preamble): \tolerance 1414 \hbadness 1414 \emergencystretch 1.5em \hfuzz 0.3pt \widowpenalty = 1 \vfuzz \hfuzz \raggedbottom Cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows HTH, Jürgen
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
christian == christian ridderstrom [EMAIL PROTECTED] writes: christian If you see something on the wiki you feel is christian inapproriate, feel free to (re)move it yourself! If you're christian uncertain, ask on the user's list about it. In fact, it's christian quite safe to delete first and ask later, as all changes to christian wiki pages are tracked and can be restored. christian If this guideline is acceptable I'll place it somewhere on christian the wiki for future reference. Yes. JMarc
Adding fonts
It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? What type of font is it? And on which OS If it's True-Type on Windows XP, have a look at http://wiki.lyx.org/Windows/LyXWinTips#ttf Ekkehart
Find and Replace with italic word
Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Re: Find and Replace with italic word
Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations - www.tiros.net
Re: Adding fonts
icebna wrote: I think that is a free Microsoft font. OpenOffice use it. My OS is Linux Mandriva 2006 If it is true type, there are some pages on the net describing how to do it, such as http://www.radamir.com/tex/ttf-tex.htm but this is not that easy! Further, some fonts from obscure sources pose various problems. I suggest to try first with an official Microsoft font. Ekkehart
RE: Find and Replace with italic word
What about et al. ? Need to change this too. Also, I want to add a space between the author and the citation, like Hilton [3]. Is there a quick way to do this? -Original Message- From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED] Sent: Fri 3/24/2006 1:54 PM To: lyx-users@lists.lyx.org Subject: Re: Find and Replace with italic word Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations - www.tiros.net
Re: Don't show page numbers
On 06-Mar-24 15:04, Mike Van Emmerik wrote: On the first page, use ERT with this: \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G
Re: Don't show page numbers
Try \thispagestyle{empty} --radwan. Nagy Gabor a écrit : On 06-Mar-24 15:04, Mike Van Emmerik wrote: On the first page, use ERT with this: \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G -- Radwan JALAM AGROCAMPUS RENNES 65, rue Saint Brieuc 35042 Rennes cedex - FRANCE http://www.agrocampus-rennes.fr/math/jalam
Re: Don't show page numbers
On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. Then I have checked with google, and found what it is supposed to do. Now I have a \pagestyle{empty} right at the beginning of my document. And all the page numbers are gone now, but the number 1, on the cover page, the only one that I really wanted to get rid of. :-( Why? What now? Thanks anyway, Gabor
Re: Background images
___/ On Fri 24 Mar 2006 13:57:08 GMT, [ Bruce Muirhead ] wrote : \___ On Fri, 2006-03-24 at 11:06 +, Roy Schestowitz wrote: ___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ I am interested to know if it is possible to create a document (PDF) in which there is a background image. That is, the text appears over a background image which may -or may not- cover the entrire page. I am thinking about the type of ebook created by such windows programmes such as exebook and ybookmaker. If this is possible, how would I go about doing it? Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{PICTURE_PATH}{0}} Put your image in PICTURE_PATH (replace it with rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy Roy, thank you, that does exactly what I want except that nothing is simple. For some reason putting the background image in empties the TOC in the exported PDF. I tried ps2pdf , pdflatex and dvipdfm. The only one which failed t work at all was pdflatex (it claimed not to recognise the graphics file). Both ps2pdf and dvipdfm dropped the TOC. I am using 1.4 on ubuntu. Is this likely to be a glitch in 1.4? Or something else? (I will try it in 1.3.7 tomorrow!) thanks again, and any further advice would be appreciated. Cheers Bruce Hi Bruce, I was doing this in LyX 1.3.4 or 1.3.6. I was using this to produce slides, so no experience with TOC collisions. I cannot think of a simple workaround to your problem at the moment, I'm afraid. Best wishes, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 4:05pm up 16 days 8:42, 8 users, load average: 0.66, 0.84, 0.75 http://iuron.com - Open Source knowledge engine project
Re: Don't show page numbers
On Fri, 24 Mar 2006, Nagy Gabor wrote: On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. Then I have checked with google, and found what it is supposed to do. Now I have a \pagestyle{empty} right at the beginning of my document. And all the page numbers are gone now, but the number 1, on the cover page, the only one that I really wanted to get rid of. :-( Why? Adding '\pagestyle{empty}' as ERT removes page numbers for everything but the title page. In order to get rid of the the page number for the title page, you need to add '\thispagestyle{empty}' as ERT somewhere on the title page. Adding it where you've put the name of the authors should work. So in your case, you probably want '\pagestyle{plain}' in general to get normal page numbers, but you want to insert '\thispagestyle{empty}' on the conver page to get rid of the page number on that page only. cheers /Christian PS. I think the wiki FAQ has this kind of information -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: christian == christian ridderstrom [EMAIL PROTECTED] writes: christianIf you see something on the wiki you feel is christian inapproriate, feel free to (re)move it yourself! If you're christian uncertain, ask on the user's list about it. In fact, it's christian quite safe to delete first and ask later, as all changes to christian wiki pages are tracked and can be restored. christian If this guideline is acceptable I'll place it somewhere on christian the wiki for future reference. Yes. I added it here for now http://wiki.lyx.org/Site/Tips /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Find and Replace with italic word
Well, one thing you can do is export the document as Latex, run your awk script, and then import it back into Lyx. I've done that kind of thing myself to make much more complicated sorts of changes. E.g., I'm working on a book that involves a fair bit of mathematics, and I had a lot of formulae that looked like this: Q^*= ab. It occurred to me long after I'd written most of the initial draft that I'd have been better off using a math-macro, but of course there's no way in Lyx to do that kind of search-and-replace. So I exported it to Latex, wrote a Perl script to handle the conversion, and re-imported. Worked like a charm. Richard Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Developing a Lyx layout file
I am looking for someone to develop a LyX layout file to match the specifications for our society publication. If you are good at this sort of thing and would be interested, please contact me. Thanks, Stan Gatchel [EMAIL PROTECTED]
Re: Book cover in LyX file
Thanks Bruce, pdftk enabled me to easily do exactly what I want. Thanks SteveT On Thursday 23 March 2006 09:20 pm, Bruce Muirhead wrote: You also can use pdftk. It is a command line utility, but very powerfula and easy to use. What is needed is to create the cover and extra pages in a separate programme as a pdf, and then joing th e two pdf files using pdftk. see http://www.accesspdf.com/index.php?topic=pdftk It is my preferred tool for that type of thing because it is easy and lets me design the cover and frontispiece however I want. Cheers Bruce - Original Message - From: Jose' Matos [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Sent: Friday, March 24, 2006 7:39 AM Subject: Re: Book cover in LyX file On Thursday 23 March 2006 21:03, Steve Litt wrote: Hi all, I'm making my first Ebook, and want to have the front cover be part of the final PDF file. That means it, and a following blank page, has to come before the title page. I'd like the cover page to be a graphic. How do I do this? pdfpages? http://www.ctan.org/tex-archive/help/Catalogue/entries/pdfpages.html I remember this advice from Herbert's previous answers to similar questions. Notice that I could remember wrong. :-) http://tug.org/PSTricks/main.cgi?file=pdf/pdf#a5 Thanks SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com -- José Abílio
Re: latex2html implementation style problems
My goal is generate a HTML document from LyX. So, in first time I generate LyX standard document and export it to LaTeX format; in second step I convert this *.tex document in HTML document using latex2html tool. ... 2. URL Same as above but applied to URLs. I don't know the problem is foused in lyx-latex export or in latex-html export. I've searched in list about it, but I've not found the response. google is your friend: lyx export latex2html url :) HTH pavel
Re: .tex to .lyx ACM conversion
Stephen Harris wrote: There seems to be a problem with tex2lyx converting ACM template .tex files. I downloaded acm.zip from http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html 1. Unfortunately, there is an error in the ACM template found on the web (the ACM knows about it...). Get a correct version of the ACM files by downloading this zip file _(acm.zip)_ and unzip it. SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg) This is a followup of troubleshooting Tom's earlier post: Subject: Re: .tex template .lyx template (import troubleshooting) Any ideas why tex2lyx fails on these ACM .tex files with both Cygwin1.4.0 and Windows1.4.1svn? The error message is, LyX: Cannot convert file An error occurred whilst running tex2lyx -f nime06-template.tex nime06-template. Same problem/error message reported with sigproc-sp.tex Regards, Stephen
Re: charstyle-insert
Stacia Hartleben wrote: Neat. I just wish there were an easier way to mark text. I posted a feature request on bugzilla that requested drop down menus for things like colors, font sizes, and hopefully char styles. That would be really cool. Agreed. Just one more question though - I put a true type font in using MTFI, for which I have the following clunky ERT every time I want to use it: \usefont{T1}{stacish}{m}{n} \selectfont hello \usefont{T1}{ae}{m}{n} \selectfont How can I make this a simple charstyle-insert? Try this: CharStyle funky LatexType Environment LatexName funky Font Family Roman EndFont Preamble \newcommand{\funky}[1]{{\usefont{T1}{stacish}{m}{n}\selectfont #1}} EndPreamble End Note the intentional doubled braces {{, }}. By inserting both the font commands and the text inside braces, we avoid having to switch back to ae -- which means you can use a different global font in the document without having to change 'ae' to something else in the command. BTW, as best I can tell, the LatexType is ignored in character styles, at least to the extent that environment is treated the same as command. /Paul
How do you make a wide footer in memoir
Hi all, My book uses the memoir document class. At the bottom of all pages not beginning a chapter, I need a brown stripe going all the way across the page, with some white writing in it. I'm using a minipage and containing a shaded environment, and it works, except that no matter what I do, I cannot get the shading to start at the left edge, but instead it starts at the left margin. I can \hspace{-5in} and it still starts at the margin. This is only true when the minipage is in the footer. When ERT containing the minipage and shaded is placed in the body, the shaded can be started anywhere by preceding it with the proper \hspace{}. But that trick doesn't work in the footer. Any ideas? Thanks SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Re: Don't show page numbers
Gabor, Interesting, Working in the Memoir class I could not make either \thispagestyle {plain} or \thispagestyle{empty} work at the head of the document or in the Author environment. On creating a DVI to view the outcome, the error box told me that the Resulting file is empty. The operation resulted in an empty file. \thispagestyle{empty} did work in the abstract environment I that have on the title page. \thispagestyle{plain}, in the same environment worked in the sense that it permitted generation of a DVI, but did not remove the page number. Can you put another environment in your title page? On Sat, 2006-03-25 at 11:15 +1100, David Trudgett wrote: Hi Nagy, On Friday 2006-03-24 at 16:52:53 +0100, Nagy Gabor wrote: On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. I have found that it doesn't work if you put the ERT within the title environment (and nor does it work, of course, in the preamble). I did a one page article just yesterday, and putting the '\thispagestyle{empty}' on the first standard environment (i.e., the first paragraph of the article) worked fine. As someone else, mentioned, I would assume that it would still have worked if I had put it further down, but still on the title page. Report and book styles are different, however, as they don't have standard environments on the title page. I can't test it right now, but putting the ERT in the Author environment should work (as someone already suggested). David -- Bruce Ernest Weller [EMAIL PROTECTED]
Adding fonts
Hi all It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? Thanks advanced Miguel smime.p7s Description: S/MIME Cryptographic Signature
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
christian == christian ridderstrom [EMAIL PROTECTED] writes: christian I honestly don't know... in a sense I monitor some of the christian stuff what goes on the LyX wiki, primarily in order to christian watch out for spam abuse etc. And this is very good. christian However, since no one else has given an opinion on this christian I'll just let it rest. It's not like I can't create a christian separate wiki later on :-) I think we can let it rest for now (although I do not like much advertisement on the wiki). We can do something later if things become worse. JMarc
Re: Wiki upload area
On Thu, 23 Mar 2006, Paul A. Rubin wrote: [EMAIL PROTECTED] wrote: For a more permanent solution, I'd need a snippet of PHP code that lists the contents of a directory (recursively). If someone would like to help with that, I could give a more precise specification of the function. With this function I could then very easily integrate it with the wiki and have the list of files be generated automatically whenever you look at the page. If you'd care to post the spec here, I'll take a whack at it when time permits. Sure. Let me start by explaining how I think it should work. A wiki author would use a special markup to invoke the function. I'll create the markup bit and how it parses its arguments etc. What I'd like from you is a backend function that I can invoke to produce the listing. The markup I'm suggesting below will have a few options/parameters, which results in a set of requirements on the function. Please don't feel you have to implement all of those requirements, I'll be happy with the basics - additional requirements can be added as they are needed. The reason I list a relatively complete specification is primarily to get a good syntax for the markup - otherwise it's quite easy to design a markup which can't be expanded later on. Also note that the markup I'm suggesting below is just that, a suggestion. If you have comments or would like it differently, let me know! Anyway, I've put the description of the markup syntax and function specification on this wiki page: http://wiki.lyx.org/Playground/UploadListFcn sincere regards /Christian PS. Below is my original text version of it before I realized I should just place it on a wiki page... -- Anyway, here's a possible syntax of the markup: (:uploadslist dir fmt=fmt recurse=yes|no filter=regexp:) where dir optionally specifies what directory to list, relative to the uploads directory. Eg. 'Windows/LyX14x' would result in a listing of http://wiki.lyx.org/uploads/Windows/LyX14x' fmt optionally specifies a simple listing or a detailed listing, e.g. fmt=simple (default, just the file name) fmt=detailed(file name, size, date etc) what we'd like from detailed list is unclear, I'm just guessing that size and modification is enough. recurse optionally specifies if the listing should be recursive, e.g recurse=no (default, just one directory) recurse=yes (descend into subdirectories) filter optionally allows a filter which only lists matching files, e.g filter='mpg$' (only files ending with 'mpg') This then leads to the requirements of the function... Here's how I imagine it: $str = UploadListFcn($baseDir, $baseURI, $opts); where the function should return a file listing either as a snippet of HTML which I'll just insert into the output, or as wiki markup. You choose which you feel is easiest for you. I suspect it's actually easier to do it by returning wiki markup, see further down for a suggestion. As for the arguments, here's how I imagine them: * '$baseDir' is a string containing the *absolut* path to the top directory that should be listed. If there's no recursion, this will be the only directory that is listed of course. For example: $baseDir = '/home/lyx/pmwiki/uploads/Windows' Let me know if you'd prefer this string to always end in a '/' or not, or if you make the function so that it doesn't matter. * '$baseURI' is a string containing a part of a URI, which should be prepended to a file link. This matches '$baseURI', e.g. $baseURI = 'http://wiki.lyx.org/pmwiki/uploads/Windows' Same thing goes here if you'd like a '/' at the end or not. * '$opts' is an array with the remaining options. The array will always have all the elements that are specified, i.e. the following: $opts = array( 'fmt' = $fmt, 'recurse' = $recurse, 'filter' = $filter); where '$fmt' is one of the strings 'simple' or 'detailed', '$recurse' is one of the strings 'yes' or 'no', '$filter' is a string with a regular expression (or empty) As for the output, I don't really have much of an opinion about what it should look like. To me it doesn't make sense to make it too complicated. Here is one suggestion as to what the output could be when returned as wiki markup when invoked from different markups: The markup '(:uploadslist Windows:)' results in this invocation: UploadsListFcn('/home/lyx/pmwiki/uploads/Windows', 'uploads:/Windows', array('fmt'='simple', 'recurse'='no','filter'='')); which then returns the following: * [[file0.txt - uploads:/Windows/file.txt]] * [[file1.txt - uploads:/Windows/file0.txt]] ... Here's another example when the function should recurse, based on the
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: christian However, since no one else has given an opinion on this christian I'll just let it rest. It's not like I can't create a christian separate wiki later on :-) I think we can let it rest for now (although I do not like much advertisement on the wiki). We can do something later if things become worse. No, I don't like it much either. OTOH, since this is a public wiki, everyone are allowed to remove material they feel is inapproriate. Or move it if they feel it should be somewhere else. It is really only a matter of manners and courtesy to first ask on the user's list if there's a reason for not deleting/moving it. Here's a suggestion for a general guideline regarding inappropriate material on the LyX wiki: If you see something on the wiki you feel is inapproriate, feel free to (re)move it yourself! If you're uncertain, ask on the user's list about it. In fact, it's quite safe to delete first and ask later, as all changes to wiki pages are tracked and can be restored. If this guideline is acceptable I'll place it somewhere on the wiki for future reference. best regards /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Background images
___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ I am interested to know if it is possible to create a document (PDF) in which there is a background image. That is, the text appears over a background image which may -or may not- cover the entrire page. I am thinking about the type of ebook created by such windows programmes such as exebook and ybookmaker. If this is possible, how would I go about doing it? Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{PICTURE_PATH}{0}} Put your image in PICTURE_PATH (replace it with rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 11:00am up 16 days 3:37, 8 users, load average: 1.26, 1.33, 1.13 http://iuron.com - help build a non-profit search engine
Re: orphans, keep-with-next thing
Nagy Gabor wrote: And how can I cure it? I use (in the preamble): \tolerance 1414 \hbadness 1414 \emergencystretch 1.5em \hfuzz 0.3pt \widowpenalty = 1 \vfuzz \hfuzz \raggedbottom Cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows HTH, Jürgen
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
christian == christian ridderstrom [EMAIL PROTECTED] writes: christian If you see something on the wiki you feel is christian inapproriate, feel free to (re)move it yourself! If you're christian uncertain, ask on the user's list about it. In fact, it's christian quite safe to delete first and ask later, as all changes to christian wiki pages are tracked and can be restored. christian If this guideline is acceptable I'll place it somewhere on christian the wiki for future reference. Yes. JMarc
Adding fonts
It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? What type of font is it? And on which OS If it's True-Type on Windows XP, have a look at http://wiki.lyx.org/Windows/LyXWinTips#ttf Ekkehart
Find and Replace with italic word
Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Re: Find and Replace with italic word
Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations - www.tiros.net
Re: Adding fonts
icebna wrote: I think that is a free Microsoft font. OpenOffice use it. My OS is Linux Mandriva 2006 If it is true type, there are some pages on the net describing how to do it, such as http://www.radamir.com/tex/ttf-tex.htm but this is not that easy! Further, some fonts from obscure sources pose various problems. I suggest to try first with an official Microsoft font. Ekkehart
RE: Find and Replace with italic word
What about et al. ? Need to change this too. Also, I want to add a space between the author and the citation, like Hilton [3]. Is there a quick way to do this? -Original Message- From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED] Sent: Fri 3/24/2006 1:54 PM To: lyx-users@lists.lyx.org Subject: Re: Find and Replace with italic word Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations - www.tiros.net
Re: Don't show page numbers
On 06-Mar-24 15:04, Mike Van Emmerik wrote: On the first page, use ERT with this: \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G
Re: Don't show page numbers
Try \thispagestyle{empty} --radwan. Nagy Gabor a écrit : On 06-Mar-24 15:04, Mike Van Emmerik wrote: On the first page, use ERT with this: \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G -- Radwan JALAM AGROCAMPUS RENNES 65, rue Saint Brieuc 35042 Rennes cedex - FRANCE http://www.agrocampus-rennes.fr/math/jalam
Re: Don't show page numbers
On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. Then I have checked with google, and found what it is supposed to do. Now I have a \pagestyle{empty} right at the beginning of my document. And all the page numbers are gone now, but the number 1, on the cover page, the only one that I really wanted to get rid of. :-( Why? What now? Thanks anyway, Gabor
Re: Background images
___/ On Fri 24 Mar 2006 13:57:08 GMT, [ Bruce Muirhead ] wrote : \___ On Fri, 2006-03-24 at 11:06 +, Roy Schestowitz wrote: ___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ I am interested to know if it is possible to create a document (PDF) in which there is a background image. That is, the text appears over a background image which may -or may not- cover the entrire page. I am thinking about the type of ebook created by such windows programmes such as exebook and ybookmaker. If this is possible, how would I go about doing it? Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{PICTURE_PATH}{0}} Put your image in PICTURE_PATH (replace it with rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy Roy, thank you, that does exactly what I want except that nothing is simple. For some reason putting the background image in empties the TOC in the exported PDF. I tried ps2pdf , pdflatex and dvipdfm. The only one which failed t work at all was pdflatex (it claimed not to recognise the graphics file). Both ps2pdf and dvipdfm dropped the TOC. I am using 1.4 on ubuntu. Is this likely to be a glitch in 1.4? Or something else? (I will try it in 1.3.7 tomorrow!) thanks again, and any further advice would be appreciated. Cheers Bruce Hi Bruce, I was doing this in LyX 1.3.4 or 1.3.6. I was using this to produce slides, so no experience with TOC collisions. I cannot think of a simple workaround to your problem at the moment, I'm afraid. Best wishes, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 4:05pm up 16 days 8:42, 8 users, load average: 0.66, 0.84, 0.75 http://iuron.com - Open Source knowledge engine project
Re: Don't show page numbers
On Fri, 24 Mar 2006, Nagy Gabor wrote: On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. Then I have checked with google, and found what it is supposed to do. Now I have a \pagestyle{empty} right at the beginning of my document. And all the page numbers are gone now, but the number 1, on the cover page, the only one that I really wanted to get rid of. :-( Why? Adding '\pagestyle{empty}' as ERT removes page numbers for everything but the title page. In order to get rid of the the page number for the title page, you need to add '\thispagestyle{empty}' as ERT somewhere on the title page. Adding it where you've put the name of the authors should work. So in your case, you probably want '\pagestyle{plain}' in general to get normal page numbers, but you want to insert '\thispagestyle{empty}' on the conver page to get rid of the page number on that page only. cheers /Christian PS. I think the wiki FAQ has this kind of information -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: christian == christian ridderstrom [EMAIL PROTECTED] writes: christianIf you see something on the wiki you feel is christian inapproriate, feel free to (re)move it yourself! If you're christian uncertain, ask on the user's list about it. In fact, it's christian quite safe to delete first and ask later, as all changes to christian wiki pages are tracked and can be restored. christian If this guideline is acceptable I'll place it somewhere on christian the wiki for future reference. Yes. I added it here for now http://wiki.lyx.org/Site/Tips /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Find and Replace with italic word
Well, one thing you can do is export the document as Latex, run your awk script, and then import it back into Lyx. I've done that kind of thing myself to make much more complicated sorts of changes. E.g., I'm working on a book that involves a fair bit of mathematics, and I had a lot of formulae that looked like this: Q^*= ab. It occurred to me long after I'd written most of the initial draft that I'd have been better off using a math-macro, but of course there's no way in Lyx to do that kind of search-and-replace. So I exported it to Latex, wrote a Perl script to handle the conversion, and re-imported. Worked like a charm. Richard Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Developing a Lyx layout file
I am looking for someone to develop a LyX layout file to match the specifications for our society publication. If you are good at this sort of thing and would be interested, please contact me. Thanks, Stan Gatchel [EMAIL PROTECTED]
Re: Book cover in LyX file
Thanks Bruce, pdftk enabled me to easily do exactly what I want. Thanks SteveT On Thursday 23 March 2006 09:20 pm, Bruce Muirhead wrote: You also can use pdftk. It is a command line utility, but very powerfula and easy to use. What is needed is to create the cover and extra pages in a separate programme as a pdf, and then joing th e two pdf files using pdftk. see http://www.accesspdf.com/index.php?topic=pdftk It is my preferred tool for that type of thing because it is easy and lets me design the cover and frontispiece however I want. Cheers Bruce - Original Message - From: Jose' Matos [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Sent: Friday, March 24, 2006 7:39 AM Subject: Re: Book cover in LyX file On Thursday 23 March 2006 21:03, Steve Litt wrote: Hi all, I'm making my first Ebook, and want to have the front cover be part of the final PDF file. That means it, and a following blank page, has to come before the title page. I'd like the cover page to be a graphic. How do I do this? pdfpages? http://www.ctan.org/tex-archive/help/Catalogue/entries/pdfpages.html I remember this advice from Herbert's previous answers to similar questions. Notice that I could remember wrong. :-) http://tug.org/PSTricks/main.cgi?file=pdf/pdf#a5 Thanks SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com -- José Abílio
Re: latex2html implementation style problems
My goal is generate a HTML document from LyX. So, in first time I generate LyX standard document and export it to LaTeX format; in second step I convert this *.tex document in HTML document using latex2html tool. ... 2. URL Same as above but applied to URLs. I don't know the problem is foused in lyx-latex export or in latex-html export. I've searched in list about it, but I've not found the response. google is your friend: lyx export latex2html url :) HTH pavel
Re: .tex to .lyx ACM conversion
Stephen Harris wrote: There seems to be a problem with tex2lyx converting ACM template .tex files. I downloaded acm.zip from http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html 1. Unfortunately, there is an error in the ACM template found on the web (the ACM knows about it...). Get a correct version of the ACM files by downloading this zip file _(acm.zip)_ and unzip it. SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg) This is a followup of troubleshooting Tom's earlier post: Subject: Re: .tex template .lyx template (import troubleshooting) Any ideas why tex2lyx fails on these ACM .tex files with both Cygwin1.4.0 and Windows1.4.1svn? The error message is, LyX: Cannot convert file An error occurred whilst running tex2lyx -f nime06-template.tex nime06-template. Same problem/error message reported with sigproc-sp.tex Regards, Stephen
Re: charstyle-insert
Stacia Hartleben wrote: Neat. I just wish there were an easier way to mark text. I posted a feature request on bugzilla that requested drop down menus for things like colors, font sizes, and hopefully char styles. That would be really cool. Agreed. Just one more question though - I put a true type font in using MTFI, for which I have the following clunky ERT every time I want to use it: \usefont{T1}{stacish}{m}{n} \selectfont hello \usefont{T1}{ae}{m}{n} \selectfont How can I make this a simple charstyle-insert? Try this: CharStyle funky LatexType Environment LatexName funky Font Family Roman EndFont Preamble \newcommand{\funky}[1]{{\usefont{T1}{stacish}{m}{n}\selectfont #1}} EndPreamble End Note the intentional doubled braces {{, }}. By inserting both the font commands and the text inside braces, we avoid having to switch back to ae -- which means you can use a different global font in the document without having to change 'ae' to something else in the command. BTW, as best I can tell, the LatexType is ignored in character styles, at least to the extent that environment is treated the same as command. /Paul
How do you make a wide footer in memoir
Hi all, My book uses the memoir document class. At the bottom of all pages not beginning a chapter, I need a brown stripe going all the way across the page, with some white writing in it. I'm using a minipage and containing a shaded environment, and it works, except that no matter what I do, I cannot get the shading to start at the left edge, but instead it starts at the left margin. I can \hspace{-5in} and it still starts at the margin. This is only true when the minipage is in the footer. When ERT containing the minipage and shaded is placed in the body, the shaded can be started anywhere by preceding it with the proper \hspace{}. But that trick doesn't work in the footer. Any ideas? Thanks SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Re: Don't show page numbers
Gabor, Interesting, Working in the Memoir class I could not make either \thispagestyle {plain} or \thispagestyle{empty} work at the head of the document or in the Author environment. On creating a DVI to view the outcome, the error box told me that the Resulting file is empty. The operation resulted in an empty file. \thispagestyle{empty} did work in the abstract environment I that have on the title page. \thispagestyle{plain}, in the same environment worked in the sense that it permitted generation of a DVI, but did not remove the page number. Can you put another environment in your title page? On Sat, 2006-03-25 at 11:15 +1100, David Trudgett wrote: Hi Nagy, On Friday 2006-03-24 at 16:52:53 +0100, Nagy Gabor wrote: On 06-Mar-24 16:21, Radwan JALAM wrote: Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. Try \thispagestyle{empty} I don't understand this. It doesn't work either. I have found that it doesn't work if you put the ERT within the title environment (and nor does it work, of course, in the preamble). I did a one page article just yesterday, and putting the '\thispagestyle{empty}' on the first standard environment (i.e., the first paragraph of the article) worked fine. As someone else, mentioned, I would assume that it would still have worked if I had put it further down, but still on the title page. Report and book styles are different, however, as they don't have standard environments on the title page. I can't test it right now, but putting the ERT in the Author environment should work (as someone already suggested). David -- Bruce Ernest Weller [EMAIL PROTECTED]
Adding fonts
Hi all It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? Thanks advanced Miguel smime.p7s Description: S/MIME Cryptographic Signature
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
> "christian" == christian ridderstrom <[EMAIL PROTECTED]> writes: christian> I honestly don't know... in a sense I monitor some of the christian> stuff what goes on the LyX wiki, primarily in order to christian> watch out for spam abuse etc. And this is very good. christian> However, since no one else has given an opinion on this christian> I'll just let it rest. It's not like I can't create a christian> separate wiki later on :-) I think we can let it rest for now (although I do not like much advertisement on the wiki). We can do something later if things become worse. JMarc
Re: Wiki upload area
On Thu, 23 Mar 2006, Paul A. Rubin wrote: > [EMAIL PROTECTED] wrote: > > > > For a more permanent solution, I'd need a snippet of PHP code that lists > > the contents of a directory (recursively). If someone would like to help > > with that, I could give a more precise specification of the function. With > > this function I could then very easily integrate it with the wiki and have > > the list of files be generated automatically whenever you look at the > > page. > > > > If you'd care to post the spec here, I'll take a whack at it when time > permits. Sure. Let me start by explaining how I think it should work. A wiki author would use a special markup to invoke the function. I'll create the markup bit and how it parses its arguments etc. What I'd like from you is a "backend" function that I can invoke to produce the listing. The markup I'm suggesting below will have a few options/parameters, which results in a set of requirements on the function. Please don't feel you have to implement all of those requirements, I'll be happy with the basics - additional requirements can be added as they are needed. The reason I list a relatively complete specification is primarily to get a good syntax for the markup - otherwise it's quite easy to design a markup which can't be expanded later on. Also note that the markup I'm suggesting below is just that, a suggestion. If you have comments or would like it differently, let me know! Anyway, I've put the description of the markup syntax and function specification on this wiki page: http://wiki.lyx.org/Playground/UploadListFcn sincere regards /Christian PS. Below is my original text version of it before I realized I should just place it on a wiki page... -- Anyway, here's a possible syntax of the markup: (:uploadslist fmt= recurse=filter=:) where optionally specifies what directory to list, relative to the uploads directory. Eg. 'Windows/LyX14x' would result in a listing of http://wiki.lyx.org/uploads/Windows/LyX14x' optionally specifies a simple listing or a detailed listing, e.g. fmt=simple (default, just the file name) fmt=detailed(file name, size, date etc) what we'd like from detailed list is unclear, I'm just guessing that size and modification is enough. optionally specifies if the listing should be recursive, e.g recurse=no (default, just one directory) recurse=yes (descend into subdirectories) optionally allows a filter which only lists matching files, e.g filter='mpg$' (only files ending with 'mpg') This then leads to the requirements of the function... Here's how I imagine it: $str = UploadListFcn($baseDir, $baseURI, $opts); where the function should return a file listing either as a snippet of HTML which I'll just insert into the output, or as wiki markup. You choose which you feel is easiest for you. I suspect it's actually easier to do it by returning wiki markup, see further down for a suggestion. As for the arguments, here's how I imagine them: * '$baseDir' is a string containing the *absolut* path to the "top" directory that should be listed. If there's no recursion, this will be the only directory that is listed of course. For example: $baseDir = '/home/lyx/pmwiki/uploads/Windows' Let me know if you'd prefer this string to always end in a '/' or not, or if you make the function so that it doesn't matter. * '$baseURI' is a string containing a part of a URI, which should be prepended to a file link. This matches '$baseURI', e.g. $baseURI = 'http://wiki.lyx.org/pmwiki/uploads/Windows' Same thing goes here if you'd like a '/' at the end or not. * '$opts' is an array with the remaining options. The array will always have all the elements that are specified, i.e. the following: $opts = array( 'fmt' => $fmt, 'recurse' => $recurse, 'filter' => $filter); where '$fmt' is one of the strings 'simple' or 'detailed', '$recurse' is one of the strings 'yes' or 'no', '$filter' is a string with a regular expression (or empty) As for the output, I don't really have much of an opinion about what it should look like. To me it doesn't make sense to make it too complicated. Here is one suggestion as to what the output could be when returned as wiki markup when invoked from different markups: The markup '(:uploadslist Windows:)' results in this invocation: UploadsListFcn('/home/lyx/pmwiki/uploads/Windows', 'uploads:/Windows', array('fmt'=>'simple', 'recurse'='no','filter'=>'')); which then returns the following: * [[file0.txt -> uploads:/Windows/file.txt]] * [[file1.txt -> uploads:/Windows/file0.txt]] ... Here's another example when the function should recurse, based on the
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: > christian> However, since no one else has given an opinion on this > christian> I'll just let it rest. It's not like I can't create a > christian> separate wiki later on :-) > > I think we can let it rest for now (although I do not like much > advertisement on the wiki). We can do something later if things become > worse. No, I don't like it much either. OTOH, since this is a public wiki, everyone are allowed to remove material they feel is inapproriate. Or move it if they feel it should be somewhere else. It is really only a matter of manners and courtesy to first ask on the user's list if there's a reason for not deleting/moving it. Here's a suggestion for a general guideline regarding inappropriate material on the LyX wiki: If you see something on the wiki you feel is inapproriate, feel free to (re)move it yourself! If you're uncertain, ask on the user's list about it. In fact, it's quite safe to delete first and ask later, as all changes to wiki pages are tracked and can be restored. If this guideline is acceptable I'll place it somewhere on the wiki for future reference. best regards /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Background images
___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ I am interested to know if it is possible to create a document (PDF) in which there is a background image. That is, the text appears over a background image which may -or may not- cover the entrire page. I am thinking about the type of ebook created by such windows programmes such as exebook and ybookmaker. If this is possible, how would I go about doing it? Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{}{0}} Put your image in ("replace it with" rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 11:00am up 16 days 3:37, 8 users, load average: 1.26, 1.33, 1.13 http://iuron.com - help build a non-profit search engine
Re: orphans, keep-with-next thing
Nagy Gabor wrote: > And how can I cure it? I use (in the preamble): \tolerance 1414 \hbadness 1414 \emergencystretch 1.5em \hfuzz 0.3pt \widowpenalty = 1 \vfuzz \hfuzz \raggedbottom Cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows HTH, Jürgen
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
> "christian" == christian ridderstrom <[EMAIL PROTECTED]> writes: christian> If you see something on the wiki you feel is christian> inapproriate, feel free to (re)move it yourself! If you're christian> uncertain, ask on the user's list about it. In fact, it's christian> quite safe to delete first and ask later, as all changes to christian> wiki pages are tracked and can be restored. christian> If this guideline is acceptable I'll place it somewhere on christian> the wiki for future reference. Yes. JMarc
Adding fonts
>It is possible, add de font Albany to lyx-1.3.7 ? If it is possible. How make it ? What type of font is it? And on which OS If it's True-Type on Windows XP, have a look at http://wiki.lyx.org/Windows/LyXWinTips#ttf Ekkehart
Find and Replace with italic word
Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Re: Find and Replace with italic word
Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer <[EMAIL PROTECTED]> Tiros-Translations - www.tiros.net
Re: Adding fonts
icebna wrote: I think that is a free Microsoft font. OpenOffice use it. My OS is Linux Mandriva 2006 If it is true type, there are some pages on the net describing how to do it, such as http://www.radamir.com/tex/ttf-tex.htm but this is not that easy! Further, some fonts from obscure sources pose various problems. I suggest to try first with an official Microsoft font. Ekkehart
RE: Find and Replace with italic word
What about et al. ? Need to change this too. Also, I want to add a space between the author and the citation, like "Hilton [3]". Is there a quick way to do this? -Original Message- From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED] Sent: Fri 3/24/2006 1:54 PM To: lyx-users@lists.lyx.org Subject: Re: Find and Replace with italic word Saraswat, Rajil wrote: > Hi All, > I have a document in which latin characters like i.e. and e.g. are not italicised. Chicago Manual of Style says that these two should _not_ be italicized. (Not that that answers your question.) -Kevin -- Kevin Pfeiffer <[EMAIL PROTECTED]> Tiros-Translations - www.tiros.net
Re: Don't show page numbers
On 06-Mar-24 15:04, Mike Van Emmerik wrote: > On the first page, use ERT with this: > > \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G
Re: Don't show page numbers
Try \thispagestyle{empty} --radwan. Nagy Gabor a écrit : On 06-Mar-24 15:04, Mike Van Emmerik wrote: On the first page, use ERT with this: \thispagestyle{plain} Alas this doesn't seem to work. I have put the above on the first page, and I still have the page number in the lower right corner. G -- Radwan JALAM AGROCAMPUS RENNES 65, rue Saint Brieuc 35042 Rennes cedex - FRANCE http://www.agrocampus-rennes.fr/math/jalam
Re: Don't show page numbers
On 06-Mar-24 16:21, Radwan JALAM wrote: > >Alas this doesn't seem to work. > > > >I have put the above on the first page, and I still have the page number > >in the lower right corner. > Try > > \thispagestyle{empty} I don't understand this. It doesn't work either. Then I have checked with google, and found what it is supposed to do. Now I have a \pagestyle{empty} right at the beginning of my document. And all the page numbers are gone now, but the number 1, on the cover page, the only one that I really wanted to get rid of. :-( Why? What now? Thanks anyway, Gabor
Re: Background images
___/ On Fri 24 Mar 2006 13:57:08 GMT, [ Bruce Muirhead ] wrote : \___ On Fri, 2006-03-24 at 11:06 +, Roy Schestowitz wrote: ___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___ > I am interested to know if it is possible to create a document (PDF) in > which there is a background image. That is, the text appears over a > background image which may -or may not- cover the entrire page. > > I am thinking about the type of ebook created by such windows programmes > such as exebook and ybookmaker. > > If this is possible, how would I go about doing it? > > Bruce Hi, Add the following to the Preamble: \usepackage{eso-pic,graphicx} \newcommand\BackgroundPicture[2]{% \setlength{\unitlength}{1pt}% default \put(0,[EMAIL PROTECTED]){% \parbox[t][\paperheight]{\paperwidth}{% \vfill \centering\includegraphics[angle=#2]{#1} \vfill }}} \makeatother \AddToShipoutPicture{\BackgroundPicture{}{0}} Put your image in ("replace it with" rather). Encapsulated PostScript should do. If you want a practical example (LyX file), please just let me know. I use this for presentation slides in LyX. Hope it helps, Roy Roy, thank you, that does exactly what I want except that nothing is simple. For some reason putting the background image in empties the TOC in the exported PDF. I tried ps2pdf , pdflatex and dvipdfm. The only one which failed t work at all was pdflatex (it claimed not to recognise the graphics file). Both ps2pdf and dvipdfm dropped the TOC. I am using 1.4 on ubuntu. Is this likely to be a glitch in 1.4? Or something else? (I will try it in 1.3.7 tomorrow!) thanks again, and any further advice would be appreciated. Cheers Bruce Hi Bruce, I was doing this in LyX 1.3.4 or 1.3.6. I was using this to produce slides, so no experience with TOC collisions. I cannot think of a simple workaround to your problem at the moment, I'm afraid. Best wishes, Roy -- Roy S. Schestowitz |It is no longer uncommon to be uncommon http://Schestowitz.com |SuSE Linux ¦ PGP-Key: 0x74572E8E 4:05pm up 16 days 8:42, 8 users, load average: 0.66, 0.84, 0.75 http://iuron.com - Open Source knowledge engine project
Re: Don't show page numbers
On Fri, 24 Mar 2006, Nagy Gabor wrote: > On 06-Mar-24 16:21, Radwan JALAM wrote: > > >Alas this doesn't seem to work. > > > > > >I have put the above on the first page, and I still have the page number > > >in the lower right corner. > > > Try > > > > \thispagestyle{empty} > > I don't understand this. > > It doesn't work either. > > Then I have checked with google, and found what it is supposed to do. > > Now I have a \pagestyle{empty} right at the beginning of my document. And > all the page numbers are gone now, but the number 1, on the cover page, > the only one that I really wanted to get rid of. :-( > > Why? Adding '\pagestyle{empty}' as ERT removes page numbers for everything but the title page. In order to get rid of the the page number for the title page, you need to add '\thispagestyle{empty}' as ERT somewhere on the title page. Adding it where you've put the name of the authors should work. So in your case, you probably want '\pagestyle{plain}' in general to get normal page numbers, but you want to insert '\thispagestyle{empty}' on the conver page to get rid of the page number on that page only. cheers /Christian PS. I think the wiki FAQ has this kind of information -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Wiki question: What is spam? And, separate group for non-LyX stuff?
On Fri, 24 Mar 2006, Jean-Marc Lasgouttes wrote: > > "christian" == christian ridderstrom <[EMAIL PROTECTED]> writes: > > christian>If you see something on the wiki you feel is > christian> inapproriate, feel free to (re)move it yourself! If you're > christian> uncertain, ask on the user's list about it. In fact, it's > christian> quite safe to delete first and ask later, as all changes to > christian> wiki pages are tracked and can be restored. > > christian> If this guideline is acceptable I'll place it somewhere on > christian> the wiki for future reference. > > Yes. I added it here for now http://wiki.lyx.org/Site/Tips /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Find and Replace with italic word
Well, one thing you can do is export the document as Latex, run your awk script, and then import it back into Lyx. I've done that kind of thing myself to make much more complicated sorts of changes. E.g., I'm working on a book that involves a fair bit of mathematics, and I had a lot of formulae that looked like this: Q^*= ab. It occurred to me long after I'd written most of the initial draft that I'd have been better off using a "math-macro", but of course there's no way in Lyx to do that kind of search-and-replace. So I exported it to Latex, wrote a Perl script to handle the conversion, and re-imported. Worked like a charm. Richard Saraswat, Rajil wrote: Hi All, I have a document in which latin characters like i.e. and e.g. are not italicised. Is there a way to do a find and replace on i.e. and change it to italics. Dealing with a latex document would have been straightforward, as i could have done an awk to replace these characters. However, lyx file seems a bit more complicated. Anybody has an idea how can i do this? Cheers, Rajil
Developing a Lyx layout file
I am looking for someone to develop a LyX layout file to match the specifications for our society publication. If you are good at this sort of thing and would be interested, please contact me. Thanks, Stan Gatchel [EMAIL PROTECTED]
Re: Book cover in LyX file
Thanks Bruce, pdftk enabled me to easily do exactly what I want. Thanks SteveT On Thursday 23 March 2006 09:20 pm, Bruce Muirhead wrote: > You also can use pdftk. It is a command line utility, but very powerfula > and easy to use. What is needed is to create the cover and extra pages in a > separate programme as a pdf, and then joing th e two pdf files using pdftk. > > see http://www.accesspdf.com/index.php?topic=pdftk > > It is my preferred tool for that type of thing because it is easy and lets > me design the cover and frontispiece however I want. > > > > Cheers > > > > Bruce > > - Original Message - > > From: "Jose' Matos" <[EMAIL PROTECTED]> > To:> Sent: Friday, March 24, 2006 7:39 AM > Subject: Re: Book cover in LyX file > > On Thursday 23 March 2006 21:03, Steve Litt wrote: > > Hi all, > > > > I'm making my first Ebook, and want to have the front cover be part of > > the final PDF file. That means it, and a following blank page, has to > > come before the title page. > > > > I'd like the cover page to be a graphic. How do I do this? > > pdfpages? > http://www.ctan.org/tex-archive/help/Catalogue/entries/pdfpages.html > > I remember this advice from Herbert's previous answers to similar > questions. > Notice that I could remember wrong. :-) > http://tug.org/PSTricks/main.cgi?file=pdf/pdf#a5 > > > Thanks > > > > SteveT > > > > Steve Litt > > Author: > >* Universal Troubleshooting Process courseware > >* Troubleshooting Techniques of the Successful Technologist > >* Rapid Learning: Secret Weapon of the Successful Technologist > > Webmaster > >* Troubleshooters.Com > >* http://www.troubleshooters.com > > -- > José Abílio
Re: latex2html implementation style problems
> My goal is generate a HTML document from LyX. So, in first time I generate > LyX > standard document and export it to LaTeX format; in second step I convert > this *.tex document in HTML document using latex2html tool. ... > 2. URL > > Same as above but applied to URLs. > > I don't know the problem is foused in lyx-latex export or in latex-html > export. I've searched in list about it, but I've not found the response. google is your friend: "lyx export latex2html url" :) HTH pavel
Re: .tex to .lyx ACM conversion
Stephen Harris wrote: There seems to be a problem with tex2lyx converting ACM template .tex files. I downloaded acm.zip from http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html "1. Unfortunately, there is an error in the ACM template found on the web (the ACM knows about it...). Get a correct version of the ACM files by downloading this zip file _(acm.zip)_ and unzip it." SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg) This is a followup of troubleshooting Tom's earlier post: Subject: Re: .tex template > .lyx template (import troubleshooting) Any ideas why tex2lyx fails on these ACM .tex files with both Cygwin1.4.0 and Windows1.4.1svn? The error message is, LyX: Cannot convert file An error occurred whilst running tex2lyx -f "nime06-template.tex" "nime06-template. Same problem/error message reported with sigproc-sp.tex Regards, Stephen
Re: charstyle-insert
Stacia Hartleben wrote: Neat. I just wish there were an easier way to mark text. I posted a feature request on bugzilla that requested drop down menus for things like colors, font sizes, and hopefully char styles. That would be really cool. Agreed. Just one more question though - I put a true type font in using MTFI, for which I have the following clunky ERT every time I want to use it: \usefont{T1}{stacish}{m}{n} \selectfont hello \usefont{T1}{ae}{m}{n} \selectfont How can I make this a simple charstyle-insert? Try this: CharStyle funky LatexType Environment LatexName funky Font Family Roman EndFont Preamble \newcommand{\funky}[1]{{\usefont{T1}{stacish}{m}{n}\selectfont #1}} EndPreamble End Note the intentional doubled braces {{, }}. By inserting both the font commands and the text inside braces, we avoid having to switch back to ae -- which means you can use a different global font in the document without having to change 'ae' to something else in the command. BTW, as best I can tell, the LatexType is ignored in character styles, at least to the extent that environment is treated the same as command. /Paul
How do you make a wide footer in memoir
Hi all, My book uses the memoir document class. At the bottom of all pages not beginning a chapter, I need a brown stripe going all the way across the page, with some white writing in it. I'm using a minipage and containing a shaded environment, and it works, except that no matter what I do, I cannot get the shading to start at the left edge, but instead it starts at the left margin. I can \hspace{-5in} and it still starts at the margin. This is only true when the minipage is in the footer. When ERT containing the minipage and shaded is placed in the body, the shaded can be started anywhere by preceding it with the proper \hspace{}. But that trick doesn't work in the footer. Any ideas? Thanks SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Re: Don't show page numbers
Gabor, Interesting, Working in the Memoir class I could not make either \thispagestyle {plain} or \thispagestyle{empty} work at the head of the document or in the Author environment. On creating a DVI to view the outcome, the error box told me that the "Resulting file is empty. The operation resulted in an empty file". \thispagestyle{empty} did work in the abstract environment I that have on the title page. \thispagestyle{plain}, in the same environment worked in the sense that it permitted generation of a DVI, but did not remove the page number. Can you put another environment in your title page? On Sat, 2006-03-25 at 11:15 +1100, David Trudgett wrote: > Hi Nagy, > > On Friday 2006-03-24 at 16:52:53 +0100, Nagy Gabor wrote: > > On 06-Mar-24 16:21, Radwan JALAM wrote: > > > >Alas this doesn't seem to work. > > > > > > > >I have put the above on the first page, and I still have the page number > > > >in the lower right corner. > > > > > Try > > > > > > \thispagestyle{empty} > > > > I don't understand this. > > > > It doesn't work either. > > I have found that it doesn't work if you put the ERT within the title > environment (and nor does it work, of course, in the preamble). I did > a one page article just yesterday, and putting the > '\thispagestyle{empty}' on the first "standard" environment (i.e., the > first paragraph of the article) worked fine. As someone else, > mentioned, I would assume that it would still have worked if I had put > it further down, but still on the title page. > > Report and book styles are different, however, as they don't have > standard environments on the title page. I can't test it right now, > but putting the ERT in the Author environment should work (as someone > already suggested). > > David > > -- Bruce Ernest Weller <[EMAIL PROTECTED]>